Mitsubishi Electronics FX3G User Manual

Page of 964
591
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
24.3 FNC186 – DUTY / Timing Pulse Generation
21
FNC160
-F
NC1
69
R
eal
 T
ime C
lock
 
C
ontrol
22
FNC17
0-F
NC
179
E
xternal D
evice
23
FNC
180
Alternate 
Instructions
24
FN
C181-
FNC18
9
O
thers
25
FNC190
-F
NC1
99
Bl
oc
k D
ata
 
Op
er
ation
26
FNC20
0-F
NC209
C
har
ac
te
r S
trin
Con
tro
l
27
FNC2
10-
FNC21
9
Dat
Operati
on 3
28
FNC220
-F
NC2
49
Da
ta 
C
omp
ari
son
29
FNC25
0-F
N
C
269
D
ata T
abl
Operation
30
FNC2
70-
FNC276
Ex
-Dev
ice
4) When the command input is set to ON, the operation is started. The timing clock output destination device 
is set to ON or OFF by the END instruction.
Even if the command input is set to OFF, the operation is not stopped.
In the STOP mode, the operation is suspended. When the power to the PLC is turned OFF, the operation is
stopped.
5) When "n1" and "n2" are set to "0", the device 
 is set to the following status:
Related devices
Caution
• The DUTY (FNC186) instruction can be used up to 5 times (points).
It is not permitted, however, to use the same timing clock output destination device 
 for two or more DUTY 
(FNC186) instructions.
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in
D8067.
• When "n1" and/or "n2" is less than "0" (error code: K6706)
• When any device other than M8330 to M8334 is set to 
 (error code: K6705)
Program example
In the program shown below, when X000 is set to ON, M8330 is set to ON for 1 scan and OFF for 3 scans.
n1/n2 status
 ON/OFF status
n1 = 0, n2 
≥ 0
 Fixed to OFF
n1 > 0, n2 = 0
 Fixed to ON
Device
Name
Description
M8330
Timing clock output 1
Timing clock output in the DUTY (FNC186) instruction
M8331
Timing clock output 2
M8332
Timing clock output 3
M8333
Timing clock output 4
M8334
Timing clock output 5
D8330
Counted number of scans for 
timing clock output 1
Counted number of scans for timing clock output 1 in the DUTY (FNC186) instruction
D8331
Counted number of scans for 
timing clock output 2
Counted number of scans for timing clock output 2 in the DUTY (FNC186) instruction
D8332
Counted number of scans for 
timing clock output 3
Counted number of scans for timing clock output 3 in the DUTY (FNC186) instruction
D8333
Counted number of scans for 
timing clock output 4
Counted number of scans for timing clock output 4 in the DUTY (FNC186) instruction
D8334
Counted number of scans for 
timing clock output 5
Counted number of scans for timing clock output 5 in the DUTY (FNC186) instruction
   
D
   
D
  D
  D
  D
   
D
   
D
X000
FNC186
DUTY
K3
M8330
END
K1
OFF
OFF ON
ON
X000
M8330
1 scan
3 scans
0
1
2
3
0
1
D8330
current value