Omron TJ2-MC64 - PROGRAMMING Programming Manual page 36

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

Advertisement

BASIC commands
3.2.17 ABS
/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
3.2.18 ACC
/i
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/deceleration rate in units/s
with the UNITS axis parameter.
Example
ACC(100)
Sets ACCEL and DECEL to 100 units/s
See also
ACCEL, DECEL, UNITS
PROGRAMMING MANUAL
2
. You can define the units
2
.
3.2.19 ACCEL
/i
Type
Axis parameter
Syntax
ACCEL = expression
Description
The ACCEL axis parameter contains the axis acceleration rate. The rate is
2
set in units/s
. 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
3.2.20 ACOS
/i
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
30

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents