In this edition of “Community Q & A,” one of our readers sent in a question about how to go about using a third party product on Profinet with an S7-1200.
Note: To see a list of all our ControlLogix videos and articles, click HERE.
What is the easiest way to configure 128 bytes out of a Profinet hardware device (Example Keyence vision system) into a DB block in a Siemens S7-1200 using TIA Portal.
In Allen-Bradley you can map it straight to the hardware device, but I'm not sure if I can do it with Siemens?
I've never tried this before with Siemens, so I reached out to one of my connections and here's the response I received:
This sounds like he is trying to integrate a 3rd party device into a PLC project.
If the product supports Profinet natively, then you can download the “GSDML” file from the vendor (i.e. Keyance”). Once you bring this into the device catalog, the data should be automatically mapped to the PLC I/O process image (address space).
The steps to import hardware from a GSD file are below:
In the “Options” menu, select the “Manage general station description files (GSD)” command.
In the “Installed GSDs” tab, select the directory in which the GSD files are stored.
Choose one or more files from the list of displayed GSD files.
Click on the “Install” button. The selected GSD files are now being installed.
To create a log file for the installation, click on the “Save log file” button.
Any problems during the installation can be tracked down using the log file.
Click “Close”. You are notified that the DP slaves or potential equalization components from the installed GSD files are entered into the hardware catalog. This process can take a few seconds.
To give you an idea of how this works, I downloaded a GSD file from Keyance and will share the procedure for bringing this into a TIA project:
Define tags in the PLC tag table:
Instead of defining IO tags in a tag table (since this particular Keyance device I used has soooo much IO tags), you could also create a DB with an array[1..128] of BYTE (or any data you need).
Then use the GETIO instruction to read from the respective “submodule” and put into a DB. Then use the DB tag in your program.
Huge thanks to Luis at Siemens for sending over the above information.
If you'd like to see our previous Q & A's, click here.
To submit a question for us to consider covering in a future blog, click here.
Those readers who'd like to ask me questions directly, can do so here.
Until next time, Peace ✌️
Shawn M Tierney
Technology Enthusiast & Content Creator
Sponsor and Advertise: Get your product or service in front of our 75K followers while also supporting independent automation journalism by sponsoring or advertising with us! Learn more in our Media Guide here, or contact us using this form.
- Eight Advantages Of Using IO-Link (P131) - December 7, 2022
- Seven Things New Users Need To Know About ControlLogix - December 6, 2022
- Studio 5000 Pricing, Packages, Features & Bundles - December 2, 2022