 |
plc.myforum.ro PLCs users www.plc.myforum.ro!
|
| View previous topic :: View next topic |
| Author |
Message |
grig100 Member 3


Joined: 01 Jan 2015 Posts: 752
|
Posted: 04/07/2017 11:05 Post subject: S7-1200 and SENTRON PAC3200 via MODBUS TCP Data Comm |
|
|
Data Communication between S7-1200 and SENTRON PAC3200 via MODBUS TCP (Set 22)
https://support.industry.siemens.com/cs/document/40614428/
With the help of the Modbus/TCP protocol, data can be exchanged between one or several Modbus/TCP devices using an Ethernet connection. This application example describes the data exchange of an S7-1200 controller with one or several SENTRON PAC3200 type power management devices based on the Modbus/TCP protocol. The effective power absorbed of several street lamps is to be read out deterministically and the plenar energy consumption is to be calculated.
Screen 01
The deterministic communication enables the data exchange with SENTRON PAC3200 one after the other, via one connection. The application offers the visualization via a Basic Panel KTP700 2nd generation. Power limit violations as well as communication breakdowns per SENTRON PAC3200 are to be recorded in a message buffer with time stamp for maintenance purposes.
Screen 02
Downloads
TIA Portal V14 (STEP 7 V14, WinCC V14) with HMI KTP700 Basic PN (2nd generation)
https://support.industry.siemens.com/cs/attachments/40614428/40614428_Set22_DOC_v14_en.pdf
https://support.industry.siemens.com/cs/attachments/40614428/40614428_Set22_PRJ_v14.zip
Older versions with HMI KTP600 Basic PN
https://support.industry.siemens.com/cs/attachments/40614428/40614428_set22_v12_1d7_0_en.pdf
Project for TIA Portal V12, MODBUS TCP library V2.0, S7-1200 CPU firmware V3.0 (2.3 MB)
https://support.industry.siemens.com/cs/attachments/40614428/40614428_set22_v12_1d7_0.zip
Project for TIA Portal V11 SP2, MODBUS TCP library V2.0, S7-1200 CPU firmware V3.0 (4.2 MB)
https://support.industry.siemens.com/cs/attachments/40614428/40614428_set22_v11_1d7_0.zip
Manual S7-1200
https://support.industry.siemens.com/cs/attachments/109741593/s71200_system_manual_en-US_en-US.pdf
Manual SENTRON Power Monitoring Device PAC3200
https://support.industry.siemens.com/cs/attachments/26504150/A5E01168664B-04_EN-US_122016_201612221316360495.pdf
How do you clear the status 16#8382 in the case of a Modbus/TCP connection between SIMATIC S7-1500 / S7-1200 and SENTRON PAC devices?
https://support.industry.siemens.com/cs/document/109736516/
Using the "MB_CLIENT" instruction the S7-1500 CPU or S7-1200 CPU communicates as Modbus TCP client via the integrated PROFINET interface. You use the "MB_CLIENT" instruction to establish a connection between the Modbus TCP client and the Modbus TCP server.
Fig. 1
If a connection is to be established to a SENTRON PAC device, then you have to change the static variable "MB_Unit_ID" of the instance data block of the "MB_CLIENT" instruction. The MB_UNIT_ID parameter corresponds to the field of the Slave Address in the Modbus RTU protocol. If you use a Modbus TCP server as gateway to a Modbus RTU protocol, the slave device can be identified in the serial network via the MB_UNIT_ID. The MB_UNIT_ID parameter would in this case forward the request to the correct Modbus RTU slave address.
The static variable"MB_Unit_ID" is preset with the start value of 16#FFhex= 255dec. Since the SENTRON PAC devices only support values up to 16#7Fhex = 247dec, the "MB_CLIENT" instruction outputs the value 16#8382hex at the STATUS output parameter.
Specify a start value for the static variable "MB_Unit_ID" in the range of 16#1hex to 16#7Fhex (1dec and 247dec).
Fig. 2 |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro
|