Omron trajexia CJ1W-MCH72 Operation Manual page 235

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

Advertisement

All BASIC commands
4-2-196 READ_BIT
224
/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.
/i
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.
Section 4-2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents