EasyManua.ls Logo

IDEC SmartAXIS Touch FT1A Series

IDEC SmartAXIS Touch FT1A Series
1232 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SmartAXIS Touch User's Manual 3-103
4 Special Functions
3
Project
Example ladder program 1
This example sets the calendar and clock in a ladder program.
If you turn on M8020 with the new calendar/clock data set in the write-only data registers D8015 to D8021, the
internal clock on the Touch is updated with the current time (calendar, clock). In this example, the Touch internal
clock is set to 9:35:00 on Tuesday February 21, 2012.
Example ladder program 2
When I1 turns on, the seconds on the internal clock are corrected to 0 seconds.
When input I1 turns on, clock data adjust flag M8021 turns on to correct the seconds on the internal clock.
M8120 is the initialize pulse that turns on for only one scan
at the start of operation.
When the Touch starts operating, the new calendar/clock
data is stored in D0000 to D0006 with the MOV (move)
instruction.
When external input I0000 turns on, the new calendar data
is stored in special data registers D8015 to D8018.
Internal relay M0000 turns on for one scan only.
When external input I1 turns on, the new clock data is
stored in special data registers D8019 to D8021.
Internal relay M0001 turns on for one scan only.
When external input M0000 or M0001 turns on, M8020
turns on and the calendar/clock data is written to the
internal clock.
(M8020: Calendar/Clock Data Write Flag)
M8125 is a special internal relay that is always on during
operation.
While the Touch is running, the current time (calendar,
clock) is stored in D0010 to D0016 with the MOV
instruction.
M8120
REP
4
S1 R
D0000
MOV(W) D1 R
D8015
I0000
SOTU
REP
3
S1 R
D0004
MOV(W) D1 R
D8019
I0001
SOTU
M0000
M0001
REP
7
S1 R
D8008
MOV(W) D1 R
D0010
M8125
M0001
M8020
REPS1 –
12
MOV(W) D1 –
D0000
M0000
REPS1 –
2
MOV(W) D1 –
D0001
REPS1 –
21
MOV(W) D1 –
D0002
REPS1 –
2
MOV(W) D1 –
D0003
REPS1 –
9
MOV(W)
D1 –
D0004
REPS1 –
35
MOV(W) D1 –
D0005
REPS1 –
0
MOV(W) D1 –
D0006
I1
SOTU
M8021
The internal clock backup time is approximately 30 days (25°C TYP). If the power loss time exceeds the
backup time, the retained clock data is lost and the current time is initialized as 00:00:00 on January 1,
2000.

Table of Contents

Related product manuals