It's very helpful to me.
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?
Solved! Go to Solution.
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 188.8.131.52 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
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 184.108.40.206.
How can I upload the version of this library?
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 220.127.116.11. CXA_Utilites 18.104.22.168 has already been installed in you PLC Engineering enviroment if your installation of ctrlX work 22.214.171.124 successfully. Left mouse click on CXA_UTILITIES, then all versions will be listed, select the newest version.
If you can not find CXA_UTILIES 126.96.36.199, repair installation of ctrlX works may work.
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?
The problem is still CXA_Utilities, you are using version of 0.1.0.0 now (it mainly caused by you old plc project).
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 188.8.131.52 will list below this line;
4. select CXA_Utilities, 184.108.40.206;
5. rebuild, every thing should be done;
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 .