Program Logic Timer Switch
The Program Logic Timer Switch Plug-in provides a resettable timed switch that also has Armed/Bypass status.
The plugin is licensed.
You get 30 days free unlimited access from time of your first install.
To reset the date ... delete all PLC, PLEG, and PLTS plugins and re-install the plugins.
After 30 days, unlicensed users are allowed a total of 3 PLEG and/or PLTS devices each with a max of 5 inputs and 5 conditions.
You can obtain a license that will allow you to create 4 PLEG/PLTS devices. (You can obtain as many licenses as you need).
A license is $5.50+tax
The feature set includes:
- Two User defined delay intervals.
- The reset (Initial) state can be either On or Off
- Switch Mode (See Operation for details.)
- Delayed Toggle with Explicit Reset
- Immediate Toggle with Delayed Reset
- Let me know if there is another interesting switch types to add, I just need to add a new transition table.
- For each of the buttons on the Program Logic Timer Switch device which include Reset, Trigger, Restart, Arm, Bypass, On, and Off, there is an associated condition expression. This condition expression, when evaluated to be true, will initiate the action for the associated button.
Condition expressions allow the combination of input triggers into more complex expressions. These include:
See Syntax for details.
- Grouping Expressions using parentheses
- Logical Expressions
- Counter Expressions
- Sequence Expressions
- Multiple Trigger Expressions
- Additionally we have a Trigger2 and Restart2 condition that behave the same as the Trigger and Restart condition, but have a separate interval associated with them. This provides support for dual timing modes.
- Input Trigger Editor
Any Trigger that you can add to a scene, you can add as an input to this device.
An interactive editor, similar to the scene trigger editor, is provided.
You name the triggers; these names are used in the condition expressions.
If you rename your triggers it will make the appropriate changes in the condition expressions for you.
- Output Triggers to control your other scenes.
The following are available for triggers:
The States are:
- The ProgramLogic Device has turned on or off
- The ProgramLogic Device has turned on or off with specified arm/bypass status 
- The ProgramLogic Device has changed state
- The ProgramLogic Device has changed state with specified arm/bypass status 
Examples: 1:30:05 or 90:05 or 5405 are all equivalent.
- Action Editor
This is a subset of the Scene Editor (The Devices, LUA, and Advanced Tab). It allows you to associate LUA and/or a set of device commands with a Condition Expression.
The actions are fired even if the corresponding button on the control panel, associated with a condition variable is selected.
The device must be armed for Actions to be executed.
- All specified intervals (Device Delay and Sequence Intervals) can be specified by the user as any of hh:mm:ss, or mm:ss, or seconds.
This device has the behavior of a timed switch.
The default, non-triggered, state can be defined by the user as either On or Off.
There are two switch modes available.
Each has its own state diagram. The state diagram shows the allowed transitions. All other actions are ignored (i.e. Clicking the reset button while in the default state).
The actions can be initiated directly by clicking on the buttons on the appropriate Program Logic Timer Switch device object. They can also be initiated from an associated user specified Condition expression. See Syntax for details of these expressions.
The expressions reference named triggers that you are interested in. These are specified in the Triggers tab for the Program Logic Timer Switch device.
Each trigger name is constrained to be unique (Only in the context of the specific set of Triggers for this device).
When any of the named triggers occur, it causes the Program Logic Timer Switch device to evaluate all of the condition expressions. These are evaluated in the following order:
(Arm, Bypass, Reset, Trigger, Restart, On, Off). If the specific named trigger is referenced in a condition expression and the condition expression is true ... than the associated button action is initiated.
Delayed Toggle with Explicit Reset
The On/Off buttons either perform as the reset or toggle actions depending on the default state. If the default state is Off then the reset action can also be performed by the Off button and the On button acts as the toggle action. These roles are reversed if the default state is On
After initial trigger, while the timer is active; the switch status is still the same as the default state. After the specified elapsed time the switch status transitions to the toggled state, which is opposite of the default state.
Immediate Toggle with Delayed Reset
The On/Off buttons either perform as the reset or trigger actions depending on the default state. If the default state is Off then the reset action can also be performed by the Off button and the On button acts as the trigger action. These roles are reversed if the default state is On
Condition Expression Syntax
This is defined by the Program Logic Core
Supported expressions include:
- Grouping with ()
- Boolean Expressions AND, OR, NOT
- Count of Active Triggers
- Sequences of Trigger Expressions
- Multiple Trigger Expressions
If you have an interesting usage you would like to share it please send me a screen snap of your settings page, triggers page, and a short description of what it does.
I will enumerate and link them here.
-  UI5 has a bug with events with more than 1 condition variables in scenes. Two of my events have 2 condition variables. If you want to use these, email me, I can tell you how to patch your UI5 to work. I have provided fixes to MCV. I hope they will integrate these soon. The priority of this fix is reduced since you can work around it by running a scene from the Actions Tab.
Contact me at Schaefer@RTS-Services.com
||© Copyright 2014, RTS Services Inc. All Rights Reserved
1675 Hickory Creek Rd
Marble Falls, Tx 78654