32.23.8.1 Calculating the Number of Steps When Setting Operands - PWMG

Double-click the PWMG 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.

CH1 - CH4

D1: Instruction Status

D1

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

Integer variable only

Output frequency

D2

Specify the variable for storing the pulse output frequency (Hz). The value of #L_PWM*_WHZ is stored in the variable specified here.

Integer variable only

ON duty value

D3

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

Integer variable only