Get started
Which HAL is for you?
Need help?
Drop us a line
Get Your HAL!
FASTEVENT: Dig Input 1 On [ DI:KIT MOTION Goes ON] Then ASCII-Out: ~KITCHEN MOTION:1 [COM1] End
FASTEVENT: Dig Input 1 Off [ DI:KIT MOTION Goes OFF] Then ASCII-Out: ~KITCHEN MOTION:0 [COM1] End
EVENT: Dig Input 1 On Signaling If (DI:KIT MOTION) Goes ON Then ASCII-Out: ~KITCHEN MOTION:1 [COM1] End EVENT: Dig Input 1 Off Signaling If (DI:KIT MOTION) Goes OFF Then ASCII-Out: ~KITCHEN MOTION:0 [COM1] End
EVENT: Dig Input 1 On Signaling If (DI:KIT MOTION) Goes ON Then ASCII-Out: ~KITCHEN MOTION:1 [COM1] End
As mentioned before, analog inputs have variable ranges, such as a temperature sensor that can measure the temperature in the house from a low of 30 degrees Fahrenheit to a high of 120 degrees Fahrenheit. Using this example, a thermostat is installed in the house. This thermostat either has its own temperature sensor that connects via inputs to the JDS/HCI/PHC10D, or an external sensor is connected to the JDS/HCI/PHC10D. This temperature sensor sends out a voltage to the JDS/HCI/PHC10D, anywhere from zero volts (0V) up to five volts (5V). The JDS/HCI/PHC10D translates that voltage into a value from 0 to 256. This value is what is used within the JDS/HCI/PHC10D to determine when an event is triggered.
EVENT: Analog 1 in High If (A/D:HOUSE TEMP) > 142 Then ASCII-Out:~HOUSE TEMP:1 [COM1] End
The code for when the temperature goes under 60 degrees is:
EVENT: Analog 1 in Low If (A/D:HOUSE TEMP) < 86 Then ASCII-Out:~HOUSE TEMP:0 [COM1] End
« Go back
Powered by Help Desk Software HESK, in partnership with SysAid Technologies