Communication Protocols
Copyright IXXAT Automation GmbH
114
IEM Manual, 1.5
COM_t_SET_VALUE *ps_PdoConfig;
COM_e_ERROR e_ret;
/* submit mapping entries */
s_cmd.dw_command = (UINT32)COM_k_ECT_PDO_ASSIGN;
ps_PdoConfig = (COM_t_SET_VALUE*)&s_cmd.ab_comData[0];
MEMSET( (PVOID)&ps_PdoConfig->ab_parameter[0], 0, sizeof(UINT32));
ps_PdoConfig->dw_reference = 0;
ps_PdoConfig->s_address.s_ect.w_index = w_index;
ps_PdoConfig->s_address.s_ect.b_subindex = b_subindex;
ps_PdoConfig->dw_length = (UINT32)b_length;
MEMCPY((PVOID)&ps_PdoConfig->ab_parameter[0],(PVOID)&dw_value,sizeof(UINT32));
e_ret = EMI_cmdChannelConfigure(APP_td_BrdRef,&s_cmd,TRUE,&s_response);
return e_ret;
Figure 5-24: Command parameter mechanism
After scanning the bus, the configuration can be uploaded as shown in Figure
5-25.
Figure 5-25: Configuration upload by tool
5.3.7.2 Detecting mapping errors
The IEM provides an event (see chapter
“Protocol specific events”) which is
generated if a mapping error is detected (value > 0). The return value decodes
the specific error reason: