0 Members and 1 Guest are viewing this topic.
To turn Analog (DC) operation off1 read the value in cv292 subtract 4 from the cv29 value3 write the new value to cv29
Not so fast. That works only when the DC bit is already turned on. If not, then this will not have the desired result. For example if CV29 is set to 34 (decimal) which is long address and 28/128 steps then subtracting 4 will mess things up.34-4=30. That will configure the loco to use: 28/128 steps, enable DC operation, turn on RailCom, and enable custom speed curve. That is a totally undesired result!The safest way to do this is to read the value from CV29, determine what functions are enabled, then decide whether the 4 needs to be subtracted or not.
In 21 years of operating DCC I have only seen locos that have the 4 bit set have the runaway issue. Has it been known in other cases?