Skip to content

Instantly share code, notes, and snippets.

@kuc-arc-f
Created April 28, 2015 09:53
Show Gist options
  • Save kuc-arc-f/3b9b1e94ae4d58487b05 to your computer and use it in GitHub Desktop.
Save kuc-arc-f/3b9b1e94ae4d58487b05 to your computer and use it in GitHub Desktop.
agri-typ-d-2b-relay
char buff[]="0000";
sprintf(buff, "%d", mCtOpen);
printf("valve-open=%s\n" , buff);
if(mCtOpen >= mValveGet){
outRelary_1=0;
outRelary_2=0;
outRelary_3=0;
outRelary_4=0;
mResponse3="";
mSTAT = mSTAT_CONECT;
mCtOpen=0;
}
mResponse3="";
mCtOpen ++;
wait(1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment