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.

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

GetStatusHardware2 (ActiveX Only)<br />

[out] long pnIoUnitType<br />

[out] byte pbyHwdVerMonth<br />

[out] byte pbyHwdVerDay<br />

[out] short pwHwdVerYear<br />

[out] long pnRamSize<br />

[out] string pbstrPartNumber<br />

GetStatusHardwareEx (C++ Only)<br />

[out] SIOMM_StatusHardware pHardwareData<br />

GetStatusHardwareEx2 (C++ Only)<br />

[out] SIOMM_StatusHardware2 pHardwareData<br />

GetStatusNetwork V (ActiveX Only)<br />

[out] short pwMACAddress0<br />

[out] short pwMACAddress1<br />

[out] short pwMACAddress2<br />

[out] long pnTCPIPAddress<br />

[out] long pnSubnetMask<br />

[out] long pnDefGateway<br />

GetStatusNetwork2V (ActiveX Only)<br />

[out] short pwMACAddress0<br />

[out] short pwMACAddress1<br />

[out] short pwMACAddress2<br />

[out] long pnTCPIPAddress<br />

[out] long pnSubnetMask<br />

[out] long pnDefGateway<br />

[out] long pnTcpIpMinRtoMS<br />

[out] long pnInitialRtoMS<br />

[out] long pnTcpRetries<br />

[out] long pnTcpIdleTimeout<br />

[out] long pnEnetLateCol<br />

[out] long pnEnetExcessiveCol<br />

[out] long pnEnetOtherErrors<br />

GetStatusNetworkEx (C++ Only)<br />

[out] SIOMM_StatusNetwork pNetworkData<br />

GetStatusNetworkEx2 (C++ Only)<br />

[out] SIOMM_StatusNetwork2 pNetworkData<br />

GetStatusPUC V<br />

[out] long pnPUCFlag<br />

GetStatusLastError V<br />

[out] long pnErrorCode<br />

GetStatusBootpAlways V<br />

[out] long pnBootpAlways<br />

GetStatusDegrees V<br />

[out] long pnDegrees<br />

Read Methods Description<br />

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

Same as GetStatusHardware, except it adds a<br />

part number parameter.<br />

Same as GetStatusHardware, except this method<br />

uses a structure.<br />

Same as GetStatusHardware2, except this<br />

method uses a structure.<br />

Retrieves network information about the SNAP<br />

brain's MAC address, TCP/IP address, subnet<br />

mask, <strong>and</strong> default gateway.<br />

Same as GetStatusNetwork, expcet it adds<br />

parameters for TCP/IP minimum RTO, initial RTO,<br />

TCP retries, TCP idle session timeout, <strong>and</strong><br />

Ethernet errors.<br />

Same as GetStatusNetwork, except this method<br />

uses a structure.<br />

Same as GetStatusNetwork2, except this method<br />

uses a structure.<br />

Retrieves the Powerup Clear flag.<br />

0=okay, anything else means a Powerup Clear is<br />

needed.<br />

See SetStatusOperation() for how to send a<br />

Powerup Clear comm<strong>and</strong>.<br />

Retrieves the last error. See “Error Codes” on<br />

page 98 for more information.<br />

Retrieves the BootP request flag.<br />

0 = Send BootP only if brain's IP address is<br />

0.0.0.0<br />

1 = Send BootP always<br />

Retrieves the temperature degrees unit flag.<br />

1 = degrees F<br />

0 = degrees C

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

Saved successfully!

Ooh no, something went wrong!