PISO-CPM100(U) / PCM-CPM100 user manual (ver. 2.02) Dec/03/2012 ----------------- 46
4.5.13. CPM100_EDS_Load
Description:
The function CPM100_EDS_Load can let users load EDS file for
adding a CANopen slave with specified Node ID into the master node
list. Using this function will not send any message to check if the slave is
existent or not.
Syntax:
WORD
CPM100_EDS_Load (
BYTE
BoardNo,
BYTE
Node,
char
*FilePath,
WORD
DelayTime,
WORD
ResTimeout,
BYTE
BlockMode)
Parameter:
BoardNo:
[input] CPM100 board number (0~7).
Node:
[input] Slave device Node-ID (1~127).
*FilePath:
[input] Absolute or relative file path of the EDS file.
DelayTime:
[input] The parameter defines the time interval between
sending two messages from the CPM100. It can avoid the
master frequently sending messages that may overrun the buffer
of the slave. Too large value of this parameter reduces the
performance of the CPM100. The unit of the parameter is ms.
This parameter will be applied to the specified slave after
finishing the ESD loading.
ResTimeout:
[input] The timeout value of the response of the CANopen
slaves. When the master sends a CANopen message to the
slave, it will wait the response until timeout if there is a response.
The unit of this parameter is millisecond. This parameter will be
applied to the specified slave after finishing the ESD loading.
BlockMode:
[input] 0 means this function is non-block-function, and 1 is
block-function. If set this parameter to 1, the running procedure of
the users’ application is held until finishing this function. If 0, this
function returns “CPM_ Processing” directly. While users apply it
with the same “BoardNo” again, it returns the process status. If the
procedure is still not complete, it returns “CPM_Wait”.