mtconnect / adapter

MTConnect adapter framework
90 stars 73 forks source link

Question regarding devices.xml file #13

Open sankarshvittal opened 6 years ago

sankarshvittal commented 6 years ago

I am trying to connect the adapter with agent. How can I create or generate a devices.xml file specific to my fanuc cnc machine . Is it automatically generated by the fanuc mt connect adapter . Any ideas anyone ?

dsreeves commented 6 years ago

Use the ruby scripts to dump the data off the adapter. From there you know what items are being output and you can create your xml from that.

sankarshvittal commented 6 years ago

@dsreeves Thank you for the response. Presently from the adapter we are getting values of the particular axis like X, Y, Z. What are the changes that i may have to make if i need values for axis like X1,Y1,Z1 or X2,Z2,Y2..?

dsreeves commented 6 years ago

just copy the xml file and make the id match the key value from the adapter aka X1,X2,X3 ect. Another thing you can do is connect an agent and set the log to info. After the adapter connects it will dump all the info and the agent will write an error into the log stating it couldn't find some of the items being sent from the adapter in the xml file.

sankarshvittal commented 6 years ago

@dsreeves By 'id' i understand that its the id field in the XML. But i am not clear about the key value from the adapter that you are referring to.

For example:

image

The above screenshot represents the present xml structure, as seen it represents the X axis. Can u kindly let me know the kind of the exact changes needed in the xml for getting X1 axis values.

dsreeves commented 6 years ago

Let me start over. The stock adapter has a specific name for each item it outputs. This name will vary depending on how many paths that particular cnc is controlling and the number of cnc. For example, we use 3 fanuc 30i on one machine which has 6 different stations (2 of them are only for loading/unloading). So the first cnc controls 4 paths in our case (2 separate stations each with a horizontal and vertical spindle). The adapter knows that it is controlling 4 paths so when the data is output to the agent it appends the path number to the name.

So say you want to know the actual position of X on path 3. In the xml file you would include a dataitem tag with the name="Xact3". I attached one of my old xml files to take a look at. Hopefully that will help you visualize what i mean.

Just remember that in the device.xml file the "id" is the name you are assigning to the variable received from the adapter (aka "name").The "id" can literally be anything but does need to be unique across the entire document. devices.txt

Also this example helped me better understand the same situation http://mtcup.org/wiki/HyperQuadrex

guoxiangguoxiang commented 5 years ago

Hello, my adapter has been reporting error result: -15, I don't know how to solve it, can you tell me how to solve this problem?

guoxiangguoxiang commented 5 years ago

Hello, I recently learned about setting up a monitoring system under the MTConnect protocol, but my adapter has been unable to connect with my machine. I have been reporting result:-15. Can you help me solve this problem?

wsobel commented 5 years ago

This is a connection issue from the FANUC Focus2 library. You will need to check with the controller and your network to make sure there is a connection to the port. Also, consult the FOCUS manuals if you are using a FANUC control.

Best, W

On Apr 24, 2019, at 19:28, guoxiangguoxiang notifications@github.com wrote:

Hello, I recently learned about setting up a monitoring system under the MTConnect protocol, but my adapter has been unable to connect with my machine. I have been reporting result:-15. Can you help me solve this problem?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mtconnect/adapter/issues/13#issuecomment-486496304, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJ6BCLJ7SEVLNNQ4XH35LLPSEJM7ANCNFSM4FD33XBA.

guoxiangguoxiang commented 5 years ago

Thank you for your reply. I downloaded other software on the computer and can connect to the machine. This proves that my pc can be connected to the machine. Then I have read the FOCAS file and added the corresponding dll file in my source code. , but it still can't be connected, so I would like to ask if there are other reasons for this problem, or other solutions.

------------------ 原始邮件 ------------------ 发件人: "William Sobel"notifications@github.com; 发送时间: 2019年4月25日(星期四) 上午10:30 收件人: "mtconnect/adapter"adapter@noreply.github.com; 抄送: "葳蕤"289463414@qq.com; "Comment"comment@noreply.github.com; 主题: Re: [mtconnect/adapter] Question regarding devices.xml file (#13)

This is a connection issue from the FANUC Focus2 library. You will need to check with the controller and your network to make sure there is a connection to the port. Also, consult the FOCUS manuals if you are using a FANUC control.

Best, W

On Apr 24, 2019, at 19:28, guoxiangguoxiang notifications@github.com wrote:

Hello, I recently learned about setting up a monitoring system under the MTConnect protocol, but my adapter has been unable to connect with my machine. I have been reporting result:-15. Can you help me solve this problem?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mtconnect/adapter/issues/13#issuecomment-486496304;, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAJ6BCLJ7SEVLNNQ4XH35LLPSEJM7ANCNFSM4FD33XBA&gt;.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

wsobel commented 5 years ago

Not sure. We haven’t maintained this library since it is now supplanted by commercial offerings.

Best W

On Apr 24, 2019, at 19:42, guoxiangguoxiang notifications@github.com wrote:

Thank you for your reply. I downloaded other software on the computer and can connect to the machine. This proves that my pc can be connected to the machine. Then I have read the FOCAS file and added the corresponding dll file in my source code. , but it still can't be connected, so I would like to ask if there are other reasons for this problem, or other solutions.

------------------ 原始邮件 ------------------ 发件人: "William Sobel"notifications@github.com; 发送时间: 2019年4月25日(星期四) 上午10:30 收件人: "mtconnect/adapter"adapter@noreply.github.com; 抄送: "葳蕤"289463414@qq.com; "Comment"comment@noreply.github.com; 主题: Re: [mtconnect/adapter] Question regarding devices.xml file (#13)

This is a connection issue from the FANUC Focus2 library. You will need to check with the controller and your network to make sure there is a connection to the port. Also, consult the FOCUS manuals if you are using a FANUC control.

Best, W

On Apr 24, 2019, at 19:28, guoxiangguoxiang notifications@github.com wrote:

Hello, I recently learned about setting up a monitoring system under the MTConnect protocol, but my adapter has been unable to connect with my machine. I have been reporting result:-15. Can you help me solve this problem?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mtconnect/adapter/issues/13#issuecomment-486496304;, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAJ6BCLJ7SEVLNNQ4XH35LLPSEJM7ANCNFSM4FD33XBA&gt;.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mtconnect/adapter/issues/13#issuecomment-486498849, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJ6BCKLWQKMLHMUY2ZOG63PSELCDANCNFSM4FD33XBA.

guoxiangguoxiang commented 5 years ago

Then, can you tell me when you are working on the MTConnect project,Is it directly connected to the fanuc machine using the source code on github?or you had modify that code ?Or can you provide some information about MTConnect?thank you so much .

------------------ 原始邮件 ------------------ 发件人: "William Sobel"notifications@github.com; 发送时间: 2019年4月25日(星期四) 上午10:48 收件人: "mtconnect/adapter"adapter@noreply.github.com; 抄送: "葳蕤"289463414@qq.com; "Comment"comment@noreply.github.com; 主题: Re: [mtconnect/adapter] Question regarding devices.xml file (#13)

Not sure. We haven’t maintained this library since it is now supplanted by commercial offerings.

Best W

On Apr 24, 2019, at 19:42, guoxiangguoxiang notifications@github.com wrote:

Thank you for your reply. I downloaded other software on the computer and can connect to the machine. This proves that my pc can be connected to the machine. Then I have read the FOCAS file and added the corresponding dll file in my source code. , but it still can't be connected, so I would like to ask if there are other reasons for this problem, or other solutions.

------------------ 原始邮件 ------------------ 发件人: "William Sobel"notifications@github.com; 发送时间: 2019年4月25日(星期四) 上午10:30 收件人: "mtconnect/adapter"adapter@noreply.github.com; 抄送: "葳蕤"289463414@qq.com; "Comment"comment@noreply.github.com; 主题: Re: [mtconnect/adapter] Question regarding devices.xml file (#13)

This is a connection issue from the FANUC Focus2 library. You will need to check with the controller and your network to make sure there is a connection to the port. Also, consult the FOCUS manuals if you are using a FANUC control.

Best, W

On Apr 24, 2019, at 19:28, guoxiangguoxiang notifications@github.com wrote:

Hello, I recently learned about setting up a monitoring system under the MTConnect protocol, but my adapter has been unable to connect with my machine. I have been reporting result:-15. Can you help me solve this problem?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mtconnect/adapter/issues/13#issuecomment-486496304;;, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAJ6BCLJ7SEVLNNQ4XH35LLPSEJM7ANCNFSM4FD33XBA&amp;gt;.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mtconnect/adapter/issues/13#issuecomment-486498849;, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAJ6BCKLWQKMLHMUY2ZOG63PSELCDANCNFSM4FD33XBA&gt;.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

wsobel commented 5 years ago

The adapter was an early example and I think it still works. People have contributed fixes, I am just not personally aware.

The error code you are getting is a fanuc diagnostic code that means the library can not connect. You need to make sure that the connection is possible to the focus port on the controller and then that the adapter is configured to with the correct IP address.

Best W

(Sent from mobile)

On Apr 24, 2019, at 19:57, guoxiangguoxiang notifications@github.com wrote:

Then, can you tell me when you are working on the MTConnect project,Is it directly connected to the fanuc machine using the source code on github?or you had modify that code ?Or can you provide some information about MTConnect?thank you so much .

------------------ 原始邮件 ------------------ 发件人: "William Sobel"notifications@github.com; 发送时间: 2019年4月25日(星期四) 上午10:48 收件人: "mtconnect/adapter"adapter@noreply.github.com; 抄送: "葳蕤"289463414@qq.com; "Comment"comment@noreply.github.com; 主题: Re: [mtconnect/adapter] Question regarding devices.xml file (#13)

Not sure. We haven’t maintained this library since it is now supplanted by commercial offerings.

Best W

On Apr 24, 2019, at 19:42, guoxiangguoxiang notifications@github.com wrote:

Thank you for your reply. I downloaded other software on the computer and can connect to the machine. This proves that my pc can be connected to the machine. Then I have read the FOCAS file and added the corresponding dll file in my source code. , but it still can't be connected, so I would like to ask if there are other reasons for this problem, or other solutions.

------------------ 原始邮件 ------------------ 发件人: "William Sobel"notifications@github.com; 发送时间: 2019年4月25日(星期四) 上午10:30 收件人: "mtconnect/adapter"adapter@noreply.github.com; 抄送: "葳蕤"289463414@qq.com; "Comment"comment@noreply.github.com; 主题: Re: [mtconnect/adapter] Question regarding devices.xml file (#13)

This is a connection issue from the FANUC Focus2 library. You will need to check with the controller and your network to make sure there is a connection to the port. Also, consult the FOCUS manuals if you are using a FANUC control.

Best, W

On Apr 24, 2019, at 19:28, guoxiangguoxiang notifications@github.com wrote:

Hello, I recently learned about setting up a monitoring system under the MTConnect protocol, but my adapter has been unable to connect with my machine. I have been reporting result:-15. Can you help me solve this problem?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mtconnect/adapter/issues/13#issuecomment-486496304;;, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAJ6BCLJ7SEVLNNQ4XH35LLPSEJM7ANCNFSM4FD33XBA&amp;gt;.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mtconnect/adapter/issues/13#issuecomment-486498849;, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAJ6BCKLWQKMLHMUY2ZOG63PSELCDANCNFSM4FD33XBA&gt;.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

guoxiangguoxiang commented 5 years ago

Thank you for your help. My adapter now can connect with my device ,because of adding right dll . But when my adapter connect with my device,agent cannot connect with adapter,like following shows.Can you have some advice?

Best Q

------------------ 原始邮件 ------------------ 发件人: "William Sobel"notifications@github.com; 发送时间: 2019年4月25日(星期四) 中午11:24 收件人: "mtconnect/adapter"adapter@noreply.github.com; 抄送: "葳蕤"289463414@qq.com; "Comment"comment@noreply.github.com; 主题: Re: [mtconnect/adapter] Question regarding devices.xml file (#13)

The adapter was an early example and I think it still works. People have contributed fixes, I am just not personally aware.

The error code you are getting is a fanuc diagnostic code that means the library can not connect. You need to make sure that the connection is possible to the focus port on the controller and then that the adapter is configured to with the correct IP address.

Best W

(Sent from mobile)

On Apr 24, 2019, at 19:57, guoxiangguoxiang notifications@github.com wrote:

Then, can you tell me when you are working on the MTConnect project,Is it directly connected to the fanuc machine using the source code on github?or you had modify that code ?Or can you provide some information about MTConnect?thank you so much .

------------------ 原始邮件 ------------------ 发件人: "William Sobel"notifications@github.com; 发送时间: 2019年4月25日(星期四) 上午10:48 收件人: "mtconnect/adapter"adapter@noreply.github.com; 抄送: "葳蕤"289463414@qq.com; "Comment"comment@noreply.github.com; 主题: Re: [mtconnect/adapter] Question regarding devices.xml file (#13)

Not sure. We haven’t maintained this library since it is now supplanted by commercial offerings.

Best W

On Apr 24, 2019, at 19:42, guoxiangguoxiang notifications@github.com wrote:

Thank you for your reply. I downloaded other software on the computer and can connect to the machine. This proves that my pc can be connected to the machine. Then I have read the FOCAS file and added the corresponding dll file in my source code. , but it still can't be connected, so I would like to ask if there are other reasons for this problem, or other solutions.

------------------ 原始邮件 ------------------ 发件人: "William Sobel"notifications@github.com; 发送时间: 2019年4月25日(星期四) 上午10:30 收件人: "mtconnect/adapter"adapter@noreply.github.com; 抄送: "葳蕤"289463414@qq.com; "Comment"comment@noreply.github.com; 主题: Re: [mtconnect/adapter] Question regarding devices.xml file (#13)

This is a connection issue from the FANUC Focus2 library. You will need to check with the controller and your network to make sure there is a connection to the port. Also, consult the FOCUS manuals if you are using a FANUC control.

Best, W

On Apr 24, 2019, at 19:28, guoxiangguoxiang notifications@github.com wrote:

Hello, I recently learned about setting up a monitoring system under the MTConnect protocol, but my adapter has been unable to connect with my machine. I have been reporting result:-15. Can you help me solve this problem?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mtconnect/adapter/issues/13#issuecomment-486496304;;;, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAJ6BCLJ7SEVLNNQ4XH35LLPSEJM7ANCNFSM4FD33XBA&amp;amp;gt;.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mtconnect/adapter/issues/13#issuecomment-486498849;;, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAJ6BCKLWQKMLHMUY2ZOG63PSELCDANCNFSM4FD33XBA&amp;gt;.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.