31.23.4.1 Calculating the Number of Steps When Setting Operands - PLSG

Double-click the PLSG 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

Pulse Output Mode

S2

Specify the output pulse mode (normal or acceleration/deceleration). The value specified here is stored in the control part of #L_ExIOSPCtrl.

  • Constant
    1 (PLS) or 3(acceleration/deceleration PLS)

  • Variable
    Integer variable only

D1: Instruction Execution Status

D1

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

Integer variable only

Output Pulse Count

D2

Specify the variable for storing the number (times) of pulse output. The value of #L_PLS*_NUM is stored in the variable specified here.

Integer variable only

Output frequency

D3

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

Integer variable only

Acceleration/Deceleration time

D4

Specify the variable for storing the acceleration/deceleration time (ms). The value of #L_PLS*_ACC is stored in the variable specified here.

Integer variable only

Initial Output Frequency

D5

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

Integer variable only