EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 606

Mitsubishi Electric MELSEC FX Series
838 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Applied Instructions
7.18 Others
604
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
Related devices
Cautions
1) DUTY instruction can be used up to 5 times (points).
It is not permitted, however, to use the same timing clock output destination device (device specified by
) for two or more DUTY instructions.
2) The FX
3UC PLC of V2.20 or later supports this instruction.
3) Some restrictions to applicable devices
S: Specify M8330 to M8334.
Error
An operation error is caused in the following cases. The error flag M8067 turns ON, and the error code is
stored in D8067.
1) When "n1" and/or "n2" is less than "0" (error code: K6706)
2) When any device other than M8330 to M8334 is set to the device specified by . (error code: K6705)
Program examples
In the program shown below, when X000 is set to ON, M8330 is set to ON for 1 scan and OFF for 3 scans.
Device Name Description
M8330 Timing clock output 1
Timing clock output in DUTY 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 DUTY instruction
D8331
Counted number of scans for
timing clock output 2
Counted number of scans for timing clock output 2 in DUTY instruction
D8332
Counted number of scans for
timing clock output 3
Counted number of scans for timing clock output 3 in DUTY instruction
D8333
Counted number of scans for
timing clock output 4
Counted number of scans for timing clock output 4 in DUTY instruction
D8334
Counted number of scans for
timing clock output 5
Counted number of scans for timing clock output 5 in DUTY instruction
OFF
OFF ON
ONX000
M8330
1 scan
3 scans
0
1
2
3
0
1D8330
current value
M8330
DUTY
EN ENO
d
n1
n2
X000
K1
K3
[ST]
M8330:=DUTY(X000,K1,K3);
[Structured ladder]

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals