94
Explicit Messaging API
Section A-6
Remarks
To execute this function, the communications cycles must be running.
CPNT_EXPLICIT_REQ structure
A-6-2
CPNT_PeekExplicit (Check Response Received)
Purpose
Check Explicit message responses.
Call Format
BOOL CPNT_PeekExplicit (HANDLE Handle) ;
Argument
Returned value
It returns TRUE when there is an explicit message response.
It returns FALSE when an error occurs or when there is no response. The
error details can be obtained with the function GetLastError.
Remarks
The function CPNT_SendExplicit must be executed prior to this function.
A-6-3
CPNT_RegReceiveExplicitNotifyMessage (Register Notice of
Explicit Response Message Received)
Purpose
Register the Windows message which notifies that an Explicit response
message is received.
Type
Parameter
Description
BYTE
Sid
This is used to identify to which explicit
message a response is addressed. The
same value is added to the response of a
sent explicit message.
Set a certain value for the user application.
Settable range: 0 to 255
BYTE
Rsv
Reserved area. Set 0.
WORD
DstMacId
MAC address (or the address over
CompoNet protocol) of the destination Slave
Unit,
[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
[For Repeater]
MAC address=384+Node address
[For Master]
MAC address=448
WORD
ServiceCode
Set the service code of the explicit message.
WORD
ClassId
Set the Class ID of the explicit message.
WORD
InstanceId
Set the Instance ID of the explicit message.
WORD
ServiceDataSize
Set the Service data size (in bytes) of the
explicit message.
Specified range: 0x0000 to 0x0214 (0 to 532)
BYTE
ServiceData[532]
Set the Service data of the explicit message.
Type
Parameter
Direction
Description
HANDLE
Handle
IN
Device handle obtained with the
function CPNT_Open
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: ......