× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello Fulvio,

Am 19.04.2022 um 15:08 schrieb Fulvio Biagini - Gmail <fulvio.biagini@xxxxxxxxx>:

Good morning I need to read / write data on a Siemens PLC using Profinet or OPC-UA directly from AS400. I have already used ModBus for other systems, but never Profinet or OPC-UA. Has anyone faced the problem yet? Do you have any RPG examples? Thank you very much! Fulvio Biagini

Hmm.

https://en.wikipedia.org/wiki/Profinet

https://en.wikipedia.org/wiki/OPC_Unified_Architecture

Profinet is apparently more or less standard Ethernet, with the "usual suspects" on top, such as TCP/IP. Even OPC UA seems to be standardized as either being transported as a webservice (SOAP), or directly via TCP.

The descriptions of both topics read very abstract, just like IBM "architectured" stuff does.

I highly doubt there is publicly available, readymade RPG code available.

Scott Klement has done a RPG IV Socket Tutorial:

https://www.scottklement.com/rpg/socktut/tutorial.html

Personally, I'd opt to port existing C code from elsewhere to IBM i instead of reinvent the wheel with RPG. Note that this is not a simple "copy; make; make install", due to how compilers are implemented on IBM i.

Please ask detailed questions via the C400-L on Midrange.com.

In fact, I consider to port libmodbus to an old version of OS/400 I use for gathering stats from my solar power inverter: https://travis-ci.org/stephane/libmodbus

:wq! PoC


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.