Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • 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
Joined
Aug 1, 2014
Messages
1
Location
RS
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
 
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

Back
Top