Converting a WORD into a double Integer in PL7

atomtm

Member
Join Date
Jun 2014
Location
Germany
Posts
130
Hello everyone!
I am trying to figure out how a word - 16 bit can be translated into a double integer (%MD) in Pl7 .
Currently the application has one of it's outputs mapped into a coil addressed with (say) %MW1000 . So I cross reference this to see where it goes but the only entry of it is in that section and nowhere else. By searching the different sections I came across %MD1000 where all 32 output coils are assigned.
By simulating a test program with Modbus Poll and Unity I noticed that when I change %MW1000 ,%MD1000 is also affected. So what exactly is the relationship between these two .
These can't be the same as the WORD has 16 bits and double integer has 32 , right? There have to be 16 bits more on the %MD but from where is it taking them?

Once again sorry for my general questions , I am still learning
Would be very grateful is someone could help me with this out!

Thank you in advance
 

Similar Topics

Well I am trying to cleanly convert a decimal value in a DINT to the corresponding bit in a different DINT So if I have the number 11 on in...
Replies
11
Views
2,006
I am needing to convert the low DWORD of a timestamp into a LREAL. The DWORD is a 32bit unsigned number. In TwinCat2, I keep getting a negative...
Replies
3
Views
1,696
I am having problems expressing an ANALOG OUTPUT 16bit INT word (0-10V Proportional Valve Voltage) as a REAL decimal number. From my...
Replies
6
Views
9,187
Hi, I am new to codesys programming and need some help converting a word variable into 2 byte variables. If anyone provides the sample in Codesys...
Replies
9
Views
23,022
Hello everyone, can anyone help me with covert the STL code to ladder. Iam using plc s71200. A %DB1.DBX33.7 // angel of vaccum...
Replies
2
Views
217
Back
Top Bottom