Playing hide and seek with my bytes

electech84

Member
Join Date
Oct 2020
Location
Texas
Posts
7
I'm working on a project that involves updating messages on a Linx printer via ControlLogix. I'm sending and receiving data via sockets and can successfully update the printer messages. The issue is that the read Socket MSG is parsing the first 4 bytes off my message and hiding them somewhere.

A normal response from the printer should look like this: $1B$06$00$00$1E$1B$03$D9. (See below for code breakdown.) What I have is $1E$1B$03$D9. Any help would be appreciated.


Code breakdown:

1B 06: ESC, ACK
00: No printer errors
00: No command errors
1E: Command ID (Load MSG)
1B 03: ESC, ETX
D9: Checksum

My ACD file
https://drive.google.com/file/d/1hnZ8BYlbphYF6bzjXDdtNsZPKTrKg9Pp/view?usp=sharing
 
Someone pointed out I was using the wrong data type for the Destination Element for the Read Socket MSG. I changed it to the proper data type and now I have all 8 bytes.
 
Someone pointed out I was using the wrong data type for the Destination Element for the Read Socket MSG. I changed it to the proper data type and now I have all 8 bytes.

Specifically, I had created a data type for a Large Connection because my original method needed it. After going through Linx RCI manual again, I found an easier way to accomplish the task, so the Large Connection wasn't needed anymore.
 

Similar Topics

Hey everyone and anyone that can lend a helping hand. I have a project that I am being asked to add some animations of Solidworks or "3D" models...
Replies
9
Views
346
Using FTview ME to create an HMI screen. Simplest task is giving me trouble. How do I create an HMI tag that will allow the name of the current...
Replies
3
Views
134
Hello Folks, plc : micrologix 1500 The analog output from the loadcell is given to the plc. Using the SCP function I have scaled it into an...
Replies
3
Views
767
Hi Everyone, I am hoping a Red Lion Expert can point me in the right direction. I am experimenting with data logging on a CR3000 10" screen...
Replies
4
Views
609
I’m a bit stuck on HMI (KTP-1200) programming… See the picture attached. The PASS or FAIL box should only appear when the toggle switch is...
Replies
7
Views
1,082
Back
Top Bottom