Mechatrolink - Omron TJ2-MC64 - PROGRAMMING Programming Manual

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

Advertisement

BASIC commands
3.2.23 ADDAX_AXIS
/i
Type
Axis parameter (read-only)
Syntax
ADDAX_AXIS
Description
The ADDAX_AXIS axis parameter returns the number of the axis to which
the base axis is currently linked to by ADDAX. If the base axis in not linked to
any other axis, the ADDAX_AXIS parameter returns -1.
Arguments
N/A
Example
>> BASE(0)
>> ADDAX(2)
>> PRINT ADDAX_AXIS
2.0000
>> ADDAX(-1)
>> PRINT ADDAX_AXIS
-1.0000
See also
ADDAX, AXIS
3.2.24 ADDRESS
/i
Type
SYSTEM parameter
Syntax
ADDRESS
Description
Sets the RS-232 and RS485/422 ModbusRTU multidrop address for the con-
troller. This parameter should be in the range of [1 – 32].
Arguments
N/A
Example
ADDRESS = 5
See also
SETCOM
3.2.25 AIN
/i
Type
I/O command
PROGRAMMING MANUAL
Syntax
AIN(analogue_chan)
Description
The AIN reads a value from an analogue input. Analogue input channels are
provided by connecting GRT1-ML2 Slice Coupler, or JEPMC-AN2900 mod-
ules on the MECHATROLINK-II bus.
Arguments
analogue_chan.
Analogue input channel number 0.31
Example
MOVE(-5000)
REPEAT
a=AIN(1)
IF a<0 THEN a=0
SPEED=a*0.25
UNTIL MTYPE=0
The speed of a production line is governed by the rate at which material is fed
onto it. The material feed is via a lazy loop arrangement which is fitted with an
ultra-sonic height sensing device. The output of the ultra-sonic sensor is in
the range 0V to 4V where the output is at 4V when the loop is at its longest.
Note: The analogue input value is checked to ensure it is above zero even
though it always should be positive. This is to allow for any noise on the
incoming signal which could make the value negative and cause an error
because a negative speed is not valid for any move type except FORWARD
or REVERSE.
See also
N/A
3.2.26 ALL
/i
Type
Slot modifier
Syntax
ALL
Description
The ALL modifier is used with the commands DEL and NEW. It indicates that
these commands are applied to all items in the directory structure of the con-
troller.
Arguments
N/A
Example
DEL ALL
This deletes all programs and the TABLE memory of the controller.
36

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents