CREATE_EXPRESSION

#   Creating variables with computed expressions:
#   This keyword must be specified before the start mode
#   This is almost functionally equivalent to gen_labels.NNN. However,
#   without the ability to specify a history flag and tolerance
#
#   The event/timer field may be specified as one of the standard
#   process intervals such as 40, 100, or 1000.  If the value entered
#   is not a standard timer, then a new periodic timer event will be
#   created to drive the calculation.
#   It may also be specified as a standard process intervals using 
#   the strings SLO/MED/FAS.
#   It may also be specified as an asynchronous event name.  
#   All 4 event/timer options are demonstrated in the examples below.

      
@CREATE_EXPRESSION  (up to 32 per procedure )
   #label      type     units   event/timer  expression
   myvar       REAL     rpm      1000     "if ctl_spd > idle_spd then  \
               700[rpm] else idle_spd"
   mydesc      STRING   -        SLO   " 'test' + count "
   mynewx      REAL     psi      psi_event   \
              "if A then 100[psi] else 0[psi]"
   tmr3sec     REAL     sec      3000     "tmr3sec + 3000[s]"