Mitsubishi MELSEC-Q/L Programming Manual page 593

Table of Contents

Advertisement

Caution
(1) This instruction reads clock data and stores those to a specified device even if a wrong clock data is set to the CPU
module. (example: Feb. 30th)
When setting clock data with the DATEWR instruction or GX Developer, make sure to set a correct data.
(2) Time error of reading a clock data of millisecond is a maximum of 2ms. (Difference between the data memorized by clock
element inside of the CPU module and the data read by this function.)
(3) Specifying digit for the bit device can be used only when the following conditions (a) and (b) are met.
(a) Digit specification: K4
(b) Head of device: multiple of 16
When the above conditions (a) and (b) are not met, INSTRCT CODE ERR.
(error code: 4004) will occur.
7.16.2
S.DATE+, SP.DATE+
Expansion clock data addition operation
7.16.2
S.DATE+, SP.DATE+
S.DATE+
SP.DATE+
: Head number of the devices where the clock data to be adjusted by addition is stored (BIN 16 bits)
S1
: Head number of the devices where the time data to be added for adjustment is stored (BIN 16 bits)
S2
: Head number of the devices where the result of addition of clock (time) data will be stored (BIN 16 bits)
D
Internal Devices
Setting
Data
Bit
Word
––
S1
––
S2
––
D
Function
(1) Adds the time data designated by
the device designated by
Setting data
Hour
S1
(0 to 23)
S1
Minute
+1
(0 to 59)
Second
S1
(0 to 59)
+2
--
S1
+3
Millisecond
S1
+4
(0 to 999)
For example, adding the time 7:48:10:500 to 6:32:40:875 would result in the following operation:
Hour: 6
S1
S1
Minute: 32
+1
S1
Second: 40
+2
S1
--
+3
S1
Millisecond: 875
+4
Command
Command
J
R, ZR
Bit
to the clock data designated by
S2
.
D
Setting data
Hour
S2
+1
Minute
S2
Second
S2
+2
+
--
S2
+3
S2
+4
Millisecond
Hour: 7
S2
+1
S2
Minute: 48
S2
+2
Second: 10
+
S2
+3
--
S2
+4
Millisecond: 500
Ver.
High
Basic
performance
• High Performance model QCPU, Process CPU, Redundant
CPU: The serial number (first five digits) is "07032" or later.
S.DATE+
S1
SP.DATE+
S1
\
U
\G
Word
––
––
––
, and stores the result into the area starting from
S1
D
Hour
(0 to 23)
D
+1
Minute
(0 to 59)
Second
D
+2
(0 to 59)
--
D
+3
D
Millisecond
+4
(0 to 999)
D
Hour: 14
D
+1
Minute: 20
D
+2
Second: 51
D
+3
--
D
+4
Millisecond: 375
S.DATE+, SP.DATE+
Ver.
Ver.
Process
Redundant Universal
LCPU
D
S2
S2
D
Zn
Constants
Other
Setting data
(0 to 23)
(0 to 59)
(0 to 59)
(0 to 999)
1
2
3
4
4
6
7
8
591

Advertisement

Table of Contents
loading

Table of Contents