0
Wird überprüft

Hello,RealVirtual.IO,How can I get NC Axes information by Twincat ADS(PRO)From ADS Port 501 directly

Dragon Yun vor 4 Wochen in General Questions aktualisiert von Support vor 3 Wochen 4

Hi,Dear developer,

I want to get TwinCAT3 NC Axes information by TwinCAT ADS From ADS Server Port=501。

It make me quickly get NC Axes symbol From Port 501,do not use any PLC program codeing,it is a very useful Method to get Axis information

But now,I can't connect to Port 501,the port has the only right value which is PLC Project port,such as TC3=851 ,TC2=801

Please give me some ideas about how to get axes information FROM NC PORT 501,thanks

Image 1246

Image 1247

Image 1248

Wird überprüft

Hi, I am sorry, we are not deep TwinCAT Experts? Can you please describe your problem more in detail, what is not working?

I have done some thing as follows:

  1. As you can see,the picture 2 about "TwinCAT ADS Interface",I set Parameters in PLC option,such as netid=xxx/Port=501.
  2. The Port no.501 has so many symbols as picture 1 arrowhead shows.
  3. Then I new a "plc output float(script)" for get actual position about cube1-Axis ,the name = Axes.Cube1.Actpos

The problem is :

  1. when i click play button, the "TwinCAT ADS Interface" script feedback ADS State is "Not Connect"
  2. we do not connect with ADS Server about Port 501,So we can't get the symbol's data about "Cube 1 Actpos Symbol" too

Are you sure that the axis will be available over Port 501. We never tried to read NC axes. Why don't you transfer somehow (we are not twincat experts) the axis position to the standard PLC part?

I would need to check in detail. Do you have an simple example TwinCAT Project with a simple setup than what you are planning to d?

thans about your attention  ^_^