5.在“SMC3_ETC_WriteParameter_CoE”内输入主索引与子索引,在输入对应参数的字节大小(可在参数字典...
使用的CoDeSys 功能块为:SMC3_ETC_ReadParameter_CoE/biSMC3_ETC_WriteParameter_CoE。 前者为读SDO,后者为写SDO。 代码示例: pAxis1 : POINTERTO AXIS_REF_ETC_SM3; fbRdParamCoE : SMC3_ETC_ReadParameter_CoE; fbWrParamCoE : SMC3_ETC_WriteParameter_CoE; diSdoIndex : DINT; usiDataLen : USINT...
Latest error occured is 'Drive doesn't accept value'. The MC_HOME block itself returns SMC_H_AXIS_DIDNT_START_HOMING. I've encountered the same error before, but those times it was due to providing MC_HOME with a too large value in the Home Position causing 0x607C Home Offset to beco...