RS232 Serial comms Transfer

ryandodds7

Member
Join Date
May 2019
Location
Newcastle
Posts
4
I have camera software which uses a keyboard to navigate, zoom move ect through serial.

I want to be able to replace the keyboard for a PLC so I am able to transfer serial commands between the PLC and camera software (On Desktop PC) via RS232.

Does anybody have any sample code I would be able to use to transfer serial data.

Thanks
 
You need to know what protocol your camera uses. RS-232 is not a protocol, it is an electrical standard defining the voltages, etc. for communication, and not the information in the communication.

You need to know what binary, HEX or ASCII values to send, and what binary, HEX or ASCII values you will receive in response.

If it was a protocol like Modbus RTU, Modbus ASCII, or some other common industrial protocol, then it would be much easier... but for a camera, I doubt it supports such protocols.

You would have to either search on Google to see if the protocol of your camera is published in a manual, or contact the camera manufacturer if they can send you documentation about the protocol used over RS-232.
 
Hi thanks for the reply,

it not the camers itself its software, I have a list of data I need to send, I just need some sample code on how to send serial data via plc to a device,

Thanks
 
I think people are miss-interpreting the post (or maybe I am). I believe he wants to simulate a keyboard connected to a PC by using a PLC to send the keyboard codes to the PC via 232. It to be honest using even 232 keyboards is something of the past & not sure what operating system would still support it.
First of all we need to know what make of PLC, most could send ASCII data but there could be problems as if the PC is busy keyboard protocol uses extra line to control the flow of codes. so as not to miss keystrokes.
I think this is a bit of a non starter, how are you going to generate the keystrokes ? via an HMI ? it will be a bit slow awkward to control etc.
 

Similar Topics

I have wasted a week trying to figure out how to connect an SLC5/03 with my laptop. I do not have and can not Buy the 1747 UIC and PC3 cables. I...
Replies
14
Views
2,546
MELSEC A RS422 (25pin) <> iQR C24 Serial RS232 (9pin) - Simple PLC Communication Communication from a MELSEC-A Series CPU (RS-422 – DB 25 Pin)...
Replies
4
Views
1,037
So I have a very old radio modem that uses hardware flow control. Its RS232 with RTS, CTS and RTD. I have pins: 2- Tx 3- Rx 5- GND 6- RTD 7- RTS...
Replies
5
Views
1,524
Hey Everyone, I need to Interface Ignition SCADA ethernet network to an Allen Bradley SLC5/04 Serial RS232 DF1. Has anyone out there found a low...
Replies
4
Views
959
Until recently, I haven't had to connect to a piece of hardware using a serial connection in quite sometime. Well, that all changed yesterday when...
Replies
33
Views
6,254
Back
Top Bottom