CL logic to make LCNC buttons work like industrial machines

More
5 years 9 months ago #194122 by Mike_Eitel
Sorry for late answer
This file is ASCII. Easy to edit.
With a bit fiddeling you can understand f.x. that one rung is one line.
So moving a line to another position moves it.
I remember that i also replaced var names.... etc.
Mike

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #194123 by Mike_Eitel
Honestly, i find CL a pain in the...
But to write real simple plc logic much more efficient than hal.
I'm a fan of iec61131.
Mike

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #194125 by rodw

Mike_Eitel wrote: Honestly, i find CL a pain in the...
But to write real simple plc logic much more efficient than hal.
I'm a fan of iec61131.
Mike


Me too, I've never bothered to look at CL. becasue I've never programmed a PLC.
I'd just write a custom component in C which I think is Linuxcnc's jewel in the crown.

Its funny, there has barely been a mention of CL for ages and all of a sudden a few people are discussing it.

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #194126 by Mike_Eitel
Make's sence to me.
If you are coming from standart automation world, plc programing is the absolute best way to go. C can only be acceptet for specialities. I f.x. dislike C as IT does not prevent me from my typos in concern of theses dam... ; 's. ;-()
Mike
The following user(s) said Thank You: rodw, The Feral Engineer

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago - 5 years 9 months ago #194388 by nkp
I10 - ?
I11 - ?
I13 - ?
==============================
When you first start the program, almost always an error:
can't do that (EMC_TRAJ_SET_TELEOP_ENABLE) in auto mode with the interpreter paused

Lcnc 2.7 Axis
PS
The scheme needs improvement

net mode:is:auto classicladder.0.in-14 halui.mode.is-auto
Last edit: 5 years 9 months ago by nkp.

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #194416 by nkp
This works fine.

net auto classicladder.0.in-00 pyvcp.run
net feed-hold classicladder.0.in-01 pyvcp.feedhold
net program-idle classicladder.0.in-02 halui.program.is-idle
net single-block classicladder.0.in-03 pyvcp.step
net mode:is:auto classicladder.0.in-04 halui.mode.is-auto
net btn-stop classicladder.0.in-05 pyvcp.stop

net auto-mode-select classicladder.0.out-00 halui.mode.auto
net cycle-start classicladder.0.out-01 halui.program.run
net feed-resume classicladder.0.out-03 halui.program.resume
net single-block-select classicladder.0.out-04 halui.program.step
net program-stop classicladder.0.out-05 halui.program.stop

net feed-hold-select classicladder.0.out-02 halui.program.pause

Please Log in or Create an account to join the conversation.

Time to create page: 0.144 seconds
Powered by Kunena Forum