3 Basic Instructions Explanations: The logical operation result before INV instruction will be inverted and stored in the accumulative register. Program Example: Ladder diagram: Instruction code: Operation: X0 Y1 LD X0 Loading in A contact of X0 OUT Y1 Driving Y1 coil Explanations: Pointer P is used in API 00 CJ and API 01 CALL instructions. The use of P does not need to start from No. 0, and the No. of P cannot be repeated; otherwise, unexpected errors may occur. Program Example: Ladder diagram: Instruction code: Operation: X0 LD X0 Loading in A contact of X0 CJ P10 From instruction CJ to P10 X1 P10 Y1 : LD X1 Loading in A contact of X1 OUT Y1 Driving Y1 coil Explanations:
A interruption program has to start with a interruption pointer (I □□□ ) and ends with API 03 IRET. I instruction has to be used with API 03 IRET, API 04 EI, and API 05 DI. See Chapter 2.9 for pointers of all DVP series PLCs.
DVP-PLC Application Manual 3-17 Mnemonic Function Program steps Controllers INV Inverting Operation 1 ES EX SS SA SX SC EH 2 SV EH 3 SV2 N/A Operand INV Inverting the operation result Mnemonic Function Program steps 1 Controllers P Pointer ES EX SS SA SX SC E H2 SV EH 3 SV2 P0 ~ P255 Operand CJ P10 P10 Pointer P10 Mnemonic Function Program steps Controllers I Interruption program marker (I) 1 ES EX SS SA SX SC EH 2 SV EH 3 SV2 I00□, I10□, I20□, I30□, I40□, I50□, I6□□, I7□□, I8□□ I010, I020, I030, I040, I050, I060, I110, I120, I130, I140, I150, I160, I170, I180 Operand