Mitsubishi QCPU Structured Programming Manual page 161

Melsec-q series
Hide thumbs Also See for QCPU:
Table of Contents

Advertisement

(2) Reading/writing the clock data
Request data (all set by the user (indicated by
Device
Item
Request type
[0]
S2
Sub-request type
[1]
S2
Change pattern
[2]
S2
Year data to be changed
[3]
S2
Clock data to be changed
[4]
S2
(continued)
[5]
S2
*4 :
5.4 CC-Link IE Controller Network, MELSECNET/H, and Ethernet Instruction
0001
: Clock data read
H
0011
: Clock data write (When station number is specified in
H
[5])
S1
0031
: Clock data write (When all stations or a group is
H
specified in
[5])
S1
0002
: Clock data read
H
0001
: Clock data write
H
Change pattern (bit 0 to 7)
Specify the items to be written in high-order byte of
0: Not changed
1: Changed
Year to be changed (bit 8 to 15)
Store the year (last two digits) in BCD format.
b15
b8
b7
b6
b5
Year (00
to99
)
0
H
H
High-order 8 bits: Day (01
to 31
H
12
)
H
to
b15
Day (01
to 31
H
High-order 8 bits: Minute (00
H
23
)
H
b15
to
Minute (00
to 59
H
High-order 8 bits: Day of week (00
order 8 bits: Second (00
to 59
H
to
b15
Day of week (00
to 06
H
00
(Sun.) to 06
H
This function cannot change the first two digits of year data.
To change the year data including the first two digits, set the clock data using another function (such as
GX Works2).
))
Setting data
[2] to
S2
S2
*4
b4
b3
b2
b1
b0
Year (last two digits)
Month
Day
Hour
Minute
Second
Day of week
), low-order 8 bits: Month (01
H
to
b8
b7
b0
)
Month (01
to 12
)
H
H
H
to 59
), low-order 8 bits: Hour (00
H
b8
b7
to
b0
)
Hour (00
to 23
)
H
H
H
(Sunday) to 06
(Saturday)), low-
H
H
)
H
to
b8
b7
b0
)
Second (00
to 59
)
H
H
H
(Sat.)
H
5.4.8 REQ instruction
J_REQ, G_REQ
Read
Write
clock data
clock data
[5].
to
H
to
H
5
5-123

Advertisement

Table of Contents
loading

Table of Contents