Wktim (Week Timer); Eek Programmer - IDEC FC4A-C10R2 User Manual

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

15: W
EEK
Introduction
WKTIM instructions can be used as many as required to turn on and off designated outputs and internal relays at predeter-
mined times and days of the week.
Once the internal calendar/clock is set, the WKTIM instruction compares the predetermined time with the clock data in the
clock cartridge. When the preset time is reached, internal relay or output designated as destination operand is turned on or
off as scheduled. For setting the calendar/clock, see page 15-5.
For the specifications of the clock cartridge, see page 2-67.

WKTIM (Week Timer)

WKTIM
MODE
*****
Applicable CPU Modules
FC4A-C10R2/C
FC4A-C16R2/C
X
Valid Operands
Operand
MODE
S1 (Source 1)
S2 (Source 2)
S3 (Source 3)
D1 (Destination 1)
For the valid operand number range, see pages 6-1 and 6-2.
Internal relays M0 through M1277 can be designated as D1. Special internal relays cannot be designated as D1.
MODE — Week table output control (0 through 2)
0:
Disable the week table
When the current day and time reach the presets for S1, S2, and S3, the designated output or internal relay is turned
on or turned off. Set 0 for MODE when the WKTBL is not used; the WKTBL instruction is ignored even if it is pro-
grammed.
1:
Additional days in the week table
When the current time reaches the hour/minute comparison data set for S2 or S3 on the special day programmed in
the WKTBL, the designated output or internal relay is turned on (S2) or turned off (S3).
2:
Skip days in the week table
On the special day programmed in the WKTBL, the designated output or internal relay is not turned on or off, even
when the current day and time reach the presets for S1, S2, and S3.
Note: When 1 or 2 is set for MODE, program special days in the week table using the WKTBL instruction, followed by
the WKTIM instruction. If the WKTBL instruction is not programmed when 1 or 2 is set for MODE in the WKTIM instruc-
tion, a user program execution error will result, turning on special internal relay M8004 and the ERR LED on the CPU
module. The same error also occurs if the WKTIM instruction is executed before the WKTBL instruction.
P
ROGRAMMER
S1
S2
S3
*****
*****
*****
FC4A-C24R2/C
X
X
Function
Week table output control
Day of week comparison data
Hour/minute comparison data to turn on
Hour/minute comparison data to turn off
Comparison ON output
« FC4A M
I
NSTRUCTIONS
When input is on, the WKTIM compares the S1 and S2 preset
D1
data with the current day and time.
When the current day and time reach the presets, an output or
internal relay designated by operand D1 is turned on, depend-
ing on the week table output control designated by MODE.
FC4A-D20K3/S3
X
I
— — — — — — —
— — — — — —
— — — — — —
— — — — — —
S
U
'
M
ICRO
MART
SER
S
ANUAL
FC4A-D20RK1/RS1 & FC4A-D40K3/S3
X
Q
M
R
T
C
D
X
X
X
▲ — — — —
X
»
Constant
Repeat
0-2
0-127
0-2359
0-2359
15-1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents