![background image](http://html1.mh-extra.com/html/omron/sysmac-cj-series/sysmac-cj-series_operation-manual_743585235.webp)
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
.
Содержание SYSMAC CJ Series
Страница 2: ......
Страница 70: ...Specifications Section 2 4 58...
Страница 84: ...FINS commands Section 3 4 72...
Страница 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...Section 265 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 370: ...Section 358...