Yaskawa Ladder Works Programming Manual User Manual

Page 42

Advertising
background image

2.14 SPEND TIME Instruction (SPEND)

2-25

[Program Example]

The time elapsed from the time data in MW00100 to MW00103 to the time data in DW00000 to
DW00003 is stored to MW00100 - MW00105.

98 yrs 5 mos 11 days 15 hrs 4 min 47 sec – 98 yrs 4 mos 2 days 8 hrs 13 min 8 sec

(MW00100) (MW00101) (MW00102) (MW00103) (DW00000) (DW00101) (DW00102) (DW00103)

= 0 yrs 39 days 6 hrs 51 min 39 sec

(MW00100) (MW00101) (MW00102) (MW00103)

Time data

Before execution

After execution

MW00100 H0098 H0000

MW00101 H0511 H0039

MW00102 H1504 H0651

MW00103 H0047 H0039

MW00104 ––

MW00105 ––

3394299 (Decimal)

DW00000 H0098 H0098

DW00001 H0402 H0402

DW00002 H0813 H0813

DW00003 H0008 H0008

Notes: In the operation results, the year is counted as 365 days and a leap year is not taken into

consideration. Also, the number of months is not counted. It is counted in days.


Advertising