Parameter, Program example – Yaskawa MP900 Series Machine Controller New Ladder Editor User Manual

Page 52

Advertising
background image

1 Ladder Program Instructions

1.2.14 SPEND TIME Instruction (SPEND)

1-42

„

Parameter

* Possible to omit.

„

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)

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.

Parameter Name

Setting

Source

• Any integer type register
• Any integer type register with subscript

Dest

• Any integer type register (except for # and C register)
• Any integer type register with subscript (except for # and C reg-

ister)

[Status]*

• Any bit type register (except for # and C register)
• Any bit type register with subscript (except for # and C register)

Time Data

Before Execution

After Execution

MW00100

H0098

H0000

MW00101

H0511

H0039

MW00102

H1504

H0651

MW00103

H0047

H0039

MW00104

3394299 (Decimal)

MW00105

DW00000

H0098

H0098

DW00001

H0402

H0402

DW00002

H0813

H0813

DW00003

H0008

H0008

INFO

Advertising
This manual is related to the following products: