Mitsubishi Electronics Mitsubishi Digital Electronics Video Gaming Accessories FX3G ユーザーズマニュアル

ページ / 936
181
FX
3G
/FX
3U
/FX
3UC
 Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
7 Basic Instruction
7.2 OUT
1
In
trodu
ct
ion
2
O
ver
vi
ew
3
In
st
ru
ct
ion 
Li
st
4
D
evices 
in D
etail
5
Specifi
ed t
he
D
evice &
 
C
onst
ant
6
Bef
ore 
Pr
ogr
am
m
ing
7
B
asic 
In
st
ru
ct
ion
8
FNC0
0-F
NC0
9
Pr
ogr
am
 Flow
9
FN
C
10-FN
C
19
Mo
ve
 &
 Co
mp
are
10
FNC2
0-F
NC2
9
Ar
ith.
 &
 Logic 
O
per
ati
on
2. When a timer or counter is used
The set value is required after OUT instruction for the counting coil of a timer or counter.
The set value can be specified directly by a decimal number (K) or indirectly using a data register (D) or extension
register (R).
1) Direct specification
The set value of a timer or counter can be
specified directly by a decimal number (K).
2) Indirect specification
The set value of a timer or counter can be set
by a data register (D) or extension data
register (R).  At this time, the current value of
the data register (D) or extension register (R)
is regarded as the set value of the timer or
counter.
It is necessary to write in advance the set
value to a data register (D) or extension
register (R) used for the set value by MOV
instruction, DSW instruction or display unit
before driving the timer or counter.
3) Setting range of timers and counters
The table below shows the set value range of timers and counters, the actual timer constants and the number of
program steps (including the set value) for OUT instruction.
Timer/counter
Setting range 
(Value of K or current value of D or R)
Actual set value
Number of steps
1 ms timer
1 to 32767
0.001 to 32.767 sec
3
10 ms timer
1 to 32767
0.01 to 327.67 sec
3
100 ms timer
0.1 to 3276.7 sec
16-bit counter
1 to 32767
Same as left
3
32-bit counter
−2,147,483,648 to +2,147,483,647
Same as left
5
ON
ON
Timing chart
OUT instruction
OUT instruction
ON
ON
X000
ON
Y000
ON
X001
ON
M100
ON
M101
OUT instruction
X000
X001
T1
C0
K50
T0
K30
K30
Circuit program
List program
LD
OUT
(SP)
LDI
OUT
(SP)
OUT
(SP)
0000
0001
0004
0005
0008
X000
T0
K30
X001
T1
K30
C0
K50
X000
X001
T11
C10
D20
T10
D10
R15
Circuit program
List program
LD
OUT
(SP)
LDI
OUT
(SP)
OUT
(SP)
0000
0001
0004
0005
0008
X000
T10
D10
X001
T11
R15
C10
D20