![background image](http://html1.mh-extra.com/html/omron/sysmac-cj-series/sysmac-cj-series_operation-manual_743585186.webp)
All BASIC commands
Section 4-2
174
4-2-135 INITIALISE
/i
4-2-136 INT
/i
4-2-137 INTEGER_READ
/i
Type
System command
Syntax
INITIALISE
Description
Sets all axes, system and process parameters to their default values.
The parameters are also reset each time the controller is powered up,
or when an
EX
(software reset) command is performed. In Trajexia Stu-
dio the menu
Reset Device
on the
Online
menu performs the equiva-
lent of an
EX
command.
Arguments
N/A
Example
No example.
See also
•
EX
Type
Mathematical function
Syntax
INT(expression)
Description
The
INT
function returns the integer part of the expression.
Note: To round a positive number to the nearest integer value take the
INT
function of the value added by 0.5. Similarly, to round for a negative
value subtract 0.5 to the value before applying
INT
.
Arguments
•
expression
Any valid BASIC expression.
Example
>> PRINT INT(1.79)
1.0000
See also
N/A
Type
System command
Syntax
INTEGER_READ(source variable, destination variable low,
destination variable high)
Description
The
INTEGER_READ
command splits a 32 bit variable in 2 16 bit val-
ues and copies these values to 2 other variables. The source and desti-
nation variables can be any valid system, named, TABLE memory or VR
variable.
Arguments
•
source variable
Variable containing the 32 bit value to read.
•
destination variable low
Variable to copy the lower 16 bits of the source variable to.
•
destination variable high
Variable to copy the upper 16 bits of the source variable to.
Example
>> INTEGER_READ(MOTION_ERROR,VR(100),VR(101))
This example will copy the first 16 bits of MOTION_ERROR to VR(100)
and the rest to VR(101).
See also
N/A
Содержание SYSMAC CJ Series
Страница 2: ......
Страница 70: ...Specifications Section 2 4 58...
Страница 84: ...FINS commands Section 3 4 72...
Страница 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...Section 265 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 370: ...Section 358...