New to Duet but heading to a major project. Advise needed.
-
Sounds like you are planning a beast of a machine. A few points
@Marcossf said in New to Duet but heading to a major project. Advise needed.:
Hi everyone.
We are developing a 3D printer a little special for a customer. We are a small company in Spain (sorry for my english). We have several years on design and building 3D printers, developing with Marlin FW as base, and commercial electronics boadrs (arduino, RPI, SKR, Ramps, etc). This is our first attemp with Duet boards an ReprapFirmware, because the number of motors, modularity and expandability in mind Duet3D can achieve.
Our design it's a cartesian printer with single X axis and dual Y axis CNC style gantry. X carriage hold 3 independent Z azis, and 3 removable "printheads", one in each Z axis.
We think it can be use 1 Duet 6HC as main board, plus 6x Duet 3 Expansion 1XD (as we intend to use industrial grade components such SMC linear actuators and external SMC drivers) and 3x Duet toolboard 1LC for the printheads (thermal+ standard stepper motor+ABL sensor+fans).
This sounds reasonable (although you are not suing the onboard drivers on the 6HC). Worth confirming your requirements for heaters, fans, interlocks, lights etc etc.
As user interface we would like to use our custom Repetier server frontend already developed in a RaspBerry Pi computer and a DSI Touch screen conected to RPI. We wouldn't use Duet PanelDue because we would need to develop a new user frontend from scratch.
All thought it is not the method we recommend you can use Repetier on a Pi connected over USB, It is a good idea tois to upload the gcode file to the SD card (from Repetier, I assume it can do that) before printing. An alternative is to look at customising DWC (the browser based UI) and host that on the Pi. This is less work to customise than PanelDue firmware.
We don't know if we could need additional Tool Distribution Boards or other Duet HW to achieve that goal.
The tool distribution board will simplify the wiring of the 3 tools
Our main concern it's if Duet 3 Expansion 1XD can control the drivers we choose from SMC:
https://content2.smcetech.com/pdf/manuals/LEC-OM04505.pdfLooking at page 25 of the data sheet it appears you can drive those step signals with either a differential mode or open collector input/single sided mode. The 1XD provides a differential 5V signal (or use only half for single sided). You need to be aware that those drivers (like many external drivers) have optoisolated inputs:
I read that diagram as having 2uS or more pulse width, 2us or more between pulses and 0.25us rise and fall times = 5us between each pulse minimum. Using RRF 3.2 the step rate maximum for T=2.5 (about the same as this) was between 40 and 48Khz depending on the length of the move and the number of axis moving:
https://docs.google.com/spreadsheets/d/1AWA1wLbOaYzxzdQa5LRZvn9rgEk2BuluHy6-_OnD6FY/edit#gid=0This is improved somewhat in 3.3 firmware but I will wait until the first beta release before benchmarking it. You need to have a look at your proposed steps/mm and top speeds to work out what step rate you require on each axis.
-
Thank you for your quick and extensive answer @T3P3Tony
Yes, it will be a beast.
Attention, long answer follow:
Deciding to use the Duet 6HC is due to its immediate availability to start working asap and because it is the most capable and up-to-date board available in your portfolio so far.
We know that there will be plenty of unused drivers and connections, but we prefer that they exist rather than not. Thanks to the fact that the budget is not too tight in this case.
Unless you recommend another product for some reason that has escaped us.Regarding the user interface, we have developed a web frontend in Repetier Server, with all the necessary functions for the regular use of the machine, which will also not be used by personnel with technical knowledge. The server in the Raspberry sends the Gcodes queue directly via USB without going through the SD, in fact we do not use SD in the SKR boards that until now we used in the previous prototype of this machine (with 1 head as proof of concept).
The only human interface has to be a touch screen and an emergency mushroom.
The user will simply have to select material, head, and choose the part, nothing else. The rest must be completely automated. The models to be printed will be stored and developed separately, it is not something that the user will even have to do.
Developing a new frontend from scratch for this can take a lot of resources. It is a good plan B, we appreciate your suggestion and surely we will end it.Regarding the wiring, yes, wiring is a headache, so we will buy a distribution board to keep it simple. Good advice
What we were concerned about about the SMC drivers seems, as you tell us, it would work, although the 1XD frequency is really tight. Moreover, if it is also going to be improved by firmware, even better. Do you know when the version of FW 3.3 will be released?
At least now we can ensure that they can work minimally, and don't buy expensive HW that would not work.I do not understand how it can influence the fact that the drivers are optocoupled and the 5V signal of the 1XD. I understand they need a minimum of 5us between pulses, which results in the maximum possible frequency when setting the steps/mm that the driver will translate into movement. Is that?
It is not about breaking a speed record because it will have to move heavy masses, although we intend (depending on the tool), to be able to travel 250mm/s and print 80-90mm/s maximum, taking into account that the working volume will be quite small (200x200x100) should be more than enough or even excessive.
Probably the best way to check it will be when we get our hands on it.Thank you for taking the time to read the SMC technical specifications and give us some very useful advice. Rest assured that it will not be my last question to this community. I will keep you informed
Many, many thanks.
-
By the way @T3P3Tony or Admins.
The STEP files for the boards we need to model our machine in Github seems to be corrupt.
I download them as usual: right-clicking in their name and "save as", but they weigh few bytes. I don't know where the problem is.
I need to download the .STEP files for: Duet 6HC, 1LC board, Distribution board, and 1XD board, to make the necessary volume distribution for all components.
Thanks!
-
@Marcossf said in New to Duet but heading to a major project. Advise needed.:
I download them as usual: right-clicking in their name and "save as", but they weigh few bytes. I don't know where the problem is.
open the links on github and then click the
downloadraw button (links go to a preview page even though not all formats have previews)edit: oh, yes its not called download my bad!
-
For the step files you need to click on the link to open the preview page and then right click on the RAW button and save file as.
-
@bearer @Phaedrux Thank you very much.
Ok, got it. What a silly thing for me not to have tried to right-click on the RAW file. -
New data provided by the guys at SMC in the attempt to make it work DUET 1XD with their LECPAP driver. They said that it seems that the electronic card is compatible BUT...
I don't understand all the connection equivalences between 1XD board and this driver.
They said:
What you will have to confirm in order to work with our LECPA driver are several aspects:
- The Duet 1XD board has a PTO (Pulse Train Output) output. PWM is invalid.
- That works at 5 Vdc / 24 Vdc, differential mode / open collector mode
- They will need digital control I / O. Necessary outputs (which are inputs to the driver) SVON (necessary, to give torque to the motor), SETUP (necessary, to reference the axis), INP (to know that the movement has finished) ... and certain inputs (outputs of our driver) of confirmations.
These are the inputs and outputs that you have to be taken into account:
Regarding the outputs, I think it is important that they have SETON, INP and SVRE to have a confirmation of when there is torque in the motor, the referenced axis and the signal that the movement has been carried out:
Schemes depending on the working mode (pulse output mode):
It is important to put the corresponding resistance depending on whether they work at 24 V or 5 V, otherwise the driver would break:
So my doubts and fear lie in the equivalence of the signals.
DIR and STEP are clear, but where do I connect the ENABLE?
I could connect SETON, INP and SVRE to io0.out, io2.out, but I am missing one.
Out0 and out1 I interpret that they are not digital outputs.
Reset to reset, I also have it clear.And where go the rest of the pins?
This is a sketch (and dirty) schematic for all the boards involved:
Any ideas, before blue smoke?
-
I'm afraid we are going to abandon the idea of ββusing 1XD boards with SMC drivers.
This afternoon I have been speaking with a technical advisor from SMC, and although it might think could be possible to make it work, it is much more difficult than it initially seemed.
The digital signals of their driver works at 24V, so I would have to pass each of the pins through relays to increase the voltage from 5v to 24v. It would be necessary to add resistors in each pin to limit the current in the DIR and STEP signals. In addition, we would not have enough input and output pins in the 1XD to fully control the digital driver's functions. And this is their most simple driver.
I think the SMC proposal is too professional solution to be controlled outside of industrial PLCs. It's a shame because the prices are great and the quality is top, excellent.Instead, we will use normal stepper motors, controlled from the 6HC and the toolboards, sized for the weight and speed required for the machine (XY nema23, Z's and E's nema17). And trial-error as on other occasions.
Alternatively we could try "more" normal servos such as JMC iHSV57-30-18-36 and the 1XD bords, since I have seen that someone has already used them successfully with DUET,
but: would we have the disadvantage of having to use limit switches and lose sensorless if we use this? Correct? I'm pretty sure there is, because it isn't feedback from the servo. It would be a step backwards.We will therefore use a 6HC board, plus a distribution board and three toolboards. Simpler, and less ambitious. I hope it would be good enough choice.
I'm sorry but If I have any questions, don't worry, I'll ask you.
Regards,
-
@Marcossf said in New to Duet but heading to a major project. Advise needed.:
I'm afraid we are going to abandon the idea of ββusing 1XD boards with SMC drivers.
This afternoon I have been speaking with a technical advisor from SMC, and although it might think could be possible to make it work, it is much more difficult than it initially seemed.
The digital signals of their driver works at 24V, so I would have to pass each of the pins through relays to increase the voltage from 5v to 24v. It would be necessary to add resistors in each pin to limit the current in the DIR and STEP signals.their datasheet states that it can be driven from 5v or 24v , why do you need to increase voltage?
-
@hackinistrator Their technician is what he told us.
It seemed strange to me, but the only thing that would work at 5V would be the DIR and STEP, and even so, you would have to put a 390 Ohm resistor as a voltage limiter for the pulses.As you can see in the diagram below, all the I/O control pins on SMC driver are powered on 24v.
The other limitation we saw is that there are not enough pins to be able to use the 1XD board. We need at least SETUP, SVON, CLR, SETON, INP, SVRE, ESTOP, ALARM. Also their driver do not use EN because that state is controlled from SVON and SVRE, I understand that they are equivalent in terms of functionality, but they have conditionals behind this logic and they are not a simple enable or disable the engine as in a "normal" external driver (STEP , DIR, ENABLE).The alternative they offer us is to pass all the movement signals through an intermediate PCL controlled by ModBus or serial, but it is a way of complicating something that is already going to be complex.
Perhaps, as @dc42 commented somewhere in this forum, in the next version of this 1XD board, this type of servos, encoders and industrial automation elements may been supported.
At this moment, I am afraid that we have to go down a notch, and settle for another more mundane solution. -
If the signal levels are 24V then it sounds to me that those servo drives are intended for use with PLCs.
-
@dc42 Yes, I intended to use industrial automation elements that are meant to be used with PLC controllers.
Perhaps could program a PLC controller to accept Duet commands. But this would be a totally different project. -
@Marcossf how many other signals do you need to control on the drivers (that are at 24V?)
Also it would be worth looking at alternative drivers that work with 5V signal levels.
-
@Marcossf I took a look at the manual for your stepper drivers and you certainly CAN use all the control signals at 5 Volts.
Signals sent to the controller go into LEDs, so you the 390 Ohm resistor is there to keep the LED from burning out due to overcurrent. That's the standard way to allow the user of the controller to select whatever voltage they desire to control the equipment.
Signals that come out of the controller are open-collector transistors, and you can choose what voltage is applied to the transistor. That's also the standard way to provide an interface that supports different voltage needs.
Ask the representative from the company if you can supply 5 Volts to COM1+ They should say Yes. If they do not, I would highly recommend first asking to try a different representative and if that fails, I guess you need to look for a different stepper controller company.
-
@alankilian said in New to Duet but heading to a major project. Advise needed.:
@Marcossf I took a look at the manual for your stepper drivers and you certainly CAN use all the control signals at 5 Volts.
COM1+ input must be 24V. It is the power supply for the motor and also common for the driver supply. NP and PP (pulse and direction) accept the signal at 5v, but not all other I/Os
Initially this is what I thought, until I spoke with the support technician at SMC Spain and he confirmed that the I/O signals are at the same voltage as the power supply (24v).
The DIR and STEP signals are the only ones that admit 5V through an external circuit with the corresponding limiting resistors.My intention was to be able to use these drivers with ENA, DIR and STEP on the 1XD board and for the integrated closed loop part to be managed by the driver itself, with the home signal apart, but that's all. To which they replied that it is not possible.
I have looked at the Thomson Linear and the Yamaha Transervo, and from what I see in their driver info, the signals and voltage are the same as the SMC driver. It appears to be the standard control for industrial PLC servos/steppers.
@T3P3Tony said in New to Duet but heading to a major project. Advise needed.:
how many other signals do you need to control on the drivers (that are at 24V?)
Also it would be worth looking at alternative drivers that work with 5V signal levels.
Yellow mandatoy, blue recommended but optional:
For SMC drivers, a minimum of 8 I/O signals are required. Unfortunately SMC does not allow controlling its linear actuators with other brands drivers.
I'm starting to look for alternatives with a similar form factor that can be more easily controlled, but I don't like what I find so far (poor support, no warranty, lack of approvals).
I'll keep searching. Thanks to both.
-
If your contact is telling you COM1+ on CN5 is the power supply for the motor, you still need to get in touch with someone more knowledgeable at their company.
COM1+ Is not the power for the motors.
Motor power is supplied via M24V on connector CN1 according to the document you linked to in your first posting.If these folks built a 24-Volt only controller you don't want to work with them anyway.
-
@alankilian said in New to Duet but heading to a major project. Advise needed.:
If your contact is telling you COM1+ on CN5 is the power supply for the motor, you still need to get in touch with someone more knowledgeable at their company.
COM1+ Is not the power for the motors.
Motor power is supplied via M24V on connector CN1 according to the document you linked to in your first posting.If these folks built a 24-Volt only controller you don't want to work with them anyway.
Ok, I understand what you mean, but it seems to me that there's a confusion somewhere.
Obviously the motor and driver main supply are in CN1. It may not explain me well, my fault.
However, in CN5, which is the connector that has to be wired to the Duet 1XD, pin 1-COM + is powered at + 24v, and internally also powers the I/O pins of the driver, except Β±NP and Β±PP.It is not like this? How would you connect it according to your suggestion to the Duet board? Do you still think it is possible?
I do not rule out that the SMC technician could have no idea, what it may be, or that I am not interpreting the data correctly.
-
I found this other schematic that draws two power supplies. It is true that I don't understand what the source connected to COM+ uses for.
I'll ask for clarification asap.
-
You'll have independent z-axes? I was building a machine like this in the past. Here is a relevant thread for dealing with the different z-axes offsets. It worked well enough.
https://forum.duet3d.com/topic/18051/printer-with-two-independent-z-axes-how-to-synchronize
-
If you want to use this device and follow the instructions of your technician, you can build a pretty simple board that converts all the signals you need.
Or you can buy some existing boards to convert the levels for you.
I would recommend just buying the level translator boards you need and wire them up.