05-08-2016 01:58 AM - edited 05-08-2016 02:01 AM
I'm trying to read a register range from an ethercat device that is not visible to me via the NI tools.
See image:
=================
==================
As you can see from the NI Online Slave Device State dialog. only registers 0x1000 and above are available.
Any suggestions on how to access this register area using NI tools?
==================
05-08-2016 12:37 PM
Are you able to modify the XML file on your own to bring any of those in?
05-08-2016 03:05 PM
I can modify it. Do you know how to add these?
05-08-2016 03:40 PM
I've never tried it as I haven't had a need. But, the file typically has the information about the connection. Try setting up a simple example that just reads from one of the registers you CAN use the tool with. Take a look at the XML. Try to modify it to reach into the protected range. See what results you get?
I'm mostly trying to find some way around the tools provided and I'm not near the hardware to try it myself on a Sunday. It may not work. But, it's worth a try?
05-09-2016 07:39 PM - edited 05-09-2016 07:41 PM
I've done a little bit more research and have narrowed down my request. It turns out, I don't need access to the entire register area. Specifically, I need to access the Device Identification value. See section 18 of the linked document (ETG.1020).
According to the above ethercat specification. The ethercat master can request this ID. The NI cRIO controller is the ethercat master in this case. This ID is the ID of the device set through DIP switches on the device. The master has a way to read this value and the document describes how to do this. So how is this value read from the NI master controller?
I was assuming it was simply reading address 0x0134, hence my earlier request. But according to this document it's a little deeper than that.
So any idea how to read this device identification switch setting on the slave device from the NI cRIO master controller?
05-19-2016 10:24 PM - edited 05-19-2016 10:25 PM
Hi Michael,
Sorry for late response! I haven't monitored this Board and I missed your post on my ladar.
NI EtherCAT master can read register 0x0134 but we haven't exposed such interface to external customers. As you can see in you screen capture of the spec, this data area is "protected" registers, so we did not allow customer to access them. Could you tell me why you need to access this register? Do you want to know the error codes from the slave application? Actually if you use Wireshark to capture the EtherCAT communication log, you will see register 0x0134 value in the log if there is any error occurred.
Any further problems please feel free to ask.
Thanks.
Wendy
05-20-2016 08:14 AM
Michael,
Just FYI, there is a forum deticated to Industrial Communications. Your EtherCAT questions will get better exposure there
http://forums.ni.com/t5/Industrial-Communications/bd-p/260
08-29-2024 07:05 AM
Hi,
I have the same problem.
Did you find a solution ?