92
I/O Data Access API
Section A-5
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 Bit IN data.
A-5-5
CPNT_SetOutData (Set OUT Data in Word OUT Slave Unit)
Purpose
Set the OUT data in Word OUT Slave Units.
Call Format
BOOL CPNT_SetOutData (
HANDLE Handle,
WORD *OUT,
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
See Appendix B.3.5 for the content of OUT data.
Type
Parameter
Direction
Description
HANDLE
Handle
IN
Device handle obtained with the
function CPNT_Open
WORD
*BitIN
OUT
Specify the pointer to store Bit IN
data.
Requires the area equivalent to
Word size (32 bytes max)
WORD
WordOffset
IN
Specify the Word offset for the Bit
IN Slave Unit from which the
reading of Bit IN data will start.
Settable range: 0 to 16
WORD
WordSize
IN
Specify the Word size of the Bit IN
data to read.
Observe the condition for the set
value: (Word WordSize)
≤
16.
Settable range: 1 to 16
Type
Parameter
Direction
Description
HANDLE
Handle
IN
Device handle obtained with the
function CPNT_Open
WORD
*OUT
IN
Set the OUT data.
Set the data equivalent to Word
size.
WORD
WordOffset
IN
Specify the Word offset for the OUT
Slave Unit to which the OUT data is
written.
Settable range: 0 to 63
WORD
WordSize
IN
Specify the Word size of the OUT
data to write.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: ......