Nirtec Studio Forum

General Category => Machines Simulator => Topic started by: CodeB4U on November 03, 2021, 10:14:25 PM

Title: Anyone have an SOP write up to setup OPC
Post by: CodeB4U on November 03, 2021, 10:14:25 PM
I have Studio 5000 (v32) and Studio 5000 Emulate (v32) RSlinx Classic (v4.11)

When I select IO drivers on Machine simulator, Select OPC_Driver_Enh from the dropdown, and click configure. If I type in the topic I made and select connect. This is the error that comes up. https://ibb.co/LkwkZqk

Anyone who has the same error and can help me, please. I'm extremely new to PLC.
Title: Re: Anyone have an SOP write up to setup OPC
Post by: EasyPLC_Master on November 04, 2021, 07:56:55 AM
Hi!

When you connect OPC using the RSlinx Classics do not press the connect button due Allan Bradley software has their own OPC server that is managed internally, then is not necesary to search for OPC servers as with other applications.
Also you will need in your system the OPC fundation OPC server discovery utility, you can download form here: https://drive.google.com/file/d/13HfdO8yR3MLbP4IjDIFq6XyBB-AjHmPa/view?usp=sharing (https://drive.google.com/file/d/13HfdO8yR3MLbP4IjDIFq6XyBB-AjHmPa/view?usp=sharing), once downloaded installt it in your computer.

I recommended to follow the steps explained by Shane in the following tutorials, where are very well explained step by step:

https://youtu.be/I6YfONKkAyI
https://youtu.be/j2Fnsbd4eYQ
https://youtu.be/M43f3uU48Ug

Title: Re: Anyone have an SOP write up to setup OPC
Post by: CodeB4U on November 04, 2021, 07:53:54 PM
Ok, I've watched Shanes's tutorial, specifically this one https://youtu.be/I6YfONKkAyI, I mimicked everything he did in the video. The only part that is missing is when you select "start driver and exit" nothing would happen.

So I rewatched that specific video and screen paused and dissected everything on the screen and found some things that were not the same as mine.
1) I Redownloaded the OPC foundation OPC server discover utility (I downloaded the one that came with my USB, but tried the one you linked thinking it might possibly be an updated version? ) as you stated to do.
2) I noticed from the dissection, My studio 5000 program at the bottom right hand had FactoryTalk Linx as my communication software, so I changed that to RSLinx Classic.
3) I changed the chassis type to match Shanes's (Not sure if that would even make a difference, but just to say "I did everything exactly" )
4) Added a new controller and OPC topic to stop using the original one I made.
5) Opened a new project and wrote a simple code to test output and it worked. So I downloaded the original code, and that also worked.

So which of those that I changed caused it to work...I don't know for sure.

I appreciate the help and quick response.