
2 CPU MODULE INSTRUCTION
2.3 Application instruction
75
2
■
Adding clock data
■
Subtracting clock data
■
Converting time data from hour/minute/second to seconds in 16 bits/32 bits
■
Converting time data from seconds to hour/minute/second in 16 bits/32 bits
■
Comparing date data
Instruction symbol
Description
Reference
TADD
TADDP
Instruction symbol
Description
Reference
TSUB
TSUBP
Instruction symbol
Description
Reference
HTOS
HTOSP
DHTOS
DHTOSP
Instruction symbol
Description
Reference
STOH
STOHP
DSTOH
DSTOHP
Instruction symbol
Description
Reference
LDDT=, ANDDT=, ORDT=
LDDT<>, ANDDT<>,
ORDT<>
LDDT>, ANDDT>, ORDT>
LDDT<=, ANDDT<=,
ORDT<=
LDDT<, ANDDT<, ORDT<
LDDT>=, ANDDT>=,
ORDT>=
(s1)
(s2)
(d)
+
Hour
Minute
Seconds
Hour
Minute
Seconds
Hour
Minute
Seconds
(s1)
(s2)
(d)
-
Hour
Minute
Seconds
Hour
Minute
Seconds
Hour
Minute
Seconds
(d)
(s)
Seconds
Hour
Minute
Seconds
(d)
(d)+1
(s)
Seconds
Hour
Minute
Seconds
(d)
(s)
Seconds
Hour
Minute
Seconds
(s)
(s)+1
(d)
Seconds
Hour
Minute
Seconds
(s1)
(s1)+2
(s1)+1
(s2)
(s2)+2
(s2)+1
=
Year
Year
Day
Month
Day
Month
Result
(s1)
(s1)+2
(s1)+1
(s2)
(s2)+2
(s2)+1
< >
Year
Year
Day
Month
Day
Month
Result
(s1)
(s1)+2
(s1)+1
(s2)
(s2)+2
(s2)+1
>
Year
Year
Day
Month
Day
Month
Result
(s1)
(s1)+2
(s1)+1
(s2)
(s2)+2
(s2)+1
<=
Year
Year
Day
Month
Day
Month
Result
(s1)
(s1)+2
(s1)+1
(s2)
(s2)+2
(s2)+1
<
Year
Year
Day
Month
Day
Month
Result
(s1)
(s1)+2
(s1)+1
(s2)
(s2)+2
(s2)+1
>=
Year
Year
Day
Month
Day
Month
Result
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......