SCALE CALIBRATION for ETHERCAT

More
22 Jun 2023 13:29 #274046 by akg1904
SCALE CALIBRATION for ETHERCAT was created by akg1904
Hi,

I have a little question about getting the right movement on my CNC machine with EtherCAT(Servo Drive).
When I'm trying to move my axis 1mm, the axis moves 5mm. But my DRO indicates that my machine moved only 1mm.
I tried using SCALE to compensate as shown in following link:

forum.linuxcnc.org/plasmac/45808-scale-axis?start=0

but nothing changed.

When I was reading the following post:
forum.linuxcnc.org/38-general-linuxcnc-q...ling-of-axis?start=0

I found out about ENCODER_SCALE and tried that also but still there was no change.
Now I don't know how to compensate it.

encoder counts per revolution = 2500
screw pitch = 5mm
encoder is mounted on the motor
There is no gear reduction(I think) as Motor:leadsrew = 1 : 1

Please help me figuring it out

Regards
Abhishek
 

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

More
25 Jun 2023 08:36 #274194 by pippin88
Replied by pippin88 on topic SCALE CALIBRATION for ETHERCAT
Does your servo drive have electronic gearing enabled?

You are using ethercat, not step+dir right?
I have not used ethercat yet, but I think LinuxCNC tells the drive how far to move (not how many steps)? I could be wrong.

If you jog the servo drive (using servo drive software) does it move the right amount?

What control method are you using? Cyclic position control?

​​​​​

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

More
26 Jun 2023 04:52 #274220 by am-i-go
Replied by am-i-go on topic SCALE CALIBRATION for ETHERCAT
The ENCODER_SCALE in the ini file only stores the value for convenience, so that the settings are collected in one place. And in theory, in a hal file, you can write like this:

#config
setp cia402.0.csp-mode 1
setup cia402.0.pos-scale [JOINT_0] ENCODER_SCALE

But I could not achieve work in this case and just specify the number in the hal file.

And the fact that 5 millimeters will be passed in one revolution of the motor is the way it should be.
And so in order to achieve an offset of 1 millimeter, the scale should be 2500/5 = 500.

setup cia402.0.pos-scale 500.

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

More
26 Jun 2023 06:19 #274224 by akg1904
Replied by akg1904 on topic SCALE CALIBRATION for ETHERCAT
Thank you all for your replies.

I was able to figure out how to change scale in system using Ethercat.
We need to change scale in below line of hal file:
setp cia402.4.pos-scale 10000

Regards
Abhishek
The following user(s) said Thank You: tommylight

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

Time to create page: 0.055 seconds
Powered by Kunena Forum