14 spend time (spend), 1 ) operation, 2 ) format – Yaskawa MP900 Series Ladder Programming Manual User Manual
Page 117

5.3 Numeric Operation Instructions
5.3.14 Spend Time (SPEND)
5-48
5.3.14 Spend Time (SPEND)
( 1 ) Operation
The elapsed time is calculated by subtracting two data items (year/month/day/hour/minutes/seconds). The instruction
subtracts time B from time A, which gives the time elapsed from time B to time A and the result is stored in time A.
Time data is four words long.
( 2 ) Format
∗ 1. Optional.
∗ 2. C and # registers cannot be used.
Time A
−
Year Month
Hour/minutes/
seconds
Time B
Year
Month
Hour/minutes/
seconds
6 words
4 words
The time elapsed from time B to time A is calculated.
Total number
of seconds
Time A
Years Months
Hours/minutes/
seconds
6 words
Total number
of seconds
Parameter Name
Applicable Data Types
B
W
L
F
A
Index
Constant
Time B (Src)
×
{
*2
×
×
×
×
×
Time A (Dest)
×
{
*2
×
×
×
×
×
Status (Sts)
*
1
{
*2
×
×
×
×
×
×
Status
Time A
Time B
Icon:
Key entry: SPEND