Delta DVP-ES2 — 2.16 Applications of Special M Relays and D Registers

2. Programming Concepts 6. Using API 51 REFF instruction has the same effect as modifying D1020 and D1021. Function Group X6 pulse width detecting function Number M1083,M1084, D1023 Contents: When M1084 = ON, X6 pulse width detecting function is enabled and the detected pulse width is stored in D1023 (unit: 0.1ms) M1083 On : detecting width of negative half cycle (OFF  ON) M1083 Off : detecting width of positive half cycle (ON  OFF) Function Group Communication Error Code Number M1025, D1025 Contents: In the connection between PLC and PC/HMI, M1025 will be ON when PLC receives illegal communication request during the data transmission process. The error code will be stored in D1025. 01:

illegal instruction code 02: illegal device address. 03: requested data exceeds the range. 07: checksum error Function Group Pulse output Mark and Mask function Number M1108, M1110, M1156, M1157, M1158, M1538, M1159, M1540, D1026, D1027, D1135, D1136, D1232, D1233, D1234, D1235, D1348, D1349 Contents: Please refer to explanations of API 59 PLSR / API 158 DDRVI / API 197 DCLLM instructions. Function Group Execution Completed Flag Number M1029, M1030, M1102, M1103 Contents: Execution Completed Flag: MTR, HKY, DSW, SEGL, PR: M1029 = ON for a scan cycle whenever the above instructions complete the execution. PLSY, PLSR: 1. M1029 = ON when Y0 pulse output completes. 2.

M1030 = ON when Y1 pulse output completes 3. M1102 = ON when Y2 pulse output completes. 4. M1103 = ON when Y3 pulse output completes. 5. When PLSY, PLSR instruction are OFF, M1029, M1030, M1102, M1103 will be OFF as well. When pulse output instructions executes again, M1029, M1030, M1102, M1103 will be OFF and turn ON when execution completes. 6. Users have to clear M1029 and M1030 manually. INCD: M1029 will be “ON” for a scan period when the assigned groups of data comparison is completed RAMP, SORT: 1. M1029= ON when instruction is completed. M1029 must be cleared by user manually. 2. If this instruction is OFF, M1029 will be OFF. DABSR: 1. M1029= ON when instruction is completed. 2.

When the instruction is re-executed for the next time, M1029 will turn off first then ON again when the instruction is completed ZRN, DRVI, DRVA: 1. M1029 will be “ON” after Y0 and Y1 pulse output is completed. M1102 will be “ON” after Y2 and Y3 pulse output is compeleted. 2. When the instruction is re-executed for the next time, M1029 / M1102 will turn off first then ON again when the instruction is completed. 2-49