void _CYCLIC ProgramCyclic(void)
{
if(B)
{
i;
TON_10ms(&T1);
switch (i)
{
case 0:
T1.IN=1;
T1.PT=100;//delay 1s
if(T1.Q)
{
T1.IN=0;
i+=1;
}
break;
case 1:
T1.IN=1;
T1.PT=100;//delay 1s
if(T1.Q)
{
T1.IN=0;
i+=1;
}
break;
case 2:
T1.IN=1;
T1.PT=100;//delay 1s
if(T1.Q)
{
T1.IN=0;
i+=1;
}
break;
case 3:
T1.IN=1;
T1.PT=100;//delay 1s
if(T1.Q)
{
T1.IN=0;
i+=1;
}
break;
case 4:
T1.IN=1;
T1.PT=100;//delay 1s
if(T1.Q)
{
T1.IN=0;
i+=1;
}
break;
case 5:
T1.IN=1;
T1.PT=100;//delay 1s
if(T1.Q)