All BASIC commands Section 4-2
89
4-2-16 #
/i
4-2-17 ABS
/i
4-2-18 ACC
/i
Type Special character
Syntax #
Description The # symbol is used to specify a communications channel to be used
for serial input/output commands.
Note: Communications Channels greater than 3 will only be used when
running the Trajexia Studio software.
Arguments N/A
Example PRINT #5, "Communication port 1"
See also N/A
Type Mathematical function
Syntax ABS(expression)
Description The ABS function returns the absolute value of an expression.
Arguments • expression
Any valid BASIC expression.
Example IF ABS(A) > 100 THEN PRINT "A is outside range -100 ... 100"
See also N/A
Type Axis command
Syntax ACC(rate)
Description Sets the acceleration and deceleration at the same time.
This command gives a quick method to set both ACCEL and DECEL.
Acceleration and deceleration rates are recommended to be set with the
ACCEL and DECEL axis parameters.
Arguments • rate
The acceleration/deceleration rate in units/s
2
. You can define the
units with the UNITS axis parameter.
Example ACC(100)
Sets ACCEL and DECEL to 100 units/s
2
.
See also ACCEL, DECEL, UNITS