Real data type, Expressions, Expressions overview – Delta RMC151 User Manual
Page 341: E expressions, Real, Expression, Dd expressions, E expressions overview, N expressions
5 Programming
For details on creating a DWORD variable, see the Variables topic.
5.12.5. REAL Data Type
A REAL number in the RMC is a 32-bit floating point number, conforming to the IEEE-754
Floating-Point specification. For details on calculations limits due to the nature of REALs,
see the Limitations of 32-bit Numbers topic.
For details on creating a REAL variable, see the Variables topic.
5.13. Expressions
5.13.1. Expressions Overview
Expressions are used to assign values to tags or variable, and perform mathematical
calculations, both simple and complex. Expressions provide for efficient calculations and
compact User Programs. RMCTools provides an Expression Editor, which includes the
Expression Browser, to help you create expressions. Expressions can be used in the following
places:
•
Expression Command
Expressions are used in the Expression (113) command to assign values to variables
or other registers.
•
Link Conditions
Expressions are used in the Wait For and Conditional Jump Link Types to specify what
conditions should be fulfilled before jumping the next step.
Expressions are used in the Delay Link Type to specify the time delay before jumping
the next step.
•
Program Triggers
Expressions define the trigger conditions.
•
Command Parameters in User Programs
Expressions can be entered in command parameters in user programs, although the
Expression Browser cannot be used for this. The expressions must evaluate to the
data type required by the parameter, typically a REAL.
•
Commanded Axes in User Programs
Expressions can be entered to programmatically select the commanded axes for
commands in user programs. See Using Expressions for Commanded Axes for details.
How to Create Expressions
See the Condition Expressions topic for creating expressions in the Program Triggers and
in link types.
See the Assignment Expressions topic for creating expressions in user programs with the
Expression (113) command.
See the Value Expressions topic for details on creating expressions in the Delay Link Type
and in command parameters.
Examples
deltamotion.com
321