Modbus Mapping Issue

Frosty

Member
Join Date
Jul 2008
Location
Cork
Posts
66
Hi There,

I have an AB L33ER talking with a unit over Modbus TCP, coms are all good and i am reading in data so all that side of it is fine.

The values that are sent from the unit vary in data type majority in BCD. when i read in a value in BCD 32 i can see it in two ints on my map. when i convert them to BCD with the FRD instruction my two seperate ints correspond to the total value being sent - great!!

The issue;
No matter what way i try to combine the two ints to one dint it just doesn't come the same, i have tried the copy as the two ints are in any array after each other. i have tried copy then TOD/FRD i have used SWP/MVM/BTD all with various parameters but to no avail.

Question:
Anyone there help me out with this? below is an example:
Value being sent 123456
Data read in Int[7] (Dec Val 18) = IntArray[0] (BCD val 12)
Data read in Int[6] (Dec Val 13398) = IntArray[1] (BCD Val 3456)

So how do i combine the two ints to give me dint value 123456?

Thanks in advance...
 

Similar Topics

Hi all, I'm really new to this. I need to export the Modbus register mapping from a Modicon M580 through Control Expert for the registers that...
Replies
4
Views
951
Could someone help me understand how the modbus mapping is handled for the MotionWorks IEC software? I have an existing application where I have...
Replies
0
Views
1,112
I've got a project which requires some Logix integration to a Danfoss device. It is the controls part of an Integrated Technologic Sensorless...
Replies
10
Views
2,907
Dear all, In CCW modbus Adress mapping where each adress is configured in modbus mapping option.For example I will be mapping some memory bit or...
Replies
1
Views
2,113
Got a 2080-LC30-24QWB with 2080-SERIALISOL card hooked up to a Modbus slave device. MSG_MODBUS instructions are working fine. I am trying to set...
Replies
1
Views
3,719
Back
Top Bottom