Is there a way to turn off/on BGLogic in a TP program?
Stopping BG Logic
-
Jct171 -
May 25, 2016 at 7:49 PM -
Thread is marked as Resolved.
-
-
This would be more of a job for conditions, not BG
-
but if in your bg program there was a line like
if r[ x ]=1 jump label 1
here is stuff you want turned off
LBL[1]
and then in your program you toggle that register that would do it for you
-
I did something like that with a flag however when I ran It I got an OS 144 error in roboguide which I did not want to have on the robot. Would a register behave differently?
-
it should work fine with either.
if you are still having problems post the code
-
BG logic does not support labels and jumps.Actually it dose, however you can only jump down in the program, not up.
-
You are right. It was my mistake.