QSI Titan advanced function mappingNote:Even though I have years of experience in DCC, CVs, and even a degree in computer science, I found that I was copying information from the QSI 5.2.0 manual into this site, correcting it, clarifying it, and modifying it, and then re-publishing tons of information just too much work, and I was still left with a manual with problems.So I decided to make my own update to the QSI 5.2.0 manual, and please request a copy of my current 5.3.x QSI manual. This manual is evolving, but errors corrected, confusion reduced, and I just cannot keep duplicating the old manual and then copying it into the web site, where it should be a reference document.I'll add it to the files portion of the QSI-Solutions groups.io forum, and all are welcome to join. https://groups.io/g/QSI-Solutions You can also email me if you are not a "joiner", but the forum is a no-nonsense, non-commercial site.For now, go by section numbers, since the page numbering will vary until I update the TOC and Index.Overview:This page is to try to demystify the customization of the Titan decoder. Most will apply to the other Titans, but they do have fewer lighting portsThe Titan allows very flexible mapping of these 3 main components:FUNCTION KEYSOUTPUT (lighting) PORTSFEATURES (like ditch lights and various sounds) Unfortunately, as with any system that has many options or flexibility, this can be complex.NMRA Function key mapping not supported in the QSI - note wellThe NMRA mapping allows mapping QSI "features" to a function key for F0 through F12. This table also allows mapping more than one item to a Function Key. Usually you can map up to 8 different items to that Function Key. This allowed a person to map for example the horn and ditch lights to a function key.These are CVs 33 through 46 (page 66)A reasonable idea when you basically had only maybe 6 outputs on the decoder.When sound came around, manufacturers extended the use of the table to include sounds as well as the physical "function outputs" on the decoder.Since you can (usually) map up to 8 "things" to a Function Key, that suffices for many situations.Updated QSI Terminology - ImportantIn the original QSI manuals, the mappings for Function keys is called OUTPUT MAPPING, and never could this cause more confusion.There is mapping of FEATURES to FUNCTION KEYS (I call this FUNCTION KEY MAPPING TO FEATURES)There is mapping of FEATURES to physical OUTPUT PORTS (I call this OUTPUT PORT MAPPING)Unfortunately QSI calls FUNCTION KEY MAPPING: OUTPUT MAPPING in the manual. Too misleading!This conflict has been handled in my updated 5.3.x manuals. No more referring to the original document.How to customize your decoder, FUNCTION KEY mapping & moreThe first thing that most people will want is the AUTOMATIC mappings of FEATURES, i.e. things that happen when the loco changes direction or stops.Most of the lighting FEATURES (table in section 5.6.1) can be set to activate automatically when the loco is in reverse, forwards, or enters neutral. These states are defined in section 1.5In addition to mapping individual FEATURES, there also exists 3 "Automatic Lighting Groups" where multiple lighting FEATURES can be managed as a group. Automatic Lighting Groups are is buried deep in the manual at section 5.7.28. So, normal steps are:Determine what other FEATURES are to be used, and map these to operate automatically (either individually or in a group) or notput most, if not all "automatic" stuff in Multiple Automatic Lights #1, and also this is normally tied to the F0 function key also, so an overall "all lights on/off" is controllable.then you would normally assign certain FEATURES to a physical OUTPUT PORT (a.k.a. LED1 through LEDx)Optionally you would map a FEATURE to a FUNCTION KEY, things like cab lights, or perhaps a particular sound.Note: FEATURES can include both lighting functions and sound functions. In the end case, it's a very flexible system, but it does have some restrictions over other NMRA-TYPE mappings:when you want to mix automatic functions and also control/override with a function key.when you want to control some things automatically in a Automatic Lighting Group (the only groupings available) that is not allowed in the groupThere are some other restrictions on what FEATURES can be mapped to FUNCTION KEYSThere are some other restrictions on what FEATURES are available in all "motion modes", i.e. moving or in neutral. Can we get started now?So the first thing is to look at all the FEATURES at your disposal. Again updated list of FEATURES is in section 5.6.1Notice the directional states available, and the comments. It's quite a list, and my list is much more complete that the published one. Notes on FEATURES:List of FEATURE ID numbers is section 5.6.1In the original document, not all FEATURES were in the original table, some more "sprinkled" through other QSI documents, often the user guide packaged with the decoder.notice that some automatic FEATURES also have an explicit "override" FEATURE too. Look at the first one: Headlight in automatic mode is FEATURE 70, but there is FEATURE 71 that can override it to allow the user to force it on and off.Note that the firebox flicker FEATURE 122 can be used to modulate a smoke unit fan to sync it in time with chuffs (look at the specific page on this site on how to set this up)Note FEATURE numbers are NOT the same as the Individual Sound Identifiers (section 5.5.1). The latter are used for setting individual volumes.Notes on Automatic FEATURES:some features can also be automatic, i.e. will be controlled by directional state.also most of these automatic functions can be additionally explicitly be turned on and offNotes on initial state control Notes on FEATURES, specific to Multiple Automatic Lights groupsNotice that the 3 different Multiple Automatic Lights groups, they each have a feature code (see table 5.6.1)Their feature codes are 136, 137, 138, details start in section 5.7.28Each group has a restricted list of possible features, i.e. cannot have all lighting functions possible, it's easiest to see which functions are possible in CVManager, or by looking them up directly in section 5.7.28.here's the features in Automatic lights #2 (#1 is usually for normal lights, and #3 is often already in use) 96 - rear ohbl92 - ohbl88 - rear ditch lights84 - ditch lights80 - rear mars76 - mars73 - reverse light70 - headlight113 - step lights109 - truck lights106 - rear marker lights104 - front marker lights102 - rear number board lights100 - front number board lightsengine room 2 lightengine room light122 - firebox118 - rear cab lights116 - front cab lightsSo for my GP60 project, I want a single function key to turn the fan and heater on and off,therefore I need these 2 features to be in a group (so far so good)but the 3 groups are only automatic, no way to turn the GROUP on and off with a singly function ketherefore I need independent functions to at least turn both the fan and heater off...I could perhaps turn the fan and heater on with an automatic group, as long as the 2 features in that group each have explicit on and off.I also might be able to do something with initial state, perhaps turn both off for safety? or perhaps turn both on? (probably not a good idea, since turning on automatically without fluid is bad) idea: what if I use rear ditch lights? might be able to turn the strobe off?make the fan left rear ditch light, make heater right rear ditch light bit 0 - 0 - no automatic ditch lightsbit 1 = 1 - explicit on off of ditch lightsbit 2 = 0 - don't dim ditch lightsbit 3 = 0 - don't strobe ditch lights (both on all the timebit 4 0, no strobe with hornbit 5 =0, no strobe with bellbit 7 = 0, don't turn ditch lights off if the headlight goes off or diminitial star These are FEATURES that actually can be GROUPS of individual FEATURES.It seems that groups 1 and 3 are often default, group 1 is to control the normally expected lights, group 3 is unusual in that it has the rear mars light, which I think may have been to turn smoke on and off... we'll see. Notes on OUTPUT PORTS:OUTPUT PORT MAPPING is in section 7.1 (CV 115.PI.SI)not all CV115 FEATURE to PORT MAPPING was in the original table, I have updated the table in section 7.1 (CV 115.PI.SI)Port 12 seems to have a heavy duty transistor on it, so you can directly drive over an amp to run a smoke heating element directly.I'll add more limitations on current for the 12 ports (LS Titan)Note since, like all decoders, these PORTS are open collector, you can either use the on board 5v supply or the rectified track voltage, or even a separate supply (just make sure you connect it's ground to the decoder ground.You can see what physical connections are mapped to which ports on the pictures in the basic pages. Notes on FUNCTION KEYs:FUNCTION KEY MAPPING is in section 5.6 (CV 53.PI.SI)Once I realized that in the software "output" numbers in the documentation are actually 2 added to the function key number, I was off exploring. (outputs 1 and 2 are FL(f) and FL(r) or as many people are used to, F0 for front and F0 for rear. (FUNCTION KEY mapping is in section 5.6)Example:So, your F1 function is on output/index 3 (1+2=3), and F28 is output/index 30Note each "CV53" has 2 settings, one for when it is in FWD or REV, and the other for Neutral (NFF and NFR)So the primary index (cv49) is 1 through 30 for FUNCTION KEYS 0 through 28The secondary index (CV50) is either 0 or 1, 0 for fwd/rev, and 1 for neutral(the data below is from my GP60 project) (remember this is a diesel) and will be updated as I customize it.(pi = primary index, CV49, si = secondary index, CV50, per standard QSI notation) So off to my example of programming form my GP60 The table below shows the FUNCTION KEY mapping to FEATURES in my GP60 Function key cv53 pi FEATURE NUMBER for si=0 (fwd/rev)FEATURE NUMBER for si=1 (neutral) FL(f) (F0) 1 136 - multiple automatic lights group 1 136 - multiple automatic lights group 1 FL(r) 2 136 - multiple automatic lights group 1 136 - multiple automatic lights group 1 F1 3 3 - bell 3 - bell F2 4 1 - horn 1 - horn F3 5 211 - coupler sounds 211 - coupler sounds F4 6 8 - cooling fans 8 - cooling fans F5 7 5 - dynamic brakes 5 - dynamic brakes F6 8 65 - doppler shift of horn 144 - startup F7 9 216 - flange squeal & air brakes 9 - long air let-off F8 10 64 - mute 64 - mute F9 11 179 - heavy load 145 - shutdown etc F10 12 178 - status report 178 - status report F11 13 2 - std/alt horn 2 - std/alt horn F12 14 138 - multiple automatic lights group 3 138 - multiple automatic lights group 3 F13 15 63 - volume decrease 63 - volume decrease F14 16 62 - volume increase 62 - volume increase F15 17 154 - grade crossing 3 - bell F16 18 10 - short air let-off 10 - short air let-off F17 19 10 - short air let-off 10 - short air let-off F18 20 10 - short air let-off 10 - short air let-off F19 21 10 - short air let-off 10 - short air let-off F20 22 10 - short air let-off 10 - short air let-off F21 23 10 - short air let-off 10 - short air let-off F22 24 10 - short air let-off 10 - short air let-off F23 25 10 - short air let-off 10 - short air let-off F24 26 10 - short air let-off 10 - short air let-off F25 27 10 - short air let-off 10 - short air let-off F26 28 10 - short air let-off 146 - fuel load F27 29 10 - short air let-off 148 - maintenance scenario F28 30 10 - short air let-off 147 - water loading scenario Notes on my specific implementation:I noticed a lot of function keys are mapped to the short air let-off, instead of FEATURE ID 0, I guess that might help prove you pushed the key? I'd prefer to map them to FEATURE ID 0.may change grade crossing to work when stopped, fun to demo.if I want to enable fan and heater, maybe I should use multiple automatic lights group 2, need to look at why group 3 exists Also mention the 2 CVs for Initial state of some misc lights, sections 5.7.26, 5.7.27Examples for my GP60 projectSo the following table shows what FEATURES are mapped to what PORTSI've made a table for my own use here on the specific mappings for my GP60 project CV115.PI.SIFeatureport CV115.5.0Dynamic Brakes Fans CV115.8.0Cooling Fans CV115.70.0Front Headlight 1 (L1)CV115.70.1Front Headlight 2 #2300 0CV115.73.0Rear Headlight (Reverse Light) 2 (L2)CV115.73.1Rear Headlight 2 #2301 0CV115.76.0Front Mars Light 5 (L5)CV115.80.0Rear Mars Light 9 (L9)CV115.84.0Front Left Ditch Light 3 (L3)CV115.84.1Front Right Ditch Light302 4 (L4)CV115.88.0Rear Left Ditch Light 0CV115.88.1Rear Right Ditch Light303 0CV115.92.0Front OHBL 0CV115.92.1Front OHBL2304 0CV115.92.2Front OHBL3 0CV115.92.3Front OHBL4 0CV115.96.0Rear OHBL 0CV115.96.1Rear OHBL2 2305 0CV115.96.2Rear OHBL3 0CV115.96.3Rear OHBL4 0CV115.100.0Front Number Board Lights 6 (L6)CV115.102.0Rear Number Board Lights 7 (L7)CV115.104.0Front Marker Lights 10 (L10)CV115.104.1Front Marker Lights2 CV115.104.2Front Marker Lights3 CV115.106.0Rear Marker Lights 0CV115.106.1Rear Marker Lights2 CV115.106.2Rear Marker Lights3 CV115.109.0Truck Lights 0CV115.113.0Step Lights 0CV115.116.0Front Cab Light 8 (L8)CV115.118.0Rear Cab Light 12 (L12)CV115.120.0Engine Room Lights CV115.121.0Engine Room2 Lights CV115.122.0Firebox CV115.122.1Firebox2 2306 CV115.255.0Decoder Cooling Fan 11 (L11) so all ports: 1-12 are indeed mapped in my GP60 with a LS Titan double check table port # physical connection gp60QSI Feature name mapping notes 1 front headlamp front headlight 2 rear headlamp rear headlight 3 left ditch light front left ditch light 4 right ditch light 5 front mars light 6 number boards front number boards 7 rear number boards 8cab light front cab light 9 may hook fan here rear mars light 10 front marker lights 11 12 for smoke heater rear cab light use rear number board lights for fanuse port 7 for rear number board lights (115.102.0 = 7)assign rear number board lights to multiple lights #3 (55.138.1 ??)use rear cab light for heateruse port 12 for rear cab light ( 1156.118.0 = 12)assign rear cab light to multiple lights #3 (55.138.2 ??)assign function 12 to multiple lights #3 moving and neutral (53.14.0 & 53.14.1 = 138)modify rear number board lights to no automatic control initial state off (55.102.0=0)now you use feature 103 for explicit control..can you put a feature in some group?modify rear cab light to no automatic control initial state off (55.118.0)tweak brightness on rear cab light to not overheat heater use mult lights 3 to control fan and heaterput rear number board lights and rear cab light group 3, use F12 to togglerear number board lights are on port 7, (J3 pin3, fan)rear cab light on port 12, (j1-8 heater)the fan common will use the 5v supply, and I'll need to figure the heater, it likes about 9 volts, and maybe I should use the dimming function