Hi farzad89:
In reading this string of replies, I was disappointed IRstuff's reply to you.
![[shadessad] [shadessad] [shadessad]](/data/assets/smilies/shadessad.gif)
I thought oh, if you give him brand, he can answer. Then you gave him brand and just replied [ask Siemens, not me]. I thought if he is spending time replying, he might offer us some insight and looking forward to learning from him. As you probably did too.
Disclaimer: I have not worked with CNCs for over a decade.
djs is correct, the CP5611 is the PROFIBUS network communication card. The short answer to your question is you want to do the velocity monitoring in PC (CNC) not PLC. So OPC would be easiest if you needed to record history of velocity, but you will have sample frequency rate limitations (network and read/write delays) in this kind of high speed monitoring. Script writing directly NC to grab sample, max/min and avg would allow a more high speed sample rate, and I would think siemens already has that diagnostics built in.
If you are just wanting to optimize the speed and velocity controller of the selected machine axis and not so much record history of velocity, you can use built in software/screens.
You lookup in your particular Siemens CNC model commissioning manual. Like MD32810 $MA_EQUIV_SPEEDCTRL_TIME (Or call Siemens as IRstuff puts it, if you want to go the more complicated and higher frequency velocity monitoring rate.) As there is a lot of machine data points in a CNC, the exact details of what you want to do and why; will dictate complicity. for example you may be wanting data directly from encoders, or may want MD34070 $MA_REFP_VELO_POS (reference point positioning velocity), MD34070 $MA REFP_VELO_POS (target point positioning velocity), you may have to account for backlash if movement points in different directs, etc. etc.
Go to manual section on Axis monitoring functions (dynamic)", also reference Function Manual, Basic Functions; Velocities.
To monitor live "Diagnostics" operating area → Menu forward key → "Axis diagnostics" → "Service axis"
Hope this gives you a little more to go on, or helps is some little way.
Don
BIN Industrial & PLC Training