Gets / Sets data type for MODBUS device register values
One of the Tag.ATOMIC enumerations
Setting this property will also set the NetType property as follows:
| Exception Type | Condition |
|---|---|
| ArgumentException | Thrown if invalid DataType |
VB
Imports MBLink
Dim MyTag As New Tag("40001")
' * set default type to DINT
MyTag.DataType = Tag.ATOMIC.DINT
C#
using MBLink;
Tag MyTag = new Tag("40001");
MyTag.DataType = Tag.ATOMIC.DINT;