Mitsubishi MELSEC-L series Programming Manual page 223

Hide thumbs Also See for MELSEC-L series:
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 :
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
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).
5.4 CC-Link IE Controller Network, MELSECNET/H, and Ethernet Instruction
))
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
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
J_REQ, G_REQ
Read
Write
clock data
clock data
[5].
to
H
to
H
5.4.8 REQ instruction
5
5-177

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents