EasyManua.ls Logo

Trio Motion Coordinator MC216 - Global; Ieee_In

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...
Motion Coordinator Technical Reference Manual
Trio BASIC Commands 8-143
Mathematical Operations and Commands
GLOBAL
Type:
System Command
Syntax:
GLOBAL “name”, vr_number
Description:
Declares the name as a reference to one of the global VR variables. The name can
then be used both within the program containing the
GLOBAL
definition and all
other programs in the Motion Coordinator project. MC206 and MC224 only.
Parameters:
Example:
GLOBAL “srew_pitch”,12
GLOBAL “ratio1”,534
ratio1 = 3.56
screw_pitch = 23.0
PRINT screw_pitch, ratio1
Note:
The program containing the
GLOBAL
definition must be run before the name is used
in other programs. For fast startup the program should also be the ONLY process
running at power-up.
In programs that use the defined
GLOBAL
,
name
has the same meaning as
VR(vr_number)
. Do not use the syntax: VR(name).
A maximum of 128
GLOBALs
can be declared.
IEEE_IN
Type:
Mathematical Function
Syntax:
IEEE_IN(byte0,byte1,byte2,byte3)
Description:
The
IEEE_IN
function returns the floating point number represented by 4 bytes
which typically have been received over a communications link such as Modbus.
MC206 and MC224 only.
Parameters:
name:
Any user-defined name containing lower case alpha, numeri-
cal or underscore (_) characters.
vr_number
The number of the VR to be associated with name.
byte0 - 3:
Any combination of 8 bit values that represents a valid IEEE
floating point number.

Table of Contents

Related product manuals