N o t e – ETC Unison Paradigm Central Control Server BACnet Interface Reference Guide User Manual
Page 35
Timed Event Handling
31
c: Using the returned property value, perform a "Read Property" for the object
type: OBJECT_ACTION_SCRIPT_TEMPLATE, this time using the property:
"PROP_NO_OF_ARGUMENT_BLOCKS". The returned property value is an
integer with range 0-4 and specifies the number of argument values that will be
provided below.
d: Next, perform a BACnet "Write Property" command on Instance Zero of the
Timed Event object, using the property type:
"PROP_START_ACTION_NO_OF_ARG_VALUES". This property value
should be set to the integer number retrieved above.
e: Using the AST instance number returned above, perform a "Read Property" for
the object type: OBJECT_ACTION_SCRIPT_TEMPLATE, using the BACnet
standard property: "PROP_PRESENT_VALUE" (decimal constant 85). The
returned property value is the target type that will be used below.
f:
Next, perform a BACnet "Write Property" command on Instance Zero of the
Timed Event object, using the property type:
"PROP_START_ACTION_SELECTED_OBJECT_TYPE". This property value
should be set to the integer number retrieved in the previous sub-step.
g: Perform a BACnet "Write Property" command on Instance Zero of the Timed
Event object, using the property type:
"PROP_START_ACTION_SELECTED_OBJECT_NAME". This property
value should be set to the name (or instance number) of the appropriate
selected target. This name or instance number may refer to an existing wall,
preset, macro, channel, group, override or sequence.
h: Last, if needed (i.e. if there is a non-zero number of argument values) use a
programmed loop and write as many argument values as needed, using a
BACnet "Write Property" for the property type:
"PROP_START_ACTION_ARGUMENT_VALUES". The property value will be
set to the indexed argument value, while the index will range from 1 to a
maximum of 4.
Step 8:
Write the Timed Event "End Action".
a: Perform a BACnet "Write Property" command on Instance Zero of the Timed
Event object, using the property type: "PROP_END_ACTION_AST_NAME"
(AST = Action Script Template). This property is a character string data-type.
b: Next, perform a "Read Property" for the object type:
OBJECT_ACTION_SCRIPT_TEMPLATE, using the Property:
"PROP_LAST_AST_SELECTED_INSTANCE". Again, this property allows
lightweight reference to the last written to AST, which is automatically persisted
in the P-CCS interface.
•
Using the returned property value, perform a "Read Property" for the object
type: OBJECT_ACTION_SCRIPT_TEMPLATE, this time using the property:
"PROP_NO_OF_ARGUMENT_BLOCKS". The returned property value is an
integer with range 0-4 and specifies the number of argument values that will
be provided below.
c: Perform a BACnet "Write Property" command on Instance Zero of the Timed
Event object, using the property type:
"PROP_END_ACTION_NO_OF_ARG_VALUES". This property value should
be set to the integer number retrieved above.
N o t e :
You may send either an existing Action Script Template Instance No., e.g. '321',
or an existing Action Script Template Instance Name. If an End Action is not
required, the user may provide the string: "NONE" for this property's value.
If no event duration is required (End Time was set equal to the Start Time) then
the user must provide the string: "NONE" for this property's value, as an End
Action cannot be specified. Skip to the Step 9.