Rockwell/Allen-Bradley CIP DataTable services for grouped tag reads and writes over EtherNet/IP.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package merlz | |
| import ( | |
| "bytes" | |
| "errors" | |
| "fmt" | |
| ) | |
| var ( | |
| ErrInputTooShort = errors.New("input too short (<4)") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // MinimalFTArchiveDir.cpp | |
| // Build x86: cl /EHsc /W4 MinimalFTArchiveDir.cpp ole32.lib oleaut32.lib | |
| #include <windows.h> | |
| #include <ole2.h> | |
| #include <oleauto.h> | |
| #include <cstdio> | |
| #include <cwchar> | |
| static void PrintHresult(const char* label, HRESULT hr) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // MinimalRsvCRC.cpp | |
| // Build x86: cl /EHsc /W4 MinimalRsvCRC.cpp ole32.lib oleaut32.lib | |
| #include <windows.h> | |
| #include <ole2.h> | |
| #include <oleauto.h> | |
| #include <cstdio> | |
| #include <stdio.h> | |
| static void PrintHresult(const char* label, HRESULT hr) { |