Mitsubishi Electric MELSEC-Q Structured Programming Manual page 224

Hide thumbs Also See for MELSEC-Q:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
[Device & Common]
2. Method using a program
1) Method using the TWR instruction dedicated to time setting
2) Method not using the TWR instruction dedicated to time setting
Use the following program when not using the TWR instruction dedicated to time setting.
X000
M0
X001
3. Method using a programming tool
1) Starting the time change
Forcibly set M8015 to ON.
2) Set the time several minutes ahead of the desired time to each data register using the data register
current value change function (device monitor function) of a programming tool.
3) Finishing the time change
Forcibly set M8015 to OFF from ON when the actual time reaches the input set time.
Points on time setting
a) The values stored in date/time registers cannot be changed while M8015 is OFF.
Make sure to set M8015 to ON at the beginning, and then input desired date and time.
b) Input the time several minutes ahead of the desired time.
Forcibly set M8015 to OFF from ON when the actual time reaches the input time. The input time
becomes valid, and the clock starts time counting.
c) If values indicating impossible date and time (Example: February 30, 2006) are input, the input date
and time are ignored. Input possible date and time.
d) The day of the week (D8019) is automatically corrected in accordance with the date without regard to
the written numeric value.
222
4.2 Supplement of Special Devices (M8000 and later and D8000 and later)
→ FX Structured Programming Manual [Basic & Applied Instruction]
M8015
PLF
EN
ENO
d
M0
MOV
EN
ENO
*1
s
d
K30
D8013
Second data
MOV
EN
ENO
*1
s
d
K20
D8014
Minute data
MOV
EN
ENO
*1
s
d
K10
D8015
Hour data
MOV
EN
ENO
*1
s
d
K25
D8016
Day data
MOV
EN
ENO
*1
s
d
K4
D8017
Month data
MOV
EN
ENO
*1
s
d
D8018
Year data
MOV
EN
ENO
*1
s
d
D8019
K2
Day-of-the-week data
30-second correction
M8017
4 Operations of Special Devices (M8000 and later, D8000 and later)
*1 Set item
Example: 10:20:30 on April 25 Tuesday, 2000
Set the time 2 to 3 minutes ahead of the desired
time at the beginning, write the program shown on
the left to the PLC, set the PLC to the RUN mode,
and then set X000 to ON.
Set to OFF the input switch X000 when the actual
time reaches the input time. The input time
becomes valid, and the clock starts time counting.
Correction by
Every time X001 is set to ON from OFF, the second
data is corrected.
When the second data is "0" to "29", it is set to "0".
When the second data is "30" to "59", it is set to "0"
and the minute data is incremented by "1".
30 seconds

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-lMelsec-fFx3sFx3gFx3gcFx3u ... Show all

Table of Contents