Nirtec Studio Forum

General Category => Machines Simulator => Topic started by: raguel on April 25, 2021, 04:30:21 PM

Title: I have a problem to connect Mx opc server 6.05 with machines simulator3
Post by: raguel on April 25, 2021, 04:30:21 PM
Hello,

I have a problem to connect the mx opc server 6.05 with machines simulator.

I tried samething as in the video.
https://www.youtube.com/watch?v=d1F4y92g6AQ (https://www.youtube.com/watch?v=d1F4y92g6AQ)

but, I can not connect machines simulator3, and I see this error "Null Reference Exception : object reference not set to an instance of an object"

I used Machines Simulator3 Version 3.7

Please, help me  :'(
Title: Re: I have a problem to connect Mx opc server 6.05 with machines simulator3
Post by: EasyPLC_Master on April 27, 2021, 11:19:14 AM
Hello!

I have tested and works perfectly!

In order to aviod problems with libraries you must to conenct the OPC driver using EasyPLC instead Machines Simulator directly.
Please be sure you have updated your EasyPLC OPC Driver enhaced, download and update here: http://nirtec.com/forum/index.php?topic=443.0 (http://nirtec.com/forum/index.php?topic=443.0)

Once updated, create a new Machines Simulator interface program in EasyPLC, then configure the driver same as indicated in the video, and configure the interchange signals between Mx OPC server and Machine Simulator in the interface program.
Then launch Virtual PLC CPU and Machines Simulator and teh communicaton will be made!

Hope this help you.
Title: Re: I have a problem to connect Mx opc server 6.05 with machines simulator3
Post by: raguel on April 28, 2021, 02:50:45 AM
Thank you very much!

I solved problem to connect MX opc server 6.05 with machines simulator3!

I tried samething as your answer.

I tested connection between MX OPC and EasyPLC.
and, I programmed I/O connection between machines simulator3 I/O and MX OPC I/O in EasyPLC.

Thank you!
Title: Re: I have a problem to connect Mx opc server 6.05 with machines simulator3
Post by: EasyPLC_Master on April 28, 2021, 08:20:17 AM
Great, happy to help you!

But I recommend you to use the Machines Simulator Interface Program when you select the project type creating a new EasyPLC Program (see EasyPLC_1.jpg).
Then is very easy to assign the I/O signals between the OPC Driver and Machines Simulator without writing code (see EasyPLC_2.jpg)

Regards
Title: Re: I have a problem to connect Mx opc server 6.05 with machines simulator3
Post by: raguel on April 29, 2021, 07:55:47 AM
Hmm...

I can not use interface.

I tried that, EasyPLC show me this.

"Error in Driver : Object reference not set to an instance of an object"

so, I programmed main, for connecting between MX OPC and Machines simulator3.
Title: Re: I have a problem to connect Mx opc server 6.05 with machines simulator3
Post by: EasyPLC_Master on April 29, 2021, 10:01:03 AM
Be sure you're using the last EasyPLC release version [equal to or greater than v. 5.9.8] available here: http://www.nirtec.com/index.php/plc-software-download/ (http://www.nirtec.com/index.php/plc-software-download/)
Title: Re: I have a problem to connect Mx opc server 6.05 with machines simulator3
Post by: raguel on April 30, 2021, 02:25:09 AM
Ohh... All My Mistake.

I used EasyPLC Version 5.9.3 in my license USB

Thank you, Your advice made me better than before.