3/10/2011 5:30 PM | |
Joined: 11/17/2010 Last visit: 1/22/2024 Posts: 26 Rating: (0) |
Hello all, Can anyone tell me why the BLKMOV call in FC isworking whenconstant pointer is entered in the DSTBLK parameter, but if I build an ANY pointer, it does not work (RETVAL=8325)? Please see attached PDF's. The 1st few pages in theattachement show the BLKMOV using the ANY symbolic local parameter"DestPtr" but does not work. The second instance of FC40 uses the constant pointer P#L0.0 BYTE 140 in the DSTBLK parameter and works fine. I'd really prefer to build the pointer and use the local parameter rather than the constant method. Thanks for looking! Greg AttachmentBLKMOV.pdf (184 Downloads) |
3/13/2011 1:06 PM | |
Joined: 10/7/2005 Last visit: 3/29/2024 Posts: 3002 Rating: (1045)
|
Hello ggs24 I must say that you dicovered an interesting problem. All I can offer is to confirm that I observe exactly the same issue as you do when testingthe logic with PLCSIM (V5.4 SP4). In addition to what you already tested (using P#L0.0 BYTE 140 in the DSTBLK parameter works), it also works if the destination ANY Pointer is built to point to DB, M, I, or Q memory and onlyfails when it points to L memory. Question: Have you tried to test it in a real PLC? If it works in a real PLC it is a bug in PLCSIM, if it behaves the same in a real PLC I'd say it is an "undocumented feature" of SFC20. I'd suggest you send a service & support to Siemens and please let us know what the outcome is. |
Cheers |
|
This contribution was helpful to1 thankful Users |
Follow us on