Omron TJ2-MC64 - PROGRAMMING Programming Manual page 162

Hide thumbs Also See for TJ2-MC64 - PROGRAMMING:
Table of Contents

Advertisement

BASIC commands
/i
Arguments
expression.
Any valid BASIC expression.
Example
>> PRINT 7 AND NOT 1
6.0000
See also
N/A
3.2.212 NTYPE
/i
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.
3.2.213 OFF
/i
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
PROGRAMMING MANUAL
3.2.214 OFFPOS
/i
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).
156

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tj1-prtTj1-drtTj1-cortTj1-mlGrt1-ml2Tj1-fl02

Table of Contents