Sensaphone Accessories and Sensors
Sensaphone SCADA Ladder Program Examples
Main Page | Modules | Features | Specifications | Support & Downloads

Ladder Programs you can save to your hard drive and run on your SCADA 3000.

To use the following Ladder Programs, RIGHT-CLICK on the program title (for instance "Two_Hour_Timer.LDR") and save it to your hard drive. Then from within your Sensaphone unit's Ladder Program, choose "FILE OPEN" and select that program to run it.

Two_Hour_Timer.LDR - The timer function within the SCADA 3000 has a maximum value of 327 seconds. To achieve longer timer capabilities you must loop the timer around several times. This program sets a timer to 300 seconds (5 minutes) and uses a counter to loop the timer around 24 times, thereby creating a 2 hour timer. This program can be easily modified to create other time delays.

Count_Past_32767.LDR - The counter function within the SCADA 3000 has maximum value of 32,767 before it overflows. This Ladder program will keep a running count higher than the 36,767 limit. It was inspired by an application where the customer was performing flow totalization. Two counters are used to create a count totalizer with a maximum range of over 1 billion. Each time input 0 closes Counter 0 increments. Counter 0 is programmed with a preset value of 32,767. When this counter reaches the preset a second counter is incremented and the first counter is reset. Multiply and Add instructions are used to keep a running total.

Average_n_Update.LDR - This program will compute the average of an input over a 10 second period. The average is stored in a ladder variable and is updated once every 10 seconds.

Thermostat.LDR - This program will perform a simple thermostat function. Input 0 is used as a master switch to turn the thermostat on. Input 1 is a temperature signal. Two comparison statements are used to turn output 0 ON when the temperature is below 65ºF and OFF when the temperature is above 68º F. The output is forced OFF if the master switch is off.

Pump_Fail.LDR - This program monitors the level of a tank or well and starts a pump when the level drops below the setpoint. If after 5 minutes the level remains below the setpoint a second pump is started. If the second pump runs for more than 5 minutes both pumps are turned off and a Pump Failure bit is set. This bit can be used to trip an alarm dialout to notify personnel of a problem. An input for a Reset Switch is also provided to restart the pumps.