Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question regarding devices.xml file #13

Open
sankarshvittal opened this issue Jun 7, 2018 · 13 comments
Open

Question regarding devices.xml file #13

sankarshvittal opened this issue Jun 7, 2018 · 13 comments

Comments

@sankarshvittal
Copy link

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
Copy link

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
Copy link
Author

sankarshvittal commented Jun 12, 2018

@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
Copy link

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
Copy link
Author

@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
Copy link

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
Copy link

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
Copy link

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
Copy link
Member

wsobel commented Apr 25, 2019 via email

@guoxiangguoxiang
Copy link

guoxiangguoxiang commented Apr 25, 2019 via email

@wsobel
Copy link
Member

wsobel commented Apr 25, 2019 via email

@guoxiangguoxiang
Copy link

guoxiangguoxiang commented Apr 25, 2019 via email

@wsobel
Copy link
Member

wsobel commented Apr 25, 2019 via email

@guoxiangguoxiang
Copy link

guoxiangguoxiang commented Apr 28, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants