LabVIEW-DCAF / EIPModule

modules for interacting with Ethernet/IP
https://decibel.ni.com/content/projects/reference-designs-for-distributed-control-systems
Other
7 stars 2 forks source link

Boolean elements sized as bytes and bits #27

Open becega opened 6 years ago

becega commented 6 years ago

Example: In "initialize assembly lists.vi" there are two subVIs that seem to conflict.

  1. element to byte index.vi - Contains a case structure selected by "data type" that makes the exception for Boolean so that you have a byte index and then a subindex (bit).

  2. check data size.vi - Contains a case structure also selected by "data type", but here we declare Boolean to be 1 byte in size (rather than 1 bit or 0.125 bytes).

As a result, we have a situation where we have defined up to 96 bits in a robot controller interface, but the E/IP assembly gets sized to 96 bytes. On the robot side of things, we end up with 96 * 8 = 768 bits.