This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好
该复位过程需要从 ECAT 主器件侧写入。 在 PDI (C2000 ESC)侧不可写寄存器。
其他一些代码片段可能会有所帮助:
//Enable Device Reset upon RESET OUT from ETHERCAT
HWREG(ECAT_RESET_DEST_CONFIG) =0xA581;
// Enable all the interrupts
HWREG(ECAT_INTR_MASK) = 0xFF;
run = 0;
//Wait for SOC to move to operational state
do
{
SM_handle();
}while (HWREGHECAT(ESC_AL_STATUS_OFFSET) != 0x08);
while(1);
//Just keep waiting for the resetout to generate a devvice out and get the device back to normal again waiting for state transition
//Use TwinCAT to generate Reset (0x40 - 0x52,0x45,0x53)