5/2/2014 11:47 AM | |
Joined: 1/28/2009 Last visit: 12/6/2023 Posts: 6826 Rating:
|
Hello, Please check if you can use the concept discussed in the following link in TIA Portal: How can you access user data blocks with SCL/CFC?I think that should work for S7-300/400. Best regards, Hamid Hosseini |
5/2/2014 1:26 PM | |
Posts: 41 Rating:
|
The pointer that comes out here, is as a DWORD, but i need bot access to the Byte and Bit adress.... :) |
5/2/2014 1:40 PM | |
Joined: 1/28/2009 Last visit: 12/6/2023 Posts: 6826 Rating:
|
I know that is DWORD It should be decomposed and this is your task as programmer to do so
11981421_AnyPointer.txt ( 1 KB ) With many regards, Hamid Hosseini |
5/2/2014 1:45 PM | |
Posts: 41 Rating:
|
Thanks - i will try that :) |
This contribution was helpful to
1 thankful Users |
5/2/2014 1:53 PM | |
Joined: 1/28/2009 Last visit: 12/6/2023 Posts: 6826 Rating:
|
Sorry I forgot to point out that for Area-internal pointer (in this case), the first 3 bits (bit #0,1,2) are the bit addresses.You can filter it with AND with DW#16#00000007.The rest (only 2 bytes) contains the byte number and the rest should be ignored.Read more here: http://support.automation.siemens.com/WW/view/en/24519683 |
Last edited by: hdhosseini at: 5/2/2014 1:54 PM |
|
5/2/2014 1:55 PM | |
Posts: 41 Rating:
|
:) Thansks - i'll give it a try :) |
Follow us on