Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Multiple Scan Intervals, Recording Data and Triggering Relay


cmroczek Jun 27, 2019 06:24 PM

I have a CR1000 program that 1-minute scan interval and calls the data table hourly. I have a relay that will need to be triggered once a day to trigger an autosampler to take a water sample. This sampler needs to only take a sample if the water level is high enough (measured by a CS475). If the water level is not high enough, it should check every 15 minutes. Once flow is high enough, it needs to trigger the autosampler 30 minutes later. 

I am unsure as to how to trigger the relay once a day at a set time (10am for example) and the specifics of sampling if the water level is not high enough is very unclear to me. I would greatly appreciate some help with this.

I was planning on triggering the relay in the following way, from this FAQ:  

In this first example, the program closes the relay at the top of a 60 second interval and then opens the relay after ten seconds:

BeginProg

            Scan (1,Sec,0,0)

                        If IfTime (0,60,Sec) Then

                                    PortSet(1,1)

                        ElseIf IfTime (10,60,Sec) Then

                                    PortSet(1,0)

                        EndIf

            NextScan

EndProg


JDavis Jun 27, 2019 09:11 PM

For a specific time of day, you can use TimeIntoInterval(10,24,hr).

You should use a timer for the delay. Start it when you have enough water. When the timer is >= 30 minutes, trigger the sample and do a Stop and Reset on the timer.


jra Jun 27, 2019 09:52 PM
Log in or register to post/reply in the forum.