Join us today!
Automatic Hardware Configuration
Hi everyone,
I'm interested in automatic hardware configuration according to the hardware (IO, driver...). Does anyone know how to do this? Python script...?! I don't have any idea or start point.
Thanks
https://github.com/runtimevic
https://github.com/TcMotion
https://www.youtube.com/playlist?list=PLEfi_hUmmSjFpfdJ6yw3B9yj7dWHYkHmQ
https://github.com/VisualPLC
@joris @twinControls Hi All, i dont know if this will be of interest to you, but i've started a wpf application that begins this process, you can find it here: https://github.com/chris-k84/TwinCAT-Launcher
currently all it does is lets you chose a file location and project name, it then creates that for you. i plan to extend it to create the PLC and create ADS routes to targets as this will let you automate the IO scans.
If you want to join in we can extend this base tool to perform many actions
When you say automatic hardware config what do you mean? The automation interface is a programmatic tool for doing all the operations in TwinCAT visual studio in C#.
You can create tasks, create plc, modify code, scan io, update EtherCAT devices parameters.
There is a link here to Infosys on it Automation Interface.
You can even use it for remote deployment and it forms the basis of CI/CD for TwinCAT projects.
You can find a blog on it here which is well worth reading.
I hope that's what you are after.
@chrisk I think what he means is using tools like Excel or Python to automate and shorten the program development time. For example generating IOs or creating some of the logic.
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/
@twincontrols thanks, that does make sense, you can use the automation interface to create and open a twincat project, scan io and automatically add a plc project. I have some random bits I've added Github which show some of the functionality, it's not a project just a bunch of methods for doing different bits. Maybe we could make a tool, that you run, it creates a project for you and scans io and then creates a gvl and creates the links for you. (While you have a tea because it won't be turbo quick)
Thinking you could make the tool so it gets the io, exports into excel, you then apply a naming convention, the tool takes that and creates the gvl, does a build and then does the links.
Not really sure we could shoe horn python in.
Hello everyone. Sorry for the delay I was an a huge project. Anyway.
Yes I want to use "universal tool", like python or an other... because I'm not on beckhoff hardware, I'm on Codesys but it's very close.
Thanks all. I'll check your answers
Perhaps something like this?
https://github.com/TcOpenGroup/Examples-TopologyRenderer
I never tried it, and don't fully understand it, but perhaphs look into it.
There is more info on Youtube
- 17 Forums
- 265 Topics
- 932 Posts
- 5 Online
- 688 Members