J(P)/G(P).Req (Clock Data Read/Write) - Mitsubishi Electric Melsec Q Series User Manual

Ethernet interface module
Hide thumbs Also See for Melsec Q Series:
Table of Contents

Advertisement

6 DEDICATED INSTRUCTIONS

6.8 J(P)/G(P).REQ (Clock Data Read/Write)

Request data (All items marked with
Device
(S2)
Request type
(S2) + 1
Sub-request type
Change pattern
(S2) + 2
Year to be changed
(S2) + 3
(S2) + 4
Clock data to be changed
(continued)
(S2) + 5
6 - 34
This instruction reads/writes clock data from/to other stations.
POINT
See Section 6.7 for the following information on the REQ instruction for
reading/writing clock data from/to other stations.
Since the same explanation as when executing remote RUN/STOP operations
using the REQ instruction applies in this case, the explanation of these items is
omitted in this section.
1) Instruction format
2) Devices that can be used with the instruction
3) Control data in the setting data
4) Functions
5) Error
are set by the user)
Item
0001
: Clock data read
H
0011
: Clock data write (When station No. is specified in
H
(S1)+5)
0031
: Clock data write (When all stations or a group is
H
specified in (S1)+5)
0002
: Clock data read
H
0001
: Clock data write
H
1) Change pattern (bits 0 to 7)
Specify which items are to be written to the fields of
(high byte of (S2)+2) to ((S2)+5).
0: Do not change
1: Change
2) Year to be changed (bits 8 to 15)
Store year (last two digits of the year in the Gregorian
calendar) as BCD code.
b15
to
Year (00
to 99
H
Higher 8 bits: date (01
lower 8 bits : month (01
Higher 8 bits: minute (00
lower 8 bits : hour (00
Higher 8 bits: day of the week (00
lower 8 bits : second (00
In this function, the higher two digits of the year data cannot be changed.
When it is necessary to change the higher two digits of the year data, use other
functions (such as a programming tool) to set the clock data.
Set data
b8
b7
b6 b5 b4 b3 b2 b1 b0
)
0
H
to 31
),
H
H
to 12
)
H
H
to 59
),
H
H
to 23
)
H
H
(Sunday) to 06
H
(Saturday)),
to 59
)
H
H
MELSEC-Q/L
Clock data
read
Year
Month
Date
Hour
Minute
Second
Day of the week
H
Clock data
write
6 - 34

Advertisement

Table of Contents
loading

Table of Contents