cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Codesys Softmotion with IndraDrive Cs

GustavoTaffarello
Established Member

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.

https://developer.community.boschrexroth.com/t5/Store-and-How-to/CODESYS-Softmotion-How-to-configure...

Please, take a look at the files below.

Any help is very much appreciated. 🙂

 

7 REPLIES 7
CodeShepherd
Community Moderator

Re: Codesys Softmotion with IndraDrive Cs

I'ld like to mention that also with ctrlX MOTION PLCopen function blocks are available. So customer do not need to use some 3rd party software. See Library CXA_PLCopen.

ctrlX PLC Engineering CXA_PLCopen libraryctrlX PLC Engineering CXA_PLCopen library

GustavoTaffarello
Established Member

Re: Codesys Softmotion with IndraDrive Cs

Hello CodeShepherd,

Thanks so much for your kind reply.

To be honest I would rather prefer using our function blocks directly without using 3rd party libraries (codesys).

Do you have any manual or step by step guide on how to set-up/configure the AXIS_REF? Because my axis here (the DataLayerNode) below is simply a DED.CAADiagDeviceDefault and not a proper AXIS_REF.

Thanks so much!

GustavoTaffarello_0-1661870252352.png

 

CodeShepherd
Community Moderator

Re: Codesys Softmotion with IndraDrive Cs

As mentioned in the online documentation inside the Axis_REF object is a String(15) located. The value needs to be the same then the ctrlX MOTION axis objects name:

ctrlX Motion axis CXA_PLCopen.MC_PowerctrlX Motion axis CXA_PLCopen.MC_Power

GustavoTaffarello
Established Member

Re: Codesys Softmotion with IndraDrive Cs

Hi again CodeShepherd,

I've been trying to use the MC_Power but I keep having no action on the drive. Stays on Ab and the CtrlX-Core does not report any error.

However, when I map the IOs directly via my own PLC variables, I am able to jump to AF and then, perform Position Control lagless with success (no problem). Look at screenshot below.

How did you map your Axis_Test (DataLayerNode) >> DataLayerNode I/O Mapping? Have you used a pre-defined variables from the CXA_PLCopen or CXA_Basic libraries?

I really would like to use the PLCopen fb instead of using the S-0-0047 directly.

Thanks in advance again! 🙂

GustavoTaffarello_0-1661990297103.png

 

CodeShepherd
Community Moderator

Re: Codesys Softmotion with IndraDrive Cs

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 mappingctrlX CORE WebUI Axis Profiles mapping

GustavoTaffarello
Established Member

Re: Codesys Softmotion with IndraDrive Cs

Hey CodeShepherd,

Thanks so much for the hint, I totally forgot to link the Axis Profile to the Axis. That was the bridge that was missing! Look below.

Everything is running perfectly with PLCopen fbs. Awesome!

My last comment here regards the CXA_PLCopen.MC_ReadActualVelocity, which is not working (value remais at zero). At the Axis page in the web server the velocity value also does not update. Any plans to calculate it internally in next releases? My Motion app is 1.12.5 and my PLC app is 1.12.4.

Thanks so much again for your patience!

GustavoTaffarello_0-1662052386811.png

 

MichaelB
Community Moderator

Re: Codesys Softmotion with IndraDrive Cs

Please have a look at topic "Velocity mode missing Ctrlx"

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist