Determining Zero Pulse position For Beckhoff Axis : Différence entre versions

[version en cours de rédaction][version en cours de rédaction]
(Page créée avec « {{Tuto Details |Main_Picture=Determining_Zero_Pulse_position_For_Beckhoff_Axis_2025-03-20_16-00-07.PNG |Main_Picture_annotation={"version":"2.4.6","objects":[{"type":"imag... »)
 
Ligne 69 : Ligne 69 :
 
{{Tuto Step
 
{{Tuto Step
 
|Step_Title=<translate>Home again and Mark second line</translate>
 
|Step_Title=<translate>Home again and Mark second line</translate>
 +
|Step_Content=<translate>Measure the distance between the two</translate>
 +
|Step_Picture_00=Determining_Zero_Pulse_position_For_Beckhoff_Axis_2025-03-20_16-00-07.PNG
 +
}}
 +
{{Tuto Step
 +
|Step_Title=<translate>Calculate the units per turn</translate>
 +
|Step_Content=<translate>Using the scaling factor for the axis from the axis parameters, calculate the distance moved for one turn of the motor.
 +
 +
 +
This is 1,048,676 divided by axis scaling factor.
 +
 +
 +
Example - Y axis
 +
 +
1048576 / 104857.6 = 10mm per turn
 +
 +
<br /></translate>
 +
}}
 +
{{Tuto Step
 +
|Step_Title=<translate>Analyse results</translate>
 +
|Step_Content=<translate>An ideal distance would be equivalent to one half turn (eg for a 10mm pitch leadscrew, the ideal would be 5mm, so the axis has to rotate one half turn.
 +
 +
 +
As a rule of thumb,
 +
 +
* if the difference in distance is less than 25% of the units per turn, it is a good idea to move the datum position.
 +
* If it is less than 10%, it is vital the position is moved.</translate>
 +
}}
 +
{{Tuto Step
 +
|Step_Title=<translate>Move datum flag position</translate>
 +
|Step_Content=<translate>Datum position can be moved by
 +
 +
* Moving the flag position (if possible). Depends on the mechanical setup of the system
 +
* Turning the motor by 90 or 180 degrees. Not always possible due to the cable inlet.
 +
{{Warning|...Take note if rotating the motor that the zero pulse actually moves in the correct direction. There is a 50 / 50 change it will move the wrong way!}}<br /></translate>
 +
}}
 +
{{Tuto Step
 +
|Step_Title=<translate>Return the axis to Software Sync</translate>
 
|Step_Content=<translate></translate>
 
|Step_Content=<translate></translate>
 +
}}
 +
{{Tuto Step
 +
|Step_Title=<translate>Datum test any axes changed</translate>
 +
|Step_Content=<translate>Vital to check and reset the datum offset after any changes</translate>
 
}}
 
}}
 
{{Notes}}
 
{{Notes}}
 
{{PageLang
 
{{PageLang
 +
|Language=en
 
|SourceLanguage=none
 
|SourceLanguage=none
 
|IsTranslation=0
 
|IsTranslation=0
|Language=en
 
 
}}
 
}}
 
{{Tuto Status
 
{{Tuto Status
 
|Complete=Draft
 
|Complete=Draft
 
}}
 
}}

Version du 20 mars 2025 à 18:48

Auteur avatarGareth Green | Dernière modification 20/03/2025 par Gareth Green en cours de rédaction

Introduction

Problem

If the zero pulse position is very close to the the home switch position, a common fault can occur where the axis datum moves out of position by one rotation.

This manifests itself as a Y/Z axis being 5 / 10mm out or a gripper around 32mm out

The problem is easy to solve once detected, by either moving the home switch flag, or rotating the motor by one quarter turn.

However, this means the fault has to happen before detection.

This tutorial describes how to predict if this will be a problem, so the corrective action can be taken before it creates the issue

Étape 1 - Prepare

Enter setup mode and load the TwinCAT project

Étape 2 - Navigate to the axis

In TwinCAT, navigate to the Axis->Enc->Parameter->Homing

Reference Mode


Check which system the axis is using

PLC - This method uses just the home switch for zero. Fine for low accuracy axes (GY, GZ). The Zero pulse offset will not affect this mode, so STOP HERE.

Software Sync- This method uses the home switch then zero pulse seek. Better for higher accuracy, but opens the risk of this problem

Default - This is not a good setting because it is not clear which mode. It is a good idea to change this to Software Sync to ensure the best possible datuming method is maintained.


...If the axis uses PLC mode, there is NO NEED to continue this test



Étape 3 - Run a home cycle

Home the axis from the drives screen



Étape 4 - Mark

Mark on the axis where the home position is.

Mark this line with a Z to denote "Zero Pulse".

...The photos show two lines - Sorry!


Étape 5 - Change the Homing Mode

Change the homing mode to "PLC"

Click Download



Étape 6 - Home again and Mark second line

Measure the distance between the two



Étape 7 - Calculate the units per turn

Using the scaling factor for the axis from the axis parameters, calculate the distance moved for one turn of the motor.


This is 1,048,676 divided by axis scaling factor.


Example - Y axis

1048576 / 104857.6 = 10mm per turn


Étape 8 - Analyse results

An ideal distance would be equivalent to one half turn (eg for a 10mm pitch leadscrew, the ideal would be 5mm, so the axis has to rotate one half turn.


As a rule of thumb,

  • if the difference in distance is less than 25% of the units per turn, it is a good idea to move the datum position.
  • If it is less than 10%, it is vital the position is moved.

Étape 9 - Move datum flag position

Datum position can be moved by

  • Moving the flag position (if possible). Depends on the mechanical setup of the system
  • Turning the motor by 90 or 180 degrees. Not always possible due to the cable inlet.
...Take note if rotating the motor that the zero pulse actually moves in the correct direction. There is a 50 / 50 change it will move the wrong way!

Étape 10 - Return the axis to Software Sync

Étape 11 - Datum test any axes changed

Vital to check and reset the datum offset after any changes

Commentaires

Draft