Expression

The
EXPRESSION
execute obtains the transition data from the server.
The format and return for this execute includes:
Execute Format
A
FactoryTalk Batch
Server supports an execute with this format:
[EXPRESSION(
Item,UserID,TransitionID
)]
where:
Item
Item name as specified by the client.
UserID
User identification associated with this event.
TransitionID
Element number for the transition.
Action
A successful EXPRESSION execute places the transition data into the response item.
Return Format
The item populates with this data:
<ExpData>
is
<ExpList>
| FAIL:
<message>
| FAILED
<ExpList>
is
<Expression>
\crlf |
<Expression>
\crlf
<ExpList>
<Expression>
is
<Level>
\t
<EvalEnum>
\t
<LhsExp>
\t
<Op1>
\t
<RhsExp>
\t
<LhsVal>
\t
<RhsVal>
<ExpList>
List of transition expressions for a specified level.
<failure_
message>
Explanation of why the EXPRESSION command failed to process.
where <Expression> is:
<Level>
Expressions can contain sub-expressions. The expression treated as a whole is Level 0. Each sub-expression of Level 0 is marked as being Level 1. These sub-expressions are the left hand expression and the right hand expressions (described below) of Level 0. The left and right hand expressions are broken down, level by level, until simple terms are left and the values of those terms are displayed.
<EvalEnum>
Evaluation enumeration (for coloring expressions)
0 = FALSE - red
1 = TRUE - green
2 = INFO - black
<LhsExp>
Left hand side expression.
<Op1>
Operator between left and right.
<RhsExp>
Right hand side expression.
<LhsVal>
Left hand side value.
<RhsVal>
Right hand side value.
The following table shows an example of the return on this execute.
Example:
An execute string consisting of:
[EXPRESSION(PC2Exps,UserID,641)]
Could place this data in the item PC2Exps for the client:
0 \t 0 \t MCLS_FRENCHVANILLA_UP:1.STATE \t = \t COMPLETE \t RUNNING \t COMPLETE \crlf
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal