- Posts: 19306
- Thank you received: 0
Pressbrake CNC Control Setup Questions
Compile / install it with
Once installed
It takes a number of position commands on HAL pins from a GUI, and outputs a target position and velocity.
These should be the inputs to either a limit3 or simple_tp HAL component (I am not sure which will work best) to control velocity, accel and limits. Then the output of that would go to your PID.
The press component also needs to see the position feedback. Provision might have to be made for homing if your scales are not absolute.
I have assumed a three-position foot pedal with up, down and neither outputs.
Starting at the top, pressing the down switch will request a down feed. Releasing the down will set the velocity to zero.
Actuating the up switch will start a retract. releasing the up switch on a retract will stop the motion.
When the press reaches the start height the speed will be changed.
At the finish height motion will stop. Releasing the pedal _without_ actuating the up switch, then re-actuating the down switch will set a target press.0.tweak-down lower. This can be repeated indefinitely.
Please Log in to join the conversation.
Yes, the UI works, and yes it is only partially set up. I had an electrician, friend helped me retrofit the tubing bender and we got it working and never took the time to refine it. He did the glade gui so I will still need to learn the process myself.andypugh wrote:
Does that UI work? It looks like it is only partially set up, but perhaps I am missing things.
Thanks for the press.comp, looks good. I'm hoping to work at the project today and see if I can make any progress.
Please Log in to join the conversation.
It's prpbably best to define your "wish list" early in the process, and maybe sketch out some GUI designs as you would like them, rather than how you know how to make them in Glade.
Should the bar go down to depth and stay there, or auto-retract a little once at-depth?
Pause at depth?
The state machine should probably have some timeouts and/or overload "escapes"
Please Log in to join the conversation.
Attachment not found
Unzip the archive somewhere on your HD. Probably linuxcnc/configs/Bender
You will need to install the press.comp
Things that I gave up on for the moment
1) File save / open etc.
It's mainly intended as a basic skeleton for your real machine.
Please Log in to join the conversation.
But I left it in so that it is easy to open a halmeter and watch things / explore the HAL pins, etc.
Please Log in to join the conversation.
I have also re-arranged the UI layout.
Re-download the ZIP file for the new version. There are also changes to the press.comp, that will need to be re-installed.
Still no file save / load though. But I am looking at it.
Please Log in to join the conversation.
(re-uploaded the zip file)
I will stop now, awaiting feedback from someone who has at least used a press brake.
What would be useful? "dublicate bend" button?
Once you are going up, you can't go down again. Is that OK?
Please play with the simulator and see how it feels.
I think that there is plenty of scope for cosmetic improvement too.
Please Log in to join the conversation.
Now my next step is to get it to work with my machine. I've been trying to get the press.comp to work in axis gui, but just can't get it going. Might be with my encoder, pwm, pid settings. I'll attach my hal file. I had the ram jogging before with keyboard y jog.
How do I merge my settings with your program?
Do I use an ini file?
Where do I keep the pid settings?
Attachment not found
Attachment not found
Please Log in to join the conversation.
flamecutter wrote: Now my next step is to get it to work with my machine. I've been trying to get the press.comp to work in axis gui, but just can't get it going.
Basically the output of the simple_tps in my config would need to go to the input of the pids in your config.
You can do away with the INI, or pass it to the HAL file in the bash script with a -i option.
linuxcnc.org/docs/2.8/html/man/man1/halcmd.1.html
If you prefer to not use the INI then you can put the PID gains in the HAL:
You should remove the loadrt MOTMOD and loadrt KINS lines, and remove anything with "motion" in the name from the HAL.
Do you need homing? There isn't any homing in my config, it rather depends on an absolute encoder as things stand.
There is also nothing controlling machine on/off state or e-stop etc at the moment.
Please Log in to join the conversation.
Yes, I will need machine on/offAs far as homing goes, now yet I was manuel homing with ram cylinder at top of stroke. Should I be adding a homing switch or is it possible to home off of encoder index?My encoder is an incremental linear encoder.andypugh wrote: Do you need homing? There isn't any homing in my config, it rather depends on an absolute encoder as things stand.There is also nothing controlling machine on/off state or e-stop etc at the moment.
Please Log in to join the conversation.
