× Forum Header

moving problem

More
01 Aug 2019 16:06 - 01 Aug 2019 16:07 #141121 by PCW
Replied by PCW on topic moving problem
If you create the hal file with pncconf you can choose the polarity at that time

If you have a working hal file already, then yes, you will need to
add a '-not' to any 7I76 field I/O pin names used for limit/home switches

that is, change:
hm2_5i25.0.7i76.0.0.input-08 to
to:
hm2_5i25.0.7i76.0.0.input-08-not

(assuming your base FPGA card is a 5I25/6I25)
Last edit: 01 Aug 2019 16:07 by PCW.
The following user(s) said Thank You: RoberCNC

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

More
01 Aug 2019 16:11 #141122 by RoberCNC
Replied by RoberCNC on topic moving problem
Yes my FPGA is an a 5i25, lets try wiring like the picture then. Thank you guys.

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

More
01 Aug 2019 19:30 #141134 by RoberCNC
Replied by RoberCNC on topic moving problem
thank you very much guys, as you said and after adjusting the HAL file a little (I don't know why exactly it makes things bad for me ...) the operational limits are already there.

Now I would like to increase the movement speed, if I exceed maxvel = 12, the following join0 error is skipped. Is this my speed limit? I enclose INI file in case I am doing something wrong.

File Attachment:

File Name: CNC.ini
File Size:4 KB
Attachments:

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

More
01 Aug 2019 19:39 #141135 by PCW
Replied by PCW on topic moving problem
I think this was done with a quite old version of pncconf
There will be errors in both the ini and hal files

In the INI file, replace the PID P values of 50 with 1000

Can you post your hal file, it will need work also

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

More
01 Aug 2019 20:30 #141142 by RoberCNC
Replied by RoberCNC on topic moving problem
Sure, here you have
Attachments:

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

More
01 Aug 2019 20:39 #141145 by PCW
Replied by PCW on topic moving problem
in the hal file, delete all lines like:

setp pid.N.maxerror .0005
and
net N-vel-cmd => pid.N.command-deriv

(where N is x,y,z,a etc)

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

More
01 Aug 2019 20:56 - 02 Aug 2019 05:42 #141149 by RoberCNC
Replied by RoberCNC on topic moving problem
Done.

what speeds could it reach, how do I determine them?

Following join error still remains
Last edit: 02 Aug 2019 05:42 by RoberCNC.

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

More
01 Aug 2019 22:06 - 01 Aug 2019 22:07 #141154 by PCW
Replied by PCW on topic moving problem
Speeds will be limited by your motor/drives

If you have step motors often the limitation is that you need to compromise speed
for acceleration since you lose so much torque at higher speeds
and you need enough margin that you never stall on rapids

Edit if you still have following errors, please post you current hal and ini files
Last edit: 01 Aug 2019 22:07 by PCW.

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

More
02 Aug 2019 05:50 - 02 Aug 2019 06:42 #141169 by RoberCNC
Replied by RoberCNC on topic moving problem
I understand what you say PCW, I do not want frantic speeds either, I have no route for them hahaha, but if I would like something faster, especially when positioning machine, something about 20-30 would be fine I think. Indeed they are steppers, Nema23 of 425oz. Give me a few minutes and I put the files as I currently have them.

Following error still remain, specially in join 0.
Attachments:
Last edit: 02 Aug 2019 06:42 by RoberCNC.

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

More
02 Aug 2019 08:46 #141178 by RoberCNC
Replied by RoberCNC on topic moving problem
There is no way to go from max_vel = 10 and now during machining I lose the Y axis, suddenly stop moving :(

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

Time to create page: 0.181 seconds
Powered by Kunena Forum