9/2/2015 11:44 AM | |
Joined: 11/29/2011 Last visit: 2/4/2025 Posts: 1362 Rating:
|
Hi, Have a look at this link: In STEP 7 (TIA Portal), how do you initialize structures in optimized memory areas in the S7-1500? |
- What you read here, please check with manuals and your requirements. |
|
This contribution was helpful to
2 thankful Users |
9/2/2015 2:37 PM | |
Joined: 4/28/2015 Last visit: 11/1/2021 Posts: 112 Rating:
|
Hi,
Pleas have a look at the attachment.
Following the MicroMan's link I've tried the first option: But I have got the following Warning When the input parameter '#IN_bInitialize' is written, you do not access the operand that was transferred as actual parameter, but rather only the formal parameter of the block.
So after that I found Warning on reset FB input parameter so I've changed Dest_DB_2 to an InOut but then I'm getting Invalid Assignment error
So the last but not least I've tried the William_B's suggestion but then I am getting the same error messages as with the first option
BTW I’ve just checked and my DB are non-optimized (I guess it is so by default) |
9/2/2015 2:49 PM | |
Posts: 5225 Rating:
|
Using the ANY type is not quite fitting in to what fits the advise given. Maybe try something else... POKE_BLK(AREA_SRC:= <Operand>, DBNUMBER_SRC:= <Operand>, BYTEOFFSET_SRC:= <Operand>, AREA_DEST:= <Operand>, DBNUMBER_DEST:= <Operand>, BYTEOFFSET_DEST:= <Operand>, COUNT := <Operand>) In essence it will be able to copy one block into another block.. just like you want to do with your code. So the pointer will be stretched over the various parameters of the instruction.. but it will do what you want from it. .... I assume you are aiming to use an S7-1x00 PLC. w |
9/2/2015 2:55 PM | |
Joined: 4/28/2015 Last visit: 11/1/2021 Posts: 112 Rating:
|
Sorry for not mentioning but I have 315F and TIA V13 sp4 |
9/2/2015 4:07 PM | |
Posts: 5225 Rating:
|
..perhaps this one (for the S7-300). - image attached - |
This contribution was helpful to
1 thankful Users |
9/2/2015 10:45 PM | |
Joined: 11/29/2011 Last visit: 2/4/2025 Posts: 1362 Rating:
|
Hi, I just removed my post as I found it only applicable for standard applications. I was not sure about the requirements in this case so I decided to remove it before I confuse someone. Anyways for information only the link from my deleted post: Initialisation of DB by using the SFC83 Sorry if I confused anyone with my removed post. |
Last edited by: MicroMan at: 9/2/2015 10:48:35 PM- What you read here, please check with manuals and your requirements. |
|
This contribution was helpful to
2 thankful Users |