You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
Hi all, I'm hooking a PBW application up to a PLC.
Has anyone done Modbus communication over TCP?
All the threads I find are pretty old and done with serial com.
Hi Laurence,
Sure I'm interested in anything that works, your code
will surely get me pointed in the right direction.
Haven't used AB for years they aren't that big here in europe.
I mainly use Siemens S7-300/400 but this particular
job is with a Unitronics V130.
Very powerfull and inexpensive units for smaller jobs.
BobNorway
If you're using S7, I doubt whether my code will get you pointed in the right direction at all. It uses the proprietary A-B Client-Server Protocol (AB/Eth) which wraps up DF1 packets for transmission over TCP, so it's very vendor-specific. Outside of the protocol implementation, it uses the standard PB TCP statements which are documented in the help file. I suggest that you start at www.modbus.org - there seem to be a lot of resources listed there.
I used to program Siemens S5 - hated it! I had to program S7 once - hated it more - Give me Allen-Bradley any day - I'm afraid that I'd never even heard of Unitronics. PLC and HMI in one unit - hmm, interesting, I'll think I'll check that out some more.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment