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
Summary of Contents for SYSMAC CJ Series
Page 2: ......
Page 70: ...Specifications Section 2 4 58...
Page 84: ...FINS commands Section 3 4 72...
Page 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Page 370: ...Section 358...