Siemens S7-1200 ProfiNet

martinAPD

Member
Join Date
Jan 2006
Location
Scotland
Posts
29
Afternoon all,

I'm using TIA Portal V12 SP1 to program a Siemens S7-1200 (Part No. 212 1AE31-0XB0) to control a Siemens Sinamics G120 (Part No. 6SL3210-1KE23-8AF1) over ProfiNet. I also have a small KP300 (Part No. 6AV6 647-0AH11-3AX0) which is used to define a speed setpoint which will be sent to the drive.

I've assigned the PLC an IP Address of 192.168.0.1, and the G120 an IP Address of 192.168.0.3 and a ProfiNet Device No1. I set the Cyclic Data Exchange to "Siemens Telegram 352" in the configuration, which sends 6 words to the device, and receives 6 words back.

I found a manual online that says to use the "RDREC" and "WRREC" instructions to send and receive data to the G120, but I'm struggling to get any comms with the device using these instructions. I've now resorted to just concentrating on reading from the device, but I still don't appear to be reading any data. When I open the "Online & Diagnostic" section for the G120 in TIA Portal, I can view the Control/Status words, which don't match the data what I'm reading back.

Are the RDREC & WRREC the correct instructions to use? Also should I be reading single bits/word individually or the whole Telegram as one "record"?

Thanks in advance, any/all help is greatly received.
 
RDREC and WRREC blocks are for acyclic comms you need prepare special structure DB for sending/receivieng data.
DPRD_DAT and DPWR_DAT blocks are used for cyclic comms.

Anyways here is application example just like yours:
https://support.automation.siemens.com/WW/llisapi.dll?aktprim=4&lang=en&referer=%2fWW%2f&func=cslib.csinfo&siteid=cseus&load=content&groupid=4000003&extranet=standard&viewreg=WW&nodeid4=20229807&objaction=csview

Take a look at it and if you have any questions, come back here then.
 
I'm not sure you need send and recieve instructions. The status and read words are updated cyclic if I remember correct.
 
No need for any instructions. Add the frequency converter to your config. Go to device view and check what Input adresses and Output adresses you have. Both the input words and the output words are updated cyclic. No need for any transfer/load instruction or anything else. For example if you change the output word that control the setpoint speed just change it and it will take effect.

Hope I got your question right, I'm using a G120C , maybe it's not the same for your drive.
 

Similar Topics

Hi Guys, I am trying to establish communication over profinet between Siemens S7-1200 PLC as IO device and codesys plc as IO controller. But I am...
Replies
43
Views
2,865
Hi all.. I'm working on something that is bugging the heck out of me. I have a S7-1200 setup as an i-device with 128 bytes in, 128 bytes out...
Replies
14
Views
7,182
Hi I'm wanting to basically get data from a Siemens S7-1200 PLC and write it in to my D registers on my Q series PLC. If I went for profinet...
Replies
6
Views
2,273
Hi all, Quoting a system which calls for a Siemens S7-1200 and a Danfoss FC280. Cost-wise, it's much the same whether I use a higher-spec PLC...
Replies
8
Views
4,243
Hi all, Currently having trouble getting a speed reference to write over modbus to an Omron M1... I can successfully write a run command and...
Replies
6
Views
255
Back
Top Bottom