AnyBus adapter and ControlLogix (data mis-alignment)

phuz

Member
Join Date
Jun 2008
Location
Mohnton, PA
Posts
1,044
We have installed several of these AnyBus X-gateway adapters to allow us to communicate between ELAU and ControlLogix. All but one of them is up and functioning properly. We are reading 10 INTs out of each and on this one particular machine, the values don't match. The AnyBus has a web-server that you can view the data, and the value in the ELAU and AnyBus match (value of 6099), but in the ControlLogix, it shows up as -11497. The remaining words are all zeroes currently, but if they force word 1 to a "1", it shows up as 256. Same with word 2. This tells me that the data is off by 8 bits somehow. We are using the ETHERNET-GENERIC modules, but I also tried explicit messaging and get the same value(s). AnyBus pretty much said "good luck" and it wasn't anything on their end. I'm inclined to agree since the AnyBus web-server shows the correct value. We also swapped adapters with another machine, and the problem stayed with the machine, which I don't understand either.
 
The issue sounds like a big / little endian problem.
Use a SWPB instruction in the Contrologix to change the order of the bytes coming from / going to the gateway.
 
The issue sounds like a big / little endian problem.
Use a SWPB instruction in the Contrologix to change the order of the bytes coming from / going to the gateway.

I posted on here as a last ditch effort, and YOU SOLVED IT!
I have no idea why this one is ordered differently from the rest, but it worked. Thank you so much.
 
I have had issues with Anybus TS also at times.
There is a girl that works there that is very good and very helpful.
She actually worked with me over a 2 day period doing programming on an RS232 to Ethernet IP conversion problem.
I told here what I wanted it to do and what it was doing and she sent me configurations to test. We also encountered the byte swap issue.
 
That's good to know in case I encounter one of these again.
For now, we are just using the SWPB instruction (Thanks, Mike) on this one system. We didn't have the luxury of time to wait for the vendor to figure out where the Elau PLC code was mismatched.
 

Similar Topics

Hello all and happy Friday, I'm curious if anyone here has experience sending data over an Anybus Bolt II (HMS AWB6001-A) using a Compact Logix...
Replies
4
Views
799
We have a keg check weigher that that lost a fight to a forklift. The scale was previously a Systec IT3000, which was the only PROFIBUS slave...
Replies
5
Views
699
Complete novice trying to integrate an industrial fluid filling process into MES using an anybus communicator Hardware: Anybus Communicator...
Replies
3
Views
1,601
Hi, does anyone here sell the cable for the classic Anybus "PC connector"? I have a customer who has an old machine and he would like to retrieve...
Replies
5
Views
1,850
We have been using ProfiBus Gateways to connect to a piece of equipment. The equipment interface is through a PB/PB adapter that we connect...
Replies
2
Views
1,824
Back
Top Bottom