Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-347
DATEWR(P)
1
2
3
4
6
6
7
8
7.15 Clock instructions
7.15.2 Writing clock data (DATEWR(P))
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
Individual items of data have been set outside the setting range.
(Error code: 4100)
The device specified by exceeds the range of the corresponding device.
(For the Universal model QCPU only.) (Error code: 4101)
Program Example
(1) The following program writes the following clock data to the clock element as BCD values
when X40 is turned ON.
Year ............... X30 to X3F Hour................. X18 to X1F
Month ............ X28 to X2F Minute.............. X10 to X17
Day ................ X20 to X27 Second ............ X8 to XF
Week ............. X4 to X7
[Ladder Mode]
[List Mode]
[Operation]
S
Sets "Month"
Sets "Day"
Sets "Hour"
Sets "Minute"
Sets "Second "
Sets "Year"
Writes the clock data (D0 to D6)
to the clock element
Sets "Day of week"
Step Instruction Device
1
2
2
4
X2F X28 X27 X20
(Month, Day)
(Hour, Minute)
1257
X1F
X18
X17 X10
390
XF X8 X7 X4
(Second, Day of week)
BIN
BIN
Clock data
2000, 12, 24 12:57:39 Sunday
2
0
0 0
X3F
X38
X37
X30
(Year)
D0
12
2000
24
12
57
39
D1
D2
D3
D4
D5
0
D6