591
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
24.3 FNC186 – DUTY / Timing Pulse Generation
21
FNC160-FNC169
Real Time Clock
Control
22
FNC170-FNC179
External Device
23
FNC180
Alternate
Instructions
24
FNC181-FNC189
Others
25
FNC190-FNC199
Block Data
Operation
26
FNC200-FNC209
Character String
Control
27
FNC210-FNC219
Data
Operation 3
28
FNC220-FNC249
Data
Comparison
29
FNC250-FNC269
Data Table
Operation
30
FNC270-FNC276
Ex-Device
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
ONX000
M8330
1 scan
3 scans
0
1
2
3
0
1
D8330
current value