Here is the lighting distribution PCB style many engines use. This is where I've seen bad or broken solder joints from the wires and connectors flexing and ripping the relatively thin traces. The Ditch lights are 2 of the red connectors.
Closer picture of board as installed- again noting that 2 of the 3 Red connectors are the ditch lights.
The backside of that PCB after the center mounting screw and short plastic standoff are removed.
Again, the failure I have seen, the thin copper trace on this single sided copper PCB can rip or crack if force pushes on the pins of the sockets pretty much in any direction. That will then cause either an intermittent connection or complete open circuit of an LED output. I've had to use wires to rebuild traces on my fair share of this specific PCB.
And yes, I'm showing a Railking engine, so because we do not have a parts diagram specific to your engine, I believe the wiring is highly likely to be one of these 2 methods MTH used- either the spring and PCB contact pad system- and tons of ways that can be intermittent with the shell and body post mount flexing, but then also, the PCB distro board, I've also seen them be intermittent or just outright fail open circuit. Your system could have one or both types of connections. I've seen different variations. I don't happen to own a Premier SD 90
where things get really weird is that i took this engine to an authorized MTH repair shop. they put it on their test track and the light worked immediately and for several minutes with no modifications or programming/resets done whatsoever. they were using a z4000 in conventional as well. I took it home. does not work again. what could be going on here?
thanks
Again, that is not weird at all. It's a basic understanding of how these locomotives and wiring harnesses are built and the contact system to the shell since it can and does has to be removed for maintenance and repairs. In some ways, the spring system is great to a tech or you working on your engine- no wires to worry about unplugging. The downside is yes, it's not a perfect system and yes intermittent connections can happen. It's kinda unfair to blame the tech when you brought an engine and just from transport it flexed enough to make reliable contact when they tried to reproduce your issue it worked in front of them. He's not getting paid to take apart engines for fun so it if worked no reason to pull the shell and do some type of deep dive on a problem that for all purposes- it worked for them. Again, per your story, it sounds like you took it to a shop, it worked fine there, they did not do any work and you took the engine home. Then at home, and somehow handling, lifting in and out of the box, placing on the track- likely the connection became open circuit and the one ditch light fails to operate.
This is not a board or programming issue. This is simply basic wiring and connector systems and their downfalls.
Also, this is a used 2013 engine going on 9 years old. Entirely possible the engine was opened and serviced at some point meaning a body post with the spring contact style system could crack or flex, the screws mounting the body might not be fully tight, or in the case of the distro PCB, when someone unplugged and plugged the connectors during a service, that force on the connector pins cracked a solder joint that then became intermittent.
From the manual, the body mount screw locations https://mthtrains.com/sites/de...ction/20dl10549i.pdf
Again, sorry, I wish I had your specific engine or a breakdown to validate which style of connection that engine used.
Picture by user @Hancock52