1. Continuous alternating output ALT

1. Continuous alternating output ALT

1.1. Instruction Description

When the specified operand changes from OFF to ON, the instruction causes the specified operand to alternate continuously between 1 (ON) and 0 (OFF).

1.2. The valid operands of the instruction

input/output data type operands description
OUT ON/OFF Y/M/S, word to Bit(D/V/Z), local variable(LB) output

1.3. Example

Instruction table:

NETWORK 000

LD X000

ALT Y000 //Y000 alternates between 0 and 1, with a period equal to the current scanning period

ALT

图1 ALT