DX NetOps

  • 1.  Two event procedures in one event

    Posted Oct 03, 2016 04:35 AM

    Hello,
    I am try to create a event procedure with several rules, unfortunatly only first procedure was processed by Spectrum. Any of them in separate passed without problem.

    The first:

    0xfff0017e E 50 P \
    "CreateEventWithVariables( \
    { C CURRENT_MODEL }, \
    { H 0xfff00180 }, \
    SetEventVariable( \
    GetEventVariableList(), \
    { U 21 }, \
    ReadAttributeInstance( \
    { C CURRENT_MODEL }, \
    { H 0xfff00026 }, \
    GetEventAttribute( { U 8 } ))))"

    And the second:

    0xfff0017e E 50 P \
    "CreateEventWithVariables( \
    { C CURRENT_MODEL }, \
    { H 0xfff00180 }, \
    SetEventVariable( \
    GetEventVariableList(), \
    { U 20 }, \
    ReadAttributeInstance( \
    { C CURRENT_MODEL }, \
    { H 0xfff00025 }, \
    GetEventAttribute( { U 8 } ))))"

    How to combine them in one event? What correct syntax in that case?



  • 2.  Re: Two event procedures in one event
    Best Answer

    Posted Oct 10, 2016 10:27 AM

    Give the following a try. I did not test it but it loaded without any parsing errors.

     

    0xffff017e E 50 P " \
    CreateEventWithAttributes( \
    { C CURRENT_MODEL }, \
    { H 0xfff00180 }, \
    SetEventAttribute( \
    SetEventAttribute( \
    GetEventAttributeList(), \
    { U 21 }, \
    ReadAttributeInstance( \
    { C CURRENT_MODEL }, \
    { H 0xfff00026 }, \
    GetEventAttribute( { U 8 } ))), \
    { U 20 }, \
    ReadAttributeInstance( \
    { C CURRENT_MODEL }, \
    { H 0xfff00025 }, \
    GetEventAttribute( { U 8 } ))))"