Pressbrake CNC Control Setup Questions

More
5 years 4 months ago #210994 by EW_CNC
I have the homing working on the brake ram, but I end up with negative position readout. It is because I have encoder scale with a negative so that it counts up as it lowers. Should I be reversing the A & B channel wires on the encoder to reverse count direction rather than giving the scale a negative?

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

More
5 years 4 months ago #210996 by PCW
Yes, swapping A,B encoder signals will reverse the encoder direction
Beware that this will also change the feedback from negative to positive=runaway
so you need to change the sign of the output scale at the same time

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

More
5 years 4 months ago #211006 by andypugh

flamecutter wrote: I have the homing working on the brake ram, but I end up with negative position readout. It is because I have encoder scale with a negative so that it counts up as it lowers?


I am working away from home for the next couple of days, but will take a look when I get back. I think down=negative might be baked-in to the code, so let me check.

Is down=positive usual for a press brake?

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

More
5 years 4 months ago #211046 by EW_CNC
Yes! I got Axis0 the Brake Ram working!
I kept struggling with the negative position reading, the zero point was below the index. I finally decided it must be applying the home offset wrong. I ventured to change the press component, and subtract the axis_home_offset from the axis_pos_fb_in instead it being added. Line 175
Code:
offset(axis) = axis_pos_fb_in(axis) - axis_home_offset(axis);
Recompiled it and it worked! Maybe it'll help me develop some troubleshooting skills! Next step is getting the backstop homing worked out.

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

More
5 years 4 months ago #211372 by andypugh
So, what is the current status?

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

More
5 years 4 months ago #211438 by EW_CNC

andypugh wrote: So, what is the current status?

I'm back to working on the backstop homing. No success yet.
I have the brake ram working down=positive with the homing switch at the 0 negative end of travel.
The backstop has its homing switch at the back=positive of the axis travel, opposite direction of the ram.
The backstop has an index pulse approx. every 20mm.
I tried inverting the home switch input, which lets it search in the right direction, but it does not continue long enough to find an index after tripping the home switch.
Code:
net home1 press.axis.1.home-switch hm2_7i97.0.inmux.00.input-15-not

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

Time to create page: 0.140 seconds
Powered by Kunena Forum