Omron trajexia CJ1W-MCH72 Operation Manual page 223

Sysmac cj-series programmable controller
Hide thumbs Also See for trajexia CJ1W-MCH72:
Table of Contents

Advertisement

All BASIC commands
4-2-178 OPEN_WIN
212
Example
OP(12,1)
OP(12,ON)
These two lines are equivalent.
Example
OP(18*256)
This line sets the bit pattern 10010 on the first 5 physical outputs, out-
puts 13 to 17 would be cleared. The bit pattern is shifted 8 bits by multi-
plying by 256 to set the first available outputs as outputs 0 to 7 do not
exist.
Example
VR(0) = OP
VR(0) = VR(0) OR $FF00
OP(VR(0))
This routine sets outputs 8 to 15 ON and all others off.
The above programming can also be written as follows:
OP(OP OR $FF00)
Example
val = 8 ' The value to set
mask = OP AND NOT(15*256) ' Get current status and mask
OP(mask OR val*256) ' Set val to OP(8) to OP(11)
This routine sets value val to outputs 8 to 11 without affecting the other
outputs by using masking.
See also
IN.
/i
Type
Axis parameter
Syntax
OPEN_WIN
OW
Description
The OPEN_WIN parameter defines the beginning of the window
inside or outside which a registration event is expected. The value is in
user units.
Arguments
N/A
Example
only look for registration marks between 170 and 230
OPEN_WIN = 170
CLOSE_WIN = 230
REGIST(256+3)
WAIT UNTIL MARK
See also
CLOSE_WIN, REGIST, UNITS.
Section 4-2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents