News:

Welcome on our forum!

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - cellist

#1
Here's the situation:

I have a constant size data packet (10 bytes).

In the ASCII query parser, I've selected to split packets by sign
characters.  My first two bytes of every packet are #00 #00, and
my last two bytes of every packet are #11 #11.  I've also selected
"the control length of the data packet" to be 10.

I'm finding, however, that if my byte #8 is also a #11, that the packet
is truncated one byte short.  My packet #8 can be anything from #00 to #FF,
so I don't know what else to try.

Why isn't the control length working?

Thanks! (Registered owner!)

-mark tanner
#2
Could you provide an example of how to do this? I'm also having trouble converting
hex bytes.  Thanks!

Quote from: Arthur Grasin on March 18, 2009, 12:49:00 PM
Your PLC sends data in the binary format. In this case you should

1. Extract your bytes to a string parser item (with help of the ASCII data parser plug-in)
2. Use the "Expressions" filter plug-in and convert the string parser item to a decimal number. Please, read the help file for this plug-in about corresponding functions.