Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - spaderkung

Pages: [1]
1
Same for INT, DINT.

For example: Read(IntegerTag.1) will return 0 or 2. I would expect 0 or 1.


AdvancedHMIDrivers.EthernetIPforCLXCom connectionAdvancedHMI;
connectionAdvancedHMI = new AdvancedHMIDrivers.EthernetIPforCLXCom();
... connecting and validating other read/write operations ...
connectionAdvancedHMI.Read("IntegerTag.1");

2
Hi all,

To make this work I have the following solution, that unfortunately does not work for INT.bit, only for DINT.bit. Is there a way to get the datatype from the driver read response? Then I can do it right.

The CIP message should as I understand it (1756-PM020A-EN-P, page 12) report the datatype, so it would be nice to be able to get that one too when calling AdvancedHMIDrivers.EthernetIPforCLXCom.Read().

This is my current solution, not usable for INT - only DINT.
1. Detect if the tag has a dot suffix - Tag.x
2. Read Tag as DINT and bit mask to desired value
3. Write tag as DINT


Pages: [1]