Dear Community User! We will start the migration process in one hour.
The community will be then in READ ONLY mode.
Read more: Important information on the platform change.

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

Motion with PLCOpen

Motion with PLCOpen

David08
Long-established Member

Hello,

I am testing the promoter kit version RM20.07.
I want to move the real axis with the PLCOpen FBs.
There is a real axis declared in CtrlX with the name AxisX.

I insert the PLCOpen library and use the MC_Power Fb , but I have compilation errors (see attached).
How do I declare the Axis_Reference?

How to manage an axis created in CtrlX from PLC engineering with PLCOpen?
 
Thanks in advance.
7 REPLIES 7

LiuPengfei
Established Member

Hello David,

This problem is caused by library version.

You can solve this problem this way:

1. open "Library Manager" --> Placeholders

2. check version of CXA_Utilities you are using now, the rigth version should be 1.2.1.0 or later.

Another thing in your "PLC_PRG":

name of AxisX should be assigned at the begaining, code like this: AxisX.AxisName := 'AxisX'; // AxisX is axis name you defined on web browser

David08
Long-established Member

Thanks LiuPengfei for the reply.

The problem is that my CtrlX PLC engineering version 1.4.0 cannot update the CXA_PLCOpen library to a higher one.

The current and maximum version is 1.2.0.4.

How can I upload the version of this library?

Thank you.

LiuPengfei
Established Member

Hello David,

Generally, the compatible version of all plc libraries will be installed during installation of ctrlX works.

In your plc project, PLCopen library is the newest version that we released. But the problem is CXA_Utilites, the version you are using is 0.1.0.0 which is a very old version and CXA_PLCopen is not compatible with it (because CXA_PLCopen will use it internally).

So, I my recommendation is to upgrade the CXA_Utilites to 1.2.1.0. CXA_Utilites 1.2.1.0 has already been installed in you PLC Engineering enviroment if your installation of ctrlX work 1.4.0.0 successfully. Left mouse click on CXA_UTILITIES, then all versions will be listed, select the newest version.

2020-09-25_10h36_51.png

If you can not find CXA_UTILIES 1.2.1.0, repair installation of ctrlX works may work.

David08
Long-established Member

Hello LiuPengfei,

I have managed to update the CXA library to version 1.2. The problem was when I was using a project from an old configuration.

Now I am trying to move the axis with the PLC_Open library but I get errors when compiling (picture attached).

I think something needs to be instantiated.
What could be the problem?

Thanks!!!

LiuPengfei
Established Member

Hi David,

The problem is still CXA_Utilities, you are using version of 0.1.0.0 now (it mainly caused by you old plc project).

LiuPengfei_0-1601283681482.png

You can set to the right version by following step:

1. open "Library Manager" in the device tree;

2. mouse left click "Placeholders";

3. mouse left click line of "CXA_UTILITIES=CXA_Utilities, 0.1.0.0(Bosch Rexroth AG)", then a version of 1.2.1.0 will list below this line;

4. select CXA_Utilities, 1.2.1.0;

5. rebuild, every thing should be done;

Good luck.

 

If you want an example I made one with PLCopen some months ago. With some pictures..  -> https://developer.community.boschrexroth.com/t5/ctrlX-PLC/PLC-project-using-the-simple-PLCopen-FBs-f...

Maybe you allready saw it .

Regards, Stefan

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