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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Digital Point Methods<br />

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

Use the following methods to read <strong>and</strong> write information about individual digital points. For more<br />

information on digital point features, see page 20, “Digital Point Read—Read Only” on<br />

page 121, <strong>and</strong> “Digital Point Write—Read/Write” on page 122.<br />

GetDigPtState V<br />

[in] long nPoint,<br />

[out] long pnState<br />

GetDigPtOnLatch V<br />

[in] long nPoint<br />

[out] long pnState<br />

GetDigPtOffLatch V<br />

[in] long nPoint<br />

[out] long pnState<br />

GetDigPtCounterState V<br />

[in] long nPoint<br />

[out] long pnState<br />

GetDigPtCounts V<br />

[in] long nPoint<br />

[out] long pnValue<br />

Read Methods Description<br />

GetDigPtReadArea V (ActiveX Only)<br />

[in] long nPoint<br />

[out] long pnState<br />

[out] long pnOnLatchState<br />

[out] long pnOffLatchState<br />

[out] long pnCounterActive<br />

[out] long pnCounterData<br />

GetDigPtReadAreaEx<br />

[in] long nPoint<br />

[out] SIOMM_DigPointReadArea pPointData<br />

ReadClearDigPtCounts V<br />

[in] long nPoint<br />

[out] long pnValue<br />

ReadClearDigPtOnLatch V<br />

[in] long nPoint<br />

[out] long pnState<br />

ReadClearDigPtOffLatch V<br />

[in] long nPoint<br />

[out] long pnState<br />

Retrieves the specified digital point's state.<br />

pnState values: 0 = off, non-zero = on<br />

Retrieves the specified digital point's on-latch state.<br />

Retrieves the specified digital point's off-latch state.<br />

Retrieves the specified digital point's counter state.<br />

Retrieves the specified digital point's counter value.<br />

Retrieves the specified digital point's state, on-latch<br />

state, off-latch state, counter state, <strong>and</strong> counter<br />

value.<br />

Uses a structure to retrieve the specified digital<br />

point's state, on-latch state, off-latch state, counter<br />

state, <strong>and</strong> counter value.<br />

Reads <strong>and</strong> clears the specified digital point's counter<br />

value.<br />

Reads <strong>and</strong> clears the specified digital point's on-latch<br />

state.<br />

Reads <strong>and</strong> clears the specified digital point's off-latch<br />

state.<br />

v The OptoSnapIoMemMapX ActiveX component has a variant-only version of this method.<br />

SetDigPtState V<br />

[in] long nPoint<br />

[in] long nState<br />

Write Methods Description<br />

Sets the specified digital point's state.<br />

pnState values: 0 = off, non-zero = on<br />

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

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

Saved successfully!

Ooh no, something went wrong!