Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control via OPC

Status
Not open for further replies.

fantomizer

Electrical
Aug 1, 2014
1
Hi,

I want to remotely control program cyclic execution over OPC. My goal is next: If a PLC variable which is controled via OPC change to defined value program must "stop". B&R PLC is used. How to do that?

Best regards,
Stevan
 
Replies continue below

Recommended for you

Step 1: In the PLC, if the variable changes to the defined value turn on a bit/flag
Step 2: When flag is set turn off the bits of code you don't want to run

In some PLC's you can deactivate whole programs at a time by setting a bit. Sometimes you can change the PLC state by setting a controller bit. If you can't do any of this, I would suggest maybe doing something like turning all outputs off when the flag is set (and any other parts of the program that you don't want to run). Not the most elegant solution though, could be quite a lot of programming.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor