Download Simpact Freeway 1300 User guide

Transcript
Protocol Software Toolkit Programmer Guide
9.3.2 Internal Test Message
The test command is a diagnostic tool used by the client application. Data is written to
the SPS in the data area following a protocol header. The utility task immediately
returns this data to the client application.
The following is an example of the format of the ICP and protocol headers received by
the SPS:
ICP_HDR
count
command
params[0]
= size of protocol header (16 bytes) plus size of data
= DLI_ICP_CMD_WRITE_EXP
= return node number assigned by msgmux or the ICP driver
PROT_HDR
command
= DLI_ICP_CMD_TEST
DATA AREA = sample data
9.3.3 Internal Ping
The ping command provides a way for the client application to verify that the SPS is up
and running. This message is passed from the utility task to the protocol task before
being returned to the client application as an acknowledgment.
The following is an example of the format of the ICP and protocol headers received by
the SPS:
ICP_HDR
count
command
params[0]
PROT_HDR
command
188
= size of protocol header (16 bytes)
= DLI_ICP_CMD_PING
= return node number assigned by msgmux or the ICP driver
= DLI_ICP_CMD_PING
DC 900-1338I