RET
Member
I understand what you're trying to do...what you have looks like it would work....here's an alternate application script where you change the alarm limits depending on the value of your motor status...If it's 8 or 18, the HiLimit alarm will be set, otherwise you set the HiLimit to some value high enough where it won't bother you.
IF M1_status==8 OR M1_status==18
THEN M1_status.HiLimit=7;
ELSE M1_status.HiLimit=300;
ENDIF;
IF M1_status==8 OR M1_status==18
THEN M1_status.HiLimit=7;
ELSE M1_status.HiLimit=300;
ENDIF;