Rudy,
Please see attached. Almost there, but I can't get the email to fire other than when the job first starts up. On start up the criteria of 4 or 8 should not be met. Also when the email is sent out, it doesn't reset the counter (8CV)
Schedule A – Read Front Panel Switches and store in 9CV to determine Product Type
Schedule B – Test Product Type and set terminal count (4 or 8) is TRUE fire schedule D or E
Schedule C – Increment variable “8CV” every hour (25seconds for debug)
Schedule D - Send Product 1 email and reset “hour counter” (I’d like to halt all schedules here)
Schedule E - Send Product 2 email and reset “hour counter” (I’d like to halt all schedules here)
BEGIN"config"
RS1S
RA"ReadSwitches"("b:",ALARMS:OV:100KB:W60,DATA:OV:1MB)5S
LOGONA
1DN("ReadANibble",=9CV,LM,15)
RB"TestProductType"("b:",ALARMS:OV:100KB:W60,DATA:OV:1MB)5S
LOGONB
' User defined
IF(3DS==1)AND IF(8CV==4){XD}
IF(3DS==0)AND IF(8CV==8){XE}
RC"OneHourTimer"("b:",ALARMS:OV:100KB:W60,DATA:OV:1MB)25S
LOGONC
' User defined
8CV=8CV+1
RD"05TestComplete"("b:",ALARMS:OV:100KB:W60,DATA:OV:1MB)5S
LOGOND
ALARM1((CALC("Send05Email~",LM)=1)>0/1S)"Event triggered on Logger ! at @ on #, ?N value is ?V ?U."[mailto:fiorio@naii.com?priority=high&interface=ETHERNET&subject="05 Test Complete"]{8CV=0;}
RE"03TestComplete"("b:",ALARMS:OV:100KB:W60,DATA:OV:1MB)5S
LOGONE
ALARM1((CALC("Send03Email~",LM)=1)>0/1S)"Event triggered on Logger ! at @ on #, ?N value is ?V ?U."[mailto:fiorio@naii.com?priority=high&interface=ETHERNET&subject="03 Test Complete"]{8CV=0;}
END
Thanks in advance for your help.
Rudy,
Please see attached. Almost there, but I can't get the email to fire other than when the job first starts up. On start up the criteria of 4 or 8 should not be met. Also when the email is sent out, it doesn't reset the counter (8CV)
Schedule A – Read Front Panel Switches and store in 9CV to determine Product Type
Schedule B – Test Product Type and set terminal count (4 or 8) is TRUE fire schedule D or E
Schedule C – Increment variable “8CV” every hour (25seconds for debug)
Schedule D - Send Product 1 email and reset “hour counter” (I’d like to halt all schedules here)
Schedule E - Send Product 2 email and reset “hour counter” (I’d like to halt all schedules here)
BEGIN"config"
RS1S
RA"ReadSwitches"("b:",ALARMS:OV:100KB:W60,DATA:OV:1MB)5S
LOGONA
1DN("ReadANibble",=9CV,LM,15)
RB"TestProductType"("b:",ALARMS:OV:100KB:W60,DATA:OV:1MB)5S
LOGONB
' User defined
IF(3DS==1)AND IF(8CV==4){XD}
IF(3DS==0)AND IF(8CV==8){XE}
RC"OneHourTimer"("b:",ALARMS:OV:100KB:W60,DATA:OV:1MB)25S
LOGONC
' User defined
8CV=8CV+1
RD"05TestComplete"("b:",ALARMS:OV:100KB:W60,DATA:OV:1MB)5S
LOGOND
ALARM1((CALC("Send05Email~",LM)=1)>0/1S)"Event triggered on Logger ! at @ on #, ?N value is ?V ?U."[mailto:fiorio@naii.com?priority=high&interface=ETHERNET&subject="05 Test Complete"]{8CV=0;}
RE"03TestComplete"("b:",ALARMS:OV:100KB:W60,DATA:OV:1MB)5S
LOGONE
ALARM1((CALC("Send03Email~",LM)=1)>0/1S)"Event triggered on Logger ! at @ on #, ?N value is ?V ?U."[mailto:fiorio@naii.com?priority=high&interface=ETHERNET&subject="03 Test Complete"]{8CV=0;}
END
Thanks in advance for your help.