6/2/2025 12:21 PM | |
Joined: 4/24/2025 Last visit: 8/19/2025 Posts: 5 Rating:
|
I mean, programming in SCL in Step 7 V5.7 doesn't “allow” this kind of pointers, I already tried and the compiler doesn't like it. I found Forum entries and siemens support entries talking about it. Such as “How can you construct an ANY pointer in S7-SCL using the AT function? - ID: 21946854 - Industry Support Siemens”. I also simplified my problem in just “one use” let's say, but I basically need to create a function where I read/write multiple addresses seaparately. For example, I was talking about needing to read 6 bytes from an array in a DB and writing them in an output (6 outputs of 1 Byte each). But in the same function I will also need to read other arrays with different lengths (6, 24, 1, 150…) and write them into their respective outputs. This is why I would like to be able to use BLKMOV in a way where I say “start in byte 0 and end in byte 50” for example. Don't know if I made myself clear haha thanks for the quick reply! |
Last edited by: Moderator_Lan at: 06/02/2025 12:27:17link optimized |
|
6/2/2025 1:57 PM | |
Joined: 4/24/2025 Last visit: 8/19/2025 Posts: 5 Rating:
|
I already solved the issue!! Thanks for the reply anyway. I managed to understand that if I want to write in this case in QB384.0, that means the byte address is 384(byte)*8(bits)=3072 which in Hex is C00 so I did:
This way I managed to create in SCL an any pointer that's basically "P#Q384.0 BYTE 6". |
Last edited by: Moderator_Lan at: 06/02/2025 14:01:04link optimized |
|
Follow us on