Codesys Softmotion with IndraDrive Cs

Hello everyone,

I am configuring here a CtrlX-Core handling a single IndraDrive Cs via EtherCat SoE.

My goal at this moment is simply use the Codesys SoftMotion libraries in order to show existing customers that they could easily switch from MLC to CtrlX-Core and still comfortably use the PLC-Open function blocks.

I was able to configure the axis and the EtherCat Master at the CtrlX Works IO, as well as configuring the SoftMotion at the CtrlX Works PLC. However, it does not look like the PLC is in charge of the axis, after booting, the CtrlX-Core switches the axis from Init to OP (no problem), but I still can not PowerOn the axis using the SM3_Basic.MC_Power function block.

I am using CtrlX Works 1.12.9 here with IndraDrive Cs MPC20V.

I have tried to use the Drive as ServoDrive Profile and ServoDrive Profile No DriveEnable bit check, but none worked out. I tried to add the S-0-0134 and S-0-0135 in the AT/MDT lists but those parameters are deleted when the drive reaches OM.

I have followed all the steps from the link below (including adjusting the Main Task as External Event 07), but so far no success.

/ctrlx-automation-how-tos-qmglrz33/post/codesys-softmotion---how-to-configure-ctrlx-core-and-drives-vUfl7n0lxSBqNE3

Please, take a look at the files below.

Any help is very much appreciated. ๐Ÿ™‚

ย 

Best reply by CodeShepherd

For first commissioning we also have a how to video that shows the usage of ctrlX MOTION in combination with the ctrlX PLC. See this page for reference.

I did not do any mapping in the PLC. This would also lead to conflicts because PLC and MOTION would both try to command the drive.
The connection was established via the "Axis Profiles" in the ctrlX MOTION app and commanding all as well as position is done via this.

ctrlX CORE WebUI Axis Profiles mapping

View original
2022-08-29_12h53_13.png
39.94KB
2022-08-29_12h51_21.png
216.59KB
2022-08-29_12h58_52.png
188.71KB
Parameters_IndraDriveCs_Ecat_SoE.zip
63.09KB
12 replies