![background image](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-f-fx5/melsec-iq-f-fx5_programming-manual_239114695.webp)
8 APPLICATION INSTRUCTION
8.24 Clock Instruction
693
8
Ex.
When subtracting 3:50:10 from 10:40:20
• If the remainder is a negative time value, the borrow flag turns on. The actual result will be the remainder plus 24:00:00. For
example, if a time value of 10:42:12 is subtracted from another time value of 4:50:32, the remainder is -6:08:20. However,
the actual subtraction result will be 18:08:20.
• If the result is 0 (0:00:00), the zero flag turns on.
• The table below shows the related devices.
Precautions
• These instructions occupy three points for each of three devices starting from device number specified by (s1), (s2), and (d)
respectively. Make sure that these devices are not used by other machine controls.
• When using the time value (hour, minute, second) of the built-in real time clock in the CPU module for the operation, use
the TRD(P) operation to read the special register values first. Then specify the word devices where the read values are
stored to each operand.
Operation error
Device
Name
Description
SM8020
Zero
If the result is 0:00:00, this special relay turns on.
SM8021
Borrow
If the execution result of the TSUB(P) instruction is less than 0:00:00, this special relay turns on.
Error code
(SD0/SD8067)
Description
2820H
The device range specified by (s1), (s2), and (d) exceeds the corresponding device range.
3405H
Any of values specified by (s1) and (s2) is outside the following range.
0 to 23
Any of values specified by (s1)+1, (s2)+1, (s1)+2, and (s2)+2 is outside the following range.
0 to 59
(s1)
(s1)+1
(s1)+2
-
(s2)
(s2)+1
(s2)+2
(d)
(d)+1
(d)+2
10
40
20
3
50
10
6
50
10
(s1)
(s1)+1
(s1)+2
-
(s2)
(s2)+1
(s2)+2
(d)
(d)+1
(d)+2
4
50
32
10
42
12
18
8
20
Содержание MELSEC iQ-F FX5
Страница 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 17: ...15 CONTENTS ...
Страница 24: ...22 MEMO ...
Страница 25: ...23 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW 2 PRECAUTIONS ON PROGRAMMING ...
Страница 126: ...124 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 132: ...130 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 140: ...138 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 191: ...7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions 189 7 Operation error There is no operation error ...
Страница 202: ...200 7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions Operation error There is no operation error ...
Страница 278: ...276 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 280: ...278 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 915: ...18 TYPE CONVERSION FUNCTIONS 18 13 Converting DWORD to WORD 913 18 Operation error There is no operation error ...
Страница 917: ...18 TYPE CONVERSION FUNCTIONS 18 14 Converting DWORD to INT 915 18 Operation error There is no operation error ...
Страница 932: ...930 18 TYPE CONVERSION FUNCTIONS 18 26 Converting DINT to WORD Operation error There is no operation error ...
Страница 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Страница 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Страница 1107: ...I 1105 MEMO ...
Страница 1111: ......