A Question about Swapping Bytes

bodoo23

Member
Join Date
Jan 2018
Location
Athens
Posts
57
Now, I am working on a project where I need to communicate AB plc with a siemens one. I actually get them communicate with each other but I have a question about swapping.

For example, when sending a dint value(temperature etc) to siemens plc, I need to swap it but there are also dword values which I created bool by bool (start,stop, etc) but they are sent as dword to siemens side. When sending this dword value it is not needed to swap.I didnt understand the reason of this. Dont they recorded memory in same manner ? Why they both dont need swap ?

Thanks in advance.
 
Keep this in mind (using double word address MD 0 as an example):

MD 0 consists of 4 bytes: MB 0, MB 1, MB 2 & MB 3

Byte MB 0 is the most significant and MB 3 is the least

Within the byte MB 0, bit M 0.7 is the most significant, and M 0.0 is the least.

So in the whole double word MD 0, M 0.7 is the highest bit and M 3.0 is the lowest.

Hope that helps.
 

Similar Topics

Hey guys, the scenario is: I have already completed the drawing package for my system utilizing an A-B 440R-N23126 (Minotaur) safety relay. SoS...
Replies
0
Views
128
I have an HMI 2711R - T4T Series B, and I want to know which PLCs, besides Micro 820, can communicate with it.
Replies
2
Views
55
HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
61
I'm working with a project that contains some routines in ST but mostly in ladder. Am I correct in assuming this 'rung': DB1001DO._01AV55_OPEN :=...
Replies
4
Views
97
Is there a way to reset the count on the RS Logix BackUp?? XXXXX PROGRAM IN PROGRESS_BAK445.RSS XXXXX PROGRAM IN PROGRESS_BAK446.RSS XXXXX...
Replies
8
Views
249
Back
Top Bottom