Software
®
94
SIMPL+
Example 1 - Correct Use:
DIGITAL_INPUT LIGHT_SCENES[10], MORE_LIGHT_SCENES[10};
DIGITAL_OUTPUT INTERLOCKED_LIGHT_SCENES[10];
INTEGER I;
PUSH LIGHT_SCENES
{
FOR(I=1 to 10)
INTERLOCKED_LIGHT_SCENES[I] = 0;
ProcessLogic();
INTERLOCKED_LIGHT_SCENES[GetLastModifiedArrayIndex()] =
1;
}
Example 2 - Incorrect Use:
DIGITAL_INPUT LIGHT_SCENES[10];
DIGITAL_OUTPUT INTERLOCKED_LIGHT_SCENES[10];
INTEGER I;
PUSH LIGHT_SCENES,MORE_LIGHT_SCENES
{//this PUSH statement will be called twice (once for
LIGHT_SCENES and once for MORE_LIGHT_SCENES)
FOR(I=1 to 10)
INTERLOCKED_LIGHT_SCENES[I]=0
ProcessLogic();
INTERLOCKED_LIGHT_SCENES[GetLastModifiedArrayIndex()] =
1;
}
In this example, when one input element changes, all the output elements are set to 0
and then the output level corresponding to the changed input level is set to 1. This
mimics the functionality of the Interlock symbol in SIMPL.
Version:
SIMPL+ Version 2.00
Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®
Need help?
Do you have a question about the SIMPL+ and is the answer not in the manual?