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.

Failed to write a code for heat pulse interval


Thian Jul 11, 2014 09:06 PM

I am using CR1000 with dual probe heat pulse. I would like to shoot a heat pulse for 8s and then turn it off. I have written the code as below, however, it does not work. The heat is still shot later on. Could someone help me to make it right?

Thank you

Scan (50,msec,1,12000)
If TimeIntoInterval(0,7200,sec) Then PortSet(4,1)
If TimeIntoInterval(8,7200,sec) Then PortSet(4,0)
If TimeIntoInterval(0,7200,sec) Then CumHeat1=0
PortSet(4,0)
Timer(1000,uSec,2)


smile Jul 12, 2014 08:09 AM

Hi

you set the scan to 50 millsec and 12000 scans so the work lasts 10 minutes but you've set the IF interval to 7200 sec (120 minutes will never be verified) You have to to fix one type of time in two parameters (sec or msec).

Smile

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