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

DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming registers, ouptuts, or counters when RUN is executed. PLC RUN M1000 M1001 M1002 M1003 scan time Function Group Watchdog Timer (WDT) Number D1000 Contents: 1. Monitor timer is used for moitoring PLC scan time. When the scan time exceeds the set value (SV) in the monitor timer, the red ERROR LED will be ON and all outputs will be “OFF”. 2. The default in the monitor timer is 200ms. If the program is long or the operation is too complicated, MOV instruction can be used to modify SV. See the example below for SV = 300ms. M1002 0 Initial pulse 3. The maximum SV in the monitor timer is 32,767ms.

However, care should be taken when adjusting SV. If SV in D1000 is too big, it cost much longer for operation errors to be detected. Therefore, SV is suggested to be shorter than 200ms. 4. Scan time could be prolonged due to complicated instruction operations or too many I/O modules being connected. Check D1010 ~ D1012 to see if the scan time exceeds the SV in D1000. Besides modifying the SV in D1000, users can also apply WDT instruction (API 07). When program execution progresses to WDT instruction, the internal monitor timer will be reset and therefore the scan time will not exceed the set value in the monitor timer. Function Group Program Capacity Number D1002 Contents:

This register holds the program capacity of the PLC. SS2: 7,920 steps (Word) ES2 / EX2 / SA2 / SX2 / SE series: 15,872 steps (Word) Function Group Syntax Check Number M1004, D1004, D1137 Contents: 1. When errors occur in syntax check, ERROR LED indicator will flash and special relay M1004 = ON. 2. Timings for PLC syntax check: a) When the power goes from “OFF” to “ON”. b) When WPLSoft writes the program into PLC. c) When on-line editing is being conducted on WPLSoft. 3. Errors might result from parameter error or grammar error. The error code of the error will be placed in D1004. The address where the fault is located is saved in D1137.

If the error belongs to loop error it may not have an address associated with it. In this case the value in D1137 is invalid. 4. For syntax error codes pease refer to section 6.2 Error Code table. 2-46 MOV K300 D1000