All BASIC commands
Section 4-2
211
4-2-175 OPEN_WIN
/i
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
.
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
.
Summary of Contents for SYSMAC CJ Series
Page 2: ......
Page 70: ...Specifications Section 2 4 58...
Page 84: ...FINS commands Section 3 4 72...
Page 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Page 370: ...Section 358...