96
Explicit Messaging API
Section A-6
A-6-5
CPNT_ReceiveExplicit (Get Explicit Response Message)
Purpose
Read the Explicit response message.
Call Format
BOOL CPNT_ReceiveExplicit (
HANDLE Handle,
CPNT_EXPLICIT_RES *ExplicitRes
) ;
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
The function CPNT_SendExplicit must be executed prior to this function.
CPNT_EXPLICIT_RES structure
Type
Parameter
Direction
Description
HANDLE
Handle
IN
Device handle obtained with the
function CPNT_Open
CPNT_EXPLI
CIT_RES
*ExplicitRes
OUT
Set the pointer to store the
response.
Type
Parameter
Description
BYTE
Sid
Stores the same value as set for Sid of a
request.
BYTE
Rsv
Reserved area
WORD
SrcMacId
MAC address (or the address over
CompoNet protocol) of the source Unit of a
response,
[For Word IN Slave Unit]
MAC address=Node address
[For Word OUT Slave Unit]
MAC address=64+Node address
[For Bit IN Slave Unit]
MAC address=128+Node address
[For Bit OUT Slave Unit]
MAC address=256+Node address
[Repeater Unit]
MAC address=384+Node address
[For Master]
MAC address=448
WORD
ServiceCode
Stores the Service code of an explicit
message.
WORD
ServiceDataSize
Stores the Service data size (in bytes) of an
explicit message.
BYTE
ServiceData[532]
Store the Service data of an explicit
message.
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: ......