From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
11-25-2014 01:38 AM
Hi,
I'm Trying to communicate with an IndraDrive Bosch device Via Ethernet/IP but I have no Idea how to establish the communication.
In fact, I didn't found any information in the IndraDrive Support about the Ethernet/IP protocol and its specifications.
If possible can someone guide me how to begin with the communication via Ethernet/IP and how to know if this device is compatible with the Industrial Communication Add on for LabVIEW.
Thank You.
11-25-2014 08:59 AM
Hi giusceppe,
Please post the datasheet for the device. We can take a look and see what you'll be able to do. Typically, if the device supports EtherNet/IP you should be able to communicate with other EtherNet/IP devices as it is based on a standardized specification. Please note that the EtherNet/IP toolkit is an EtherNet/IP Adapter, which means the device would need to be an EtherNet/IP scanner in order to initiate Implicit communication, but you can do explicit communication. If the Bosch device is a I/O Scanner, then you will be able to use implicit communication, initiated by the Bosch device. You can find some getting started examples in LabVIEW. In LabVIEW, go to Help » Find Examples, then Hardware Input and Output » NI-Industrial Communications » EtherNet/IP » EtherNetIP Adapter.lvproj.
11-25-2014 09:25 AM
Please find attached the EDS file for the IndraDrive Device
In fact, i'm having some progress in my work, thanks to the Help provided by IndraWorks. Our device seems to be compatible with the EtherNet/IP toolkit because I make it working by getting and setting some single attributes 🙂
I found in the Help provided by IndraWorks the addressing method used that allows me to get acces to parameter's Data.
Below an extract from the Help.
<script src="/t5/forums/replypage/board-id/260/message-id/textvars.js" language="JavaScript"></script> <script src="/t5/forums/replypage/board-id/260/message-id/popup.js" language="JavaScript"></script> <script src="/t5/forums/replypage/board-id/260/message-id/nsr.js" language="JavaScript"></script>
For EtherNet/IP communication, the objects are addressed according to the following scheme:
Class → instance → attribute
ClassAll parameters of a sub-device (e.g. drive) are mapped to the manufacturer-specific classes 100 (0x64) + sub-device index, i.e. sub-device 0 --> class 100, sub-device 1 --> class 101,…, sub-device 98 --> class 198.
InstanceThe instance number is identical to the IDN of the drive parameter.
|
||||||||
Structure of the IDN |
The instance number can be calculated with the following formula:
Inst | Instance number |
type | Parameter type (0 for S-parameters and 1 for P-parameters) |
set | Set number |
block | Data block number |
The format of the parameter depends on the attribute number.
The operating data can have four different formats:
Data length 2 bytes → W
Data length 4 bytes → L
ASCII text with max. length of 64 bytes → T
There are three types of parameters:
Single parameters
Command parameters
List parameters
12-18-2014 08:50 AM - edited 12-18-2014 08:51 AM
Hello,
I think that I attached the wrong eds file.
Please find attached the correct eds file configuration.
In fact, I didn't found how to send implicit messages to the Drive.
Please take a look at the attached file and tell me if it's possible to do or not
Thank You
12-18-2014 09:37 AM
Hi giusceppe,
Apologies, I didn't notice any question in the previous post.
The EDS file typically tells us what we can communicate with using Implicit messaging, so technically, yes, you can communicate implicitly with the Bosch IndraDrive. However, and this is important, in order to initialize implicit communication you MUST have an Ethernet/IP Scanner. Our EIP driver is an EIP Adapter, meaning it can communicate implicitly, but it cannot initiate that communication. So, the question then becomes, is the Bosch IndraDrive a EIP Scanner or Adapter. Typically, I've seen EDS files used by Adapters, however, this does not mean the Bosch IndraDrive cannot be a Scanner. In order to determine this, we would need to see the manual for the device you are using, or for you to contact the vendor of the device, Bosch in this case, to see if they're a Scanner.
Hopefully this helps.
12-19-2014 04:18 AM
Hi Aix-La-Chapelle,
In the EIP description section, Ifound that Via our device it is possible to exchange real-time data with an EtherNet/IPTM scanner.
Is it meaning that the used device is an EIP Adapter?
Please find attached the EIP description section for the IndraDrive Bosch device
12-19-2014 08:43 AM
Hi giusceppe,
I took a look at the attached PDF. It looks like this device can act as both a Scanner and an Adapter. It never outright says Scanner in that document, but does call itself a master. Master and Scanner are similar concepts for EIP. You will need to follow the steps of your device to set it up as a Master device.
12-24-2014 03:49 AM
Hello Aix-La-Chapelle,
In fact, our device cannot be a Master, only the integrated PLC or the PC or an external PLC can be a Master for EIP communication.
I will give you more detail about our issue :
Implicit message: is used when trying to read value from Cyclic Real-Time Channel and writing value to Cyclic Command Channel
The structure of these two words is described in the attached pdf document “Status-Control Words”
Referencing to the section “Configuring the Cyclic Process Data” page 7 of ETHERNETIP-BOSCH.pdf“, we found that the channel described above, are in Class 4, instance 101 for Control Word and instance 102 for Status Word
I used the same code as Acyclic parameter for reading(Attached below) with Class = 4, instance = 102 and attribute = 3 I receive a 1D array with two U8 Data line which represent a 16 bits word description for the status word. I verified this word and I find it compatible with the state of the device.
When trying to write a 16 bits word for the Control Word (Class = 4, instance = 101, and attribute = 3), I didn’t receive any error but without any effect on the device’s state.
So, the problem is when writing to the Control word
12-26-2014 01:10 AM
Hi,
I think that's impossible in our case to use the Labview ethernet ip driver to communicate with Rexroth Bosch Device, because this device cannot be a scanner device for implict messaging.
The question is how to use UDP function to build a scanner code for Ethernet/IP? or there is any other way to fix the problem?
Thank you
12-30-2014 02:00 AM