91
I/O Data Access API
Section A-5
Returned value
It returns TRUE when the function succeeds.
It returns FALSE when an error occurs. The error details can be obtained with
the function GetLastError.
Remarks
To execute this function, the I/O communications must be running.
A-5-3
CPNT_GetInData (Get IN Data from Word IN Slave Unit)
Purpose
Read the IN data from Word IN Slave Units.
Call Format
BOOL CPNT_GetInData(
HANDLE Handle,
WORD *IN,
WORD WordOffset,
WORD WordSize
) ;
Argument
Returned value
It returns TRUE when the function succeeds.
It returns FALSE when an error occurs. The error details can be obtained with
the function GetLastError.
Remarks
To execute this function, the I/O communications must be running.
See Appendix B.3.5 for the content of IN data.
A-5-4
CPNT_GetBitInData (Get Bit IN Data from Bit IN Slave Unit)
Purpose
Read the Bit IN data from Bit IN Slave Units.
Call Format
BOOL CPNT_GetBitInData(
HANDLE Handle,
WORD *BitIN,
WORD WordOffset,
WORD WordSize
) ;
Type
Parameter
Direction
Description
HANDLE
Handle
IN
Device handle obtained with the
function CPNT_Open.
WORD
*IN
OUT
Specify the pointer to store the IN
data.
Requires the area equivalent to
Word size (128 bytes max)
WORD
WordOffset
IN
Specify the Word offset for the IN
Slave Unit from which the IN data is
started to read.
Settable range: 0 to 63
WORD
WordSize
IN
Specify the Word size of the IN
data to read.
Observe the condition for the set
value:
(Word WordSize)
≤
64
Settable range: 1 to 64
Содержание 3G8F7-CRM21
Страница 4: ...iv...
Страница 10: ...x TABLE OF CONTENTS...
Страница 30: ...10 Specifications Section 1 7 1 7 3 Dimensions 3G8F7 CRM21 PCI unit mm 3G8F8 CRM21 CompactPCI unit mm...
Страница 46: ...26 Connecting the Communications Power Supply Cables Section 2 4...
Страница 74: ...54 Board Hardware Error Notification Section 4 8...
Страница 173: ...153 APPENDIX D Sample Program D 1 Sample Program 154...
Страница 230: ...210 Wiring for Power Supply Section E 5...
Страница 234: ...214 Index...
Страница 236: ...216 Revision History...
Страница 237: ......