BASIC commands
PROGRAMMING MANUAL 50
Revision 3.0
3.2.33 AXIS_DISPLAY
/i
/i
3.2.34 AXIS_ENABLE
/i
3.2.35 AXISSTATUS
/i
Description The AXIS modifier sets the axis for a single motion command or a single axis
parameter read/write to a particular axis. AXIS is effective only for the com-
mand or program line in which it is programmed. Use the BASE command to
change the base axis for all following command lines.
Arguments • axis_number
Any valid BASIC expression specifying the axis number.
Example BASE(0)
PRINT VP_SPEED AXIS(2)
Example MOVE(300) AXIS(0)
Example REPDIST AXIS(1) = 100
See also BASE
Type Axis parameter
Syntax AXIS_DISPLAY = value
Description The AXIS_DISPLAY axis parameter enables different data to be displayed by
the LEDs on the front cover of the TJ1-FL02. LEDs affected by this parameter
setting are two yellow LEDs showing axis status. The default value of this
parameter on start-up for all axes is 0. The valid values are shown in the table
below.
Arguments N/A
Example AXIS_DISPLAY AXIS(2) = 2
This command will display status of OUT 0 and OUT 1 allocated to axis 2.
See also N/A
AXIS_DISPLAY value 0 1 2 3
A0 REG 0 AUX IN OUT 0 ENCODER A
A1 REG 1 ENCODER Z OUT 1 ENCODER B
B0 REG 0 AUX IN OUT 0 ENCODER A
B1 REG 1 ENCODER Z OUT 1 ENCODER B
Type Axis parameter
Syntax AXIS_ENABLE = ON/OFF
Description The AXIS_ENABLE axis parameter is used to enable or disable particular
axis independently of others. This parameter can be set on or off for each axis
individually. The default value on start-up is on or all axes. The axis will be
enables if both AXIS_ENABLE for that axis is on and WDOG is on. For
MECHATROLINK-II axes setting AXIS_ENABLE to off will disable Servo
Driver output to the motor. For Flexible axis Servo axis setting AXIS_ENABLE
to off will force both voltage outputs to 0. For Flexible axis Stepper Out and
Encoder Out axes, setting AXIS_ENABLE to off will block pulses generation
on the outputs.
Arguments N/A
Example AXIS_ENABLE AXIS(3) = OFF
This command will disable axis 3 independently of other axes in the system.
See also AXIS, DISABLE_GROUP
Type Axis parameter (read-only)
Syntax AXISSTATUS
Description The AXISSTATUS axis parameter contains the axis status. The
AXISSTATUS axis parameter definitions are shown in the table below.
The AXISSTATUS parameter is used for the motion error handling of the unit.
Arguments N/A
Example IF (AXISSTATUS AND 16)>0 THEN PRINT "In forward limit"
See also AXIS, ERRORMASK
AXIS_DISPLAY value 0 1 2 3
I52E-EN-03.book Seite 50 Freitag, 29. Juni 2007 11:55 11