All BASIC commands
Section 4-2
223
/i
4-2-193 READ_BIT
/i
Example
This example shows the use of
RAPIDSTOP
to break a
CONNECT
and
stop the motion. The connected axis stops immediately on the
RAPIDSTOP
command. The forward axis decelerates at the
DECEL
value.
BASE(0)
CONNECT(1,1)
FORWARD AXIS(1)
WAIT UNTIL VPSPEED=SPEED 'let the axis get to full speed
WA(1000)
RAPIDSTOP
WAIT IDLE AXIS(1) 'wait for axis 1 to decel
CONNECT(1,1) 're-connect axis 0
REVERSE AXIS(1)
WAIT UNTIL VPSPEED=SPEED
WA(1000)
RAPIDSTOP
WAIT IDLE AXIS(1)
See also
CANCEL
,
MTYPE
,
NTYPE
.
Type
System command
Syntax
READ_BIT(bit_number, vr_number)
Description
The
READ_BIT
command returns the value of the specified bit in the
specified VR variable, either 0 or 1.
Arguments
•
bit_number
The number of the bit to be read. Range: [0,23].
•
vr_number
The number of the VR variable for which the bit is read. Range:
[0,1023].
Example
No example.
See also
CLEAR_BIT
,
SET_BIT
.
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...