Ethernet Module Interface (EMI)
– API Description
Copyright IXXAT Automation GmbH
56
IEM Manual, 1.5
4.1.2.10 EMI_cmdNumExtPortsGet()
UINT32 EMI_cmdNumExtPortsGet(COM_t_BOARD_REF td_brdRef);
Description
This function returns the number of external Ethernet ports of the module.
Remarks
EMI_cmdBrdInfoReq must be called before
Parameter
Dir.
Description
td_brdRef
IN
unique IEM reference
Return Value
Description
-
number of external Ethernet ports (UINT32)
4.1.2.11 EMI_cmdChannelOpen()
COM_e_ERROR EMI_cmdChannelOpen(COM_t_BOARD_REF td_brdRef, BOOL o_blocking);
Description
This Function instantiates the protocol stack and the CCI layer. For this pur-
pose protocol specific initialization parameters have to be written to the
memory area of acyclic data by means of EMI_AD_Write. For example for
EtherNet/IP the local IP, Ethernet speed and duplex mode are written. The
passed parameters possess a specific structure that is described in the appro-
priate protocol specific software design documents. The BCC is used for the
command transmission. After initialization of the protocol stack the BPW is ini-
tialized on the module. This initializes the CCI layer and optionally registers
protocol specific events. The state of the MSM on both devices is updated.
The function is blocked waiting on the response if the o_blocking is TRUE,
otherwise the application has to query for the response by means of
EMI_cmdCommandRespQuery.
Remarks
Bus protocol specific parameters shall be provided by the application using the
EMI_PreWriteData() / EMI_PostWriteData() function. Note that the Industrial
Ethernet Module is not yet actively communicating in the network.