mjp123gp
Member
Hello,
I'm trying to setup a TCP connection from a Compactlogix 5069-L306ER to a TDI checkweigher to receive real-time weight data of the filled jugs. The Compactlogix controller would be the TCP server. I used the sample code from Rockwell's website and I've been able get the connection setup and receive data from the checkweigher.
The issue I'm having is the data I get in the PLC is in ASCII format. I need this data to be in HEX so I can use the OEM's hex map to extract only the weight variable I need.
The attached picture shows the data being received in the Net Assistant software that I used for testing this connection before the PLC was setup. In the receive options of Net Assistant, it has a check box where I can select ASCII or HEX to receive.
Does anyone know how I can get the Compactlogix controller to receive this data in HEX format?
Thanks in advance!
I'm trying to setup a TCP connection from a Compactlogix 5069-L306ER to a TDI checkweigher to receive real-time weight data of the filled jugs. The Compactlogix controller would be the TCP server. I used the sample code from Rockwell's website and I've been able get the connection setup and receive data from the checkweigher.
The issue I'm having is the data I get in the PLC is in ASCII format. I need this data to be in HEX so I can use the OEM's hex map to extract only the weight variable I need.
The attached picture shows the data being received in the Net Assistant software that I used for testing this connection before the PLC was setup. In the receive options of Net Assistant, it has a check box where I can select ASCII or HEX to receive.
Does anyone know how I can get the Compactlogix controller to receive this data in HEX format?
Thanks in advance!