Connecting axis motor drivers
The axis motors are responsible for moving the machine into position. Each axis can have up to two motors with a total of motors across all axes, motors can perform linear movement, rotary movement, and general-purpose movements like automatic tool changers.
The has several connectors to connect the motor drivers. It can be wired up using screw terminals and wires, IDC connectors, or RJ45 connectors. All these options carry step, direction, and enable signals, but because of space constraints, only the IDC and RJ45 connectors carry an alarm signal. A choice must be made based on preference and availability of adapters.
Always consult the manual of the motor drivers to see if specific additional wiring steps need to be taken. This manual is meant to be generic and cannot contain every combination.
Connecting a motor driver to the using the screw terminals is generally possible for all drivers. While other connection methods may offer easier connections, connecting them via the screw terminals will work for all drivers. The supports both sinking (NPN) and sourcing (PNP) single-ended control signals. Consult the manual of the driver to see which of these two methods are allowed.
In this wiring option, all negative terminals of the driver are wired together to the ground terminal. Each positive terminal on the driver is wired to its respective terminal on the {{c.
In this wiring option, all positive terminals of the driver are wired together to the +5V terminal. Each negative terminal on the driver is wired to its respective terminal on the.
Before connecting, check if the connector on the driver side has the same pinout. If so, this driver can be connected with just a single 10-pin ribbon cable between the controller and the driver.
The cable must be of the patch type (not cross) to prevent damage to both the controller and the motor driver.
The RJ45 connectors on the provide the same step/direction interface as the other connectors. These can be connected to all first-party motor connection accessories like the JMC Adapter T1. When using a non-EdingCNC RJ45 adapter or device, always check the pinout to see if it matches, the image above is seen from the RJ45 socket on the , when viewing from the connector end, the connections are reversed.
Start the software with the machine connected. Navigate to Setup -> Machine general -> Motors.
Details on any setting can be found on the Joint settings page. This guide covers the most commonly used applications only.
Any axis that needs to be visible on the DRO in the Operate view should be marked as visible in the "Visible in Operate view" setting.
In general, port 1 on the controller should map to the X axis, 2 to Y, 3 to Z, etc. This can be changed if this mapping cannot be followed for some reason. If a port is currently in use, it will not show up to select, first remove that port from where it is used and then select the new port.
The slave mode setting sets the purpose of the additional axis. It can be set as a slave to another axis also known as a tandem axis, as a rotational axis, as a tangential knife, or used in a special kinematics type. All options except the rotational axis require additional setup.
The "steps per unit" setting is the number of steps (including microsteps) that are required to move the machine 1 unit (mm or inch). To calculate this value, two parameters should be known.
- The number of steps per revolution of the motor. For stepper motors, this equates to the number of full steps per revolution (usually either 200 or 400) multiplied by the microstepping setting (usually 1, 2, 4, 8, 16, etc.). For servo motors, this is usually a parameter in the drive.
- The distance traveled by rotating the motor one full revolution. In simple situations where the motor is directly coupled to a lead/ball screw this value is just the pitch of the thread. When using pulleys, this value changes depending on the gearing ratio. When using a rack and pinion, these values are usually listed.
Using these two values the steps per unit (referred to as revolution) can be calculated as follows:
Loading...
Direction inverted changes the direction of the axis. This setting is usually best set by trial and error. If the machine moves in the wrong direction, just change this setting. Keep in mind that slave axes cannot be inverted independently from the master.
The positive and negative limits are the amount of travel available from the home position. If these are known from the design, they can be set now, if they have to be found by moving the machine to its extremes, they should be done last.
Ensure that the E-Stop switch has been wired correctly according to the instructions in Connecting an E-stop switch. Failure to do so may result in damage to the machine or injury to the operator. Check local regulations for specific instructions.
Make sure the software is started and a connection to the machine has been established. If the software was previously started, restart to ensure the machine is in a freshly initialized state. Without further action check the following:
- Check that the drivers are not enabled if the drive enable signal was wired.
- Make sure the E-Stop is not pressed and no error regarding this is displayed.
Now press the reset button (F1) and check the following:
- Check that the drivers are enabled. Regardless of the enable signal setup, it should now be enabled.
- Check that no Drive-Alarm or Drive-Errors are displayed. If there are errors, first check if the drivers are actually in an error state before changing the value in the setup. This can usually be seen by an indicator on the driver.
Jog the machine by opening the jog pad (F10), pressing step size, and pressing the button for the respective axis. Make sure the step size is small when unsure about the step/unit setting. Check for the following:
- The axis moves in the correct direction, compare this to either the coordinates or the tool in the 3D view.
- Check that the correct axis moves.
- Check that the distance moved is correct. This can be an approximate check, further calibration can be done by the setups outlined in Calibration.
In most cases, the theoretical limits of the axes are not exact and may require additional setup. First, the Connecting home sensors should be performed. Also, when planning to do Additional steps/unit calibration, these should be performed first.
With the machine homed, jog each axis to both its positive and negative limits. Use smaller steps or a lower velocity when approaching the limits so the machine can stop faster, this may reduce damage in case the limit settings are incorrect.
If the machine reaches the software limit for the axis but the axis still has more travel, this difference can be added to the positive limit or subtracted in case of the negative limit.
If the machine reaches its mechanical limit before the software limit, make sure the machine moves slightly back and use that value from the DRO. Make sure to use the machine position and not the work position. It is always recommended to be slightly conservative with the software limits, so set the range slightly smaller than the mechanical limit.
Because of mechanical inaccuracies, the theoretical steps/unit (resolution) may not match in real life. Two calibration steps can be performed to compensate for this. One compensates linearly over the entire working area, and one can compensate differently per section of the axis. The latter is significantly more work to set up but can result in excellent calibration. It is always recommended that the first method be performed first.
Move the machine to a starting position (usually a position near the starting range of the axis), and mark this position on the machine, either using a V-bit or a bit using a known diameter or pen. Note the exact position used here, as shown in the DRO.
Move to a point near the other extreme of the axis, and make the same mark as at the starting point. Also, note this position from the DRO. The distance expected in the formula is the end position from the DRO - start position from the DRO, use a calculator to calculate this distance if needed.
The distance expected is the distance between the center of the mark at the end position and the center of the mark at the start position. If a bit with a larger, known diameter was used, measure from the shortest distance between the points and add the tool diameter to this distance.
The formulas below also apply to rotary axes, in that case, replace distance with angle in degrees.
Any of these calibration steps may influence the machine's limit settings. If these have previously been set up by moving the machine to its extremes and using these values, that step must be repeated.
Loading...
Loading...
The newly calculated resolution can be entered in the setup for that axis. After saving, repeat this test to see if the theoretical distance and actual distance match.
These steps should only be followed when the machine is able to be homed. The measurements are relative to the machine position, and therefore this origin should be in the same location every time. If this has not been set up, follow the steps outlined in Connecting home sensors first before continuing here.
Open the setup tab, navigate to Machine General, and scroll to the Motors table. Enable Pitch compensation for the desired axis. Save and then turn off the pitch compensation again and save again. This will ensure that the example file is generated.
The pitch compensation file setting specifies the file in which the compensation values are stored. If this file did not exist, it would have been created. The newly created file will contain an example of this table. The entire axis range can be mapped or only a small section.
Execute the measurement steps of the previous method but on multiple positions. Make a list with the programmed position of each point and the actual measured point.
Open the file for the measured axis and replace the values with the measurements. The measurements should be ordered from smallest to largest position (keep in mind that -100 is smaller than 0, and should come first). Save the file and close the editor. After this, enable the Pitch compensation for the axis and press save to ensure the new values have been loaded.
It is advisable to repeat this test to ensure the compensation has been applied correctly.
In the next step, the homing sensor will be connected and set up. It is important to set these up so the machine can repeatably know where it is and stay within its limits.