Camera trigging while running motor continuously
-
I would like to trigger a camera while a motor is continously running.
The motor is set up to move something 360 degrees around, and the camera should be triggered at e.g every 10 degrees, as exactly as possible.
I am sending commands over the serial port. If I send 36 G1 commands in turn, the motor still runs continously.
If I send M42 commands for the trigger signal in between these G1 commands, the motor runs continously, but it seems all M42 commands are performed at once, not at the 10 degree intervals.
How can I do this?
I am using Duet Web Control 3.4.0 with the Duet 3 Mini 5+ board. -
-
@droftarts Thanks, but the M400 stops the motion, so that does not work for me. I need continous motion to avoid vibrations and such.
-
Are you using segmentation?
M669 S and T
-
@Phaedrux I have a M669 K0 in my config.g, but that seems to be of no consequence. However, reading about Command queueing in the gcode dictionary suggested to put the sequence of commands into a macro. This works perfectly! Maybe there is a way to "create" a macro on the fly by sending something extra over the serial port, but that is another issue.
-
@torstha Interesting. The way I read this https://docs.duet3d.com/en/User_manual/Reference/Gcodes#command-queueing, I'd take it to mean macros should run the same as job files, and there shouldn't be any difference between them.
I wonder if this is a bug in the firmware you are using - I think you say your are using RRF 3.4.0, but can you send
M115
in the console and post the result? I can't see anything obvious in the release notes that might fix this (https://github.com/Duet3D/RepRapFirmware/wiki/Changelog-RRF-3.x). Please can you update to RRF 3.4.6 and test the job file to see if it still does the same thing.Ian
-
@droftarts My M115 says FIRMWARE_NAME: RepRapFirmware for Duet 3 Mini 5+ FIRMWARE_VERSION: 3.4.0 ELECTRONICS: Duet 3 Mini5plus WiFi FIRMWARE_DATE: 2022-03-15 18:59:17
I haven't used job files, because I am building a measurement system, not a printer. I have just been sending commands over the serial port from my program on the PC. I can use macros if I have to. I will do the upgrade next week and see what happens. Thank you for your help so far, and have a nice weekend!