Modbus TCP and Comsiemens Library
Hi engineers, I am researching about communication between siemens s7-1200 with AXC F 2152, I refer to it and see that there is a support library like Comsiemens, but on the Modbus TCP side, I still can't connect, can you help me , as long as the two devices communicate with each other , thank you very much .
Comments
It might also be possible to use Modbus TCP or the ComSiemens library, but these involve additional libraries and configuration, so Profinet is probably a simpler solution.
I plan to use AXC F 2152 as a server, give commands to siemens, and siemens send signals, according to my understanding, if I use the COMSIEMENS library, is it correct to use the PUT/GET function on siemens? And if so, i will import the siemens GSDML file into PLCnext Engineer ?,i think not because I couldn't find this file of s7-1200, thank you very much.
The ComSiemens library does not use GSDML files - those are only needed for Profinet communications.
You will need to ask Siemens where to get a GSDML file for an S7-1200, if you want this. From memory you need to generate a custom GSDML file depending on the configuration of the S7 system.
I sincerely thank .
(I see now that the documentation says that GET/PUT access might need to be enabled for an S7-1200).
The first thing to check is that you can esablish a connection to the S7 using an instance of the CoSi_ETH_S7_Link function block, i.e. that the xConnected output goes TRUE when the xConnect input is set to TRUE.
If you get that working, you can try toggling the xReadRequest input to read data from the specified area of the S7.
If you get stuck at any point, or if anything in the documentation is not clear, you can ask for help from the library developers using the Contact button on the product page in the PLCnext Store.
https://support.industry.siemens.com/cs/attachments/101495058/101495058_S7-1200_PN_DP_Gateway_DOC_v11_en.pdf
I don't know how to login proficloud to ask the programmer, but I have a card with a UUID code, please help me with this problem, I don't know what the string is here, how can I enter the IP, I have determined value is cosi_string15, can you suggest me ?
You need to assign the IP address of the Siemens PLC to the "address" variable. If you need help with that, it would be worth getting in touch with your local Phoenix Contact office, who can help you get started with PLCnext Engineer programming.