I have a problem to connect Mx opc server 6.05 with machines simulator3

Started by raguel, April 25, 2021, 04:30:21 PM

Previous topic - Next topic

raguel

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

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  :'(

EasyPLC_Master

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

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.

raguel

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!

EasyPLC_Master

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

raguel

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.

EasyPLC_Master

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/

raguel

Ohh... All My Mistake.

I used EasyPLC Version 5.9.3 in my license USB

Thank you, Your advice made me better than before.