DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
-156
Program Example:
When X0 = ON, Y1 output the pulse as shown
opposite. When X0 = OFF, output Y1 turns OFF.
X0
PWM K1000 K20
00 Y1
Output Y1
t=1000ms
T=2000ms
Note:
1. Flag description:
M1070:
For PWM instruction, when M1070 = ON, the unit for Y1 output pulse to switch is
100 μs, when M1070 = OFF, the unit is 1 ms. (Not available for EC5)
M1071:
For PWM instruction, when M1071 = ON, the unit for Y3 output pulse to switch is
100 μs, when M1070 = OFF, the unit is 1 ms. (Not available for EC5)
M1112:
For PWM instruction, when M1112 = ON, the unit for Y0 output pulse to switch is
10 μs (for SE: 100 μs), when M1112 = OFF, the unit is 100 μs (for SE: 1 ms).
(Not available for EC5)
M1113:
For PWM instruction, when M1113 = ON, the unit for Y2 output pulse to switch is
10 μs, when M1113 = OFF, the unit is 100 μs.
M1530:
For PWM instruction, when M1530 = ON, the unit for Y4 output pulse to switch is
10 μs, when M1530 = OFF, the unit is 100 μs. (Applicable to EC5)
M1531
For PWM instruction, when M1530 = ON, the unit for Y4 output pulse to switch is
10 μs, when M1530 = OFF, the unit is 100 μs. (Applicable to EC5)
M1116: For PWM instruction, when M1116 = ON, the unit for Y0 and Y2 output pulse is
1 μs, and switching functions of M1112 and M1113 are not available.
(Not available for EC5)
M1117: For PWM instruction, when M1117 = ON, the unit for Y1 and Y3 output pulse is
10 μs, and switching functions of M1070 and M1071 are not available.
(Not available for EC5)
2. Special D registers description:
D1030 PV of Y0 pulse output (Low word)
D1031 PV of Y0 pulse output (High word)
D1032: Low word of the present value of Y1 pulse output
D1033 High word of the present value of Y1 pulse output
D1336 PV of Y2 pulse output (Low word)
D1337 PV of Y2 pulse output (High word)
D1338: Low word of the present value of Y3 pulse output.