Cause:
In CODESYS, robot^.Joints[i].m_Config. m_Simulated equals 1, so the mode cannot be switched,
Troubleshooting:
Check whether "Virtual mode" is selected for the axis in CODESYS
Check the value of robot^.Joints[i].m_Config. m_Simulated
Solution:
Clear the "Virtual mode" checkbox
Set robot^.Joints[i].m_Config. m_Simulated to 0
Case sharing:
None