Join us today!
Codesys OOP motion template Axis Beckhoff TwinCAT
Hello,
I have obtained the OOP Motion Codesys library as a template for an Axis of motion...
It seems to me a good library and I would like to use it in TwinCAT...
After installing the library in TwinCAT I don't know how to make an example since I don't know how to link the axis in PLC, because in TwinCAT it asks us for AXIS_REF from, for example, the TC2_MC2 library to be able to link...,
How can I solve it in the best way to use this library?
I attach the library and the document, I also attach a photo so you can see that there are some examples of the library provided,
any help or suggestion would be great...
Greetings, Victor.
https://github.com/runtimevic
https://github.com/TcMotion
https://www.youtube.com/playlist?list=PLEfi_hUmmSjFpfdJ6yw3B9yj7dWHYkHmQ
https://github.com/VisualPLC
@runtimevictor Hi, Have you checked this tutorial ? It shows how to add a virtual axis and link it to the PLC.
In case you want to say thank you !)
We'd be very grateful if you could share this community with your colleagues and friends. You can also buy us a coffee to keep us fueled 😊 This is the best way to say thank you to this project and support your community.
twinControls - https://twincontrols.com/
what you indicate is not the problem, the issue is that if you look at the FB class provided by Codesys it does not contain AXIS_REF, and what I am asking is what would be the best way to take advantage of the library...
https://github.com/runtimevic
https://github.com/TcMotion
https://www.youtube.com/playlist?list=PLEfi_hUmmSjFpfdJ6yw3B9yj7dWHYkHmQ
https://github.com/VisualPLC
@runtimevictor You will need to develop a class that implements the interface itfAxis. You will then need to provide the implementation specific to Beckhoff's specifications. Page 6 of the pdf you sent contains this excerpt below.
@treyem ,
Yes, that is how I have started, but I would like if someone can get the source code of the Codesys library? In this way I would have the Axis Class FB that they provide and it would be very useful for me to make the TwinCAT one...
https://github.com/runtimevic
https://github.com/TcMotion
https://www.youtube.com/playlist?list=PLEfi_hUmmSjFpfdJ6yw3B9yj7dWHYkHmQ
https://github.com/VisualPLC
I don't think they will give that up to us. The library you sent is a template. It's up to the user to write the implementation for the specific vendor.
The advantage is you can use the same methodology on any Codesys platform so your work is easier to create and troubleshoot.
@treyem ,
I'm going to try to ask codesys to see what they answer me.., source code library Codesys OOP Motion template Axis...
https://github.com/runtimevic
https://github.com/TcMotion
https://www.youtube.com/playlist?list=PLEfi_hUmmSjFpfdJ6yw3B9yj7dWHYkHmQ
https://github.com/VisualPLC
We'll see what they say. Since there is no implementation in the template they gave you, you can copy and paste the declarations into your own project and use that as your start point.
@treyem ,
that's the work I'm doing right now, if anyone else is interested, I can make the repository on GitHub to share and wait for help....
https://github.com/runtimevic
https://github.com/TcMotion
https://www.youtube.com/playlist?list=PLEfi_hUmmSjFpfdJ6yw3B9yj7dWHYkHmQ
https://github.com/VisualPLC
Hello,
In the end I have created an organization on GitHub, TcMotion, to create this Axis Motion OOP component with the PLCOpen template...
Any help or desire to collaborate is welcome, send me the username or email of your GitHub account so that I can send you the invitation...
I hope that you will be encouraged and in the future that it will be an awesome of motion...
Thank you all and I hope we can collaborate... 😉 👍 .
https://github.com/runtimevic
https://github.com/TcMotion
https://www.youtube.com/playlist?list=PLEfi_hUmmSjFpfdJ6yw3B9yj7dWHYkHmQ
https://github.com/VisualPLC
Hello,
I have a question and I don't know what is the best way to solve it, I would be grateful if someone could help me solve it in the best possible way...
I attach a photo, the project is hosted on GitHub in the TcMotion organization, anyone who wants to be part or collaborate is also welcome to the community...
I would like to be able to choose the best way to get the Done output of MC_MoveAbsolute?...
https://github.com/TcMotion/Component_Motion_OOP_Axis/issues/6
https://github.com/runtimevic
https://github.com/TcMotion
https://www.youtube.com/playlist?list=PLEfi_hUmmSjFpfdJ6yw3B9yj7dWHYkHmQ
https://github.com/VisualPLC
- 17 Forums
- 265 Topics
- 932 Posts
- 2 Online
- 689 Members