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

Using Torque Op mode with SMC_SetControllerMode change CMD parameters

Using Torque Op mode with SMC_SetControllerMode change CMD parameters

ericvergara
Occasional Contributor

Hello,

If I change to smc_torque in the "SMC_SetControllerMode" function block the cmd of the position, velocity and torque changes constantly and I cannot find a way to change it,

ericvergara_2-1670244073518.png

 

It seems that the force/control mode is selected in the Drive but then the CMD of the parameters are updated

ericvergara_0-1670243976998.png

ericvergara_1-1670243992511.png

I only have one drive with softmotion and I changed the mapping of the variables but the problem still persists,

How can this be solved?


Many thanks,

6 REPLIES 6

ericvergara
Occasional Contributor

Hello,

It seems that there is an error in the .xml file of the Rexroth Softmotion axis,

The Parameter Id 8540 corresponds to the Torque, not the position

ericvergara_0-1671011772964.png

 

We modified this and now the SetTorque function block works,

Please can anyone check this .xml, we do no know how many paremeters are wrong...

- which drive and which SofMotion driver is involved?

- you need a configuration which maps position and torque - to the cyclic data - these drivers are usually ready to use - not needed to edit any xml files to use it.

georkueh
Community Moderator
Community Moderator

Hi,

we'll check your feedback!

kind regards

georkueh
Community Moderator
Community Moderator

Hi,

It seems you're right reagrding the xml file of the Softmotion adaption layer. I created Bug 584974 to fix this issue.

kind regards

LiuPengfei
Established Member

Hello,

I tried SMC_SetControllerMode and SMC_SetTorque on my hardware, it can work.

My test steps are:

In IO engineering:

  • add S-0-0040 and S-0-0084 on AT;

LiuPengfei_0-1672729458975.png

  • add S-0-0036 and S-0-0080 on MTD;

LiuPengfei_1-1672729478569.png

  • download configuration.

In PLC engineering:

  • online update RT-datalayer node of ECmaster.

LiuPengfei_2-1672729506662.png

  • insert a soe axis below ctrlX-drive node, velocity and torque can be auto mapped.

LiuPengfei_3-1672729540383.png

  • powerOn axis, and using SMC_SetControllerMode and SMC_SetTorque to switch mode and set torque. Torque mode can be actived and torque command can output.

LiuPengfei_4-1672729620445.png

LiuPengfei_5-1672729640560.png

It is hard to test torque, beacuse the axis will acelerated if a torque is applied.

What I do is  removing the cable of brake, and disable wire monitoring. Then, the brake will not relase you may set a required torque less then the brake.

LiuPengfei_0-1672730036455.png

Thanks a lot for finding the typos of xml, it will be fixed in next release version.

Hi,

The error in description file will fixed in next release of adaption package.

Yes, the error in description file may lead switching torque mode work incorrectly.

If you don't wait for next release, you can edit the decription file manually and reintall it in deveice repository.

There should be 2 changes:

<Parameter ParameterId="8040" type="std:INT">
  <Attributes channel="none" download="true" functional="false" offlineaccess="read" onlineaccess="read"/>
  <Default>
    1168
  </Default>
  <Name name="localStrings:out.dwSetTorque">
    MDT.Torque_force_command_value
  </Name>
</Parameter>

...

<Parameter ParameterId="8540" type="std:INT">
  <Attributes channel="none" download="true" functional="false" offlineaccess="read" onlineaccess="read"/>
  <Default>
    1119
  </Default>
  <Name name="localStrings:in.dwActPosition">
    AT.Actual_velocity_value_encoder_1
  </Name>
</Parameter>

Thank you!

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