PLC to Sensor in RS232

kang5174

Member
Join Date
Feb 2015
Location
Toronto
Posts
1
Hi I am using small Maple PLC for my project. We need to communicate to a sensor which provides RS232. When I send "Command" to the sensor from my PC using the RealTerm software, I receive a return data from the sensor. For example, if I send 0X02 0X00 0X09 0X00 0XB0 0X01 0X00 0XCA 0X86 then sensor replies 02 00 13 00 B0 00 01 04 20 01 50 3E 90 11 E2 7E 02 53 4F when sensor is triggered.

Now I try to send this command from PLC, I am struggling with few things below.

In the tag settings....
1. TxData: Should I send 02 00 09 00 B0 01 00 CA 86 in string format?
2. TxData length: Including space it is 26 bytes?

In the network settings-Transmit
1. Starting address (TxData) number of bytes, is it 26 byte?
2. Rules for transmission, do I need a signature? Any start or end of frame? Currently I don't use STX, just use ETX (no of byte:1, ETX frame: D)
3. I did not click "Checksum Method"

In the network settings-Receive
1. Rules for start of frame, I use "as soon as Byte received"
2. End of frame ETX (no of byte:1, ETX frame : D )

In the network general settings
Response timeout 999
Byte format: Low Byte - High Byte

Can anybody tell what is correct and what is not?
 
We would probably need to see how RealTerm is configured, however I would risk saying that this is not a string but binary.

If it is binary, it won't have spaces.

We don't know which PLC you are using...
 

Similar Topics

Hi experts, I hope you're all having incredible days. I'd really like to utilize this sensor for a customer application, but the issue is that...
Replies
17
Views
18,843
I have been Tasked with wiring an i/o link block to an existing machine, and use a few proximity switches and a q4x laser distance sensor to...
Replies
0
Views
417
Looking for a LIDAR sensor (2d) that we can use with a Siemens PLC for measurement, Would like to interface directly with 4-20mA or a Field bus...
Replies
5
Views
973
Hey, I am entirely new to PLC's and am trying to help my friend with a project. He wants to take the signal from a PNP photoelectric sensor as...
Replies
12
Views
2,235
Hello PLCs.NET! I am trying to connect a Flir A700 Smart Sensor with Advanced config onto a 1756-L84ES Contrologix V33. I have connected the...
Replies
1
Views
1,344
Back
Top Bottom