Motion Coordinator Technical Reference Manual
Trio BASIC Commands 8-147
Mathematical Operations and Commands
READ_BIT
Type:
Command
Syntax:
READ_BIT(bit#,vr#)
Description:
READ_BIT
can be used to test the value of a single bit within a
VR()
variable.
Example:
res=READ_BIT(4,13)
Parameters:
See also
SET_BIT, CLEAR_BIT
SET_BIT
Type:
Command
Syntax:
SET_BIT(bit#,vr#)
Description:
SET_BIT
can be used to set the value of a single bit within a
VR()
variable. All
other bits are unchanged.
Parameters:
Example:
SET_BIT(3,7)
Will set bit 3 of VR(7) to 1.
See also
READ_BIT, CLEAR_BIT
SGN
Type:
Mathematical Function
Syntax:
SGN(expression)
bit #
Bit number within the VR. Valid range is 0 to 23
vr#
VR() number to use
bit #
Bit number within the VR. Valid range is 0 to 23
vr#
VR()
number to use