Non-contact IR temperature sensor - Analog output : Duet6XD
-
Hello,
I have a Duet3 6XD (not configured yet), I plan to connect a Non-contact IR temperature sensor that has 4-20mA analog output (https://www.omega.com/en-us/temperature-measurement/noncontact-temperature-measurement/fixed-infrared-temperature-sensors/oshfv-series/p/OS-HFV50-601-LT). This is for temperature measurement up to 1300 C, welding application.
My question is in two parts (sorry for basic questions: I am new to DUET and controls in general, so any help is appreciated):
- Can Duet3 6XD accept analog 4-20mA in any of its IO pins? If so, is there a documentation that explains the wiring and programming of it? Can the DWC temperature chart be adjusted to show up to 1500 C? Can the temperature data be logged and extracted somehow?
- What would be the best GCode syntax, to include between welding steps, so the process waits for the recently welded bead to cool down to a set point (say, 200 C) before welding the next bead? (there is no extruder heat or heater of any sort) - So will it be M109 or M116 (I don't see a syntax to define temperature setpoint using this) or something else?
Thanks very much.
-
@aOne 4-20mA is an old interface protocol that is not very well suited to interfacing with modern electronics. To read the output you need to connect a resistor across the output terminals and measure the voltage developed across it. Unless the negative output of the device is common with the negative power input (which does not appear to be the case for the device you linked to) then you need either to read that voltage using an isolated analog to digital converter, or use a floating 24v power supply to power it. Using a floating 24V PSU to power it, you could connect a 150 ohm resistor across the 4-20mA output terminals, also connect the negative output terminal to the ground pin of a Duet input and the positive output to an analog-capable Duet input. Then use M308 to configure a Linear Analog Sensor on that pin.
There may be a better way. That device also has TTL-compatible Tx and Rx pins. You could connect those and the TTL GND connection to a UART-capable IO port. If the TTL GND pin turns out to be common with the negative power pin then you could use a common 24V PSU with Duet VIN. You will need to establish what protocol the device uses on those pins. Other devices from that manufacturer support Modbus over TTL, but the manual for that device does not mention Modbus. I suggest you ask the manufacturer for details of the protocol, and whether TTL CND is common with 24V VIN-.