BASIC commands
PROGRAMMING MANUAL 45
Revision 3.0
3.2.17 ABS
/i
3.2.18 ACC
/i
3.2.19 ACCEL
/i
3.2.20 ACOS
/i
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. Accel-
eration and deceleration rates are recommended to be set with the ACCEL
and DECEL axis parameters.
Arguments • rate
The acceleration 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
Type Axis parameter
Syntax ACCEL = expression
Description The ACCEL axis parameter contains the axis acceleration rate. The rate is
set in units/s
2
. The parameter can have any positive value including zero.
Arguments N/A
Example BASE(0)
ACCEL = 100 ' Set acceleration rate
PRINT "Acceleration rate: ";ACCEL;" mm/s/s"
ACCEL AXIS(2) = 100 ' Sets acceleration rate for axis (2)
See also ACCEL, DECEL, UNITS
Type Mathematical function
Syntax ACOS(expression)
Description The ACOS function returns the arc-cosine of the expression. The expression
value must be between -1 and 1. The result in radians is between 0 and PI.
Input values outside the range will return 0.
Arguments • expression
Any valid BASIC expression.
Example >> PRINT ACOS(-1)
3.1416
See also N/A
I52E-EN-03.book Seite 45 Freitag, 29. Juni 2007 11:55 11