Major Fault ONLY after Download for JSR or RET

theColonel26

Lifetime Supporting Member
Join Date
Feb 2014
Location
West Michigan
Posts
785
On site and another Programmer is getting a Major Fault when downloading code that I gave him to interface withour machines.

I have JSRs that pass UDTs tags in and return UDTs tags. it only throws a on program start. If it is AFIed, started, and then the AFI is removed the Routine call works fine.

Processor is V30 5580

:unsure:
 
Is there some sort of infinite loop where the scan is trapped in that routine? Was the major fault related to the watchdog timer? Edit: what is the major fault?
 
it only throws a on program start. If it is AFIed, started, and then the AFI is removed the Routine call works fine.
By 'program start' do you mean entering run mode? At a guess something used in the routine is set (initialized?) elsewhere, but the logic for that is after the JSR in the scan cycle. Or perhaps something using the first scan bit is causing the issue.

If, after getting it running via add/removal of AFI, it is flipped to program and then back to run does it fault out? If not that would suggest to me some specific tag values in what you are downloading is the issue.

+1 to wanting the actual fault.
 
Check the number of input parameters on the JSR matches the input parameters on your SBR instruction. Likewise check the RET and verify it is returning the same number of return parameters as the JSR is expecting.

If the JSR sends 1 input parameter, but in the subroutine there is no SBR to match that, no fault occurs. But if you pass 1 input and it is expecting 2, then a fault occurs.

Likewise with the RET. If you return 1 parameter but the JSR is expecting 2, then you have a fault.

Too many parameters being passed isn't an issue. The extras are discarded. But too few causes a fault.

OG
 

Similar Topics

Hello, We have a customer with a 1756-L72 ControlLogix PLC. They have recently got a T01:C62 Fault Code. I am trying to figure out how to...
Replies
6
Views
1,050
Hi Guys Today we went through the worst situation that PLC went to major fault Mode due to Trap by one of the Timer with -ve Value Moved into...
Replies
4
Views
1,020
Hello everyone, has anyone had this problem before PLC 5000 Model 1756-L81E Major Fault Type 4 Code 20 (T04:C20)
Replies
9
Views
4,281
We have an installation with with 6 Compactlogix 5069-L3X0ER PLCs. Within the past week, two of the 6 have crashed with the unrecoverable fault...
Replies
4
Views
2,631
Hi all, Trying to remotely diagnose a machine with a 1769-L16ER-BB1B Compact Logix. When I connected I found it had a major fault, power up...
Replies
4
Views
3,570
Back
Top Bottom