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 />

SetScratchPadBitArea<br />

[in] long nBits63to32<br />

[in] long nBits31to0<br />

SetScratchPadBitAreaMask<br />

[in] long nOnMask63to32<br />

[in] long nOnMaskPts31to0<br />

[in] long nOffMask63to32<br />

[in] long nOffMaskPts31to0<br />

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

Write Methods Description<br />

SetScratchPadIntegerArea (ActiveX only)<br />

[in] short nStartIndex<br />

[in] short nLength<br />

[in] O22_SIOMM_ScratchPadIntegerBlock pBlock<br />

SetScratchPadIntegerArea (C++ only)<br />

[in] long nStartIndex<br />

[in] long nLength<br />

[in] l_array pnData<br />

SetScratchPadFloatArea (ActiveX only)<br />

[in] short nStartIndex<br />

[in] short nLength<br />

[in] O22_SIOMM_ScratchPadFloatBlock pBlock<br />

SetScratchPadFloatArea (C++ only)<br />

[in] long nStartIndex<br />

[in] long nLength<br />

[in] f_array pfData<br />

SetScratchPadStringArea<br />

[in] short nStartIndex<br />

[in] short nLength<br />

[in] O22_SIOMM_ScratchPadStringBlock pBlock<br />

SetScratchPadStringAreaBin (ActiveX only)<br />

[in] short nStartIndex<br />

[in] short nLength<br />

[in] O22_SIOMM_ScratchPadStringBlock pBlock<br />

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

Sets the state of the Scratch Pad bit area.<br />

Sets the state of the Scratch Pad bit area.<br />

Bits in the on mask are turned on <strong>and</strong> bits<br />

in the off mask are turned off. All other bits<br />

are unaffected<br />

Writes a block of up to 256 integers to the<br />

Scratch Pad integer area.<br />

nLength is the number of integers to write<br />

<strong>and</strong> must be between 1 <strong>and</strong> 256.<br />

Writes a block of up to 256 integers to the<br />

Scratch Pad integer area.<br />

nLength is the number of integers to write<br />

<strong>and</strong> must be between 1 <strong>and</strong> 256.<br />

Writes a block of up to 256 floats to the<br />

Scratch Pad float area.<br />

nLength is the number of floats to write<br />

<strong>and</strong> must be between 1 <strong>and</strong> 256.<br />

Writes a block of up to 256 floats to the<br />

Scratch Pad float area.<br />

nLength is the number of floats to write<br />

<strong>and</strong> must be between 1 <strong>and</strong> 256.<br />

Writes a block of up to 8 strings to the<br />

Scratch Pad string area.<br />

In the ActiveX version, use this method<br />

when the strings contain text.<br />

nLength is the number of strings to write<br />

<strong>and</strong> must be between 1 <strong>and</strong> 8.<br />

Writes a block of 8 strings to the Scratch<br />

Pad string area. For use when the strings<br />

contain binary data.<br />

nLength is the number of strings to write<br />

<strong>and</strong> must be between 1 <strong>and</strong> 8.

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

Saved successfully!

Ooh no, something went wrong!