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 />
Serial Module Configuration Methods<br />
Use the following methods to read <strong>and</strong> write information in the serial module configuration area<br />
of the memory map. For more information, see “Serial Module Configuration—Read/Write” on<br />
page 111.<br />
Return values are shown on page 61.<br />
Streaming Methods<br />
Read Methods Description<br />
GetSerialModuleConfigurationEx<br />
[in] long nSerialPort<br />
[out] O22_SIOMM_SerialModuleConfigArea pConfigData<br />
Use the following methods to read <strong>and</strong> write information in the stream configuration <strong>and</strong> data<br />
areas of the memory map. For more information, see “Streaming Configuration—Read/Write”<br />
on page 118 <strong>and</strong> “Streaming—Read Only” on page 134. For information on receiving <strong>and</strong><br />
processing stream packets, see the General Instructions on page 48 <strong>and</strong> also see page 36.<br />
72 SNAP Ethernet-Based I/O Units Protocols <strong>and</strong> Programming Guide<br />
Retrieves the configuration for the<br />
given serial port.<br />
Write Methods Description<br />
SetSerialModuleConfigurationEx<br />
[in] long nSerialPort<br />
[in] O22_SIOMM_SerialModuleConfigArea pConfigData<br />
Sets the configuration for the given<br />
serial port.<br />
Read Methods Description<br />
GetStreamConfiguration<br />
[out] long pnOnFlag<br />
[out] long pnIntervalMS<br />
[out] long pnPort<br />
[out] long pnIoMirroringEnabled<br />
[out] long pnStartAddress<br />
[out] long pnDataSize<br />
GetStreamTarget<br />
[in] long nTarget<br />
[out] long pnIpAddressArg<br />
GetStreamReadArea<br />
[in] f_array fAnalogValues<br />
[in] l_array nDigPointFeature<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 />
GetStreamReadAreaEx<br />
[out] O22_SIOMM_StreamSt<strong>and</strong>ardBlock pData<br />
Retrieves current streaming configuration<br />
information. Also see GetStreamTarget bellow.<br />
Retrieves the IP address for the given target.<br />
There are eight possible targets.<br />
Reads the stream data area. This is an excellent<br />
function for reading all the basic I/O point<br />
information in one method call.<br />
Same as GetStreamReadArea, except this<br />
method uses a structure.