Wktbl (week table), Wktbl (week table) -2 – IDEC MicroSmart User Manual

Page 268

Advertising
background image

15: W

EEK

P

ROGRAMMER

I

NSTRUCTIONS

15-2

« FC4A M

ICRO

S

MART

U

SER

S

M

ANUAL

»

S1 — Day of week comparison data (0 through 127)

Specify the days of week to turn on the output or internal relay designated by D1.

Designate the total of the values as operand S1 to turn on the output or internal relay.

Example: To turn on the output on Mondays through Fridays, designate 62 as S1 because 2 + 4 + 8 + 16 + 32 = 62.

S2 — Hour/minute comparison data to turn on
S3 — Hour/minute comparison data to turn off

Specify the hours and minutes to turn on (S2) or to turn off (S3) the output or internal relay designated by D1.

Example: To turn on the output or internal relay at 8:30 a.m. using the WKTIM instruction, designate 830 as S2. To
turn off the output or internal relay at 5:05 p.m., designate 1705 as S3.

When 10000 is set to hour/minute comparison data, the comparison data is ignored. For example, if 10000 is set to
the hour/minute comparison data to turn off (S3), the WKTIM instruction compares only the hour/minute comparison
data to turn on (S2).

When the hour/minute comparison data to turn on (S2) is larger than the hour/minute comparison data to turn off
(S3), the comparison ON output (D1) turns on at S2 on the day designated by S1, remains on across 0 a.m., and turns
off at S3 on the next day. For example, if S2 is 2300, S3 is 100, and Monday is included in S1, then the output desig-
nated by D1 turns on at 23 p.m. on Monday and turns off at 1 a.m. on Tuesday.

Make sure that the values set for MODE, S1, S2, and S3 are within the valid ranges. If any data is over the valid value, a
user program execution error will result, turning on special internal relay M8004 and the ERR LED on the CPU module.

WKTBL (Week Table)

Applicable CPU Modules

Valid Operands

For the valid operand number range, see pages 6-1 and 6-2.

Day of Week

Sunday

Monday

Tuesday

Wednesday

Thursday

Friday

Saturday

Value

1

2

4

8

16

32

64

Hour

Minute

Disable Comparison

00 through 23

00 through 59

10000

FC4A-C10R2/C

FC4A-C16R2/C

FC4A-C24R2/C

FC4A-D20K3/S3

FC4A-D20RK1/RS1 & FC4A-D40K3/S3

X

X

X

X

X

Operand

Function

I

Q

M

R

T

C

D

Constant

Repeat

S1 (Source 1)

Special month/day data

X

101-1231

S1, S2, S3, ... , S

N

→ Week Table (N ≤ 20)

When input is on, N blocks of special month/day data in oper-
ands designated by S1, S2, S3, ... , S

N

are set to the week

table.

The quantity of special days can be up to 20.

The special days stored in the week table are used to add or
skip days to turn on or off the comparison outputs pro-
grammed in subsequent WKTIM instructions.

The WKTBL must precede the WKTIM instructions.

WKTBL

S1

*****

S3

*****

S2

*****

..... S

N

*****

Advertising