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)
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