Hi
I've just been analysing a crash on an S7-414, which was caused by the error "Error when allocating local data"
Looking at the Stack information on the Module Information window, the PLC reports that 355 bytes are being used in OB1 (The muppets that programmed this included a 254 byte string in the temp variables of OB1....so I've moved this declaration and associated code to a separate FC called from OB1 which I'm hoping will solve this problem)
I've gone through the rest of the FCs in the stack and have calculated 710 local bytes being used up to the point of the Stop.
Question 1: Is OB1 assigned to priority class 1? This would match up as the local data assigned to class 1 is 758 bytes.
Question 2: The total allocation of local memory in the Temp declarations in OB1 comes to 322 bytes - why does the PLC give me 355 bytes of information in the Stacks window? There are no references to LD / LW / LB in the rest of OB1.
Thanks for any help anybody can give me on this.
SS
I've just been analysing a crash on an S7-414, which was caused by the error "Error when allocating local data"
Looking at the Stack information on the Module Information window, the PLC reports that 355 bytes are being used in OB1 (The muppets that programmed this included a 254 byte string in the temp variables of OB1....so I've moved this declaration and associated code to a separate FC called from OB1 which I'm hoping will solve this problem)
I've gone through the rest of the FCs in the stack and have calculated 710 local bytes being used up to the point of the Stop.
Question 1: Is OB1 assigned to priority class 1? This would match up as the local data assigned to class 1 is 758 bytes.
Question 2: The total allocation of local memory in the Temp declarations in OB1 comes to 322 bytes - why does the PLC give me 355 bytes of information in the Stacks window? There are no references to LD / LW / LB in the rest of OB1.
Thanks for any help anybody can give me on this.
SS