rta53
Lifetime Supporting Member
I have just downloaded a new project to a CLGX L61 processor. When I try to go to run I get this fault.
12/8/2007 11:49:02 AM
(Type 04) Program Fault (can be trapped by a fault routine)
(Code 31) JSR or RET did not pass as many parameters as expected.
Task: MainTask
Program: PRETREATMENT_PROGRAM
Routine: DAY_OF_WEEK
Location: Rung 0
What I have is a routine call DAY_OF_WEEK and one called CLOCK. The DAY_OF_WEEK logic is something that I got from Rockwell web site that calculates the day of the week. I have used this before on another project that had a Compact Logix controller and it worked just fine. I have tried to look at what might be different between the 2 projects and here is what I found. When I created an array called DateTime to access the time of day clock (which I have used before) in the new project I made it Program Scoped instead of Controller Scoped. Same is true of the tag I created called Day_Of_Week. I noticed that in my previous project I had made both of these Controller Scoped. Could this be causing the problem? I am using GSV to get the LocalDateTime
12/8/2007 11:49:02 AM
(Type 04) Program Fault (can be trapped by a fault routine)
(Code 31) JSR or RET did not pass as many parameters as expected.
Task: MainTask
Program: PRETREATMENT_PROGRAM
Routine: DAY_OF_WEEK
Location: Rung 0
What I have is a routine call DAY_OF_WEEK and one called CLOCK. The DAY_OF_WEEK logic is something that I got from Rockwell web site that calculates the day of the week. I have used this before on another project that had a Compact Logix controller and it worked just fine. I have tried to look at what might be different between the 2 projects and here is what I found. When I created an array called DateTime to access the time of day clock (which I have used before) in the new project I made it Program Scoped instead of Controller Scoped. Same is true of the tag I created called Day_Of_Week. I noticed that in my previous project I had made both of these Controller Scoped. Could this be causing the problem? I am using GSV to get the LocalDateTime