![IDEC OpenNet series User Manual Download Page 216](http://html.mh-extra.com/html/idec/opennet-series/opennet-series_user-manual_617384216.webp)
15: W
EEK
P
ROGRAMMER
I
NSTRUCTIONS
O
PEN
N
ET
C
ONTROLLER
U
SER
’
S
M
ANUAL
15-5
Conditions for Interval Comparison with ON/OFF Times on Different Days
When WKCMP ON and WKCMP OFF instructions are programmed to turn on and off the output on different days, the
five conditions shown below are needed to enable the interval comparison. Otherwise, the instructions work as ordinary
clock data comparison instructions.
1. WKCMP ON is followed by WKCMP OFF immediately, which has the same input contact.
2. The matching WKCMP ON and WKCMP OFF instructions have the same values for the day of week comparison data
(S1: constant). When S1 is set to 0, the instructions work without designation of day of week. Set S1 to 0 or a value to
designate consecutive days, such as 6 for Monday and Tuesday, 56 for Wednesday through Friday, or 65 for Saturday
and Sunday. Do not set S1 to a value to designate a single day, such as 32 for Friday only, or 127 to designate all days.
3. Hour/minute comparison data (S2: constant) has a relationship: ON time > OFF time.
4. The matching WKCMP ON and WKCMP OFF instructions have 0 set for the week table output control (S3) to disable
use of the week table.
5. The matching WKCMP ON and WKCMP OFF instructions have the same comparison output operand (D1).
Example: Interval comparison with ON/OFF times on different days — 1
The output is turned on at 11:00 a.m. on Monday through Friday, and is turned off at 2:00 a.m. on the following day.
Example: Interval comparison with ON/OFF times on different days — 2
The output is turned on at 11:00 a.m. every day, and is turned off at 2:00 a.m. on the following day.
D1
Q0
S1
126
M8125
WKCMP
ON
S2
1100
S3
0
D1
Q0
S1
126
WKCMP
OFF
S2
200
S3
0
M8125 is the in-operation output special internal relay.
S1 (126) specifies Monday through Saturday.
WKCMP ON turns on output Q0 at 11:00 a.m. on Monday
through Friday.
WKCMP OFF turns off output Q0 at 2:00 a.m. on the next day.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
11:00
2:00
ON
Output Q0
S1: Same constant value to designate consecutive days
S2: Constant values; ON time > OFF time
S3: Same constant value 0
D1: Same operand
11:00
2:00
ON
11:00
2:00
ON
11:00
2:00
ON
11:00
2:00
ON
D1
Q0
S1
0
M8125
WKCMP
ON
S2
1100
S3
0
D1
Q0
S1
0
WKCMP
OFF
S2
200
S3
0
M8125 is the in-operation output special internal relay.
S1 (0) specifies all days.
WKCMP ON turns on output Q0 at 11:00 a.m. everyday.
WKCMP OFF turns off output Q0 at 2:00 a.m. on the next day.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
11:00
2:00
ON
Output Q0
S1: Same constant value to designate consecutive days
S2: Constant values; ON time > OFF time
S3: Same constant value 0
D1: Same operand
11:00
2:00
ON
11:00
2:00
ON
11:00
2:00
ON
11:00
2:00
ON
11:00
2:00
ON
11:00
2:00
ON
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]