beautypg.com

Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 520

background image

9 Application Instructions API 150-199

DVP-PLC Application Manual

9-48

Program Example 2:

In 32-bit instruction, when X0 = On, Y10 will be On and the timing will start. When the timing reaches 40,000 hours,

Y0 will be On. D1 and D0 will record the current time measured (in hour) and D2 will record the current time that is

less than an hour (0 ~ 3,599; unit: second).

DHOUR

Y10

K40000

Y0

D0

Y10

X0