6/20/2019 11:24 AM | |
Posts: 10 Rating: (1) |
Tank you for your answer, it was very helpful! However I don't understand the 3rd line:
Why are you setting an offset of P#2.0 to P##st_address? This link contains a conversation where this is being explained but I don't understand it . |
6/20/2019 1:02 PM | |
Joined: 1/28/2009 Last visit: 10/26/2024 Posts: 6852 Rating: (1365)
|
2 first bytes are not relevant to your application.Please consult the online manual of STEP 7 (as shown in attachment) for more information and clues. Best regards, hdhosseini |
This contribution was helpful to1 thankful Users |
6/20/2019 1:45 PM | |
Posts: 10 Rating: (1) |
Thank you for your answer, I think that now I understand the reason of the line:
I found the chapter A.3.4.2 of the manual very helpful to understand the format of the type POINTER (see the image attached). First two bytes the type POINTER are use for the number of the DB. In our case we don't use a DB so it might be 0. Therefore, we shall add an offset of 2 bytes to AR1 in order to get address and the 'D' is to indicate that we want to take 4 Bytes (Double Word).
|
6/20/2019 2:54 PM | |
Joined: 1/28/2009 Last visit: 10/26/2024 Posts: 6852 Rating: (1365)
|
You are right.Pointer type is 6 byte in general.In your example , we want to skip the 1st 2 bytes that is the DB number.It is not applicable to your case.P#1.6 is stored in the next 4 bytes that is Dword access. I am happy it hepls you to explore something in manual ,search the forum and share your thoughts.This is the primary goal of SIOS Forum. |
Follow us on