Sets / Gets the MODBUS device register address
String representing the register address.
|
Register Type |
Range |
Syntax |
|
Status Bit (BOOLEAN - R/W) |
00001 ~ 065536 |
Tag.Name = "[register]" |
|
Input Bit (BOOLEAN - R/O) |
10001 ~ 165536 |
Tag.Name = "[register]" |
|
Input Register (ANALOG - R/O)* |
30001 ~ 365536 |
Tag.Name = "[register]" |
|
Input Register (BOOLEAN - R/O) |
30001.1 ~ 365536.16 |
Tag.Name = "[register].<1~16>" |
|
Holder Register (ANALOG - R/W)* |
40001 ~ 465536 |
Tag.Name = "[register]" |
|
Holder Register (BOOLEAN - R/W) |
40001.1 ~ 465536.16 |
Tag.Name = "[register].<1~16>" |
| Exception Type | Condition |
|---|---|
| ArgumentException | Thrown if an invalid register address is specified |
| ArgumentNullException | Thrown if Name is null (Nothing in VB) or empty string |
VB Imports MBLink Dim MyTag As New Tag MyTag.Name = "40001" C# using MBLink; Tag MyTag = new Tag(); MyTag.Name = "40001";
Tag Class | Tag.Length | MBLink Namespace