Difference between revisions of "ReadUDT"
(Created page with "== '''EthernetIPforCLXCom - ReadUDT''' == Used to write all data to a UDT in as few packets as possible using a Structure or Class that mimics the UDT. This is an extremely...") |
(→EthernetIPforCLXCom - ReadUDT) |
||
Line 44: | Line 44: | ||
Dim MyStructureInstance as MyUDT | Dim MyStructureInstance as MyUDT | ||
− | MyStructureInstance=EthernetIPForCLXCom1. | + | MyStructureInstance=EthernetIPForCLXCom1.ReadUDT(of MyUDT)("MyUDTTag",1) |
</code> | </code> | ||
Latest revision as of 16:38, 7 May 2019
EthernetIPforCLXCom - ReadUDT
Used to write all data to a UDT in as few packets as possible using a Structure or Class that mimics the UDT. This is an extremely fast and efficient method to write a large amount of mixed data. NOTE : Requires Version 3.99x or higher
ControlLogix to .NET Data Type Equivalent
DINT | Int32 |
LINT | Int64 |
INT | Int16 |
SINT | SByte |
BOOL | Boolean |
REAL | Single |
LREAL | Double |
STRING | String |
Code Samples
'* Writing all UDT data '* First a Class or Structure is needed to hold the data '* This Class/Structure must mimic the UDT
Public Class MyUDT
Public DINTTag As Int32
Public LINTTag As Int64
End Structure
Dim MyStructureInstance as MyUDT
MyStructureInstance=EthernetIPForCLXCom1.ReadUDT(of MyUDT)("MyUDTTag",1)
More code samples can be found here: