5/14/2025 1:16 PM | |
Joined: 9/23/2005 Last visit: 9/15/2025 Posts: 5116 Rating:
|
A little OT. Have you seen this? S7 FB or Profidrive example aren't helpful? |
Regards, |
|
This contribution was helpful to
1 thankful Users |
5/14/2025 3:43 PM | |
Joined: 5/14/2025 Last visit: 5/21/2025 Posts: 5 Rating:
|
Thanks Zivilin, I think if I device offset tags like you propose is much clear and simple. I have only concerns about data consistency. Actually, I can always scale the reals by some factor and scale them down in the servo (this servo can be programed with the old CodeSys v2). Becouse i still don't have the hardware I will use your approach like plan A and when i have the servo, if there is a problem I will try my idea (planB).
Actually this is the place from where I started. There is example FB for com. between S7-1200 and Parker, but the FB is locked! I need some custom data to be send (the first two reals), and that's the reason that I can't used the provided example FB - it's for simple point-to-point. Do you think that my code snippets looks legit, I just want to know if this is the direction ? |
This contribution was helpful to
1 thankful Users |
5/14/2025 3:55 PM | |
Joined: 7/7/2010 Last visit: 9/12/2025 Posts: 16094 Rating:
|
You want asynchronous data exchange which is not telegram related. Setting up the 3 telegram options on the Parker servo controller - at least per the pdf linked above - is what you get for synchronous "telegram" data exchange. If you want to send other data, you need to talk to Parker for setting up custom telegrams, or how to send/receive data asynchronously (on demand). Otherwise, all the wishing about datatype conversions will simply frustrate you because you will not get what you wish for. Luckily, you are an adult and not getting everything you wish for is not the end of the world.
|
science guy |
|
5/15/2025 10:38 AM | |
Joined: 5/14/2025 Last visit: 5/21/2025 Posts: 5 Rating:
|
Let's tell the whole story. This drive use module T40 for electronic CAM (don't ask why we use parker with simatic PLC). This module give ability to write code inside parker drive in CodeSys v2 base environment. The servo is controlled by simple wire IO on it's input module (speeds, pos and other params are predefined - hardcoded in servo ). We need only to change the CAM ration - and here comes the REAL numbers I want to send over Profinet. I found this manual . On page 462 is define Profinet communication. Now (finally) on 470 the data types are define. I saw that data type of Long Int (doble word) is the same like in S7-1200 data type DINT. I will use your idea. Before send something to servo I will scale it UP (Real * ScaleFactor -> DINT), and in the servo (I can write code there) I will scale it down (DINT -> REAL / ScaleFactor). It what way I think I, can address the IO image in PLC by definition of Tags (again like you show me in the first post - Plan A). Hope this works - will be glad to hear another opinion. |
Follow us on