5/2/2014 11:47 AM | |
Joined: 1/28/2009 Last visit: 12/4/2024 Posts: 6855 Rating: (1365) |
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: (0) |
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/4/2024 Posts: 6855 Rating: (1365) |
I know that is DWORD It should be decomposed and this is your task as programmer to do so.You can filter out the bit number with AND for DWORD and byte number by shift instructions.Good example still available here:
11981421_AnyPointer.txt ( 1 KB ) With many regards, Hamid Hosseini |
5/2/2014 1:45 PM | |
Posts: 41 Rating: (0) |
Thanks - i will try that :) |
This contribution was helpful to1 thankful Users |
5/2/2014 1:53 PM | |
Joined: 1/28/2009 Last visit: 12/4/2024 Posts: 6855 Rating: (1365) |
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: (0) |
:) Thansks - i'll give it a try :) |
Follow us on