1. Rising edge contact LDP

1. Rising edge contact LDP

1.1. Instruction Description

1) When a positive transition (disconnection to continuity) is detected in the specified position, the contact closes for one scanning cycle.

2) For rising edge instructions, the specified bit allows the stack top value to be set to 1 each time when 0 to 1 (OFF → ON) transition is performed during a scan; Otherwise, set it to 0;

3) The instruction is executed for only one moment at a time (PLC scanning cycle). Commonly used for signal triggering in sequential control, cannot be used as an output (external coils may not absorb, this should be noted);

4) Special attention should be paid when using this instruction, as the contacts will only be connected when the system detects a rising edge change. Improper handling during actual use may result in missing the connection and prevent it from occurring.

1.2. The valid operands of the instruction

Input/Output Data Type operand Description
IN ON/OFF X/Y/M/C/T/S, word to Bit(D/V/Z), Local variable(LB) input

1.3. Example

Instruction table:

NETWORK 000

LD X000 // Load input coil X000, X000 must be equal to 1 to activate X000

OR X002 // Perform an 'OR' operation with input coil X002

ANDP X001 // Perform 'AND' operation with input coil X001

SET Y000 K1 // Output coil Y000

LDP

图1 LDP