Expression Schedule Syntax Error
Hello,
I'm trying to write a simple expression which will trigger a job to generate a report based on an alarm set point being reached / exceeded. Tag:Value <= Tag:LL Alarm Limit.
I'm receiving the following syntax error when tring to create an expression in Scheduling Definition aspect configured as an expression schedule.
"Error in expression syntax. (position)"
I've based my syntax on the "Expression Rules and Examples" defined in 3BDS011222.
{Object ID}{Aspect ID}:propertyName
I've captured the Object and Aspect IDs from their respective details dialog.
Here is my expression:
{1600B2F6-7699-41E4-B26E-5E6E569AA381}{4C40A2D3-27A6-42D3-A194-4C01C86006BC}:OU
T <= {1600B2F6-7699-41E4-B26E-5E6E569AA381}{4C40A2D3-27A6-42D3-A194-4C01C86006BC}:LL
AL
I've also tried another method using an absolute path reference, but I still get the same error.
Object Path:Aspect Name:propertyName
Here is my expression for this method:
[DIRECT][Control Structure]$'Root/DCI OPC NET2/DCU8/70-TCAL1-717:Control Connection:OUT' <= [DIRECT][Control Structure]$'Root/DCI OPC NET2/DCU8/70-TCAL1-717:Control Connection:LLAL'
I used BDM to as a reference to ensure I had the object path correct. Here is BDMs output.
[DIRECT][Control Structure]Root.DCI OPC NET2.DCU8.70-TCAL1-717
Thanks for your help.
WDUrbat
Voted best answer
Armchair answer w/o verification: the expression needs to be embraced in single quotes and be preceeded with a dollar sign. Try:
$’OBJECT:ASPECT:PROPERTY’ <= $’OBJECT:ASPECT:PROPERTY’
Add new comment