Does anyone of this forum know if exist any variable to enable, disable or modify the BG LOGIC ?
variable for BG LOGIC
-
CARLOSMEZA21 -
May 15, 2023 at 4:31 PM -
Thread is Unresolved
-
-
Lemster68
May 15, 2023 at 5:21 PM Approved the thread. -
Whats wrong with just going:
- Menu/Setup/BGLogic and start/stop from there if you are then going to modify it via the TP.
-
Last time I asked Fanuc they told me its only possible through the setup menu.
-
There are system variables to read the status and the mode of a BG Logic task. However, they are write-protected and cannot be changed in a program. Tomorrow I will have a look in my list and then post the variables.
-
$MIX_BG[1].$STATUS
= 1=> stopped
= 2 => running in normal mode
= 4 => running in high mode
$MIX_BG[1].$MODE
= 1 => Auto
= 2 => Normal
= 3 => Fast
-
$MIX_BG[1].$STATUS
= 1=> stopped
= 2 => running in normal mode
= 4 => running in high mode
$MIX_BG[1].$MODE
= 1 => Auto
= 2 => Normal
= 3 => Fast
Thanks for sharing. That are the variables I was talking about.
-
Hi CARLOSMEZA21
I know it's possible to do what you are asking for(stop/start).
But don't use !!! Use the default way (Menu-->....)
I for myself never used the programmatic way in the last years because of:
the good thing about the BG logic is that you don't have to worry about it. When it runs, it runs.
You can skip program parts within the BG logic with FLG or DO, DI.....
This is then clear for everyone!
And for testing you can run you're bg-prog inside another prog with a for loop.
So you don't habe to start/stop BG logic prog..
the vars neighbour1 shared are nice to check the state!
best regards