Control latch macros, Control latch macros -48 – Clear-Com Logic-Maestro User Manual
Page 114
Clear-Com Communication Systems
Eclipse Logic Maestro Instruction Manual
2 - 4 8
CONTROL LATCH MACROS
These macros are accessed by expanding the ‘Clearcom’ > ‘ScriptLibrary’ >
‘ControlLatch’ entry in the Available Modules menu.
Macro
Description
CreateLatch() [ControlLatch]
Creates and returns a control latch e.g.
ControlLatch AlwaysOff = ControlLatch.Create-
Latch()
Equals(Object) [bool]
Tests the equivalence of two objects and returns True or
False. e.g.
bool
GetHashCode() [int]
Returns the hash code of an object previously created
by a control as an integer. e.g.
int
GetType() [Type]
Returns the type of an object previously created by a
control macro. e.g.
Type
ResetsWhenOff(ControlLatch)
[void]
This control latch function will reset a latch when a con-
trol input is off. The example below shows sequence to
get a control reference, create a latch and set the latch
to reset when the control input is off.
ControlMacro INPUT1 = ControlMacro.GetCon-
trol("INB", "");
ControlLatch LATCH1 = ControlLatch.CreateLatch();
LATCH1.ResetsWhenOff(INPUT1);
ResetsWhenOn(ControlLatch)
[void]
This control latch function will reset a latch when a con-
trol input is on. The example below shows sequence to
get a control reference, create a latch and set the latch
to reset when the control input is on.
ControlMacro INPUT1 = ControlMacro.GetCon-
trol("INB", "");
ControlLatch LATCH1 = ControlLatch.CreateLatch();
LATCH1.ResetsWhenOn(INPUT1);
SetsWhenOff(ControlLatch)
[void]
This control latch function will set a latch when a control
input is off. The example below shows sequence to get
a control reference, create a latch and assign the latch
to be set when the control input is off.
ControlMacro INPUT1 = ControlMacro.GetCon-
trol("INB", "");
ControlLatch LATCH1 = ControlLatch.CreateLatch();
LATCH1.SetsWhenOff(INPUT1);