Omron SYSMAC CJ Operation Manual page 186

Sysmac cj-series programmable controller motion control unit
Hide thumbs Also See for SYSMAC CJ:
Table of Contents

Advertisement

All BASIC commands
4-2-135 INITIALISE
4-2-136 INT
4-2-137 INTEGER_READ
174
/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
/i
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
/i
Type
System command
Syntax
INTEGER_READ(source
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
variable,
destination
Section 4-2
variable
low,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cj1w-mch72

Table of Contents