AccurateMovements Posted January 25, 2012 Share Posted January 25, 2012 Hello, How do programatically determine if another PLC is enabled? If the syntax is not the same, kindly provide the verbiage for script PLC as well as for a C-program. I see that this was possible in Turbo (forum link), and have searched in vain today for the equivalent in Power PMAC. I expected it to be part of the Sys.xxx data structure, but have not found anything which tells the status of the PLCs. I can see the flags in the IDE, Task Manager... Thanks for your help. Link to comment Share on other sites More sharing options...
curtwilson Posted January 26, 2012 Share Posted January 26, 2012 To see whether PLC n is enabled, look at the state of status bit Plc[n].Active (0 = disabled, 1 = enabled). If it is enabled, status bit Plc[n].Running tells you whether it has been paused or not (0 = paused, 1 = not paused). A paused PLC can resume from the point where it was stopped; a disabled PLC can only restart from the top. Link to comment Share on other sites More sharing options...
Recommended Posts