Writing Clock Data (Datewr(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

7.15.2

Writing clock data (DATEWR(P))

DATEWR(P)
DATEWR
DATEWRP
Setting
Data
S
Function
(1) Writes clock data stored in the device number designated by
the clock element of the CPU module.
(2) Each item is set as a BIN value.
(3) The "year" at
(4)
+1 designates the "month" in values of from 1 to 12 (January to December).
S
(5)
+2 designates the "day" in values of from 1 to 31.
S
(6)
+3 designates the "hour" in values of from 0 to 23 (using 24-hour clock, from 0 hours to 23
S
hundred hours). (Uses the 24-hour clock.)
(7)
+4 designates the "minute" in values of from 0 to 59.
S
(8)
+5 designates the "second" in values of from 0 to 59.
S
(9)
+6 designates the "day of week" in values of from 0 to 6 (Sunday to Saturday).
S
Day of week
Stored data
Command
Command
: Head number of the devices where clock data to be written into the clock device is stored (BIN 16 bits)
S
Internal Devices
R, ZR
Bit
Word
––
S
Year
S
+1
Month
S
+2
Day
S
+3
Hour
S
+4
Minute
S
Second
+5
S
Day of week
+6
is designated by using four-digit year indication between 1980 to 2079.
S
Sun
Mon
Tue
Wed
Thu
0
1
2
3
4
High
Basic
performance
J
\
U
\G
Bit
Word
––
S
Clock element
Fri
Sat
5
6
DATEWR(P)
Process
Redundant Universal
LCPU
DATEWR
S
DATEWRP
S
Zn
Constants
Other
or later device number to
7-345
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents