Mitsubishi MELSEC-Q/L Programming Manual page 579

Table of Contents

Advertisement

[List Mode]
Step
Instruction
[Operation]
• Time data read operation triggered by DATERDP instruction.
Clock element
• Addition triggered by DATE+P instruction.
D3
Hour: 10
D4
Minute: 23
D5
Second: 41
7.15.4
DATE-, DATE-P
Clock data subtraction operation
7.15.4
DATE-, DATE-P
DATE-
DATE-P
: Head number of the devices where the clock time data to be adjusted by substraction is stored (BIN 16 bits)
S1
: Head number of the devices where time data to be subtracted for adjustment is stored (BIN 16 bits)
S2
: Head number of the devices where the result of subtraction of clock (time) data will be stored (BIN 16 bits)
D
Setting
Internal Devices
Data
Bit
Word
––
S1
––
S2
––
D
Function
(1) Subtracts the time data designated by
from the device designated by
Data range
S1
Hour
(0 to 23)
S1
+1
Minute
(0 to 59)
S1
+2
Second
(0 to 59)
For example, if the clock time 3:50:10 were subtracted from the clock time 10:40:20, the operation would be performed
as follows:
S1
Hour: 10
S1
Minute: 40
+1
Second: 20
S1
+2
Device
D0
95
Year
D1
5
Month
D2
15
Day
D3
10
Hour
23
Time data
D4
Minute
41
D5
Second
D6
2
Day of week
D10
Hour: 1
D11
Minute: 0
+
D12
Second: 0
Command
Command
J
\
R, ZR
Bit
from the clock data designated by
S2
.
D
Data range
S2
Hour
(0 to 23)
+1
S2
Minute
(0 to 59)
+2
S2
Second
(0 to 59)
S2
Hour: 3
Minute: 50
S2
+1
Second: 10
S2
+2
D100
Hour: 11
D101
Minute: 23
D102
Second: 41
High
Basic
performance
S1
DATE-
S1
DATE-P
U
\G
Word
––
––
––
, and stores the result into the area starting
S1
Data range
D
Hour
Minute
D
+1
Second
D
+2
D
Hour: 6
Minute: 50
D
+1
Second: 10
D
+2
DATE-, DATE-P
Process
LCPU
Redundant Universal
S2
D
S2
D
Zn
Constants
Other
(0 to 23)
(0 to 59)
(0 to 59)
1
2
3
4
4
6
7
8
577

Advertisement

Table of Contents
loading

Table of Contents