Delay between two PLCBUS orders
Posted: Thu Dec 16, 2010 9:48 pm
Hi,
I'm using Domotiga (I recently switched from MisterHouse to Domotiga), Oregon probes and PLCBUS material to pilot my electrical heating.
Switching on and off the heaters is based on conditions (temperature in the room, time of the day, day of the week ...) and is triggered every 5 min with a crontab.
My code seems to be running smoothly when piloting a single heater but I'm having troubles when two are running ... I mean the trigger remains the same and two orders can be sent to two switches almost simultaneously (I doubt the software takes more than a few ms to calculate conditions ...). The result is that the soft beleives the switch is off while it is in fact on (and vice versa).
With your experience, is that a PLCBUS issue (in which case I will try offsetting the triggers or ask RDNZL to add a delay loop in the soft (if possible)) or a software issue.
What would be the minimum delay between two orders ? 1 second ?
My PLCBUS equipment is : PLC1141 ; 2x modules DIN 4 loads PLC2268HX2 ; 2x micromodules PLC2267
I'm using Domotiga (I recently switched from MisterHouse to Domotiga), Oregon probes and PLCBUS material to pilot my electrical heating.
Switching on and off the heaters is based on conditions (temperature in the room, time of the day, day of the week ...) and is triggered every 5 min with a crontab.
My code seems to be running smoothly when piloting a single heater but I'm having troubles when two are running ... I mean the trigger remains the same and two orders can be sent to two switches almost simultaneously (I doubt the software takes more than a few ms to calculate conditions ...). The result is that the soft beleives the switch is off while it is in fact on (and vice versa).
With your experience, is that a PLCBUS issue (in which case I will try offsetting the triggers or ask RDNZL to add a delay loop in the soft (if possible)) or a software issue.
What would be the minimum delay between two orders ? 1 second ?
My PLCBUS equipment is : PLC1141 ; 2x modules DIN 4 loads PLC2268HX2 ; 2x micromodules PLC2267