Bob,
Changing the mask has done the trick. The accesory decoder can now be
programmed with valid addresses between 1 and 511.
I've also made changes to the Pane Format of the CVPRoducts_AD4.xml
file and would like to submit them to you as Rev 2 but I'm having
trouble with a couple functions; I can't get the vslider or hslider
functions to work. In reference to the following line, can you see
what I'm doing wrong?
<display item="Output_A_On_Time" format="vslider" label="On Time
(1/10th Sec) "/>
Also, as the decoder supports only Direct and Ops Mode Programming,
I've made adjustments in the code that allow use of only those two
modes. Even though Paged and Register Mode are set to "no", I've
noticed that they are still selectable on the bottom of the
programming screen. Why is that? The code has been edited to read;
<programming direct="byteOnly" paged="no" register="no"
ops="yes"></programming>
I assume it to be correct but don't understand why the options are
still available?
Bob
--- In jmriusers@y..., Bob Jacobsen <Bob_Jacobsen@l...> wrote:
Oops.
Sorry, I misunderstood where the address is split between the two
CVs.
In the as-shipped AD4 file, you'll find this:
<variable label="Card Address" item="Short Address" CV="1"
mask="VVVVVVVV">
<splitVal highCV="9"/>
</variable>
That says that this value is to be split between CV1 and CV9, with
the low bits in CV1, and that _8_ bits are to be put in CV1.
That's
at least part of what's wrong.
Could you try changing the mask attribute to
mask="XXVVVVVV"
to put only 0-63 values in CV1?
Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@l..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.