Jump to content
OMRON Forums

How can I programatically determine if a PLC is enabled?


AccurateMovements
 Share

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...