Modelisme

Index

General

Maquetes

Trens

Digikeijs DR4018 16-channel switch decoder (stationary DCC decoder)


Digikeijs DR4088 (feedback module)


Rocrail

  • Developer corner
  • Ús / Usage


    • server
      client


      without workspace
      (can be in a different computer, e.g. a RPi)
      with workspace
      (same computer as client)

      usage


      • default workspace: no need specifically start a server; simple usage
      • non-default workspace:
        • test downloaded plans
        • modular layout

      config files
      default
      • /opt/rocrail/plan.xml
      • /opt/rocrail/rocrail.ini
      • ~/rocrail/
        • created by rocview.sh:
          • plan.xml (track plan)
        • created by rocview, when closing:
          • rocrail.ini
          • occ.xml (block occupancy)
      • ~/rocrail/
        • created by rocview.sh:
          • svg/
          • images/
          • decspecs/
          • stylesheets/
        • created by rocview, when closing:
      non-default

      • ~/my_workspace/
        • plan.xml
        • rocrail.ini
      • my_rocview.ini
      start


      • default workspace (~/rocrail)
        • /opt/rocrail/rocview.sh
          • first time, it will create:
            • cp /opt/rocrail/default/plan.xml ~/rocrail
            • ln -s /opt/rocrail/svg ~/rocrail/svg
            • cp -pur /opt/rocrail/images ~/rocrail
            • cp -pur /opt/rocrail/decspecs ~/rocrail
            • cp -pur /opt/rocrail/stylesheets ~/rocrail
          • it will launch
            • cd ~/rocrail
            • /opt/rocrail/rocview -sp /opt/rocrail $*
          • File / Open Workspace...
            • ~/rocrail
          • if next times you launch rocview.sh you do not want to "Open workspace...", you can select autoload:
            • File / Rocview Properties / General
              • Default Workspace: ~/rocrail
              • Use Workspace at startup: checked
      • non-default workspace (~/my_workspace)
        • first time
          • check that rocview does not load a workspace at start:
            • /opt/rocrail/rocview.sh
              • File / Rocview Properties / General
                • Use Workspace at startup: unchecked
          • Create a new workspace
            • cd
            • mkdir my_workspace
            • cd my_workspace
            • optionally, if you want a non-empty plan:
              • cp /opt/rocrail/default/plan.xml .
          • relaunch rocview and load the workspace
            • /opt/rocrail/rocview.sh
              • File / Open Workspace...
                • ~/my_workspace
              • if they do not exist, rocview will create, when closing:
                • ~/my_workspace
                  • rocrail.ini
                  • occ.xml
              • if next times you launch rocview.sh you do not want to "Open workspace...", you can select autoload:
                • File / Rocview Properties / General
                  • Default Workspace: ~/my_workspace
                  • Use Workspace at startup: checked

      • sudo systemctl start rocraild.service
      • sudo systemctl enable rocraild.service

      • primera vegada / first time:
        • mkdir rocview_with_rpi_server
        • cd rocview_with_rpi_server
        • ln -s /opt/rocrail/svg .
        • cp -pur /opt/rocrail/images .
        • cp -pur /opt/rocrail/decspecs .
        • cp -pur /opt/rocrail/stylesheets .
          • it will use plan.xml in raspberrypi server (/opt/rocrail/plan.xml), but svg dir is needed in order to render it
          • when closing, it will create a default rocview.ini, with
            • <rrcon host="raspberrypi.local" port="8051" retry="1"/>
      • següents vegades / next times:
        • cd rocview_with_rpi_server
        • /opt/rocrail/rocview [-s xx]
          • -s: especifica quina pestanya de l'esquema s'obre quan arrenca / specifies plan tab to be open at start
      • alternative ini file:
    • Mode de funcionament amb workspace (crea, si cal, els directoris amb la configuració, engega el servidor local i el client):
      • $ /opt/rocrail/rocview.sh
        • Si encara no existeix, crearà el directori ~/rocrail, amb: / If it does not exist, it will create the directory ~/rocrail, with:
          • una còpia de:
            • /opt/rocrail/default/plan.xml
            • (ln) /opt/rocrail/svg/
            • /opt/rocrail/images/
            • /opt/rocrail/decspecs/
            • /opt/rocrail/stylesheets/
          • i un fitxer rocview.ini:
            • <?xml version="1.0" encoding="UTF-8"?>
              <gui locowidgetstab="false">
                <trace/>
                <locogrid>
                  <colpos id="0" pos="0" show="true"/>
                  <colpos id="1" pos="1" show="true"/>
                  <colpos id="2" pos="2" show="true"/>
                  <colpos id="3" pos="3" show="true"/>
                  <colpos id="4" pos="4" show="true"/>
                  <colpos id="5" pos="5" show="true"/>
                  <colpos id="6" pos="6" show="true"/>
                  <colpos id="7" pos="7" show="true"/>
                  <colpos id="8" pos="8" show="true"/>
                  <colpos id="9" pos="9" show="true"/>
                  <colpos id="10" pos="10" show="true"/>
                  <colpos id="11" pos="11" show="true"/>
                </locogrid>
                <window x="50" y="50" cx="900" cy="600"/>
                <rrcon host="localhost" port="8051"/>
                <planpanel locobook="true" planbook="true" tracewindow="true" scale="1.000000" showid="false" showcounters="false" raster="false" tooltip="true" showlocked="false" showpending="true"/>
                <splitpanel main="455" msg="400" plan="360"/>
              </gui>
        • Open Workspace
          • ~/rocrail
        • Switch power on
        • Switch auto mode on
        • Connection to a remote server (e.g. Raspberry Pi)
          • Connect to:
            • <your_rpi_ip_address>
            • Port: 8051
  • Documentation
    • Step-by-Step Tutorial
    • Rocview (GUI client)
    • Forum
    • Automatic modes
      • mode
        operador de trànsit / train dispatcher
        maquinista / railroad engineer

        desviaments, senyals / switches, signals
        locomotive
        manual
        user
        user
        half-automatic
        rocrail (blocks, sensors, routes)
        user
        automatic
        rocrail
      • Jerarquia / Hierarchy
      • Blocks
      • Sensors and blocks
        • Sensors
        • Staging blocks (station)
          • Blocks
            • Sections

        • block

          rocrail route
          rocrail block
          event:
          enter2route
          enter
          shortin
          pre2in in
          exit

          train enters the route
          train enters the block
          short train reaches a point before
          the end (e.g. station building)
          if train has to stop,
          it reduces the speed
          train reaches the end of the block

          simulated (generated after event timer)


          (enter2shortin)
          (enter2pre) (enter2in)

          sensor type

          occupancy
          impulse
          if the train has to stop, V=
          Vmid Vmid
          0
          Vmin 0

          other usage



          stop point for short trains

          1 sensor

          enter2in

          enter2route





          2 sensors

          enter2pre in

          3 sensors

          enter2shortin
          pre2in in


          enter
          shortin

          in

          4 sensors

          enter shortin pre2in in
          5 sensors






      • Routes
      • Signals
        • Senyalització / Signals
        • Signal setup
        • Dutch signal (3 lights)
          • Programming -> RocPro -> DR4018
            • Presets
              • Nr: 47
              • Value: 7 (4x dutch signal)
              • This will give 16 addresses
          • Control with a three-light icon
            • ...?
          • Control with 4 output buttons
            • Track plan -> Add item -> Accessory -> Output
              • General
                • ID@: O1
                • Type: toggle switch
              • Interface
                • Address:
                  • 1 (to control a red LED connected to OUT1 / 1)
                • Options:
                  • switch: enable
                  • invert: enable
            • Track plan -> Add item -> Accessory -> Output
              • General
                • ID@: O2
                • Type: toggle switch
              • Interface
                • Address:
                  • 2 (to control a yellow LED connected to OUT1 / 2)
                • Options:
                  • switch: enable
                  • invert: enable
            • Track plan -> Add item -> Accessory -> Output
              • General
                • ID@: O3
                • Type: toggle switch
              • Interface
                • Address:
                  • 3 (to control a green LED connected to OUT2 / 1)
                • Options:
                  • switch: enable
                  • invert: enable
            • Track plan -> Add item -> Accessory -> Output
              • General
                • ID@: O4
                • Type: toggle switch
              • Interface
                • Address:
                  • 4 (to control a white LED - digit board connected to OUT2 / 2)
                • Options:
                  • switch: enable
                  • invert: enable
            • Usage (pdf):
              O1 O2
              O3
              O4

              NS 3 lights with digit board
              R
              R
              R
              night dim







              0
              Red
              G
              R
              R
              1
              Green
              R
              G
              R
              2
              Yellow
              G
              G
              R
              3
              Flashing green with digit
              R
              R
              G
              4
              Yellow with digit
              G
              R
              G
              5
              Flashing green
              R
              G
              G
              6
              Flashing yellow
              G
              G
              G
              7
              Yellow with flashing digit
    • Outputs
      • Control de llums simples (z21 + Digikeijs DR4018) / Simple light control (z21 + Digikeijs DR4018)
        • Programming -> RocPro -> DR4018
          • Presets
            • Nr: 47
            • Value: 1 (16x permanent on/off switch)
            • This will give 16 addresses
        • Track plan -> Add item -> Accessory -> Output
          • General
            • Type: toggle switch
          • Interface
            • Address:
              • 1 (to control a LED connected to OUT1 / 1)
              • 2 (to control a LED connected to OUT1 / 2)
              • 3 (to control a LED connected to OUT2 / 3)
              • ...
            • Port: (not used by z21)
            • Options:
              • switch: enable
              • invert: enable
    • Adreces / Addressing
    • RocPro (activation key is needed)
    • ...
  • Supported command stations
  • Hardware
    family
    overview interface

    bus

    CGA Modules








    Movement / Power switching:
    • GCA76: 8 port output driver for turnout coils > 0,5A
    • GCA77: 8 port output driver for turnout coils <0,5A
    • GCA102: Reverse loop circuit
    • GCA107: Multi purpose Relay board
    • GCA136: 4 servo interface with feed-back
    • GCA145: Turntable / Fiddle yard controller
    • GCA178:
    Feed-back sensors and switches:
    • GCA93 8 port current detector with signals
    • GCA133 Infra Red gate / reflector sensor
    • GCA173: Hall-sensor and/or reed-switch input unit
    LED signalling:
    Boosters
    RFID readers:
    • ID-12
    • ID-20
    servo motors
    LNet png
    • RS232
    • USB
    • Ethernet
    LocoBuffer

    LocoNet
    LocoIO
    • GCA123
    • GCA124
    • GCA141





    LocoIO
    x




    CAN-GCA
    (MERG CBUS)
    png

    • CAN-GC1
    • CAN-GC1e (ethernet)
    CAN-bus
    x






    x





    x





















    RocNetNode
    (Raspberry Pi with Raspbian package)
    png, pdf
    jpg
    GPIO
    GCA-PI01: RPi HAT / GCA-PI06 5V 3A Power Supply I2C
    x (10-pin PSK)








    x




















    RS232
    DCC232 (DCC generator)




    x


    SPROG USB dongle
    SPROG (DCC generator)



    x



    DDX




    x



    RFID12 (RFID reader)




    x

  • ...

JMRI

Lèxic


ca
en
es
fr








límite de cantón
jalon de canton

piquet d'entrevies

piquete de entrevías
limite de garage franc

via morta


voie d'impasse




voie de dépassement



terraplén
remblai



desmonte
déblai


shunt



xebró

cabrio
chevron




éclisse



mojón

eines





recte closed


desviat thrown


Cotxes


http://www.francescpinyol.cat/modelisme.html
Primera versió / First version: 9.V.2015
Darrera modificació: 20 de setembre de 2020 / Last update: 20th September 2020

Francesc Pinyol Margalef

Valid HTML 4.01!