4/2/2014 9:48 AM | |
Posts: 11 Rating: (0) |
Hi Experts! After migtrating an S5 project to TIA v12, I got an error with FC43 which states "ACCU 2 is not initialized. Access is invalid". Can you help me or give me some tips to solve this error? I have attach the STL program of the said FC43. Thanks in advance!
AttachmentFC43 Error.pdf (360 Downloads) |
4/2/2014 6:42 PM | |
Joined: 4/30/2007 Last visit: 3/9/2023 Posts: 231 Rating: (23) |
What I meant is to show the code lines before that compare instruction..or just attach here the FC43 (in pdf is ok) |
4/3/2014 4:15 AM | |
Joined: 10/7/2005 Last visit: 12/6/2024 Posts: 3028 Rating: (1057)
|
Hello Emz am I correct in assuming that you are migrating the S5 program to an S7-1500? Thiswould explain the "ACCU 2 is not initialized. Access is invalid" error that you are getting. Put simple, S7-1500's do not allow certain things anymore that were possible in an S5 (and/or S7 300/400)as they differ in the underlying architecture and S7 machine code creation/execution. Have a look Why is it not possible to mix register passing and explicit parameter transfer with the S7-1500 in STEP 7 (TIA Portal) V12? and the pdf in it which contains the following statement in chapter 1.1: "The values from registers, accumulators and the status word are generally not transferred to called blocks." |
Cheers |
|
This contribution was helpful to1 thankful Users |
4/4/2014 8:16 AM | |
Posts: 11 Rating: (0) |
Hi fritz! Thank you for your reply. I have a question, should I disregard the error caused by "BS" and "LIR" Instruction?
|
4/7/2014 4:20 AM | |
Joined: 10/7/2005 Last visit: 12/6/2024 Posts: 3028 Rating: (1057)
|
Hello Emz
allow me to answer that question with a question: Do you want your converted s7 program to do the same as the original S5 program? If the answer is "No", then sure, simply disregard the the errors caused by "BS" and "LIR" Instruction. Otherwise, I'd at least evalute what they did and replicate that functionality in the S7. |
Cheers |
|
4/8/2014 10:07 AM | |
Joined: 10/7/2005 Last visit: 12/6/2024 Posts: 3028 Rating: (1057)
|
Hello Emz first things first: Grab a copy of the manual for your particular S5 CPU. Based on your FC43 code it seems to be a115U with 941,2,3 or 4 CPU in which case you can download the manual from HERE (otherwise do a search for your CPU here on the Siemens service and support web and you'll find the manual). In it you should find all the system data word that you are lookingfor (and if not, only Siemens themselves can tell you unless someone else here knows). If it indeed is a 115U CPU, SD 57 to 63 are for example all used for the onboard SINEC L1 interfacesetup. If this case you'll have to replace that with a new link and code anyhow as L1 is not supported by S7 anymore (and comms in general requrie some reprogramming effort afteran S5 to S7 conversion). Hint: Do asearch in the manual for SD xyz as well as RS xyz as these also also used (while you S5 code uses BS, it all a bit inconsistent, but it is what it is). As for LIR and TIR,consult the manual too anddo a search here on the subject. There's plenty of info around and your code snippet is not enough to fully evaluateit all (plusthis type of direct memory addressing analysis does require someeffort). I suggest you have a go at it andcome back here with specific question in case you get stuck. I hope this helps |
Cheers |
|
12/31/2017 3:02 PM | |
Joined: 9/1/2005 Last visit: 12/5/2024 Posts: 4114 Rating: (195) |
New question published by MrKankaya is split to a separate thread with the subject Errors after Migration to TIA: How can i solve this indirect addressing problem?. Best regards |
My Forum is the place to personalize your profile, |
|
Follow us on