4/28/2016 9:33 PM | |
Posts: 8946 Rating: (999) |
Use SFC20. |
4/28/2016 9:45 PM | |
Joined: 9/27/2006 Last visit: 4/24/2024 Posts: 12257 Rating: (2665)
|
Hello; I agree with IBN-Service, the function SFC 20 "BLKMOV" will do the trick. Start by looking at hdhosseini's reply in the following thread, ot shows how to call SFC 20 in STL language: https://support.industry.siemens.com/tf/ww/en/posts/61692/ If you program in LAD or FBD, SFC 20 can be found in the instructions catalog, under the section Standard and System Functions. You must specify the Source and Destination parameters as ANY pointers; say your source is in DB25, and your 80 bytes are located starting at address 20 in that DB, then the Source address would be: P#DB25.DBX20.0 Byte 80 (note the DBX20.0 to indicate the start address as a bit, the LSB of that byte) Hope this helps, Daniel Chartier |
This contribution was helpful to5 thankful Users |
Follow us on