32.23.11.1 Calculating the Number of Steps When Setting Operands - HSCX

Double-click the HSCX 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 high-speed counter is assigned.

CH1 - CH4

Preload value

S2

Specify the preload value of the high-speed counter. The value specified here is stored in #L_HSC*_PLV.

  • Numeric Value
    -2147483648 to 2147483647

  • Variable
    Integer variable only

ON preset value

S3

Specify the ON preset value of the high-speed counter. The value specified here is stored in #L_HSC*_ONP.

  • ON preset value and OFF preset value must not be the same value.

  • The value with lower 16 bits of 0xFFFF or 0x0000 cannot be set for the preset value.

  • Numeric Value
    -2147483647 to 2147483646

  • Variable
    Integer variable only

OFF Preset Value

S4

Specify the OFF preset value of the high-speed counter. The value specified here is stored in #L_HSC*_OFP.

  • ON preset value and OFF preset value must not be the same value.

  • The value with lower 16 bits of 0xFFFF or 0x0000 cannot be set for the preset value.

  • Numeric Value
    -2147483647 to 2147483646

  • Variable
    Integer variable only

D1: Instruction Status

D1

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

Integer variable only