开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

DR4018 only responds on second command


 

Setup is a DR4018 connected to a Pi-Sprog running JMRI 4.16. Point motor is Fleischmann.

I have to send each command to throw or close a switch twice for the DR4018 to respond. The red light illuminates on both commands but the motor only switches on the second.

From what I can see with a meter across the output, nothing happens after the first command, I only see a voltage change after the second one, so it's not the point motor lagging.

Interestingly, the first command is "remembered" by the DR4018 if I send other commands... so for instance to throw switch 56 I have to press "throw" twice. If I "throw" 56 once, then "throw" 55 or any other outputs, then "throw" 56 again it responds.

Pretty much a noob with DCC, I think I've managed to factory reset it once and reprogram, but not really played around with setting or reading CVs otherwise.?


 

Interesting, I've had trouble operating signals from DR4018 decoders.
They often miss commands that are sent quickly one after another. I have JMRI send multiple and delayed commands. Making sure there was a delay between commands improved the response, repeating the commands is far better but not 100%.
I haven't had problems sending a single command. One DR4018 operates switches and signals. The switches always work, after they have moved the signals are set where maybe 6 commands are sent then it may fail.

Mike Ruby


 

Thanks Mike, that's interesting/. How did you go about setting up JMRI to send multiple and delayed commands? Is it in the configuration somewhere or does it require scripting?

Martin


 

My word, I think he's got it!

I had a closer look in the turnout tables and set up the turnout in there. I then went to the Automation menu and set NoFeedback - times to try 2, Interval 100 (ms presumably, the minimum). I then set the turnout automation from "Off" to "NoFeedback" and it now sends the command twice and the DR4018 works as expected.

Though it would be nice to know why the DR4018 requires the command twice (I may ask their support), I'm happy enough with this as a workround. Many thanks for your help!

Martin


 

I would like to know if the problem is in the Pi-Sprog setup or JMRI or all Command stations.

Have done a lot of testing of the DR4018 with no problems, using all Digikeijs products.

One think i still need to do is try to blast the DR4018 with a lot of data.

Have one DR4018 setup with three different setups.

This is a interesting topic and if there is an issue we need to documents and post it here.

Dennis
Owner of the Forum


 

I also raised this question on the Sprog group and there's some interesting information there -?/g/sprog-dcc/topic/pi_sprog_with_dr4018_only/34303883?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,34303883

It seems that it is normal practice with train decoders to send commands several times because it's quite possible commands will be lost on the track. However the JMRI/Sprog setup is to only send accessory decoder commands once since the command should never be lost.

It could be that the Dijikeis command station (and possibly others) automatically send the command several times and therefore the problem isn't seen.

However this doesn't answer the question as to why the DR4018 doesn't react to the first command. Maybe it's saying "Are you sure?" :-)

I've raised this with support, I'll wait to see their response.


 

开云体育

I have a some cascades, one with 6 turnouts which use MTB MP1 motors that are driven by DR4018 (21 turnouts in all in the cascades) and my command station is a Z21 which is controlled using iTrain.

None of the turnouts has ever failed to change correctly, not had iTrain and the layout become out of sync with each other therefore I suggest it isn’t a DR4018 issue.

Iain Morrison

Iain Morrison
07767 456746
?


From: [email protected] on behalf of Dennis Cherry <dbcherry@...>
Sent: Friday, September 27, 2019 4:22 pm
To: [email protected]
Subject: Re: [Digikeijs], JMRI, Rocrail, Itrain, Walthers, Tortise, Cobalt, Switch Machine, Roco, Throttle DR4018 only responds on second command
?
I would like to know if the problem is in the Pi-Sprog setup or JMRI or all Command stations.

Have done a lot of testing of the DR4018 with no problems, using all Digikeijs products.

One think i still need to do is try to blast the DR4018 with a lot of data.

Have one DR4018 setup with three different setups.

This is a interesting topic and if there is an issue we need to documents and post it here.

Dennis
Owner of the Forum


 

Yes Martin you found how to do it.

As to systems used, I've tried Lenz and the DR5000 with the same results. I know JMRI with Lenz sends several off commands, but I think one on command.

I use the same delays for each DR4018 as the problem is just in each decoder. I set a different delay for each output, I think with repeat twice. If I send a single command from the JMRI turnout table it always works. The other thing with JMRI is I set Logix outputs to always send even if JMRI thinks it already in the correct state, then if it does miss a command a rerun of the Logix normally corrects it.

Iain do you operate all turnouts at the same time or one after another?

Mike


 

开云体育

Mike,

I have 250ms between each point being fed the command to change - I have always done this, eve in the Z21 app I have a delay when changing a route to ensure that not everything switches once which is mainly for power reasons as I wouldn’t want a dozen turnout motors all going together :)

Iain Morrison
07767 456746
?


From: [email protected] on behalf of Mike via Groups.Io <mike_rby@...>
Sent: Saturday, September 28, 2019 12:51 pm
To: [email protected]
Subject: Re: [Digikeijs], JMRI, Rocrail, Itrain, Walthers, Tortise, Cobalt, Switch Machine, Roco, Throttle DR4018 only responds on second command
?
Yes Martin you found how to do it.

As to systems used, I've tried Lenz and the DR5000 with the same results. I know JMRI with Lenz sends several off commands, but I think one on command.

I use the same delays for each DR4018 as the problem is just in each decoder. I set a different delay for each output, I think with repeat twice. If I send a single command from the JMRI turnout table it always works. The other thing with JMRI is I set Logix outputs to always send even if JMRI thinks it already in the correct state, then if it does miss a command a rerun of the Logix normally corrects it.

Iain do you operate all turnouts at the same time or one after another?

Mike


 

That is why you don't have a problem, I find putting delays between commands makes the decoder work. The problem when operating signals is that too much delay can make the signals momentarily show the wrong aspect.

I did contact Digikeijs and they said not to send commands too fast, but as signals are set by a code to three addresses per signal head they need to accept at least three rapidly.

Mike


 

开云体育

Just thinking outload, so this may be total nonsense Mike, but if you have more than one DR4018 could you split the three addresses per signal across the two (or more) units and speed the commands up that way?

?

In other words, if you wired the first and third address to one DR4018 and the second address to another, you could fire the commands quickly and still give the decoders time to react.

?

Spreading them across three units would be better still of course! Effectively wire them in parallel.

?

Martin

?


From: [email protected] <[email protected]> on behalf of Mike via Groups.Io <mike_rby@...>
Sent: Sunday, September 29, 2019 10:28:27 AM
To: [email protected] <[email protected]>
Subject: Re: [Digikeijs], JMRI, Rocrail, Itrain, Walthers, Tortise, Cobalt, Switch Machine, Roco, Throttle DR4018 only responds on second command
?
That is why you don't have a problem, I find putting delays between commands makes the decoder work. The problem when operating signals is that too much delay can make the signals momentarily show the wrong aspect.

I did contact Digikeijs and they said not to send commands too fast, but as signals are set by a code to three addresses per signal head they need to accept at least three rapidly.

Mike


 

开云体育

Mike

?

I don’t have delays for the signals, just for the turnouts. Signals don’t draw much power and it is the power draw that I am spreading ??

?

Iain


From: [email protected] <[email protected]> on behalf of Mike via Groups.Io <mike_rby@...>
Sent: Sunday, September 29, 2019 10:28:27 AM
To: [email protected] <[email protected]>
Subject: Re: [Digikeijs], JMRI, Rocrail, Itrain, Walthers, Tortise, Cobalt, Switch Machine, Roco, Throttle DR4018 only responds on second command

?

That is why you don't have a problem, I find putting delays between commands makes the decoder work. The problem when operating signals is that too much delay can make the signals momentarily show the wrong aspect.

I did contact Digikeijs and they said not to send commands too fast, but as signals are set by a code to three addresses per signal head they need to accept at least three rapidly.

Mike


 

Just thinking outloud, so this may be total nonsense Mike, but if you have more than one DR4018 could you split the three addresses per signal across the two (or more) units and speed the commands up that way?
The decoders are on different boards and modules so not practical. I did do a similar thing in our storage yards with a different make of decoders to give them time to charge before firing the next motor. I use the same make for the yard signals and they have no problems I can change all outputs as fast as the commands go out, but they can't do the nice signal effects that the DR4018 can. Which is a thought, I wonder if they work better if I remove the dimming action. I'll try that at the next meeting.

Mike


 

It's quite likely that the decoder is tied up for the time it takes for the light to dim, and is ignoring further commands, so that might be worth trying.

Martin