Opc Server Arduino Mega

More
2 years 4 months ago #1435 by tlerdrden
tlerdrden created the topic: Opc Server Arduino Mega
Hi,
Does exist any opc server for arduino mega / mega adk?
The arduino mega has a lot of i/o and it would be great to have an opc server for that.
Regards

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #1438 by i.martinez
i.martinez replied the topic: Opc Server Arduino Mega
Thank you

I will bought a Mega from Store to build the OPC Server for it...

all the best
ilde

This is a free product. At the moment, I am not receiving any income or backup for this work. I have invested many hours investigating and programming. If you want to support this work, please, do it at:

PAYPAL: paypal.me/supportmywork

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #1439 by tlerdrden
tlerdrden replied the topic: Opc Server Arduino Mega
Good, it would be a pleasure to help you with that.

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #1440 by i.martinez
i.martinez replied the topic: Opc Server Arduino Mega
Original Arduino Mega bought from Amazon, in few days I will receive it and test OPC Server for Arduino

All the best
ilde

This is a free product. At the moment, I am not receiving any income or backup for this work. I have invested many hours investigating and programming. If you want to support this work, please, do it at:

PAYPAL: paypal.me/supportmywork

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #1441 by tlerdrden
tlerdrden replied the topic: Opc Server Arduino Mega
Good! Let me know if there is something new!

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #1442 by groussea
groussea replied the topic: Opc Server Arduino Mega
Same thing here! Trying to make it work with a Mega. No items listed. Will wait until you release a new version for the Mega. (This is of course assuming that I understand properly and that the EthernetShieldR3 example is supposed to work only with a UNO or similar connected to it and won't work with a Mega. Am I right?)

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #1443 by groussea
groussea replied the topic: Opc Server Arduino Mega
I did some tests by tracing your library with some serial prints and when the OPC client is connecting to the server, the Arduino is sending the list of items properly. Typically, nothing more happens in the OPC Server Info box after: "Asking for available OPCItems from ArduinoEthernet0" and some time, I get an additional: "Frame" but that's it.

Any idea?

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #1444 by i.martinez
i.martinez replied the topic: Opc Server Arduino Mega
Hello

yes, when OPC Server starts it asks to the device for the itemlist....if all is going ok the OPC Server knows the list of items available from device and then starts to aks for each item at a continuous rate. I would like to add a retry item list recovery to avoid errors at the OPC Server startup.

All the best
ilde

This is a free product. At the moment, I am not receiving any income or backup for this work. I have invested many hours investigating and programming. If you want to support this work, please, do it at:

PAYPAL: paypal.me/supportmywork
The following user(s) said Thank You: groussea

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #1446 by groussea
groussea replied the topic: Opc Server Arduino Mega
Thank you Ilde for looking into that.

It really look like the issue is not on the Arduino side. Of course not being able to trace anything on the OPC server side, it's hard to tell. Just as additional information, I tried with dOPC Explorer, Matrikon Explorer and Scheider OFSclient and I got the same result each time. With the Matrikon Explorer I substantially get the "Frame" message in the Info box more often than with the other clients.

For the sake of testing I did the same exercise with multiple items (~20) and also with one single item (your test project returning a random number) with always the same result.

Guy

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #1447 by i.martinez
i.martinez replied the topic: Opc Server Arduino Mega
Hello

I updated the opc library at github and tested it with an Arduino Mega and look it worked fine for me. Could you test it?

Download latest version at: github.com/SoftwareTools4Makers/OPC
and the OPC Server for Arduino v1.9 from this site

I used a serial port and seems it work fine. You can try to use the new MEGA.ino sketch and test first with the serial monitor following this guide:

www.st4makers.com/arduino-opc-server/ins...g-of-your-opc-sketch

Please, let me know about your progress. Could be interesting catch the bug to fix it into the new 2.0 that will release soon

all the best
ilde

This is a free product. At the moment, I am not receiving any income or backup for this work. I have invested many hours investigating and programming. If you want to support this work, please, do it at:

PAYPAL: paypal.me/supportmywork
The following user(s) said Thank You: groussea

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #1448 by groussea
groussea replied the topic: Opc Server Arduino Mega
Ilde,

You're the best! It's working very well. I tested my program with the Mega and I can get proper item registration on both dOPC and Matrikon OPC Explorer.

I will keep you updated on my progress with my application in the future. Maybe the feedback can be useful for you.
The following user(s) said Thank You: i.martinez

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #1449 by tlerdrden
tlerdrden replied the topic: Opc Server Arduino Mega
Hi Ilde,

I haven't tested, I will try it probably Tuesday but, anyway: You're the best!

Regards,
The following user(s) said Thank You: i.martinez

Please Log in or Create an account to join the conversation.