Tuesday, June 5, 2018

Arduino connected Micro Epsilon Laser Micrometer

With the success of our Igaging / Mitutoyo and Harbor Freight digital measuring devices projects, now it's time to turn our attention to the Micro-Epsilon Laser Micrometer, optoCONTROL 2600.

There are several types of outputs, including analog, digital RS-232 and RS-422, and Binary or ASCII options. We chose BINARY on the RS-422 output (19200, 8N1), and connected a RS-422 to TTL converter to Arduino 2560 (originally a Arduino Nano, but the 2560 has 4 hardware UARTs).

The program we selected is "EDGELH" "Standard edge dark-bright".

Wiring is as follows:

Micro Epsilon DB25 (Manual is wrong):
Pin 8 (T+) to RS-422 A/R+
Pin 7 (R+) to RS-422 Y/T+
Pin 20 (R-) to RS-422 Z/T-
Pin 21 (T-) to RS-422 B/R-


RS422:


if you are using the blue YL-128
VCC to Arduino +5v
Gnd to Arduino Gnd
RSD to Arduino D19 (Rx1) // Serial1 Rx
TXD to Arduino D18 (Tx1) // Serial1 Tx

If you are using the orange 2578-TTL
VCC to Arduino +5v
Gnd to Arduino Gnd
TXD to Arduino D19 (Rx1) // Serial1 Rx
RXD to Arduino D18 (Tx1) // Serial1 Tx

I suggest a DB-25 M to RJ-45 F adapter, and make up (or cut down) a ethernet cable to connect to the screw terminals of the RS-422.



Code:
https://pastebin.com/EufVX0AM

With no object in the beam, take your measurement, and subtract that in the code from the measured value. the "zero" function on the unit display only affects the display and analog output, the digital output shows the measurement from the bottom of the beam. I'll be adding a "zero" button and save that value to EEPROM.


No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...