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
Latest posts made by Razani
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)
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
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
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.
while global.StatusLoop while state.status = "busy" M16 G4 P100;
; Send status report M400 ; Wait until moves ends ; States var R = state.gpOut.pwm ; Red Lamp var O = state.gpOut.pwm ; Yellow Lamp var G = state.gpOut.pwm ; Greeen Lamp var B = state.gpOut.pwm ; Backlight var X = move.axes.machinePosition ; X position var Y = move.axes.machinePosition ; Y position var Z = move.axes.machinePosition ; Z position var A = move.axes.machinePosition ; A position var V = sensors.gpIn.value ; VaccumLost status var S = sensors.gpIn.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)
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.
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