![background image](http://html1.mh-extra.com/html/omron/trajexia-cj1w-mch72/trajexia-cj1w-mch72_operation-manual_742454259.webp)
All BASIC commands
Section 4-2
248
4-2-224 SGN
/i
4-2-225 SIN
/i
4-2-226 SPEED
/i
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
radians 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
Type
Axis parameter
Syntax
SPEED
Description
The
SPEED
parameter contains the demand speed for an axis 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
.
Содержание trajexia CJ1W-MCH72
Страница 69: ...Specifications Section 2 4 58...
Страница 83: ...FINS commands Section 3 4 72...
Страница 147: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...All BASIC commands Section 4 2 266...
Страница 278: ...267 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 371: ...360 Index...
Страница 373: ...362...