User Tools

Site Tools


rocnet:sg-macro-setup-en
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


rocnet:sg-macro-setup-en [2018/11/12 08:56] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== RocNetNode Signal Aspects with Macros ======
 +[[:english#command_stations|{{  :interface.png}}]][[:english|{{  :rocrail-logo-35.png}}]][[:rocnet:rocnetnode-en|{{ :rocnet:rocnet-hw.png}}]]
 +[[:english|Content]] -> [[:english#command_stations|Command Stations]] ->  **[[rocnet:rocnet-prot-en|RocNet]]** 
 +  * [[rocnet:rocnet-prot-en|RocNet Protocol]] | **[[:rocnet:rocnetnode-en|RocNetNode]]**
 +    * [[:rocnet:rocnetnode-hwsetup-en|RocNetNode Setup]] | [[:rocnet:rocnetnode-setup-en|RocNetNode Configuration]] | [[:rocnet:rocnetnode-img-en|Installer package]]
 +    * [[:gca1-pi01-en|GCA-Pi01]] | [[:gca_pi02-en|GCA-Pi02]] | [[:gca-pi03-en|GCA-PI03]] | [[:gca-pi04-en|GCA-PI04]] | [[:gca-pi05-en|GCA-Pi05]] | [[:gca-pi06-en|GCA-Pi06]] | [[:gca107-en|GCA107 Relay board]]
 +
 +
 + \\
 +=====Signal Aspect Example=====
 +See for __**[[:rocnet:rocnetnode-en#signal_aspects|macro number mapping]]**__.\\
 +The aspect number is also used as macro number. The address minus one is added as macro port offset.(6176+)\\
 +In this example the signal address is 25 (macro port nr. offset) and the ports 25, 26 and 27 are used for the 3 LEDs: 
 +  * RED = 25
 +  * GREEN = 26
 +  * YELLOW = 27
 +
 +|  Aspect  |||^ Macro ||||||
 +^ Main Aspect UIC-Norm ^ Dwarf Aspect ^ Color  ^ Aspect Nr | Macro Nr | Port | Delay | Type | Value | Blink |
 +| {{:mgv:l55_r.png}} stop | {{:mgv:l55d_r.png}} stop | Red    |  0  |  1  |  25\\ 26\\ 27  |  0\\ 0\\ 0  |  0\\ 0\\ 0  |  1\\ 0\\ 0  |  0\\ 0\\ 0  |
 +| {{:mgv:l55_g.png}} passing permitted | {{:mgv:l55d_g.png}} go 40km/h | Green  |  1  |  2  |  25\\ 26\\ 27  |  0\\ 0\\ 0  |  0\\ 0\\ 0  |  0\\ 1\\ 0  |  0\\ 0\\ 0  |
 +| {{:mgv:l55_o.png}} reduce speed to 40km/h, next stop | {{:mgv:l55d_o.png}} go 40km/h, next stop | Yellow |  2  |  3  |  25\\ 26\\ 27  |  0\\ 0\\ 0  |  0\\ 0\\ 0  |  0\\ 0\\ 1  |  0\\ 0\\ 0  |
 +| {{:mgv:l55_ok.png}} ride on sight | {{:mgv:l55d_ok.png}} ride on sight | White  |  3  |  4  |  25\\ 26\\ 27  |  0\\ 0\\ 50  |  0\\ 0\\ 0  |  0\\ 0\\ 1  |  0\\ 0\\ 1  |\\
 +Starting with revision 6193 the aspect number is increased with one in the RocNet library because macro numbers are starting with one.\\
 +
 +====Signal Tabs====
 +{{:rocnet:signal-aspect-int.png}}{{:rocnet:signal-aspect-details.png}}\\
 +
 +====rocnetnode.ini====
 +The macro snippet:
 +<code xml>
 +  <macro nr="1">
 +    <macroline port="1" porttype="0" delay="0" status="1" blink="false"/>
 +    <macroline port="2" porttype="0" delay="0" status="0" blink="false"/>
 +    <macroline port="3" porttype="0" delay="0" status="0" blink="false"/>
 +  </macro>
 +  <macro nr="2">
 +    <macroline port="1" porttype="0" delay="0" status="0" blink="false"/>
 +    <macroline port="2" porttype="0" delay="0" status="1" blink="false"/>
 +    <macroline port="3" porttype="0" delay="0" status="0" blink="false"/>
 +  </macro>
 +  <macro nr="3">
 +    <macroline port="1" porttype="0" delay="0" status="0" blink="false"/>
 +    <macroline port="2" porttype="0" delay="0" status="0" blink="false"/>
 +    <macroline port="3" porttype="0" delay="0" status="1" blink="false"/>
 +  </macro>
 +  <macro nr="4">
 +    <macroline port="1" porttype="0" delay="0" status="0" blink="false"/>
 +    <macroline port="2" porttype="0" delay="0" status="0" blink="false"/>
 +    <macroline port="3" porttype="0" delay="50" status="1" blink="true"/>
 +  </macro>
 +</code>
  
rocnet/sg-macro-setup-en.txt · Last modified: 2018/11/12 08:56 by 127.0.0.1