Table of Contents |
---|
Date, Time, DayToNumber,DayToString and SiteDateTime Blocks
...
All the date & time blocks accept only one parameter, but some have an extra option hidden inside them. The user can reach that by clicking on the block.
...
Using the Date/Time Block
(Click to enlarge)
Once you have After the user has created or opened a new or existing program, you will see a "+" button at the very top right of the B-Line app in the " - Routines - " section.
Click on this "+" button to get a drop down list of possible routines that can be created. Select "Alarm Routine" to create an alarm routine.
When an Alarm Routine is added, the Alarm Block will automatically be created in its own section below.
How to Use Alarm Block
Once you've made an Alarm Routine, and filled out the Alarm Block properties(Shown Above), a boolean point will automatically be created and placed in your available variables panel.
If your variable panel isn't opened, click on the "VARS" option found in the top main menu. (highlighted in blue in the picture below)
The name of the point will be taken from what is typed into the alarm block's "Alarm Name" slot
(Click to enlarge)
When that Boolean point's value is set to "On" or "True", an alarm will be thrown against everything that matches up with the tags that the bLine program was set to target.
When the Boolean is set to "Off" or "False" no alarm will be thrown until the point reads on/true again.
Example Alarm Setup
The above screenshot represents a very basic setup on how to use and apply the alarm block to get an alarm result.
So based off of the setup shown in the above screenshot, we have it set up so that if the value of the roomTemp point is ">=" (greater than or equal to) "85" for at least 5 Seconds , then the "overHeatedZone" alarm point gets set to "On" which will throw an alarm.
We also added an "else do.." block so that if the value is not greater than or equal to "85" for at least 1 minute, then the "overHeatedZone" alarm point will be set to off
in the Runcycle, the date/time block can be used inside different other blocks like: SET, IF, RETURN....
Let say we have a SET block already and the user wants to get the current data and time for the site associated with the target Ref of the bline program. Once the SET block has been added, the user will just type siteDateTime and the block will appear as an option.
(Click to enlarge)
Once the block has been selected it will look like this:
Example Date/Time Setup
The above screenshot represents several examples of the date/time block usage.
- a tag will get the date and time value from the site associated with the target Ref of the program
- another tag will get only the time value from a date & time tag(the one create at the first step)
- then using the dateToString block the value only for the weekday and month are picked from the same time
- finally using the dateToNumber block there are several numbers collected from the same tag for
Click on the link below to watch a video demonstration on how the above example was set up!
Date &Time(DayToNumber, DayToString, SiteDateTime) blocks
How to set up the Alarm email notification
The above screenshot represents a very basic setup on how to use and apply the email block to get an alarm result.
So based off of the setup shown in the above screenshot, we have it set up so that if the value of the EF point is "TRUE" , then the "alarm" point will be set to "On" which will throw an alarm and also an email will be send out with the set subject and message.
Warning |
---|
The EMAIL BLOCK needs to be used only in ON EVENT routines!!! Using the above set up for the email, the user will only receive a notification when the alarm is triggered and not constantly thru the hole alarm period. Also in order for this set up to work the user need to set the email settings before, and enable the 2 pod extensions in Settings App. |