i can't seem to get a good voltage divider to purchase that can handle 6 outlets. Do you have any link of any voltage divider that can do that and is being sold anywhere ? i don't have time to design one at the moment
Posts made by developeralgo222
-
RE: Reading Sensor Pressure from Analog output
-
RE: Reading Sensor Pressure from Analog output
@gloomyandy , ok will do that. Quick question, Do i need to connect a 10K resistor between the 3.3V converter source i.e Tie VA(3.3V) to OE then to 10K resistor to GND as per the TXS0108E Datasheet ?
-
RE: Reading Sensor Pressure from Analog output
@gloomyandy Yes i did before i plugged everything in . 5V on the High side and 3.3V on the low side. Let me just do it again to see if that changed with the load
-
RE: Reading Sensor Pressure from Analog output
@gloomyandy , Voltage divider is simple and works most of the time (Dividers tend to be unreliable sometimes when you need accuracy ) but i have 6 sensors that are connected and are being used as Vacuum Pressure Sensing Actuators for my Pick-and-Place machine . i need high accuracy and robust reliability , that's why i used a Voltage Level Shifter
-
RE: Reading Sensor Pressure from Analog output
@droftarts
Thanks Ian, i have tried connecting directly & through a level Shifter and none seems to work correctly .I am sure i am not the only one who has dealt or is dealing with this issue on Duet3 boards.
How to correctly read Pressure Sensor values either using a Digital NPN output signal ( 1 =True , 0=False) or Analog Voltage/Current Signal output ( Variable range ). i have made the connections and double checked everything but can't get it to work on Duet3 Boards but it works great on my Arduino and other boards no issues at all.
-
RE: Reading Sensor Pressure from Analog output
@gloomyandy . Any suggestion of a solution if a Logic level shifter is not the right solution ?
AFAIK, these are the recommended solutions to solve this issue. Are you suggesting anything different from this?
-
Voltage Divider ( simple but not robust)
-
Bi-directional Logic Level Shifter ( Robust )
-
Zener Diode Clamp
-
Opto-isolator
-
-
RE: Reading Sensor Pressure from Analog output
i have 6 ports connected to 6 sensors as indicated above ( Board 2 (3HC) = 2.io0.in , 2.io1.in , 2.io2.in & Board 3 (3HC) = 3.io0.in , 3.io1.in , 3.io2.in ) and they are all behaving the same way.
i have tried on the 6XD analog capable ports and they are behaving the same way too
-
RE: Reading Sensor Pressure from Analog output
As per my testing i don't think Analog port on Duet3 3HC seems to be working correctly. It seems that as per the Analog connection , i should be getting varied Analog pressure reading from the Sensor but it looks like its behaving as if it only triggers to a Max Value set when the Set pressure is met or it remains at the Minimum set Value so long as the Set pressure on the sensor is not yet met. Its behaving more like a NPN output instead or analog output .
E.g i have this on Duet3
M308 S1 P"2.io0.in" Y"linear-analog" A"VG1" F0 B0.0 C-101 V0.0 U13.5
and on SMC Pressure Sensor i have set it to - 40 kPa for testing
When the
-
Sensor reads/displays 0.0 ~ -39.9 kPa =====> Duet reads -0.1 ~ 0.1
-
Sensor reads/displays -40.0 ~ -101 kPa =====> Duet reads -87.5 ~ -87.9
it seems to be behaving like a digital NPN output yet its analog output
-
-
RE: Reading Sensor Pressure from Analog output
at 0.0 kPa those above values work but they extremely skewed as you start to have pressure reading. i am not sure what are the correct values to have it working .
e.g Actual Sensor Display = 0.0 Kpa , Duet Adjusted Reading = 0.0 kPa But
Actual Sensor Display =70.0 kPa , Duet Adjusted Reading = 86.8 kPai then let it run and kept reading the observing the values compared to what is being read. The Duet readings don't change that much while the actual pressure is decreasing. I am not sure if Adjusted reading formula actually works with Pressure sensor readings
in a simple way of y = ax+b ==> a = slope & b = offset , y = Voltage (1 ~ 5V ) and X = Pressure ( 0 ~ -101.0 kPa )
i.e y = 0.043x + 0.6 ===> x = (y/0.043 ) - (0.6/0.043) ==> x = 23.25y - 13.90
- Looking the formula AdjustedReading = (RawReading * (1.0 + V)) + U
But if i equate 1.0+V = 23.25 ==> V = 22.25 & U = -13.90
i get an error that V is "Too High".
What are the ranges of V & U ?
-
Reading Sensor Pressure from Analog output
I have SMC ZSE30A-01-C Pressure Sensors with 1 NPN output (Black) + Analog voltage output (white wire) and have configured them with M308 Commands, and also according to the datasheet ZSE30A_ISE30.pdf
M308 S1 P"2.io0.in" Y"linear-analog" A"VG1" F0 B0.0 C-101 M308 S1 P"2.io1.in" Y"linear-analog" A"VG2" F0 B0.0 C-101 M308 S1 P"2.io2.in" Y"linear-analog" A"VG3" F0 B0.0 C-101 M308 S1 P"3.io0.in" Y"linear-analog" A"VG4" F0 B0.0 C-101 M308 S1 P"3.io1.in" Y"linear-analog" A"VG5" F0 B0.0 C-101 M308 S1 P"3.io2.in" Y"linear-analog" A"VG6" F0 B0.0 C-101
More info:
.
I am able to read the values but they are wrong . Are offset by almost -38 , Actual Value = 0.0 while the reading returns -38 or -37.x as the value
Duet3 Analog ports on 3HC (0 to 3.3V signal) ====> isolated 8-Port channel Bidirectional Level Shifter 3.3V to/from 5V ==> SMC ZSE30A-01-C Analog port ( 1 - 5V signal).
How do i configure this correctly ?
i was also looking at an Old Arduino code to see if i can get some help from that :
SMC vacuum sensor ZSE30A-01-C-L =============================================== ARDUINO CODE =============================================== // 1 Volt is an ADC value of ~205 with a 10-bit ADC and 5V Aref const int offset = 205; // calibrate zero pressure Kpa = (analogRead(A0) - offset) * 101 / (1023 - offset);
I have managed to fiddle a round and get to this to try solve my issue but i am not sure if this is the correct way to configure it.
M308 S1 P"2.io0.in" Y"linear-analog" A"VG1" F0 B0.0 C-101 V0.00 U13.5 M308 S1 P"2.io1.in" Y"linear-analog" A"VG2" F0 B0.0 C-101 V0.00 U13.5 M308 S1 P"2.io2.in" Y"linear-analog" A"VG3" F0 B0.0 C-101 V0.00 U13.5 M308 S1 P"3.io0.in" Y"linear-analog" A"VG4" F0 B0.0 C-101 V0.00 U13.5 M308 S1 P"3.io1.in" Y"linear-analog" A"VG5" F0 B0.0 C-101 V0.00 U13.5 M308 S1 P"3.io2.in" Y"linear-analog" A"VG6" F0 B0.0 C-101 V0.00 U13.5
i got adjusted values at 0.0 kPa that now fall within expected readings (-0.1 - 0.1 ) kPa but i still need to test with actual air pressure running through to see what the values are going to be and if they conform to the Adjusted Reading e.g is Actual -50.0 kPa pressure reading on the sensor going to be read as -50.0 (+/- 0.2) kPa with the adjusted reading or it will skew or extremely deviate from the actual sensor displayed values.
11/14/2024 , 12:24:15 PM M308 S1 Sensor 1 (VG1 Pressure) type Linear analog using pin 2.io0.in, last error ok, offset adjustment 13.5, slope adjustment 0.000, adjusted reading -0.1, unfiltered, range 0.0 to -101.0
Here is brief snapshot of my connections :
-
RE: Correct way to set Steps Per mm for X and Y
Thanks for your help. Here is what i have adjusted them to
M569 P0.0 S0 T2.5:2.5:2.5:2.5 ; 2.5us timings between pulses for X-axis M569 P0.1 S0 T2.5:2.5:2.5:2.5 ; 2.5us timings between pulses for Y-axis . . . M350 Z16 U16 V16 W16 A16 B16 C16 D16 'G16 I1 ; configure microstepping with interpolation. M92 X100.00 Y100.00 Z80.00 U80.00 V80.00 W8.888 A8.888 B8.888 C8.888 D8.888 'G8.888 ; set steps per mm . Ballscrew Pitch = 10mm/rev. M566 X900.0 Y900.0 Z900.0 U900.0 V900.0 W900.0 A900.0 B900.0 C900.0 D900.0 'G900.0 P1 ; set maximum instantaneous speed changes (mm/min) and use Jerk policy 1 M203 X51000 Y51000 Z6000 U6000 V6000 W3600000.00 A3600000.00 B3600000.00 C3600000.00 D3600000.00 'G3600000.00 ; set maximum speeds/feedrate (mm/min) M201 X5000.00 Y5000.00 Z2000.00 U2000.00 V2000.00 W180000.00 A180000.00 B180000.00 C180000.00 D180000.00 'G180000.00 ; set accelerations (mm/s^2) M906 Z1360.0 U1360.0 V1360.0 W560.0 A560.0 B560.0 C560.0 D560.0 'G560.0 I100 ; set motor currents (mA) and motor idle factor in per cent
As concerns Jerk , Duet measurement are in mm/min but openPnP are in mm/s^3
in order to convert that into mm/s^3 for OpenPnP do i just need to take Duet's config value and multiply by (60 * 1/S^3 )
i.e 900 mm/min = 900 x 60 mm/s =54000 mm/s x (1/s^2) = 54000 mm/s^3
is this correct assumption ? or Both Duet & OpenPnP must have be synchronized by having same Value ?
From this config is there anything you think might be a little out of place i.e Too high or too low
-
RE: Correct way to set Steps Per mm for X and Y
@droftarts
I think you clearly explained it to me . i was struggling to understand the link & calculations as to why if i sent a command of 100mm and i have HSS86 Driver with 10000 pulses/rev and M92 X100 Y100 configured . what was going on .That's clearly explained now i see why i was getting all confused about the command and the steps/mm calculations
Thanks so much for explaining that clearly
-
RE: Correct way to set Steps Per mm for X and Y
Can you confirm . I just tested with Duet DWC Console ( Not involving OpenPnP at all)
HSS86 Driver is set to 10000 pulses/rev == (10000 pulses/rev ) / 10 mm/rev = **Maximum Possible/allowed of 1000 pulses/mm at 10000 pulses/rev HSS86 Driver setting **
Test 1: M92 X1000 Y1000 get 1:1 relation with Max Speed = 200 mm/s == 12000 mm/min before stall/skip
G1 H2 X100 F12000
Test 2: M92 X100 Y100 get 10:1 relation with Max Speed = 2000 mm/s == 120000 mm/min before stall/skip
G1 H2 X100 F120000
This seems to indicate that the HSS86 Driver set value using DIP Switch to 10000 pulses/rev == 1000 pulses/mm is simply maximum reference value allowed at that setting as per the Ballscrew Pitch.
So if you configure something like M92 X50 Y50, i.e 50 steps/mm on Duet then Duet will send that along to the driver and since the driver is expecting 10000 pulses/rev == 1000 pulses/mm, it takes that (1000 pulses(steps)/mm ) / 50 steps/mm = 20 . i.e every measurement on Duet in relation to X & Y axis motor movements will be in 20:1 ratio as per this example where 200mm on Duet will move 10 mm on actual Machine
G1 H2 X200 F100000
At first i thought it was Duet /OpenPnP but i just realized its not. The ratio occurs depending on what Duet/OpenPnP send to the HSS86 external driver and the HSS86 Driver calculates the measurement ratio for moving the motor
Since i am able to configure a lower value of M92 X100 Y100 and it works fine and sends that lower steps/mm value from Duet DWC to the driver towards the motor creating 10:1 ratio measurement.
This test outcome is a surprise to me.
-
RE: Correct way to set Steps Per mm for X and Y
@droftarts
Fantastic thanks for that clarification. So from your explanation it implies that the Higher "steps/mm" number on Duet M92 Xnnn Ynnn ===> The Lower the speed /Feedrate (Limited Speed) ? -
RE: Correct way to set Steps Per mm for X and Y
Do you mean setting steps /mm on Duet to 1000 steps/mm ? i.e
M92 X1000 Y1000 ? as you said it will limit the speed. i think my problem is that it seems 100 steps/mm ( 1000 pulses/rev) is fine . But when i enter that value on the X & Y axis on the OpenPnP side its on 10:1 ratio . That is 10mm move on the OpenPnP software /Duet DWC console actually moves machine X & Y 1 mm physically i.e 10:1 ratio. That creates a few issues with OpenPnP configuration , it assumes 1:1 relation in steps/mm that is configured on Duet3 as it uses it for other movements like backlash calculations etc -
RE: Correct way to set Steps Per mm for X and Y
i managed to test X & Y with the following configs. Because i modified the External Drivers dip switch settings to 10000 pulses/rev for testing
TESTING for Speed, Acceleration and Jerk for X & Y axis
-
NEMA 34 Stepper 1.8° Motor = 200 pulses/rev
-
Ballscrew Pitch = 10 mm/rev
-
HSS86 Driver microstep setting for X & Y axis with NEMA 34 , 8.0 N.m = 10,000 pulses/rev
-
This gives (10000 pulses/rev ) / (10mm/rev) = 1000 pulses/mm but that's too high so Duet3 config is set to 100 steps/mm i.e M92 X100 Y100 . This results in 10:1 ratio on the openPnP side ( 10mm move on OpenPnP == 1 mm move on actual machine ). Not sure if i need to set OpenPnP side differently from what's on Duet for this ?
-
On OpenPnP side i have X & Y Axis steps/mm set to the same as Duet3 Config.g at 100 steps/mm
Results:
-
Works ok with Max speeds = 1500 mm/s ==> 90000 mm/min but i need to find out how to have OpenPnP movement synced with Duet's so that 1mm move on OpenPnP == 1mm move on Machine axis itself.
-
It's fast and smooth no jerking . Not sure if to drop down to 1000 pulses/rev on the driver from 10000 pulses/rev in order to have 1:1 ratio between OpenPnP & Duet settings.
-
With microstepping at 1000 pulses/rev on HSS86 Driver. its a a little jerky and stalls the motor or error the drive with any feed rate abovet 6000 mm/min
M569 P0.0 S0 T2.5:2.5:2.5:2.5 ; 2.5us timings between pulses for X-axis M569 P0.1 S0 T2.5:2.5:2.5:2.5 ; 2.5us timings between pulses for Y-axis . . . M350 Z16 U16 V16 W16 A16 B16 C16 D16 'G16 I1 ; configure microstepping with interpolation. M92 X100.00 Y100.00 Z20.00 U20.00 V20.00 W8.888 A8.888 B8.888 C8.888 D8.888 'G8.888 ; set steps per mm . Ballscrew Pitch = 10mm/rev. M566 X900000.0 Y900000.0 Z900.0 U900.0 V900.0 W900.0 A900.0 B900.0 C900.0 D900.0 'G900.0 P1 ; set maximum instantaneous speed changes (mm/min) and use Jerk policy 1 M203 X90000.00 Y90000.00 Z24000.00 U24000.00 V24000.00 W3600000.00 A3600000.00 B3600000.00 C3600000.00 D3600000.00 'G3600000.00 ; set maximum speeds/feedrate (mm/min) M201 X5000.00 Y5000.00 Z2000.00 U2000.00 V2000.00 W180000.00 A180000.00 B180000.00 C180000.00 D180000.00 'G180000.00 ; set accelerations (mm/s^2) M906 Z1360.0 U1360.0 V1360.0 W560.0 A560.0 B560.0 C560.0 D560.0 'G560.0 I100 ; set motor currents (mA) and motor idle factor in per cent
-
-
RE: Correct way to set Steps Per mm for X and Y
@droftarts , @dc42 , @T3P3Tony
i have a few stepper motors in my machine that i need to configure correctly all with Max pulse rate of 200 kHz and Step Angle of 1.8 degree. Currently steps/mm is set to 320 for X & Y . Do i need to lower this steps/mm value to something like 100mm/step?
X & Y axis use NEMA 34 Closed loop stepper Motors with external Drivers HSS86
Z,U,V, W, A, B, C, D, 'G axes use Nema 17 & 11 stepper Motors with Duet Internal Driver.I am trying find the correct settings for fast and smoothness with less Jerk . What would be the ideal settings on Duet3 config.g file to achieve this or is there a calculator to do this for Duet boards correctly. i looked at the RRF calculator but it was not ideal for calculating the values
M569 P0.0 S0 T2.5:2.5:2.5:2.5 ; 2.5us timings between pulses for X-axis M569 P0.1 S0 T2.5:2.5:2.5:2.5 ; 2.5us timings between pulses for Y-axis . . . M350 Z16 U16 V16 W16 A16 B16 C16 D16 'G16 I1 ; configure microstepping with interpolation. M92 X320.00 Y320.00 Z20.00 U20.00 V20.00 W8.888 A8.888 B8.888 C8.888 D8.888 'G8.888 ; set steps per mm . Ballscrew Pitch = 10mm/rev. M566 X900.0 Y900.0 Z900.0 U900.0 V900.0 W900.0 A900.0 B900.0 C900.0 D900.0 'G900.0 P1 ; set maximum instantaneous speed changes (mm/min) and use Jerk policy 1 M203 X60000.00 Y60000.00 Z24000.00 U24000.00 V24000.00 W3600000.00 A3600000.00 B3600000.00 C3600000.00 D3600000.00 'G3600000.00 ; set maximum speeds/feedrate (mm/min) M201 X5000.00 Y5000.00 Z2000.00 U2000.00 V2000.00 W180000.00 A180000.00 B180000.00 C180000.00 D180000.00 'G180000.00 ; set accelerations (mm/s^2) M906 Z1360.0 U1360.0 V1360.0 W560.0 A560.0 B560.0 C560.0 D560.0 'G560.0 I100 ; set motor currents (mA) and motor idle factor in per cent
-
RE: Correct way to set Steps Per mm for X and Y
Also setting M92 X320 Y320 gives me problems in that the external drivers throw an error and halt the machine during homing. The feedrate might be too high for 320 pulses/mm , i will lower the feedrate and test
-
RE: Correct way to set Steps Per mm for X and Y
@droftarts
Here it is :; Drives ;Physical Drives CAN ID = 0 M569 P0.0 S0 T5:5:10:10 ; X-Axis physical drive 0.0 goes backwards on CAN ID = 0 - Duet 6XD Drive 0.0 with 2.5us timings between pulses M569 P0.1 S0 T5:5:10:10 ; Y-Axis physical drive 0.1 goes forwards on CAN ID = 0 - Duet 6XD Drive 0.1 with 2.5us timings between pulses M569 P0.2 S1 T5:5:10:10 ; 'H-Axis physical drive 0.2 goes forwards on CAN ID = 0 - Duet 6XD Drive 0.2 with 2.5us timings between pulses (Microstep Driver) ;Physical Drives CAN ID = 1 = All Shared Z Axes (Z, U, V ) each with a single Stepper Motor M569 P1.0 S1 ; Z1 (Z) Axis physical drive 1.0 Rotates Clockwise or Anticlockwise to move CAM driven dual nozzles down and up on Z axis on CAN ID = 1 - Duet 3HC Drive 1.0 M569 P1.1 S1 ; Z2 (U) Axis physical drive 1.1 Rotates Clockwise or Anticlockwise to move CAM driven dual nozzles down and up on U axis on CAN ID = 1 - Duet 3HC Drive 1.1 M569 P1.2 S1 ; Z3 (V) Axis physical drive 1.2 Rotates Clockwise or Anticlockwise to move CAM driven dual nozzles down and up on V axis on CAN ID = 1 - Duet 3HC Drive 1.2 ;Physical Drives CAN ID = 2 = C Axes ( W, A, B ) M569 P2.0 S0 ; C1 (W) Axis physical drive 2.0 Rotates forwards and backwards on CAN ID = 2 - Duet 3HC Drive 2.0 - C 360°-continuous, but linear feed-rate M569 P2.1 S0 ; C2 (A) Axis physical drive 2.1 Rotates forwards and backwards on CAN ID = 2 - Duet 3HC Drive 2.1 - C 360°-continuous, but linear feed-rate M569 P2.2 S0 ; C3 (B) Axis physical drive 2.2 Rotates forwards and backwards on CAN ID = 2 - Duet 3HC Drive 2.2 - C 360°-continuous, but linear feed-rate ;Physical Drives CAN ID = 3 = C Axes (C, D, 'G) M569 P3.0 S0 ; C4 (C) Axis physical drive 3.0 Rotates forwards and backwards on CAN ID = 3 - Duet 3HC Drive 3.0 - C 360°-continuous, but linear feed-rate M569 P3.1 S0 ; C5 (D) Axis physical drive 3.1 Rotates forwards and backwards on CAN ID = 3 - Duet 3HC Drive 3.1 - C 360°-continuous, but linear feed-rate M569 P3.2 S0 ; C6 ('G) Axis physical drive 3.2 Rotates forwards and backwards on CAN ID = 3 - Duet 3HC Drive 3.2 - C 360°-continuous, but linear feed-rate ;By default Z U V W are linear and A B C D are rotary; but you can change that using the R ; set visible drive mapping ; X-Axis , Y-Axis (2 x Nema 34 Closed Loop Motors) and Z-Axes (Z,U,V) mapping to 3 Stepper motors ; directly connected to 3HC (CAN ID = 1) (which moves the nozzles up and down along Z-axis) ; Rotational Axes mapping (W, A, B, C, D, 'G ) to 6 motors directly connected to 3HC (CAN ID 2 and 3) (which rotates the nozzles +180 / -180 along Rotational axis) ; Axes: XYZUVWABCD abcdefghijkl mnopqrstuvwxyz are available in RepRapFirmware 3.5 and later on Duet 3 MB6HC and MB6XD only ; Best results is to configure all Controller Axes as Linear for OpenPNP, even if they are conceptually rotational this allows OpenPnP to control feed-rates, acceleration etc ; with better precision and smooth segments transitions M584 X0.0 Y0.1 Z1.0 U1.1 V1.2 W2.0 A2.1 B2.2 C3.0 D3.1 'G3.2 S0 ; LIN R0 = LINEAR, R1 = ROTATION M350 Z16 U16 V16 W16 A16 B16 C16 D16 'G16 I1 ; configure microstepping with interpolation. Irrelevant for external drives X, Y, & 'B (X & Y = Dip Switches 3200= SW1=ON,SW2=ON,SW3=OFF,SW4=OFF,SW5=ON,SW6=ON) M92 X320.00 Y320.00 Z20.00 U20.00 V20.00 W8.888 A8.888 B8.888 C8.888 D8.888 'G8.888 ; set steps per mm, Ballscrew Pitch = 10mm/rev. (X & Y = Currently 3200 pulse/rev / 10 mm/rev = 320 pulses/mm) M566 X900.0 Y900.0 Z900.0 U900.0 V900.0 W900.0 A900.0 B900.0 C900.0 D900.0 'G900.0 P1 ; set maximum instantaneous speed changes (mm/min) and use Jerk policy 1 M203 X60000.00 Y60000.00 Z24000.00 U24000.00 V24000.00 W3600000.00 A3600000.00 B3600000.00 C3600000.00 D3600000.00 'G3600000.00 ; set maximum speeds/feedrate (mm/min) M201 X5000.00 Y5000.00 Z2000.00 U2000.00 V2000.00 W180000.00 A180000.00 B180000.00 C180000.00 D180000.00 'G180000.00 ; set accelerations (mm/s^2) M906 Z1360.0 U1360.0 V1360.0 W560.0 A560.0 B560.0 C560.0 D560.0 'G560.0 I100 ; set motor currents (mA) and motor idle factor in per cent(I100 = "Always 100% ON = No idle time"). This is irrelevant for external drives (X & Y ) ; M84 S30 ; Set idle timeout M564 H0 ; Sets homing, H0 allows mvmnt wo homing ; Axis Limits M208 X0 Y0 Z-70 U-70 V-70 W-360000 A-360000 B-360000 C-360000 D-360000 'G-360000 S1 ; Set axis minima M208 X335 Y445 Z70 U70 V70 W360000 A360000 B360000 C360000 D360000 'G360000 S0 ; Set axis maxima
i also just used a tool at https://www.thomsonlinear.com/en/products/ball-screws?solution=motioneering to see what the max might be and if it would work with the values. it seems your value of 625mm/s is within the ballpark of average 600mm/s to 1000 mm/s (Max)
-
Correct way to set Steps Per mm for X and Y
Everything is working fine except Some backlash
i am having some backlash issues on my OpenPnP with a Duet3 6XD Controller and i am trying to verify that my " Steps Per mm" are correctly calibrated on Duet3 6XD with M92 command and calculated correctly
The X & Y axes use an External driver HSS86 with 86HSE8N-BC38 Closed loop NEMA 34 motor .
The Microstepping is configured on the External Driver at 3200 pulses/rev as below using Dip Switches on the external driver
SW1=ON, SW2=ON, SW3=OFF, SW4=OFF, SW5=ON, SW6=ON
Here is what i have in my config.h for the M92 command.
M584 X0.0 Y0.1 Z1.0 U1.1 V1.2 W2.0 A2.1 B2.2 C3.0 D3.1 'G3.2 S0 ; LIN R0 = LINEAR, R1 = ROTATION M350 Z16 U16 V16 W16 A16 B16 C16 D16 'G16 I1 ; configure microstepping with interpolation. Irrelevant for external drives X, Y, (X & Y = Dip Switches 3200= SW1=ON,SW2=ON,SW3=OFF,SW4=OFF,SW5=ON,SW6=ON) M92 X64.00 Y64.00 Z20.00 U20.00 V20.00 W8.888 A8.888 B8.888 C8.888 D8.888 'G8.888 ; set steps per mm, 50mm/rev. (X & Y = Currently 3200 pulse/rev / 50 revs = 64 Steps) M566 X900.0 Y900.0 Z900.0 U900.0 V900.0 W7200.0 A7200.0 B7200.0 C7200.0 D7200.0 'G7200.0 P1 ; set maximum instantaneous speed changes (mm/min) and use Jerk policy 1 M203 X126000.00 Y126000.00 Z24000.00 U24000.00 V24000.00 W3600000.00 A3600000.00 B3600000.00 C3600000.00 D3600000.00 'G3600000.00 ; set maximum speeds/feedrate (mm/min) M201 X5000.00 Y5000.00 Z2000.00 U2000.00 V2000.00 W180000.00 A180000.00 B180000.00 C180000.00 D180000.00 'G180000.00 ; set accelerations (mm/s^2) M906 Z1360.0 U1360.0 V1360.0 W560.0 A560.0 B560.0 C560.0 D560.0 'G560.0 I100 ; set motor currents (mA) and motor idle factor in per cent(I100 = "Always 100% ON = No idle time"). This is irrelevant for external drives (X & Y ) ; M84 S30 ; Set idle timeout M564 H0 ; Sets homing, H0 allows mvmnt wo homing ; Axis Limits M208 X0 Y0 Z-70 U-70 V-70 W-360000 A-360000 B-360000 C-360000 D-360000 'G-360000 S1 ; Set axis minima M208 X1698 Y2225 Z70 U70 V70 W360000 A360000 B360000 C360000 D360000 'G360000 S0 ; Set axis maxima
X & Y Axes:
(1) Use External driver HSS86 with 86HSE8N-BC38 Closed loop NEMA 34 motor .
(2) External Driver set at 3200 pulses/rev with Dip Switches
(3) Use Ballscrew DFU 2510 ( Ballscrew = 25mm Diameter, Pitch = 10mm )Attached are an Excel file with all the vital information from the Datasheets plus the datasheets
(1) 86HSE8N-BC38 Closed loop NEMA 34 motor Datasheet 86hse8n-bc38.pdf
(2) HSS86 Driver HSS86_RS232.pdf
(3) Summary Excel Spreadsheet HSS86_86HSE8N-BC38_Calculations_n_Settings.xlsxWhat would the correct and most accurate calculation for Steps Per mm that would allow for Speed and accuracy ?
i have adjusted above M92 code according to the calculations from the datasheets. is this correct
M92 X320.00 Y320.00 Z20.00 U20.00 V20.00 W8.888 A8.888 B8.888 C8.888 D8.888 'G8.888 ; set steps per mm, Ballscrew Pitch 10mm/rev. (X & Y = Currently 3200 pulse/rev / 10 revs = 320 microSteps/mm = 320 pulses/mm)