![background image](http://html1.mh-extra.com/html/omron/r88a-mcw151-drt-e/r88a-mcw151-drt-e_operation-manual_742243201.webp)
186
Command, function and parameter description
Section 6-3
Arguments:
expression
Any valid BASIC expression.
Example:
>> PRINT SGN(-1.2)
-1.0000
6-3-178 SIN
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
6-3-179 SPEED
Type:
Axis Parameter
Description:
The SPEED parameter contains the demand speed in units/s. It can have any
positive value (including zero). The demand speed is the maximum speed for
the speed profiled motion commands.
See also:
ACCEL, AXIS, DATUM, DECEL, FORWARD, MOVE, MOVEABS,
MOVECIRC, MOVEMODIFY, REVERSE, UNITS
Example:
SPEED = 1000
PRINT "Set speed = ";SPEED
6-3-180 SQR
Type:
Mathematical Function
Syntax:
SQR(
expression
)
Description:
The SQR function returns the square root of the expression. The expression
must have positive (including zero) value.
Arguments:
expression
Any valid BASIC expression.
Example:
>> PRINT SQR(4)
2.0000
6-3-181 SRAMP
Type:
Axis Parameter
Description:
The SRAMP parameter contains the S-curve factor. The S-curve factor con-
trols the amount of rounding applied to the trapezoidal profiles. A value of 0
sets no rounding. A value of 10 sets maximum rounding. The default value of
the parameter is 0.
SRAMP is applied to the FORWARD, MOVE, MOVEABS, MOVECIRC and
REVERSE commands. Note that using S-curves increases the time required
for the movement to complete.
Precautions:
The S-curve factor must not be changed while a move is in progress.
See also:
AXIS
6-3-182 STEPLINE
Type:
Program Command