Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important information on the platform change.

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

How to use Axis Interface without template?

How to use Axis Interface without template?

bschmidt
New Contributor

Hello,

AxisInterface works fine for me when I add the template to the project. But if try to add AxisInterface to an empty project it is not working. MB_AxisInit appears to complete successfully (Done = TRUE) and MB_AxisInterfaceBase is being called cyclically, but I cannot write to any of the control structure elements. For example the OpMode is always stuck at ModeAb and PosMode.Position always shows 0 when I try to Write Values or do a MOVE move to load a target position. I have tried my own data structures as well as the pre-defined data structures of CXA_MotionInterfaceUser but it makes no difference. The blocks look the same how they looked in MLC but I must be missing something. Since since the template is now part of a compiled libary I can't see what's going inside, otherwise maybe I could figure out what else I need.

Best regards,

Brian

bschmidt_0-1657169238193.png

 

6 REPLIES 6

Goldfinger
Established Member

Hello Brian,

regarding: since the template is now part of a compiled libary I can't see what's going inside, otherwise maybe I could figure out what else I need.

The part, that was imported on the MLC is in CXA_MotionInterfaceUser.library and you can open it and have a look. You can also adapt this library to your needs. See documentation: https://docs.automation.boschrexroth.com/doc/158732724/introduction-and-overview/latest/en/

Best regards,

Klaus

I am seeing the same issue when trying to use Axis Interface without the template. I would like to be able to use the MB_AxisInit and MB_AxisInterfaceBase independant of the template to allow converting some existing MLC projects. I would like to have them be as close as possible to the current layout and existing code. I get the same results where the MB_AxisInit appears to complete successfully with a done output and no errors. The MB_AxisInterfaceBase is being called cyclically, but I am not able to change any of the data. It acts like something else has control of all the parameters and it is locked from being changed. I can see some data and certain active items. It gives the appearance that the init and function block calls are doing something, but it is not allowing parameter access like I would expect. Any help would be appreciated.

Thank you

I looked into the code for the template and could not find anything of significance that is different. It just looks like the template ultimately calls the same two function blocks via a loop to handle multiple axis and the MB_AxisInterfaceBase is extended to include a routine for retriggering. Nothing was jumping out at me that would provide a different path to make this work independently. Again any ideas or suggestions would be appreciated.

Thank you

Hello,

i still recommend to use the CXA_MotionInterfaceUser.library. Maybe something like a CXA_MotionInterfaceMLC_User.library would be helpfull for customers coming from the MLC?

I think, what you are missing is a part of the method TE_AxisInterface.mInitExtension() from the CXA_MotionInterfaceUser.library. 

Background: the AxisCtrl and AxisStatus are no longer "normal" structures. They are build up by function blocks that are connected to the FB MB_AxisInterfaceBase. This allows the usage of properties and variables in AxisCtrl and AxisStatus.

Why so complex? This is more performant and allows to react direct on user inputs, e.g. CmdDone can be checked direct after an _OpMode assingment.

Goldfinger_0-1657804427944.png

Hope this helps,

Klaus

Hello Klaus,

Your information was helpful. By doing this: 

AI_AdminCtrl.FB_REF REF= MB_AxisInterfaceBase_0;

for each structure, MB_AxisInterfaceBase is now working on its own without using the template. Now we are trying with TE_AxisInterface. I don’t understand why it has two sets of structures. For example AdminCtrl and AdminCtrlExt. I would expect it only needs the extended structures - this is how it looks in MLC/IndraWorks. In any case it doesn’t seem to matter if I use FB_REF on one or both those sets of structures, I can’t get it to work. Just wondering if you had any further advice about this.

Best regards,

Brian

bschmidt_1-1662130271715.png

 

Any news here?

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