3/26/2017 6:43 PM | |
Joined: 9/27/2006 Last visit: 6/8/2023 Posts: 12036 Rating:
|
Hello Jan; Your code seems correct for your call of SFC 15; the error code returned is that the source area does not match the destination area (not the same size). See the attached screencapture, from the System and Standard Functions manual: System Software for S7-300/400 System and Standard Functions Volume 1 and Volume 2 I find that error very strange, since your code points to MB 40 to MB55, which in any case should be available at any moment (even if the values inside might not be initialized correctly at the moment you call the function). If I may suggest a workaround: create a DB in your program with 8 words area, initialize the 8 words to the values you want to send to the AO on your ET 200M, and try using this as a source for your test. If you use DB10, the source address would be P# DB10.DBX0.0 Byte 16. I would be interested in knowing the results of this test. If it works, then we could look at why the M area is causing a problem. Hope this helps, Daniel Chartier |
3/27/2017 10:03 PM | |
Joined: 4/4/2016 Last visit: 4/20/2023 Posts: 5 Rating:
|
I tried P#M 40.0 BYTE 8 still 80b1 |
Follow us on