The device manufacturer has obsoleted the serial device and the new unit has a USB connection. Works fine to connect it to a PC with USB and it creates a virtual COM port but throws a kink in our current deployment.
Any recommendations on elegant solution?
We currently use Productivity PLCs for this application, is there a PLC that will host a virtual com port?
There are USB remote servers but haven't used them before and wouldn't that expose the Ignition sever's USB port out on the floor?
Considered Edge and the serial module but also need database connectivity which becomes an issue with Edge.
Presumably you're doing work in the PLC to read/write to the serial port and translate it into Modbus that is accessed by Ignition using the Modbus driver?
Originally the PLC code was more involved. It's now basically being used as Ethernet to Serial converter. Modbus TCP string tags flow in/out serial port.
I don't know how reliable it would be compared to the current setup, but you could hook this thing up to a Raspberry Pi and then use something like socat to expose the serial port over ethernet...
Then in Ignition you'd just make a TCP connection to the RPi.
If you wanted it to still look like Modbus to Ignition then you'd have to write a custom Modbus server on the RPi instead. Wouldn't be that difficult for a software developer, but still a bit custom.
Have considered that or some other interposing PC in between. There is a PC in the mix anyway to run Perspective Workstation near the equipment. Maybe a driver to make its virtual COM, that's connected to the new device, available over TCP... Would be nice if it worked like a mobile device and I could just okay access from Perspective to my Serial Device.
Kevin, thanks for the socat memory jog. Still looking for something a bit less custom but may go down the rabbit hole of deploying the nearby perspective workstation on an x64 Linux box, so I can run perspective, and then use socat to virtualize the serial port.
Hi Phil, Have you used these? I came across them when looking for a solution but was worried they might look to much like a do-anything USB port hanging off of the Ignition Server. i.e. a port someone on the floor could plug a thumb drive into and it would be on the server. Our security folks might object.
I think I'm going to order an Onlogic industrial PC with Linux and try the socat approach. This will be my first Linux box running perspective workstation. Do you recommend a particular Distro?
Thanks, Ubuntu desktop 22.04 LTS is an easy choice preinstalled from onlogic and unless there is some reason to avoid GNOME that's probably what I'll go with. KDE is nice but this will likely spend it's life with Perspective in kiosk mode covering the screen.
I'm going to try the hack of pointing the gateway to a TCP port on this machine that is connected via socat to the serial port used by the device. Seems like convoluted good fun and if it works it solves a few instances of this same situation for me where I'd like to keep applications on our central gateway but have a serial something out at the perspective workstation.
Perspective Workstation on the middle PC, communicating with the Gateway, which is communicating via socat with the the middle PC, and socat is exposing the virtual serial port from the USB connection to this device.
And some new scripting on the Gateway to read/write to this TCP connection and put it into tags or something.