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
Summary of Contents for 3G8F7-CRM21
Page 4: ...iv...
Page 10: ...x TABLE OF CONTENTS...
Page 46: ...26 Connecting the Communications Power Supply Cables Section 2 4...
Page 74: ...54 Board Hardware Error Notification Section 4 8...
Page 173: ...153 APPENDIX D Sample Program D 1 Sample Program 154...
Page 230: ...210 Wiring for Power Supply Section E 5...
Page 234: ...214 Index...
Page 236: ...216 Revision History...
Page 237: ......