Problem is solved,
I removed diodes D10 and D32.
Now the USB no longer supplies the Duet with five volts and the USB communication works properly.
Thanks for the help.
Best posts made by Razani
-
RE: Duet 3 6HC Turn off USB power (5V)
Latest posts made by Razani
-
3.5.0-rc.2 MachinePosition - movement inaccuracy
Hello,
when upgrading from 3.4.6 to 3.5.0-rc.2 I started having problems with the machinePosition values in the Object model. If I enter a movement command (for example, G1 X100), the value at the end of the movement in machinePosition is not 100.00, but e.g. 100.12.My machine should have an approximate movement accuracy of 0.01 mm. Even if I make a movement of G1 X0.01, the result is 0.009. With version 3.4.6, these values are accurate without the small deviations.
These deviations interfere with my external application, because it expects the machine to return the value X100 but it returns X100.1 and thinks that the movement is still in progress.Parameters of the axes of my machine:
Movement per revolution: 30mm
Steps per revolution: 3200
Motor: 1.8 degrees, 200 steps
Microstepping: 16x with interpolation.
Calculated Resolution: 0.009375 mmMy settings:
M92 X106.66 Y106.66 Z160 A8.88 ; set steps per mm
I don't know if it's my fault, or if the version update requires additional settings on my part. I did not find out from the Changelog what changes could affect this.
I just want to make sure if it's my fault or if there were some changes that I missed.
Well thank you.EDIT: After updating to version 3.5.0-rc.3, the problem still persists.
-
RE: Duet 3 6HC Turn off USB power (5V)
Problem is solved,
I removed diodes D10 and D32.
Now the USB no longer supplies the Duet with five volts and the USB communication works properly.
Thanks for the help. -
RE: Duet 3 6HC Turn off USB power (5V)
Thank you for your reply.
@dc42 But do you mean a classic rectifier diode or an LED? And if so, which diode should it be? Around the USB port I see diodes marked D23 (LED), D32, D10.
I have Duet version v1.01a.
Well thank you. -
Duet 3 6HC Turn off USB power (5V)
Hi,
I have a pick and place machine controlled via a Duet 3 6HC.
I have a classic AC switch to turn the machine on/off.
The Duet is powered via a 24V source and at the same time commands are sent directly via USB.
My problem is that when I turn off the machine with the switch, the duet still runs on 5V from the USB. Is there a way to turn off the 5V USB power for the duet so I don't have to unplug the USB from the computer when I turn it off. I don't want to use the method of cutting the 5V wire in the USB cable, so I'm wondering if there is some other, more elegant way.
Thank you very much. -
How to trigger M112 when M400 was sended
Hello,
My Duet: Duet 3 MB6HC v1.01 Firmware 3.4.1
I send Gcode via USB.
When I send G1, I immediately call M's own command to send a status message. The macro contains the M400 command to wait for the end of the movement and then read the position data from the object model.If I call that macro nothing happens when I send M112 (Emergency Stop) but it waits for the end of the turn because there is M400 and then M112.
But if I press emergency stop in Duet Web Control, the response is immediate even though the M400 is there.One more point of interest. Previously, if I remember correctly, when sending a G1 command, the duet only sent an "ok" message after the move was complete. It will now immediately send an "ok" message even if the move is not yet complete. I don't know if I remember it wrong or if I changed something. Is it possible to change this response behavior to the G1 command?
And is there a way to run the M112 even though there is an M400? If Duet Web Control can do it, can't it also be done via USB?
Thank you very much
EDIT:
The problem was solved when I send the M400 through the daemon.g file. I created a loop that sends my M command with the M400 during the "busy" status. When the movement is finished, an echo with the status is sent. And during this movement, it responds immediately to the M112 (Emergency stop) command.
I also created a global variable to stop the infinite loop in daemon.g
I am also attaching the code as a sample in case someone has a similar problem. But if you have ideas for better solutions, I welcome them.
Daemon.g
while global.StatusLoop while state.status = "busy" M16 G4 P100;
M16.g macro
; Send status report M400 ; Wait until moves ends ; States var R = state.gpOut[4].pwm ; Red Lamp var O = state.gpOut[5].pwm ; Yellow Lamp var G = state.gpOut[6].pwm ; Greeen Lamp var B = state.gpOut[7].pwm ; Backlight var X = move.axes[0].machinePosition ; X position var Y = move.axes[1].machinePosition ; Y position var Z = move.axes[2].machinePosition ; Z position var A = move.axes[3].machinePosition ; A position var V = sensors.gpIn[2].value ; VaccumLost status var S = sensors.gpIn[1].value ; SafetyDoor status echo "Report: X:" ^ var.X ^ " Y:" ^ var.Y ^ " Z:" ^ var.Z ^ " A:" ^ var.A ^ " Vac:" ^ var.V ^ " BL:" ^ var.B ^ " RL:" ^ var.R ^ " YL:" ^ var.O ^ " GL:" ^ var.G ^ " SD:" ^ var.S ^ ""
-
RE: Change the positive potential on the pin. (SMC vacuum switch)
@dc42 I want to switch valve with Duet.
I simply need the duet to act as a switch between the valve wire and the 24V on the duet. So sometimes there is 24V (positive potential) on the wire and sometimes not. And control it with some M command.Or I use some external PNP transistors as switches .. and switch them with the output pins (M42) on port Out4 for example.
thanks for advice
-
Change the positive potential on the pin. (SMC vacuum switch)
Hi,
please, I need a little help with wiring up the vacuum switch.
I have Duet 3 Mainboard 6HC.
Switch is SMC ZK2-ZSVB-A. It has a PNP output.
I need to change the positive potential on the white and gray wires.
I did not find any pin on the Duet where the potential could be changed from 0V to 24V.
The output pins act as ground connections when powered up via M42.
Do you have any ideas? Is it possible to connect this vacuum switch without any external switches or transistors?The black wire has a 0V or 5V output. If I want to find out what its value is, should I connect it, for example, to the IO_7 connector on the io7.in pin? And the Duet should indicate 5V on io7.in as a closed switch. Or am I wrong?
Brown - VIN (24V)
Blue - GND
Black - io7.in
Gray - ?
White - ?Thank you very much and I apologize if it doesn't make sense.
-
Pause/continue movement
Hello,
is there any way to pause the motion (G0,G1) and later resume and finish it?
I mean any movement (not during job).
I tried to find information about it but couldn't find anything useful.
I want to put a safety door on my machine (pick and place).
If the door is opened, the machine stops and waits until the door is closed and continues to move.
I would appreciate any ideas.Thank you very much