r/processcontrol • • Jan 22 '18

Control box

Hi,

New here, and a complete beginner in most things related to programming and whatnot, so not sure if this is the right place to ask this, or even how to properly articulate what I'm trying to ask...

As a side project at work, I want to improve the way we interface with a process control module. This module is made of a pressure sensor, controller and an actuator. The sensor is a simple 4-20mA single, the controller communicates via ModBus and the actuator just a serial connection (RS232).

What I want to do is use a Raspberry Pi, or Arduino (or something equally as cheap - suggestions very welcome) to: 1) Allow reading and writing from a higher level control system down to the modbus and serial device via an Ethernet connection to the RPi - I.e the RPi acting as a serial to Ethernet converter for both devices, shuffling readings and commands between them and the Ethernet connection.

2) Run a really simple script to have a cutout on the sensor signal - e.g when the single reaches 16mA send a command to the modbus device.

So, for clarity, I want the RPi to connect to a modbus device, a rs232 device and a 4-20mA device, and send all that data out (and take data in) through an Ethernet connection. Is this possible?

Cheers, E

5 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/Elpand Jan 23 '18

Hey thanks for the reply.

So the device uses Modbus RTU, and our higher level control system has all those things but the reasons for looking at some local control is 2 fold.

  1. Simply, it reduces the amount of cabling all around the houses from each module to the main control system.
  2. In some situations, users will want to use the module without a higher level control system - in this case we want to have local cut-out based on the analogue signal (and potentially other automated scripts in future??)

I've also been looking at Arduino devices such as this: https://store.arduino.cc/arduino-uno-rev3

This appears to have Tx and Rx I/O pins, and the AI pins work up to 20mA. I guess the first thing I want to know is what hardware do I actually need?