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
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
CHAPTER 3: USING THE SNAP ETHERNET I/O DRIVER TOOLKIT<br />
SetDigPtCounterState V<br />
[in] long nPoint<br />
[in] long nState<br />
Return values are shown on page 61.<br />
Digital Bank Methods<br />
Use the following methods to read <strong>and</strong> write information in the digital bank area of the IEEE<br />
1394-<strong>based</strong> protocol. For more information, see “Mask Data” on page 41, “Digital Bank<br />
Read—Read Only” on page 119, <strong>and</strong> “Digital Bank Write—Read/Write” on page 120.<br />
66 SNAP Ethernet-Based I/O Units Protocols <strong>and</strong> Programming Guide<br />
Sets the specified digital point's counter state.<br />
v The OptoSnapIoMemMapX ActiveX component has a variant-only version of this method.<br />
GetDigBankPointStates V<br />
[out] long pnPts63to32<br />
[out] long pnPts31to0<br />
GetDigBankOnLatchStates V<br />
[out] long pnPts63to32<br />
[out] long pnPts31to0<br />
GetDigBankOffLatchStates V<br />
[out] long pnPts63to32<br />
[out] long pnPts31to0<br />
Write Methods Description<br />
Read Methods Description<br />
GetDigBankActCounterStates V<br />
[out] long pnPts63to32<br />
[out] long pnPts31to0<br />
GetDigBankReadArea V (ActiveX Only)<br />
[out] long pnStatePts63to32<br />
[out] long pnStatePts31to0<br />
[out] long pnOnLatchStatePts63to32<br />
[out] long pnOnLatchStatePts31to0<br />
[out] long pnOffLatchStatePts63to32<br />
[out] long pnOffLatchStatePts31to0<br />
[out] long pnActiveCountersPts63to32<br />
[out] long pnActiveCountersPts31to0<br />
GetDigBankReadAreaEx<br />
[out] SIOMM_DigBankReadArea pBankData<br />
Retrieves the state of the entire digital bank as a<br />
mask.<br />
Retrieves the on-latch state of the entire digital bank<br />
as a mask.<br />
Retrieves the off-latch state of the entire digital bank<br />
as a mask.<br />
Retrieves the active counter state of the entire digital<br />
bank as a mask.<br />
Retrieves the point state, on-latch state, off-latch<br />
state, <strong>and</strong> active counter state of the entire digital<br />
bank.<br />
Uses a structure to retrieve the point state, on-latch<br />
state, off-latch state, <strong>and</strong> active counter state of the<br />
entire digital bank.<br />
V The OptoSnapIoMemMapX ActiveX component has a variant-only version of this method.