- Configuring LinuxCNC
- Advanced Configuration
- ClassicLadder
- How to assign hal pins to %I and %Q in classicl.
How to assign hal pins to %I and %Q in classicl.
17 Nov 2013 23:07 #40896
by zek99
How to assign hal pins to %I and %Q in classicl. was created by zek99
First attempt with classicladder and linuxcnc. Only programmed Fanuc ladder with faptladder earlier.
I have a general mechatronics pci-card running. In the gm.hal file i have started classicladder with:
loadrt classicladder_rt
loadusr classicladder
addf classicladder.0.refresh servo-thread
In the halmeter I can see all the signals from the gm card for example the emergency stop signal gm.0.estop.0-in.
How do I assign the gm.0.estop.0-in signal to a classicladder input signal for example %I0? If I try to write it in the symbols list classicladder only erase it and replace it with "No hal signal connected".
I have a general mechatronics pci-card running. In the gm.hal file i have started classicladder with:
loadrt classicladder_rt
loadusr classicladder
addf classicladder.0.refresh servo-thread
In the halmeter I can see all the signals from the gm card for example the emergency stop signal gm.0.estop.0-in.
How do I assign the gm.0.estop.0-in signal to a classicladder input signal for example %I0? If I try to write it in the symbols list classicladder only erase it and replace it with "No hal signal connected".
Please Log in or Create an account to join the conversation.
18 Nov 2013 00:14 #40901
by BigJohnT
Replied by BigJohnT on topic How to assign hal pins to %I and %Q in classicl.
You have to connect I/O in your hal file to the real world.
Please read this: www.linuxcnc.org/docs/html/hal/basic_hal.html
JT
net my-name pin-1 pin-2
Please read this: www.linuxcnc.org/docs/html/hal/basic_hal.html
JT
Please Log in or Create an account to join the conversation.
18 Nov 2013 03:53 #40908
by zek99
Replied by zek99 on topic How to assign hal pins to %I and %Q in classicl.
Thank's a lot BigJohnT. I read all classicladder forum post and discovered that.
But when testing that I realize that if I made a couple of rungs, save them, quit linuxcnc and then restart no rungs shows up if I open the classicladder. If I edit the clp-file directly all my rungs are there. Hmm strange. I could edit directly into the clp-file but then you miss the point with having a ladder diagram for visibility.
I will have to connect some switches and LED's to whats working and what's not.
But when testing that I realize that if I made a couple of rungs, save them, quit linuxcnc and then restart no rungs shows up if I open the classicladder. If I edit the clp-file directly all my rungs are there. Hmm strange. I could edit directly into the clp-file but then you miss the point with having a ladder diagram for visibility.
I will have to connect some switches and LED's to whats working and what's not.
Please Log in or Create an account to join the conversation.
18 Nov 2013 04:20 #40909
by cmorley
Replied by cmorley on topic How to assign hal pins to %I and %Q in classicl.
Try save-as instead of save. I think save is broken.
Also you must specify the ladder program name when you load it.
loadusr classicladder myladder.clp
else it doesn't load any program.
Chris M
Also you must specify the ladder program name when you load it.
loadusr classicladder myladder.clp
else it doesn't load any program.
Chris M
Please Log in or Create an account to join the conversation.
18 Nov 2013 05:50 #40910
by zek99
Replied by zek99 on topic How to assign hal pins to %I and %Q in classicl.
First I thought it was because I'm running 2.6.0 but same problem in 2.5.0.
Then I suspect ownership of the hal-file or problem with the searchpath but no.
Finally, finally I discover that the whole problem was due to me ending the filename with cpl instead of clp. Gaaaaah!!
Good night friends.
Then I suspect ownership of the hal-file or problem with the searchpath but no.
Finally, finally I discover that the whole problem was due to me ending the filename with cpl instead of clp. Gaaaaah!!
Good night friends.
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- ClassicLadder
- How to assign hal pins to %I and %Q in classicl.
Time to create page: 0.187 seconds