Time Comparison - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Time comparison

LDTM, ANDTM, ORTM
High
Basic
Process
Redundant
performance
• QnU(D)(H)CPU, QnUDE(H)CPU: the serial number (first five digits) is "10102" or later
• Q00UJCPU, Q00UCPU, Q01UCPU, QnUDVCPU: Supported
LD
AND
OR
(S1): Head number of the devices where the data to be compared are stored (BIN 16 bits)
(S2): Head number of the devices where the data to be compared are stored (BIN 16 bits)
n:
Value of the data to be compared or the number of the stored data to be compared (BIN 16 bits)
Setting
Internal device
data
Bit
Word
(S1)
(S2)
n
Processing details
• This instruction compares the clock data specified by (S1) with those specified by (S2), or the clock data specified by (S1)
with the current time data. Setting n determines the data to be compared.
• Comparison of given clock data
This instruction treats the clock data specified by (S1) and the clock data specified by (S2) as a normally open contact, and compares the data in accordance
with the value of n.
Data range
(S1)
Hour
(0 to 23)
(S1)+1
(0 to 59)
Minute
(S1)+2
(0 to 59)
Second
• Comparison of current time data
This instruction treats the clock data specified by (S1) and the current time data as a normally open contact, and compares the data in accordance with the value
of n.
This instruction treats the clock data specified by (S2) as dummy data and ignores the data.
Data range
(S1)
Hour
(0 to 23)
(S1)+1
(0 to 59)
Minute
(S1)+2
Second
(0 to 59)
When either (S1) or (S2) corresponds to any of the following conditions in comparing given or current time
data with specified clock data, the operation error (error code: 4101) or a malfunction may occurs.
• The range of the devices to be used for the index modification is specified over the range of the device
specified by (S1) or (S2).
• File registers are specified by (S1) or (S2) without a register set.
Ver.
Universal
LCPU
indicates an instruction symbol of TM=/TM<>/TM</TM<=/TM>/TM>=.
Command
Command
R, ZR
J\
Bit
(S2)
Comparison
(S2)+1
operator
(S2)+2
Comparison
Current time (hour, minute, second)
operator
S1
S2
S1
S2
S1
S2
U\G
Word
Data range
Hour
(0 to 23)
(0 to 59)
Minute
(0 to 59)
Second
n
n
n
Zn
Constant
Others
K, H
Comparison
operation result
Comparison
operation result
7 APPLICATION INSTRUCTIONS
7.15 Clock Instructions
7
701

Advertisement

Table of Contents
loading

Table of Contents