Mitsubishi MELSEC-Q/L Programming Manual page 588

Table of Contents

Advertisement

TM=, TM<>, TM>, TM<=, TM<, TM>=
(4) This instructions sets the minute selected from 0 to 59 (0 to 59 minutes) with BIN value specified by
(5) This instructions sets the second selected from 0 to 59 (0 to 59 seconds) with BIN value specified by
(6) This instructions specifies the following values at n so that the data to be compared can be specified.
The bit configuration specified at n is as follows.
(a) Clock data to be compared (from 0 to 2nd bit)
• 0: Does not compare specified clock data (hour/minute/second).
• 1: Compares specified clock data (hour/minute/second).
(b) Operation data to be compared (15th bit)
• 0: Compares the clock data specified by
• 1: Compares the clock data specified by
Ignores the clock data specified by
(c) The following table shows processing details of bits to be compared.
n value for
comparison of
pecified clock data with
given clock data
0001
H
0002
H
0003
H
0004
H
0005
H
0006
H
0007
H
Other than 0001
8001
to 8007
H
(7) If the data stored in the devices to be compared are not recognized as date data, SM709 will be turned on after the
instruction execution and no-conductive status will be made. Once SM709 is turned on, on-status will be retained till
when the CPU modules are reset or powered off. Therefore, turn off SM709 if necessary.
Moreover, if the range of devices specified by
will be turned on and no-conductive status will be made.
(8) The following table shows the comparison operation results for each instruction.
Instruction
Condition
symbols in
=
TM=
S1
S2
TM<>
S1
TM>
>
S1
S2
TM<=
S1
TM<
<
S1
S2
TM>=
S1
586
This instruction specifies 0 at bits from 3rd to 14th.
The instruction will be non-conductive status without
specifying 0 regardless of the operation result.
b15 b14
0/1
If this instruction specifies 1 (on) at 15th bit, the
instruction compares S1 with the current date in
accordance with the bit condition specified at 0 to 2nd
bit.
with the clock data specified by
S1
with the current time data.
S1
.
S1
n value for
comparison of
Time to be
specified clock data
with current time data
8001
H
8002
H
8003
H
8004
H
8005
H
8006
Hour, minute
H
Hour, minute,
8007
H
to 0007
,
H
H
H
to
S1
S1
Comparison
operation result
symbols in
S2
Conductive status
S2
S2
b3
b2
b1
b0
0
0/1 0/1 0/1
Processing details
compared
Second
Comparison of seconds (
Minute
Comparison of minutes (
Minute,
Comparison of minutes (
second
Hour
Comparison of hours (
Hour,
Comparison of hours (
second
Comparison of hours (
Comparison of hours (
second
No comparison of hours (
No objects
and seconds (
+2 or
to
+2 exceeds the range of specified devices, SM709
S1
S1
Instruction
Condition
TM=
S1
S2
TM<>
=
S1
S2
TM>
S1
S2
TM<=
>
S1
S2
TM<
S1
S2
TM>=
<
S1
S2
+1 or
S1
S1
+2 or
S1
Second
Minute
Hour
.
S1
+2)
S1
+1)
S1
+1) and seconds
S1
days (
+2)
S1
)
S1
) and
S1
seconds (
+2)
S1
) and minutes (
+1)
S1
S1
), minutes (
+1), and
S1
S1
seconds (
+2)
S1
), minutes (
+1),
S1
S1
+2) (Non-conductive)
S1
Comparison
operation result
No-conductive
status
+1.
+2.
S1

Advertisement

Table of Contents
loading

Table of Contents