Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
24 Applied Instructions (Others)
24.3 DUTY / Timing Pulse Generation
591
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
21
Applied Instructions
(Real Time
Clock Control)
22
Applied Instructions
(External Device)
23
Applied Instructions
(Extension
Function)
24
Applied Instructions
(Others)
25
Applied Instructions
(Block Data
Operation)
26
Applied Instructions
(Character
String Control)
27
Applied Instructions
(Data Operation 3)
28
Applied Instructions
(Data Comparison)
29
Applied Instructions
(Data Table
Operation)
30
Applied Instructions
(External Device
Communication)
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 instruction is provided in the FX
3UC PLC Ver. 2.20 or later.
3) Some restrictions to applicable devices
S1: 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.
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]
DUTY(X000,K1,K3,M8330);
[Structured ladder/FBD]