10/17/2013 9:53 PM | |
Joined: 7/7/2010 Last visit: 3/23/2023 Posts: 13203 Rating:
|
SebOberI am a little surprised you were able to get your GET/PUT to work if you followed your own advice exactly as written. In my experience, the P#DB#.DBX0.0 BYTE 2 or P#DB#.DBX0.0 WORD 1 are supposed to mean the same and mean a single 16-bit chunk of data is being passed. If P#DB#.DBX2.0 BYTE 4 is used, it means start at word 1 (2 bytes offset from beginning of DB) and pass the next 4 bytes or 32-bits or 2 16-bit words worth of data. By reading your explanation, you seem to have BYTE where WORD should be in at least a couple of places. Thanks for the helpful tips, just be careful of the terminology. It may be that TIA Portal works even if we tell it the wrong values for GET/PUT, but perhaps some day they will change it and close any loopholes that let us read further into a DB that we say we passed via a pointer. |
science guy |
|
Follow us on