Drive until train makes contact to another consist on the way in DCC mode. The train stops immediately after contact. You will need to insert a SetDCCThrottle or SetDCCSpeed (along with SetMaxDCCSpeed command) command immediately prior to this one.
The command execution sets the coupling mask of the lead coupler in the train's heading (logical direction of travel), so the train is prevented from coupling to the consist ahead.
Use <kuid:368725:60017> 'Set lead coupler mask of train' to reset the mask once the set mask is no longer required.
Thanks to atilabarut for his 'CoupleAhead' command which has been used as a template for the development of this command.