Delta DVP — 13.1 TRD/TWR/TCMP - Office Bell Timing Control

13 . Real Time Calendar Time Design Examples 13.1 TRD/TWR/TCMP - Office Bell Timing Control Control Purpose: z There are 4 moments the office bell will ring: on-duty / off-duty time in the morning and on-duty / off-duty time in the afternoon. When the time is reached, the bell will ring immediately and last for 1 minute. Users can set the 4 moments and adjust the current time at any time. z Set the ringing time and adjust the current time. Devices: Control Program:

M1000 Set the written data of Year/Week/ Month/Day as K1 so as to prevent executing errors of TWR instruction M0 When M0 is triggered, the contents in D200~ D206 will be written into RTC built in PLC M1 When M1=ON, store the current time of RTC in D0~D6. D4, D5 and D6 store the data of Hour/Minute/Second When M1 = ON, compare the current time in D4~D6 with the morning on-duty time set in D300~D302. If they are equal, M11 will be ON. When M1 = ON, compare the current time in D4~D6 with the morning off-duty time set in D303~D305. If they are equal, M14 will be ON. When M1 = ON, compare the current time in D4~D6 with the afternoon on-duty time set in D306~D308.

If they are equal, M17 will be ON. When M1 = ON, compare the current time in D4~D6 with the afternoon off-duty time set in D309~D311. If they are equal, M20 will be ON. DVP-PLC Application Examples 13-1 Device Function M0 Adjust current time M1 Start the office bell Y0 Ring the office bell D0~D6 Store the read Real Time Clock (RTC) data D200~D206 Store the RTC data to be written in PLC D300~D311 Store the on-duty / off-duty time FMOV K1 D200 K4 TWR D200 TRD D0 TCMP D300 D301 D302 D4 M10 TCMP D303 D304 D305 D4 M13 TCMP D306 D307 D308 D4 M16 TCMP D309 D310 D311 D4 M19