Expressions.expr-primary-opc-time
An OPC relative time
Format
{{ OPC { 'TimeValue' | ? | ( TimeExpr ) } }}
Remarks
Specifies an OPC relative time.
The Time value can be one of the following:
- A string literal defining the OPC relative time.
- A parameter marker.
- A string expression enclosed in parentheses.
The resulting string is interpreted as an OPC Relative time, in the format: Keyword [ [ { + | - } ] QuantityKeyword ]*.
Where Keyword is taken from the following table and Quantity is a numeric value.
Keyword | Description |
---|---|
NOW | The current time |
SECOND | Seconds |
MINUTE | Minutes |
HOUR | Hours |
DAY | Days |
WEEK | Weeks |
MONTH | Months |
YEAR | Years |
Keywords can be abbreviated.
{OPC 'NOW'}
{OPC 'HOUR + 5 MINUTES'}
{OPC (? || ' + 1H - 5M'}