Omron SYSMAC C200HS Operation Manual page 121

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

Work Bits
Reducing Complex
Conditions
00000
00001
00002
00003
24600
00004
24600
00004
24600
00006
00007
Differentiated Conditions
Work bits can be used to simplify programming when a certain combination of
conditions is repeatedly used in combination with other conditions. In the follow-
ing example, IR 00000, IR 00001, IR 00002, and IR 00003 are combined in a
logic block that stores the resulting execution condition as the status of IR
24600. IR 24600 is then combined with various other conditions to determine
output conditions for IR 00100, IR 00101, and IR 00102, i.e., to turn the outputs
allocated to these bits ON or OFF.
24600
00005
00100
00005
00101
00102
Work bits can also be used if differential treatment is necessary for some, but not
all, of the conditions required for execution of an instruction. In this example, IR
00100 must be left ON continuously as long as IR 00001 is ON and both IR
00002 and IR 00003 are OFF, or as long as IR 00004 is ON and IR 00005 is OFF.
It must be turned ON for only one cycle each time IR 00000 turns ON (unless one
of the preceding conditions is keeping it ON continuously).
Address
Instruction
00000
LD
00001
AND NOT
00002
OR
00003
OR NOT
00004
OUT
00005
LD
00006
AND
00007
AND NOT
00008
OUT
00009
LD
00010
OR NOT
00011
AND
00012
OUT
00013
LD NOT
00014
OR
00015
OR
00016
OUT
Section 4-9
Operands
00000
00001
00002
00003
24600
24600
00004
00005
00100
24600
00004
00005
00101
24600
00006
00007
00102
111

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents