BASIC commands
PROGRAMMING MANUAL
139
Revi
si
on 3.0
3.2.244 SGN
/i
3.2.245 SIN
/i
3.2.246 SLOT
/i
3.2.247 SPEED
/i
5
Host Link Slave protocol
6
Host Link Master protocol
Type
Mathematical function
Syntax
SGN(expression)
Description
The
SGN
function returns the sign of a number. It returns value 1 for positive
values (including 0) and value -1 for negative values.
Arguments
•
expression
Any valid BASIC expression.
Example
>> PRINT SGN(-1.2)
-1.0000
See also
N/A
Type
Mathematical function
Syntax
SIN(expression)
Description
The
SIN
function returns the sine of the expression. Input values are in radi-
ans and may have any value. The result value will be in the range from -1 to
1.
Arguments
•
expression
Any valid BASIC expression.
Example
>> PRINT SIN(PI/2)
1.0000
See also
N/A
Mode
Description
Type
Slot modifier
Syntax
SLOT
Description
Modifier specifies the unit number for a parameter such as
COMMSTYPE
.
Trajexia unit numbers are 0 to 6.
Arguments
N/A
Example
No example.
See also
N/A
Type
Axis parameter
Syntax
SPEED
Description
The
SPEED
parameter contains the demand speed in units/s. It can have any
positive value (including 0). The demand speed is the maximum speed for the
speed profiled motion commands.
Arguments
N/A
Example
SPEED = 1000
PRINT "Set speed = ";SPEED
See also
ACCEL
,
AXIS
,
DATUM
,
DECEL
,
FORWARD
,
MOVE
,
MOVEABS
,
MOVECIRC
,
MOVEMODIFY
,
REVERSE
,
UNITS
.
I52E-EN-03.book Seite 139 Freitag, 29. Juni 2007 11:55 11