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

codesys Soft Motion / MC_TouchProbe

codesys Soft Motion / MC_TouchProbe

Fred74
Established Member

Hello,

 

It looks like the fb "MC_TouchProbe" doesn't work. 

Does someone has experience with Touch Probe with codesys SoftMotion.

 

 

9 REPLIES 9

FranzClt
Established Member

Hello

If you wand to use the probe function in the Drive the easyed way is to add the signal word to the drive telegramm.

See the discribtion.

And then you can add the drive function to the signal comand word and to the siganl staus word.

 

FranzClt_0-1670914396580.png

FranzClt_1-1670914407037.png

 

 

ericvergara
Occasional Contributor

Same problem here,

Yes, with the Signal Ctrl Word and Status Word works but this is via parameters, not Softmotion,

It should work with the MC_Touchprobe function block and I have also modified the .xml of the softmotion but the problem still persists,

Is this still an issue or can this topic be closed?

ericvergara
Occasional Contributor

It is an issue the MC_TouchProbe should work with the Drive

CQ2023
Member

hi,

I test probe function in drive with external signal, and it works.

First, you need to add signal word to drive telegram

menber2023_0-1675058241678.jpeg

Then, add the signal to PLC Data Layer Realtime node

menber2023_1-1675058241679.png

And last, when the probe signal triggered, you can got the record position.

menber2023_2-1675058241680.png

menber2023_3-1675058241681.png

menber2023_4-1675058241683.png

 

ericvergara
Occasional Contributor

Yes, it works with the bFastLatching = FALSE that could do the thing in some applications (the probe is executed in the cycle of the task)

Ideally it should be executed in the Drive with the bFastLatching = TRUE, however it seems that this option is not working

Fred74
Established Member

I do agree with Eric.

We need to read the position which has been latched by the drive in order to be acurate

MC-touch prode doesn't work because My goal is to get rid of the PlcTask.

I tried to read the latched position S130 of the drive In the AT but then there is a problem because S130 if not in the same unit of the Feedback position of Codesys soft which is calculated in the PLC.

 

Fred74
Established Member

To use MC_TouchProbe with ctrlXDriveSoe you must configure the AT  and the RealCtrlBit(ex:S301<=S405) and RealStatusbit (ex:S305<=S409)

the AT the latched positons (ex: S130) 

Have a look to the attached documentation

CDSAddons
Established Member

The problems do arise, because there is no official driver for the CtrlX Drive SoE yet, and you did probably use the standard SoE drive driver for the drive.

The development of the SoE driver for the IndraDrive is still in progress (stand 09.2023) and there are still a few problems here (including with the TouchProbe), which are not yet finally addressed.

Information received on this topic (for a current solution/workaround, that the MC_TouchProbe should also work here) is:
- remove S-0-0405 and S-0409 from the MDT and include these parameters in the real-time control bits S-0-0301 and S-0-0305.
(See attachment)

So as soon as the driver development for CtrlX Drive SoE is finished, and available, the problem will be solved.

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