Join us today!

Notifications
Clear all

Automatic Hardware Configuration

9 Posts
5 Users
2 Reactions
747 Views
Posts: 17
Topic starter
(@joris)
Eminent Member
Joined: 2 years ago

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

Reply
8 Replies
2 Replies
runtimevictor
(@runtimevictor)
Joined: 2 years ago

Estimable Member
Posts: 156

@joris ,

watch this :

https://www.yellax.com/integraties/beckhoff/

Reply
(@chrisk)
Joined: 2 years ago

Active Member
Posts: 11

@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

Reply
Posts: 11
(@chrisk)
Active Member
Joined: 2 years ago

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.

Jakob Sagatowski

I hope that's what you are after.

 

Reply
4 Replies
twinControls
Admin
(@twincontrols)
Joined: 2 years ago

Member
Posts: 114

@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.

Reply
(@chrisk)
Joined: 2 years ago

Active Member
Posts: 11

@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)

Reply
(@chrisk)
Joined: 2 years ago

Active Member
Posts: 11

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.

Reply
(@joris)
Joined: 2 years ago

Eminent Member
Posts: 17

@twincontrols

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

Reply
Posts: 17
(@romang)
Eminent Member
Joined: 2 years ago

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

Reply
Share: