Table of Contents
RocMini Example 2
Content → Mobile Clients → RocControl → RocMini → Example 2
Click here to go directly to the Rocrail workspace download |
Preface 1:
This documentation was created at 12.02,2025
Area | Details | Remarks |
---|---|---|
Control | Rocrail | Version 2.1.5532+ (Rocrail-5532-sequoia-M.app) |
Computer | MacBook Pro (M2) | macOS 14.5 (Sonoma) |
iPhone | RocControl | Version 25.02.12-2 (526) |
Apple Watch | RocMini | Version 526 |
WIO | Raspberry Pi Pico-W | WIO Version 969 |
Locomotive | Track N | Locomotives; id="lc_auto" addr="18" shortid="lcAuto" id="lc_manu" addr="19" shortid="lcManu" |
- | - | keywords: rocmini |
Preface 2:
- use this solution at your own risk;
- Regular data backups of the Rocrail workspace are recommended.
A) Task
Automatic operation with start/destination buttons
The manual control of a locomotive will be demonstrated using a small layout.
The locomotive is set as "Automatically operated".
There are two buttons for each block; one button on the plus side and one button on the minus side of the block.
The track voltage is switched on, the automatic mode is activated and the start and destination buttons are pressed via RocMini.
An XML script evaluates the keys and starts the locomotive if necessary.
B) Solution Details
Short identifiers are assigned for the relevant objects so that only those objects that are necessary for the manual control task are listed on RocMini:
Object | Short identifier | |
---|---|---|
Locomotives | lc_auto | - |
lc_manu | lcManu | |
Start/Destination buttons | co_bk12a+ | oBK12a+ |
co_bk12a- | oBK12a- | |
co_bk12b+ | oBK12b+ | |
co_bk13+ | oBK13+ | |
co_bk22- | oBK22- | |
co_bk23- | oBK23- |
B1) Preparation
Both Rocrail and RocMini are already installed.
Rocrail was started with this workspace.
RocMini has been launched.
Recommendations:
- RocMini / Info
- RocMini / Info: long click on the Rocrail logo to load the current object lists;
- RocMini / Info: back to list
RocMini / System:
RocMini / System: long click "Go" to turn Automatic mode ON;
RocMini / System: Click "Go" to turn the track voltage ON;
RocMini / System: back to list
RocMini / Throttle:
RocMini / Throttle: long click on the light
RocMini / Throttle / Locomotive list: Select locomotive "lcManu"
RocMini / Throttle / Lok list: back to list
RocMini / Throttle: back to list
B2) Execution
Switches, signals and locomotive are controlled automatically.
Requirement:
- The locomotive is in block bk12b and should go to block bk22.
With RocMini this can be controlled like this:
The XMLScript calculates the route, sets all switches and signals and starts the locomotive.
Once the locomotive has reached the destination, the locomotive stops.
C) Rocrail workspace
Automatic operation with start/destination buttons
The download workspace " rocmini_start_dest_button.zip" contains the following files:
File | Meaning |
---|---|
plan.xml | the Rocrail plan file |
rocrail.ini | Rocrail initialization file the content still needs to be adapted to your own environment!!! |
scripts/ac_control_desk.xml | XMLScript, is called by the start/destination buttons |
back to the Solution Details.
D) Outlook
You are welcome to implement your own ideas and extensions based on this solution.
Use this solution at your own risk!
Have fun and good luck.