PUMPS4ALL Posted January 21, 2017 Share Posted January 21, 2017 I need to provide a customer with the ability to set on/off times over a 30 day period. This is to enable pumip to operate when the predicted tide is high. We have the data available each month for the times thus I need to switch on the pumps twice a day for a month or longer. The runtime licence user needs to be able to go to a separate page to set up both date and times so these can all be entered in advance. Link to comment Share on other sites More sharing options...
AzeoTech Posted January 26, 2017 Share Posted January 26, 2017 You can do all this for sure, its just a little involved. We don't have a built in "tide table" feature :). Do you want the times entered in DAQFactory or are you going to import them from a file? You can easily get the current day of the month using: strToDouble(formatDateTime("%d",systime())) Then just create two arrays, one for on time, one for off time with 31 elements each for each day of the month. They would hold the time of day to switch. Alternatively, you could use the date/time edit control and store the absolute time to change. Really there are a lot of different ways to do it depending on your needs. Link to comment Share on other sites More sharing options...
PUMPS4ALL Posted January 27, 2017 Author Share Posted January 27, 2017 Thank-you for the reply, it would perhaps be easier to load an Excel spread sheet each month ( or longer) so the client can set-up the dates and times on their pc prior to loading on a USB stick. We are using a panel mounted Lilliput 10" pc with a couple of USB ports on the front so loading would be easy. I'm new to SCADA programming so would be keen to get someone to assist with this. Stuart Link to comment Share on other sites More sharing options...
AzeoTech Posted January 31, 2017 Share Posted January 31, 2017 We can do this for you through our consulting services. Please email us directly at info@ along with the current .ctl document. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.