BASIC commands
PROGRAMMING MANUAL 118
Revision 3.0
3.2.190 NOT
/i
/i
3.2.191 NTYPE
/i
3.2.192 OFF
/i
3.2.193 OFFPOS
/i
See also N/A
Type Mathematical operation
Syntax NOT expression
Description The NOT operator performs the logical NOT function on all bits of the integer
part of the expression.
The logical NOT function is defined as in the table below.
Arguments • expression.
Any valid BASIC expression.
Example >> PRINT 7 AND NOT 1
6.0000
See also N/A
Bit Result
01
10
Type Axis parameter (read-only)
Syntax NTYPE
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.
Arguments N/A
Example No example.
See also AXIS, MTYPE.
Type Constant (read-only)
Syntax OFF
Description The OFF constant returns the numerical value 0.
Arguments N/A
Example OP (lever,OFF)
The above line sets the output named lever to OFF.
See also N/A
Type Axis parameter
Syntax OFFPOS
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.
OFFPOS effectively adjusts the 0 position of the axis. The value set in
OFFPOS will be reset to 0 by the system as the offset is loaded.
Note: The offset is applied on the next servo period. Other commands may be
executed 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).
Arguments N/A
Example The following lines define the current demand position as 0.
OFFPOS = -DPOS
WAIT UNTIL OFFPOS = 0 ' Wait until applied
This example is equivalent to DEFPOS(0).
See also AXIS, DEFPOS, DPOS, MPOS, UNITS.
I52E-EN-03.book Seite 118 Freitag, 29. Juni 2007 11:55 11