165
Command, function and parameter description
Section 6-3
Arguments:
expression
Any valid BASIC expression.
Example:
>> PRINT 7 AND NOT 1
6.0000
6-3-127 NTYPE
Type:
Axis Parameter
Description:
The NTYPE parameter contains the type of the move in the next move buffer.
Once the current move has finished, the move present in the NTYPE buffer
will be executed. The values are the same as those for the MTYPE axis
parameter.
NTYPE is cleared by the CANCEL(1) command.
Note This parameter is read-only.
See also:
AXIS, MTYPE
6-3-128 OFF
Type:
Constant
Description:
The OFF constant returns the numerical value 0.
Note A constant is read-only.
Example:
OP (lever,OFF)
The above line sets the output named
lever
to OFF.
6-3-129 OFFPOS
Type:
Axis Parameter
Description:
The OFFPOS parameter contains an offset that will be applied to the demand
position (DPOS) without affecting the move in any other way. The measured
position will be changed accordingly in order to keep the following error. OFF-
POS effectively adjusts the zero position of the axis. The value set in OFF-
POS will be reset to zero by the system as the offset is loaded.
Precautions:
The offset is applied on the next servo period. Other commands may be exe-
cuted prior to the next servo period. Be sure that these commands do not
assume the position shift has occurred. This can be done by using the WAIT
UNTIL statement (see example).
See also:
AXIS, DEFPOS, DPOS, MPOSUNITS
Example:
The following lines define the current demand position as zero.
OFFPOS = -DPOS
WAIT UNTIL OFFPOS = 0
’Wait until applied
This example is equivalent to
DEFPOS(0)
.
6-3-130 ON
Type:
Constant
Description:
The ON constant returns the numerical value 1.
Note A constant is read-only.
Example:
OP (lever,ON)
The above line sets the output named
lever
to ON.
Bit
Result
0
1
1
0