3 ) programming example – Yaskawa MP900 Series Ladder Programming Manual User Manual
Page 116

5.3 Numeric Operation Instructions
5.3.13 Subtract Time (TMSUB)
5-47
Instructions
5
( 3 ) Programming Example
The following table gives typical conditions for creating ladder programming that uses the TMSUB instruction. The
examples show time data A before instruction execution, and the subtract time.
In the following programming example, the subtract time is subtracted from the time under the above conditions and
the resulting time data is stored.
The result of subtracting the subtract time from the value of time data A before instruction execution is shown below.
Time
Time Data A before Execution of Instruction
Subtract Time
Hour/minutes
MW00000 = 0210 hex
(2:10)
MW00002 = 0050 hex
(0 hours 50 minutes)
Seconds
MW00001 = 0050 hex
(50 seconds)
MW00003 = 0020 hex
(20 seconds)
Time
Time Data A after Execution of Instruction
Hour/minutes
MW00000 = 288 = 0120 hex
(1:20)
Seconds
MW00001 = 48 = 0030 hex
(30 seconds)