H0 Sound Decoder MX640 Page 21
The allocation of function outputs
(“function mapping”):
Depending on decoder type, ZIMO decoders have between 4 and 14 function outputs (FO...). The loads
connected to these outputs, such as headlights, smoke generator etc. are switched on and off with the
function keys (F...) on the cab.
Which key (F...) controls which function output (FO...) can be specified by a series of Configuration Vari-
ables.
The configuration variables
#33 to #46 forms the NMRA function mapping according to their rules
and regulations as shown in the table on the right.
Extended flexibility, more directional functions and
automated time controlled lights-out with CV # 61:
CV #61 offers fixed output assignments, especially liked for Swiss lighting systems (CV #61 = 6 or
7) but also offers flexible assignments by means of a special programming procedure (CV #61 =
98), with which each function/direction command can be assigned to specific function outputs. An
automated turn-off feature, which turns designated function outputs off after the loco comes to a
stop is also available. More information follows on the next 3 pages!
An alternative method for directional functions:
According to the NMRA function mapping (see right) only function F0 is intended to change with the
direction and is usually used for the front and rear headlights. All other functions from F1 to F12 can
only be used independent of direction.
Using CV #125 – 132 allows other functions (i.e. F1, F2, F3...) to be controlled according to direc-
tion by taking advantage of Bits 0 and 1 (while at the same time leaving the "Effects Bits" un-
changed).
Example 1:
The
red taillights
on the front and rear end of a locomotive are connected to FO1 and
FO2; both are to be switched with F1 and should change with direction. In order to do that set CV
#35 to “12” (Bit 2 for FO1 and Bit 3 for FO2 in CV #35), CV #127 to “1” and CV #128 to “2” - thus
function output 1 is turned on in forward direction only and output 2 in reverse. Special effect codes
in bit 2 - 7 all remain at 0.
Example 2:
The taillights should not be switched individually and independent from the headlights
as in the example above but rather
the two loco ends
should be properly lighted (white and red
lights) and switched on/off with F0 (front) and F1 (rear). This allows turning all lights off on the ap-
propriate loco end, if cars are coupled to the loco.
This can be achieved as follows: Front white headlights on function output “Front headlight” and
front red taillights on function output 2; rear white headlights on function output 1 and rear red tail-
lights on function output “Rear headlights”.
CV #33 = 1 (= default, front white light on F0 “front headlights), CV #34 = 8 (front red lights on F0
“rear headlights”!), CV #35 = 6 (both rear white and red lights on F1 !), CV #126 = 1 and CV #127 =
2 (Directional change of rear white and red lights with “Effect”-CV’s).
Alternative method: Use the function mapping procedure CV #61 = 98; see later in this chapter!
5.
“Function mapping“
as per NMRA Standard
;
and ZIMO - Extensions
The configuration variables
CV #33 to #46
refer to the function keys (F...) of the cab; the single bits
to the function outputs (FO...) of the loco decoder. The function keys are matched to the function
outputs by setting the appropriate bits. Multiple assignments are permissible.
"Mapping" according to NMRA standards with default assignment shown as :
Additional function outputs
LED outputs
(Solder pads)
MX640 function outputs
Plug #1
NMRA Fu
n
c
tion
s
CV
Number key
on ZIMO
cabs
FA9 FA8 FA7 FA6 FA5 FA4 FA3 FA2 FA1 Rear
light
Front
light
F0 #33
1 (L) fw
7
6
5
4
3
2
1
0
F0 #34
1 (L) re
7
6
5
4
3
2
1
0
F1 #35
2
7
6
5
4
3
2
1
0
F2 #36
3
7
6
5
4
3
2
1
0
F3 #37
4
7
6
5
4
3
2
1
0
F4 #38
5
7
6
5
4
3
1
0
F5 #39
6
7
6
5
4
3
2
1
0
F6 #40
7
7
6
5
4
3
2
1
0
F7 #41
8
4
3
2
1
0
F8 #42
(
-
) 9
4
3
2
1
0
F9 #43
-
1
4
3
2
1
0
F10 #44
-
2
4
3
2
1
0
F11 #45
-
3
4
3
2
1
0
F12 #46
-
4
4
3
2
1
0
= Shift-Key
The above table shows the default settings; that is, the function key numbers correspond to the same
numbered outputs. Therefore the following values were written to the configuration variables:
CV # 33 = 1; CV # 34 = 2; CV # 35 = 4; CV # 36 = 8; CV # 37 = 2; CV # 38 = 4; and so on.
EXAMPLE of changing CV’s for individual assignments ( ):
#36 3
7
6
5 4
3 2
1
0
#37 4
7
6
5 4
3
2
1
0
#38 5
7
6 5
4
3
2
1
0
EXAMPLE above: The output #5 (FO5) should be switched in addition to output #3 (FO3) with the
F2 key (ZIMO #3 key). Outputs #7 (FO7) and #8 (FO8) should be switched (not additionally but in-
stead) with the F3 and F4 keys, which results in the above configuration ( ).
The new values to be entered are as follows: CV36=40; #37=32; #38=64.