Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 116

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■Subtracting clock data
Instruction symbol
DATE-
DATE-P
■Converting time data from hour/minute/second to second
Instruction symbol
TIME2SEC
TIME2SECP
■Converting time data from second to hour/minute/second
Instruction symbol
SEC2TIME
SEC2TIMEP
■Comparing date data
Instruction symbol
LDDT=, ANDDT=, ORDT=
LDDT<>, ANDDT<>, ORDT<>
LDDT>, ANDDT>, ORDT>
LDDT<=, ANDDT<=, ORDT<=
LDDT<, ANDDT<, ORDT<
LDDT>=, ANDDT>=, ORDT>=
■Comparing time data
Instruction symbol
LDTM=, ANDTM=, ORTM=
LDTM<>, ANDTM<>,
ORTM<>
LDTM>, ANDTM>, ORTM>
LDTM<=, ANDTM<=,
ORTM<=
LDTM<, ANDTM<, ORTM<
LDTM>=, ANDTM>=,
ORTM>=
■Outputting a comparison result of time data
Instruction symbol
TCMP
TCMPP
■Outputting a band comparison result of time data
Instruction symbol
TZCP
TZCPP
2 CPU MODULE INSTRUCTIONS
114
2.3 Application Instructions
Processing details
Subtracts time data.
(s1)
(s2)
hour
hour
minute
minute
-
second
second
Processing details
Converts time data from hour/minute/second to second.
(s)
(d)+1
hour
minute
second
second
Processing details
Converts time data from second to hour/minute/second.
(d)
(s)+1
(s)
second
Processing details
Compares the specified date data, or compares the date data with the current date.
Processing details
Compares the specified time data, or compares the specified time data with the current time.
Processing details
Compares the time data to be compared that is specified by (s1), (s2), and (s3) with the time data
specified by (s4), and according to the result (small, match, or large), (d), (d)+1, or (d)+2 is turned
on.
Processing details
Compares the band between the time data of lower limit value (s1) and the time data of upper limit
value (s2) with the time data (s3) to be compared, and according to the comparison result (below,
within zone, or above), (d), (d)+1, or (d)+2 is turned on.
(d)
hour
minute
second
(d)
hour
minute
second
Reference
Page 1007 DATE-(P)
Reference
Page 1009
TIME2SEC(P)
Reference
Page 1011
SEC2TIME(P)
Reference
Page 1013 LDDT,
ANDDT, ORDT
Reference
Page 1017 LDTM,
ANDTM, ORTM
Reference
Page 1021 TCMP(P)
Reference
Page 1023 TZCP(P)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents