E-Stop
Frank123
Posts: 4
Hello,
I am new to this forum and I have a question in reference to the Basic 1 or 2. What I need to do is if in2 =0 then it should run the scan program but if in 3 = 0 then I want the scan program to stop and then perform the dial progam. Below is the code but when input 3 is detected the scan progam continues to run.
Check:
If in 2 = 0 then scan
If in 3= 0 then Dial
goto check
Scan:
High 4
pause 100
low 4
pause 100
high 5
pause 100
low 5
goto Check
Dial:
low 4
low5
pause 10
High 6
pause 100
low 6
goto Check.
I am new to this forum and I have a question in reference to the Basic 1 or 2. What I need to do is if in2 =0 then it should run the scan program but if in 3 = 0 then I want the scan program to stop and then perform the dial progam. Below is the code but when input 3 is detected the scan progam continues to run.
Check:
If in 2 = 0 then scan
If in 3= 0 then Dial
goto check
Scan:
High 4
pause 100
low 4
pause 100
high 5
pause 100
low 5
goto Check
Dial:
low 4
low5
pause 10
High 6
pause 100
low 6
goto Check.
Comments
Could you, please, post *all* the code. This appears to be just a snippet as I see no "scan" label.
Thanks.