1. Immediately open input command LDIM

1. Immediately open input command LDIM

1.1. Instruction Description

When the specified bit=1 (ON), the normally open contact immediately closes (connects), and when the specified bit= 0 (OFF), the normally open contact immediately closes (disconnects). The specified bit does not rely on PLC scanning cycles for updates, it will be updated immediately.

In the instruction table, immediately open contacts are represented by LDIM (load immediately), ANDIM (immediately with), and ORIM (immediately or) instructions, which place address bit values at the top of the stack and execute them immediately.

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

LDIM X000 // Immediately load input coil X000, X000 must be equal to 1 to activate X000

ORIM X002 // Perform 'immediate or' operation with input coil X002

ANDIM X001 // Perform 'immediate and' operation with input coil X001

OUT Y000 // Output coil Y000

LDIM

图1 LDIM