EasyManua.ls Logo

Trio Motion Coordinator MC216 - Page 334

Trio Motion Coordinator MC216
566 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
8-144Trio BASIC Commands
Mathematical Operations and Commands
Trio Motion Technology
Example:
VR(20) = IEEE_IN(b0,b1,b2,b3)
Note:
Byte 0 is the high byte of the 32 bit floating point format.
IEEE_OUT
Type:
Mathematical Function
Syntax:
byte_n = IEEE_OUT(value, n)
Description:
The
IEEE_OUT
function returns a single byte in IEEE format extracted from the
floating point value for transmission over a bus sytem. The function will typically
be called 4 times to extract each byte in turn. MC206 and MC224 only.
Parameters:
Example:
byte0 = IEEE_OUT(MPOS AXIS(2), 0)
byte1 = IEEE_OUT(MPOS AXIS(2), 1)
byte2 = IEEE_OUT(MPOS AXIS(2), 2)
byte3 = IEEE_OUT(MPOS AXIS(2), 3)
Note:
Byte 0 is the high byte of the 32 bit IEEE floating point format.
INT
Type:
Mathematical Function
Syntax:
INT(expression)
Description:
The
INT
function returns the integer part of a number.
Parameters:
Example:
>>PRINT INT(1.79)
1.0000
>>
Note:
To round a positive number to the nearest integer value take the
INT
function of
the (number + 0.5)
value:
Any TrioBASIC floating point variable or parameter.
n:
The byte number (0 - 3) to be extracted.
expression:
Any valid Trio BASIC expression.

Table of Contents

Related product manuals