6/9/2016 1:43 PM | |
Joined: 5/15/2012 Last visit: 5/21/2024 Posts: 39 Rating: (7) |
Hello I need copy a memory area in 1500 PLC. Something like: Example2. Source and target memory will have same structure but every time structure will be different (also unknown length). My question is, how can I make it in optimized block access??? (I have this function in Step7 v5.5 by ANY and pointer. Copy one of 3 source into two target. Attachment) Thanks AttachmentFC760_v5.5.pdf (256 Downloads) |
6/9/2016 2:04 PM | |
Joined: 12/16/2012 Last visit: 5/23/2024 Posts: 652 Rating: (130) |
Hi! If your structures are based on UDTs, you can input them into an FC/FB as Variant and check inside the block the type of the UDT. Then copy them to the destination with the appropriate structure. edit: Link Check out jacek d's GenericTypeHandling function and addapt it to your needs. |
Last edited by: Kahl at: 6/9/2016 2:15:35 PM |
|
This contribution was helpful to1 thankful Users |
Follow us on