Welcome to the forum   
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Share
Options
View
Go to last post in this topic Go to first unread post in this topic
Offline Defke  
#1 Posted : 14 April 2019 15:46:55(UTC)
Defke

Belgium   
Joined: 07/04/2019(UTC)
Posts: 9
Location: Antwerp
Hello,

I am busy writing my own control software for my marklin track.

therefore i read in the lokomotive.cs2 ( from the central station)file, since there are all my current locs.

I only use the items that i find usefull for me, such as the name, address, decoder type, and for each loc also the functions.

however, when i read in the functions, i have a number, so far so good, but also a typ this should be corresponding a functionicon/ functiondescription. for instance cab light, or typhoon ...

does someone know where to find the corresponding descriptions, since the lokomotive.cs2 file describes them for instance as typ=48 ...what is 48???

I hope someone does know these types and where to find descend documentation... I found already some documentation about the protocoll, but this is not always correct.


Kind regards

marklin guy from belgium
Offline clapcott  
#2 Posted : 14 April 2019 22:42:03(UTC)
clapcott

New Zealand   
Joined: 12/12/2005(UTC)
Posts: 2,186
Location: Wellington, New_Zealand
Originally Posted by: Defke Go to Quoted Post
...
does someone know where to find the corresponding descriptions, since the lokomotive.cs2 file describes them for instance as typ=48 ...what is 48??


The "typ=48" directly correlates with the fcticon suffix found under
xxx.xxx.xxx.xxx/config/fcticons/

48 is Cab Light with a set (of 4) icons
/fcticons/FktIcon_a_ge_48.png
/fcticons/FktIcon_i_we_48.png
/fcticons/FktIcon_a_we_48.png
/fcticons/FktIcon_i_gr_48.png

a= active, i= inactive
ge = yellow, we = white, gr = grey

UserPostedImage

For the description I built a library using the manuals terms. A more comprensive list is found within the screens of the CS3 by looking for the icon
Peter
Offline Defke  
#3 Posted : 14 April 2019 23:42:27(UTC)
Defke

Belgium   
Joined: 07/04/2019(UTC)
Posts: 9
Location: Antwerp
Hello Clacott,

thanks for the reply, however, i see some value

.funktionen
..nr=10
..typ=236

but the icons they stop at 176 ...

So i can find many off them, however this one i really dont have a clue, it is a marklin loc that has the 236 value. ( i can always look into the manual from that loc?)

it is quite an adventure to breack down the logic, but it is comming together, step by step, i can read all the locs, start and stop system, make loc move, do emergency stop, i know what functions, but still lots to do...

kind regards and open for suggestions
Offline clapcott  
#4 Posted : 15 April 2019 01:35:15(UTC)
clapcott

New Zealand   
Joined: 12/12/2005(UTC)
Posts: 2,186
Location: Wellington, New_Zealand
Originally Posted by: Defke Go to Quoted Post
but the icons they stop at 176 ...


Unfortunately Marklin have confused the issue by using the address space for icons that only appear on the CabMode screens
These are in the address range of 150 to 176

The proper icons you are interested in are in the range 0-112 (currently)

The issue you have come across is another "work around" ( I use the term politely) where by the high order bit (mask against decimal 128) appears to reflect that the function has been set up for pulse (momentary) rather than switch mode.

So 236 AND (x7F dec127) = 236 - 128 = 108
Peter
thanks 1 user liked this useful post by clapcott
Offline Defke  
#5 Posted : 15 April 2019 16:34:42(UTC)
Defke

Belgium   
Joined: 07/04/2019(UTC)
Posts: 9
Location: Antwerp

Hello Clapcott,

thanks for the tip it worked, i had to tweak a little, since there is also a gap between 112 and 150. 1 train of me had a type 133 -> huhm...

so i did a 133 -128 = 5 and it is the speaker icon that it displays ont the cs21, so for now, all my function keys work, and have the correct icon.

thx Koen
thanks 1 user liked this useful post by Defke
Offline Defke  
#6 Posted : 17 April 2019 22:53:18(UTC)
Defke

Belgium   
Joined: 07/04/2019(UTC)
Posts: 9
Location: Antwerp
Hello Clapcott,

I do have another question for you.

Do you have/ or know where i can find the descriptions of those functions.

Right now my buttons are dynamically generated in my program, and i go get the resulting pictures from the .png files.

I wanted to add some tooltips where i wanted to display the name of the function, for instance if you would go over the button f0 ( front light) i want to show a tooltip front light.

It is perhaps a feature, but it seems usefull, right now i only see f[number] in my tooltip.

kind regards
Offline clapcott  
#7 Posted : 18 April 2019 00:14:27(UTC)
clapcott

New Zealand   
Joined: 12/12/2005(UTC)
Posts: 2,186
Location: Wellington, New_Zealand
Originally Posted by: Defke Go to Quoted Post
Do you have/ or know where i can find the descriptions of those functions.


No, I have not found a nice file for this. This does mean it does not exist.

As stated above I had build my own library, initially from the function list in the CS2 manual. The CS3 actually has improved its english and gramma for icon meaning, but only on the screen.
UserPostedImage

Peter
Users browsing this topic
OceanSpiders 2.0
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

| Powered by YAF.NET | YAF.NET © 2003-2019, Yet Another Forum.NET
This page was generated in 0.236 seconds.