13 subtract time (tmsub), 1 ) operation, 2 ) format – Yaskawa MP900 Series Ladder Programming Manual User Manual
Page 115

5.3 Numeric Operation Instructions
5.3.13 Subtract Time (TMSUB)
5-46
5.3.13 Subtract Time (TMSUB)
( 1 ) Operation
A duration (hours/minutes/seconds) is subtracted from a time (hour/minutes/seconds). The subtract time is subtracted
from time data A and the result is stored in time data A. Time data is two words long.
( 2 ) Format
∗ 1. Optional.
∗ 2. C and # registers cannot be used.
The time data is formatted as shown below.
If the operation result exceeds any of the data ranges given above, time data A is not updated, the seconds data is set to
9,999, and the status bit is set to 1 (ON).
If the operation result is within the ranges, the status bit is set to 0 (OFF).
Time data A
−
Hour Minutes Seconds
Subtract time
Hour Minutes Seconds
Time data A
Hour Minutes Seconds
2 words
2 words
2 words
Parameter Name
Applicable Data Types
B
W
L
F
A
Index
Constant
Subtract time (Src)
×
{
*2
×
×
×
×
×
Time data A (Dest)
×
{
*2
×
×
×
×
×
Status (Sts)
*1
{
*2
×
×
×
×
×
×
Offset
Contents
Data Range (BCD)
0
Hour/minutes
Upper byte (hour): 00 to 23
Lower byte (minutes): 00 to 59
1
Seconds
0000 to 0059
Status
Time data A
Subtract time
Icon:
Key entry: TMSUB