Micromod MOD: 30MLTraining Manual User Manual

Page 178

Advertising
background image

Training Manual

Expression Block Lab

Figure 11 .3.

If Then Else

Using Expression Blocks as Recipes

Expression block inputs can be used as a recipe. Any number of local or remote inputs to
the block can be configured without using them in the expression, and for this purpose
only, HEX and ASCII inputs are allowed.

Syntax Errors

When there is a syntax error in the expression or a stack overflow during evaluation (can
only happen with a very deeply nested expression), the expression error diagnostic will be
reported, the results will not be updated and output qualities will be set bad.

Momentary Discrete Local Input

The value of a MOMENTARY DISCRETE local input is changed back to FALSE
whenever a TRUE is found so that it is detected in only one evaluation of an expression.
The momentary discrete feature allows a user to embed a ‘push-button’ in an expression.
MOMENTARY DISCRETE is a unique data type which can only be used as a local input
to an expression block. Another block pointed at this input will see a DISCRETE data
type. A local input of this type is configured by setting the local data to HIGH or LOW.

11 - 6

Advertising
This manual is related to the following products: