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

2. Programming Concepts Function Group Watchdog Timer Number M1008, D1008 Contents: 1. When the scan is time-out during execution, ERROR LED will be ON and M1008 = ON. 2. D1008 saves the STEP address where the timeout occurred Function Group Scan Time Monitor Number D1010~D1012 Contents: The present value, minimum value and maximum value of scan time are stored in D1010 ~ D1012. D1010: current scan time D1011: minimum scan time D1012: maximum scan time Function Group Internal Clock Pulse Number M1011~M1014 Contents: 1. PLC provides four different clock pulses to aid the application. When PLC is power-on, the four clock pulses will start automatically.

10 ms M1011 (10 ms) 100 Hz 100 ms M1012 (100 ms) 10 Hz 1 sec M1013 (1 sec) 1 Hz 1 min 2. Clock pulse works even when PLC stops, i.e. activation of clock pulse is not synchronized with PLC RUN execution. Function Group High-speed Timer Number M1015, D1015 Contents: 1. When M1015 = ON, high-speed timer D1015 will be activated when the current scan proceeds to END instruction. The minimum resolution of D1015 is 100us. 2. The range of D1015 is 0~32,767. When it counts to 32,767, it will start from 0 again. 3. When M1015 = OFF, D1015 will stop timing immediately. Example: 1. When X10 = ON, M1015 = ON to start high-speed timer and record the present value in D1015. 2. When X10 = OFF, M1015 = OFF.

High-speed timer is disabled. M1014 (60 sec) X10 M1015 Function Group M1016~M1017, D1313~D1319 Number Real Time Clock Contents: 1. Special M and special D relevant to RTC 2-47 Device Name Function M1016 Year Display OFF: display the last 2 digits of year in A.D ON: display the last 2 digits of year in A.D. plus 2,000 M1017 ±30 seconds correction When triggered from “Off” to “On”, the correction is enabled. 0 ~ 29 second: minute intact; second reset to 0