32.23.7.1 Calculating the Number of Steps When Setting Operands - PWMX

Double-click the PWMX instruction to display the following dialog box. In the following dialog box, specify each of the settings.

Setting

Operand

Description

Setting Range

CH

S1

Specify the channel number to which the PWM output is assigned.

CH1 - CH4

Output frequency

S2

Specify the output frequency (Hz). The value specified here is stored in #L_PWM*_WHZ.

  • Numeric Value
    10 to 65000

  • Variable
    Integer variable only

ON duty value

S3

Specify the PWM ON duty value (%). The value specified here is stored in #L_PWM*_DTY.

For details on the valid range of the ON duty value, refer to the following.

31.5.8.2 ON Duty Value - PWM Output (LT Series)

  • Numeric Value
    0 to 100

  • Variable
    Integer variable only

D1: Instruction Status

D1

Specify the integer variable for storing the status of instruction execution.

Integer variable only