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.

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

GetAnaPtReadArea V (ActiveX Only)<br />

[in] long nPoint<br />

[out] float pfValue<br />

[out] float pfCounts<br />

[out] float pfMinValue<br />

[out] float pfMaxValue<br />

GetAnaPtReadAreaEx<br />

[in] long nPoint<br />

[out] SIOMM_AnaPointReadArea pPointData<br />

ReadClearAnaPtMinValue V<br />

[in] long nPoint<br />

[out] float pfValue<br />

ReadClearAnaPtMaxValue V<br />

[in] long nPoint<br />

[out] float pfValue<br />

CalcSetAnaPtOffset V<br />

[in] long nPoint<br />

[out] float pfValue<br />

CalcSetAnaPtGain V<br />

[in] long nPoint<br />

[out] float pfValue<br />

Return values are shown on page 61.<br />

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

Retrieves the specified point's value, counts,<br />

minimum value, <strong>and</strong> maximum value.<br />

Uses a structure to retrieve the specified point's<br />

value, counts, minimum value, <strong>and</strong> maximum<br />

value.<br />

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

value.<br />

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

maximum value.<br />

Calculates, sets, <strong>and</strong> retrieves the specified analog<br />

point's offset.<br />

Calculates, sets, <strong>and</strong> retrieves the specified analog<br />

point's gain.<br />

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

SetAnaPtValue V<br />

[in] long nPoint<br />

[in] float fValue<br />

SetAnaPtCounts V<br />

[in] long nPoint<br />

[in] float fValue<br />

SetAnaPtTpoPeriod<br />

[in] long nPoint<br />

[in] float fValue<br />

Read Methods Description<br />

Write Methods Description<br />

Sets the specified analog point's value.<br />

Sets the specified analog point's counts.<br />

Sets the specified analog point’s TPO period in<br />

<strong>units</strong> of time in seconds. Valid range: 0.25 to 64<br />

seconds, in 0.25 steps.<br />

v The OptoSnapIoMemMapX ActiveX component has a variant-only version of this method.

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

Saved successfully!

Ooh no, something went wrong!