14.08.2013 Views

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

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Environment<br />

Visual<br />

Basic 6<br />

Internet<br />

Explorer<br />

6.0<br />

Visual<br />

C++ 6<br />

Borl<strong>and</strong><br />

Delphi 5<br />

CHAPTER 3: USING THE SNAP ETHERNET I/O DRIVER TOOLKIT<br />

Demo Center Demo Center Uses virtually every aspect of OptoSnapIoMemMapX<br />

component. It shows how Visual Basic (or any similar<br />

<strong>programming</strong> environment, such as Visual C++) can be used<br />

to create a Human Machine Interface (HMI) that<br />

communicates with a SNAP Ethernet-<strong>based</strong> brain. It also<br />

shows how Visual Basic can be used to provide control logic<br />

<strong>and</strong> send e-mail reports.<br />

Digital Bank Any rack with<br />

digital points<br />

Scatch Pad Any SNAP<br />

Ultimate brain<br />

Digital Bank Any rack with<br />

digital points<br />

Digital Bank Any rack with<br />

digital points<br />

Digital Bank Any rack with<br />

digital points<br />

Reads <strong>and</strong> writes to the bank of digital points.<br />

O22SnapIoStreamX ActiveX Example<br />

Reads <strong>and</strong> writes values to the entire Scratch Pad area.<br />

Useful as a st<strong>and</strong>alone tool.<br />

Uses VBScript <strong>and</strong> a timer to dynamically update a Web page<br />

located on a PC on the same network as the SNAP<br />

Ethernet-<strong>based</strong> brain. If the user's machine does not have the<br />

ActiveX component installed, Internet Explorer automatically<br />

installs it.<br />

Uses Microsoft Foundation Classes (MFC) to use the<br />

OptoSnapIoMemMapX component. It is very similar to the<br />

Visual Basic Digital Bank example.<br />

Reads <strong>and</strong> writes to the bank of digital points.<br />

The toolkit includes the following ActiveX example of using the O22SnapIoStreamX ActiveX<br />

component.<br />

Environment<br />

Visual<br />

Basic 6<br />

Example<br />

Name<br />

Example<br />

Name<br />

Use with Description<br />

Streaming Any brain with<br />

streaming turned on<br />

Use with Description<br />

Captures <strong>and</strong> displays st<strong>and</strong>ard or custom stream<br />

packets.<br />

SNAP Ethernet-Based I/O Units Protocols <strong>and</strong> Programming Guide 53

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!