13 pulse width modulation instruction (pwm) – Yaskawa Ladder Works Programming Manual User Manual
Page 156
7.13 PULSE WIDTH MODULATION Instruction (PWM)
7-35
7.13 PULSE WIDTH MODULATION Instruction (PWM)
[Outline]
The PWM instruction converts the value of the Input to PWM as an input value (between -100.00 and
100.00%, with increments of 0.01%) and outputs the result to the Output and the parameter table.
Double-length integer and real number operations are not allowed.
PWMT (X + 10000 )
Time of ON output =
20000
PWMT ( X + 10000 )
Number of ON outputs =
Ts×20000
X : input value
Ts : scan time set value (ms)
When 100.00% is input : all ON
When 0% is input : 50% duty (50%ON)
When -100.00% is input : all OFF
When the PWM reset (PWMRST) is ON, all internal operations are reset and PWM operations are
performed with that instant as the starting point. After turning the power ON, set PWMRST to ON to
clear all internal operations, then use the PWM instruction.
Table of Integer Type PWM Instruction Parameters
ADR
Type Symbol
Name
Specification
I/O
0
W
RLY
Relay I/O
Relay input, relay output *
1
IN/OUT
1
W
PWMT
PWM cycle
PWM cycle (1MS) (1 to 327676ms)
IN
2
W
ONCNT ON output setting timer
ON output setting timer (1ms)
OUT
3
W
CVON
ON output count timer
ON output count timer (1ms)
OUT
4 W CVON
REM
ON output count timer
remainder
ON output count timer remainder (0.1ms)
OUT
5 W OFFCNT
OFF
output
setting
timer
OFF output setting timer (1ms)
OUT
6 W CVOFF
OFF
output
count
timer
OFF output count timer (1ms)
OUT
7 W CVOFF
REM
OFF output count
timer remainder
OFF output count timer remainder (0.1ms)
OUT
*
1
: Relay I/O Bit Assignment
BIT
Symbol
Name
Specification
I/O
0 PWM
RST
PWM reset
"ON" is input when PWM is reset
IN
2 to 7
-
(Reserve)
Reserve relay for input
IN
8 PWM
OUT
PWM output
PWM is output
(two-value output: ON = 1, OFF = 0)
OUT
9 to F
-
(Reserve)
Reserve relay for output
OUT
[Format]
Symbol : PWM
Full Name : Pulse Width Modulation
Category : DDC
Icon :