![background image](http://html1.mh-extra.com/html/omron/trajexia-cj1w-mch72/trajexia-cj1w-mch72_operation-manual_742454235.webp)
All BASIC commands
Section 4-2
224
/i
4-2-196 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
.
Содержание trajexia CJ1W-MCH72
Страница 69: ...Specifications Section 2 4 58...
Страница 83: ...FINS commands Section 3 4 72...
Страница 147: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...All BASIC commands Section 4 2 266...
Страница 278: ...267 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 371: ...360 Index...
Страница 373: ...362...