snap ethernet-based i/o units protocols and programming guide
snap ethernet-based i/o units protocols and programming guide
snap ethernet-based i/o units protocols and programming guide
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
CHAPTER 3: USING THE SNAP ETHERNET I/O DRIVER TOOLKIT<br />
O22SnapIoMemMap C++ Class Examples<br />
The Driver Toolkit also includes the following examples, which use the core C++ code. See “Using<br />
Visual C++ with the Core C++ Code” on page 52 for more information.<br />
Environment<br />
Visual<br />
C++ 6<br />
Linux<br />
Example<br />
Name<br />
Digital Bank Any rack with<br />
digital points<br />
Use with Description<br />
O22SnapIoStream C++ Class Examples<br />
The toolkit also includes the following examples, which use the core C++ code. See “Using Visual<br />
C++ with the Core C++ Code” on page 52 for more information.<br />
Environment<br />
Visual<br />
C++ 6<br />
Digital Bank<br />
Console<br />
Any rack with<br />
digital points<br />
54 SNAP Ethernet-Based I/O Units Protocols <strong>and</strong> Programming Guide<br />
Identical to the Visual C++ 6.0 ActiveX Digital Bank example,<br />
except that it uses the core C++ class, O22SnapIoMemMap,<br />
instead of the OptoSnapIoMemMapX ActiveX component.<br />
A simple Win32 console application. It takes one comm<strong>and</strong>-line<br />
parameter, an IP address, <strong>and</strong> prints out the state of the digital<br />
bank area of the Ethernet-<strong>based</strong> brain at that address.<br />
Eiocon Any rack Creates a small shell environment that lets a user issue<br />
comm<strong>and</strong>s to read <strong>and</strong> write to a brain.<br />
Eiocl Any rack A comm<strong>and</strong> line tool for reading or writing values to a brain. Can<br />
also process a file of comm<strong>and</strong>s. Useful as a st<strong>and</strong>alone tool.<br />
Eiocon Any rack Creates a small shell environment that lets a user issue<br />
comm<strong>and</strong>s to read <strong>and</strong> write to a brain.<br />
Eiocl Any rack A comm<strong>and</strong> line tool for reading or writing values to a brain. Can<br />
also process a file of comm<strong>and</strong>s. Useful as a st<strong>and</strong>alone tool.<br />
Example<br />
Name<br />
Eiocon Any brain with<br />
streaming turned on<br />
Linux Eiocon Any brain with<br />
streaming turned on<br />
Use with Description<br />
Identical to the Eiocon MemMap example shown above.<br />
Includes a mode (the “ls” comm<strong>and</strong>) for catching <strong>and</strong> printing<br />
stream packets.<br />
Identical to the Eiocon MemMap example shown above.<br />
Includes a mode (the “ls” comm<strong>and</strong>) for catching <strong>and</strong> printing<br />
stream packets.