EasyManua.ls Logo

Omron TJ2-MC64 - PROGRAMMING - Page 162

Omron TJ2-MC64 - PROGRAMMING
362 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BASIC commands
PROGRAMMING MANUAL 156
Revision 1.0
/i
3.2.212 NTYPE
/i
3.2.213 OFF
/i
3.2.214 OFFPOS
/i
Arguments expression.
Any valid BASIC expression.
Example >> PRINT 7 AND NOT 1
6.0000
See also N/A
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 which is in progress in any other
way. The measured position will be changed accordingly in order to keep the
Following Error. OFFPOS can therefore be used to effectively datum a system
at full speed. 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 Change the current position by 125, with the Command Line Terminal:
>>?DPOS
300.0000
>>OFFPOS=125
>>?DPOS
425.0000
Example Define the current demand position as 0
OFFPOS=-DPOS
WAIT UNTIL OFFPOS=0 ' wait until applied
This is equivalent to DEFPOS(0).

Related product manuals