2/15/2012 1:36 PM | |
Joined: 8/31/2005 Last visit: 7/18/2024 Posts: 2198 Rating:
|
Hello, The example Connecting a SINAMICS drive to an S7-1200 CPU in TIA Portal (via GSD file)shows and explaines both, process communication and parameter access. You should use it to see how it has to be done, it's not as a unique "standad function block". Even ituses a SINAMICS G120C, it is the same with G120 or S120, you just use a other GSD-file and other telegram types. Aslong as you define the same in STARTER as in STEP 7 V11 it will work. I did not use PROFINET, but I see no reason why it should be different. There are two important points to look for,when programmingthe S7-1200(see chapter 6.3):
With this exampe and Pegaias example,anybody should be able to get it to run. |
Last edited by: miami at: 2/15/2012 1:37 PM |
|
2/15/2012 4:01 PM | |
Joined: 7/7/2010 Last visit: 8/16/2024 Posts: 15092 Rating:
|
[b]bold[/b] added by me to show a key point I did not know. What is the axis # that goes into the packet structure? What if I simply want to read the controller temperature with no axis configured? Starter can do it, so the PLC should be able to do that. I think it's parameter 37 in the S120 I'm working on (CU310-PN). I get errors about the slot or node or something like that doesn't exist. I will try the correct [b]HW_ID[/b] again and cycle through all 256 possible axis values and see if I can read the temperature. :( Here's what I've been told by Siemens support (US): Set up the packet for reading data. Use WRREC to send the read data requeat Use RDREC to actually receive the requested data. Is there a standard control structure that works well with WRREC/RDREC to help improve communications reliability? For example, both WRREC and RDREC seem to continue attempting to write and read as long as the REQ input is high even though the documentation states it sends one request for each leading edge low-to-high transition of the REQ input. {V11 SP2 FW2.2} I assume I should use the 'done' bit from the WRREC as the REQ input to the RDREC, but there are no good examples of this anywhere for S7-1200. Help appreciated. Cyclic comms was working within minutes, and that's a huge bonus. Acyclic (S7) does not work no matter how big a hammer I use. For example, I had 2 'loops' that incremented through the HW_IDs (0..255) and Axis (0..255) to run all possible combinations looking for the 'done' bit to go true and have a 'good' status and 'no error' output. Never got one, and yet, starter works, cyclic works. Odd, very odd. |
science guy |
|
2/15/2012 6:11 PM | |
Joined: 8/31/2005 Last visit: 7/18/2024 Posts: 2198 Rating:
|
As far as I know the CU is Axis 0.
This is correct, sounds easy but isn't, because every single bit must be correct.
Yes and No. Yes because there is a definition. No, because it's dependig on the datatype and numbers of parameters you want to transfer. Look into the SINAMICS S110 List Manual to find out the datatype of a parameter, e.g. P1120 is FloatingPoint32=REAL Here is a description how the dataset has be be.
Iagree, without now looking into the documentation now, I remember the transfer is finished, when the BUSY goes back to 0. Then you have to check DONE or ERROR.
Generally yes, but there are some details. Like you should use the BUSY and I found outyou may get a"drive not ready fault", then you should do nothing, just wait until the BUSY goes back to 0 again (now the 2nd time). You should try to use the FB20, DB100, DB101 and DB103 from the exampleto change the ramp up and down time of your first axis. Just to be shure to have a configuration that run somewhere. The only change you will have to do, is the ID connector of WRREC and RDREC. When this works, you can start to vary the program. The parameter access follows a definition of the PROFIBUS/PROFINET organisation, ist's the same with any PLC (or there is a tool inside, that does the job for you). Did you think about using BiCo in the S120 to put the required information on the cyclic part (process data)? |
Last edited by: miami at: 2/15/2012 6:35 PMinserted link to the S120 acyclic communication Last edited by: miami at: 2/15/2012 6:26 PM |
|
This contribution was helpful to
1 thankful Users |
Follow us on