# A table for events

**URL:** <https://discourse.traintastic.org/t/a-table-for-events/124>\
**Category:** Feature Requests\
**Created:** [May 13, 2026, 10:09pm UTC](https://discourse.traintastic.org/t/a-table-for-events/124 "2026-05-13T22:09:01Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![DL7BJ](https://discourse.traintastic.org/user_avatar/discourse.traintastic.org/dl7bj/32/76_2.png) [@DL7BJ](https://discourse.traintastic.org/u/DL7BJ)\
**Post date:** [May 13, 2026, 10:09pm UTC](https://discourse.traintastic.org/t/a-table-for-events/124/1 "2026-05-13T22:09:01Z")

</div>

Hi,

it is possible to ask a CBUS/VLCB node to tell all configured events.

```lua
world.get_object(‘push_button_1’).on_pressed
(
  function ()
    world.get_object(‘cbus_1’).send({0x57, 0x01, 0x02})
  end
)

```

This could be done with the NERD message 0x57. With this Lua script the node 258 sends all configured events.

 ![grafik](https://discourse.traintastic.org/uploads/default/original/1X/3ccf2396f886c84d4a0e0e9df388b79b04dd811e.png)

`ENRSP = 0xF2, <NNHi>,<NNLo>,<EN3>,<EN2>,<EN1>,<EN0>,<EN#>`

EN3 and EN2 are 0 if it is a short event. EN# is the index in the event table from the node.

It would be nice to read all the events in a table with the fields nodenumber and eventnumber and have a editable third field for the descriptions, which can be stored (i.e. as csv?) and show this table during the config the board objects.

Could such a function also be useful for S88 or Loconet? I don’t know, I have only CBUS/VLCB

Greetings, Tom

---

<div class="post-metadata">

**Author:** ![reinder](https://discourse.traintastic.org/user_avatar/discourse.traintastic.org/reinder/32/9_2.png) [@reinder](https://discourse.traintastic.org/u/reinder)\
**Post date:** [May 13, 2026, 11:04pm UTC](https://discourse.traintastic.org/t/a-table-for-events/124/2 "2026-05-13T23:04:12Z")

</div>

Moin Tom,

Thanks for the input, this also makes it possible to check Traintastic produced/consumend events against node configuration. I didn’t check the docs yet, but can we also determine if the node produces or consumes a specific event?

A _Events_ tab could be added to CBUS/VLCB interdace dialog, something like:

| Node | Event | Node P/C | Traintastic P/C | Status | Description |
| --- | --- | --- | --- | --- | --- |
| 258 | 4 | Produced | Consumed | ✅ Ok | Turnout 5 mid |
| 258 | 5 | | Consumed | ❗ Missing in node | Turnout 5 end |

This can help identifying mismatch between nodes and Traintastic. Synchronization should be manually I think, doing it at startup will put a massive load on the bus.

The turnout/signal output tab will need some adjustment as the Event number is just a small spinbox, that won’t fit long descriptions. Placing them vertical instead horizontal will fix that.

Something like this was also mentioned in [MERG CBUS/VLCB hardware support - #183 by MZwa](https://discourse.traintastic.org/t/merg-cbus-vlcb-hardware-support/49/183), back then I was unsure about the added value…but I’m starting to see it 🙂

Maybe we can discuss it a bit more here what the options are pros/cons etc.

I didn’t do any CBUS/VLCB configuration myself yet, but I think in general it is a bit harder for the user than DCC/S88/LocoNet address stuff, so some extra help to find misconfiguration quickly is nice 🙂

Greetings,  
Reinder

---

<div class="post-metadata">

**Author:** ![sven-e](https://discourse.traintastic.org/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@sven-e](https://discourse.traintastic.org/u/sven-e)\
**Post date:** [May 14, 2026, 8:22am UTC](https://discourse.traintastic.org/t/a-table-for-events/124/3 "2026-05-14T08:22:07Z")

</div>

> [@reinder](#):
>
> can we also determine if the node produces or consumes a specific event?

No. There is no such information general information in the node.

It is up to each module type to define how an event is treated based on its event variables. Each module has its own way of telling if an event is produced or consumed. And some modules even let an event be both produced and consumed.

Also note that there are some “default” produced events in some modules that exist but are not reported by NERD. The NERD command only lists the events that you can modify.

---

<div class="post-metadata">

**Author:** ![DL7BJ](https://discourse.traintastic.org/user_avatar/discourse.traintastic.org/dl7bj/32/76_2.png) [@DL7BJ](https://discourse.traintastic.org/u/DL7BJ)\
**Post date:** [May 14, 2026, 8:56am UTC](https://discourse.traintastic.org/t/a-table-for-events/124/4 "2026-05-14T08:56:18Z")

</div>

Moin Reinder,

> [@reinder](#):
>
> A _Events_ tab could be added to CBUS/VLCB interdace dialog, something like:

that’s looks good. As Sven mentioned, it’s not possible to distinguish between produced/consumed events.

A own schema makes sense here, i.e. all 10xxx events are produced, all 20xxx events are consumed.

But you can distinguish between short and long events and have an index.

> [@DL7BJ](#):
>
> EN3 and EN2 are 0 if it is a short event. EN# is the index in the event table from the node.

I would prefer a event list in the configuration dialog for a turnout, signal, sensor for the entered node number. In the interface dialog should be a double click on the node in the node list be enough.

 ![grafik](https://discourse.traintastic.org/uploads/default/original/1X/98c3e5e693ba5a6f430bd9d6951c23a34207a911.png)

I would mean, a button to view the events with description for the events of the node is enough, a change of the spinbox is not needed. Otherwise, there could be more than 3 events for a turnout or signal, so a vertical list could be more practise. I would prefer always the event number, that’s the index, the description should only be a help in Traintastic, so that you don’t have to write it down somewhere else. If the spin box requieres a description, you must always enter one, but the user should have the choice.

However, the description is not stored in the node; if the event list is updated, previously known events must not be overwritten, except they are deleted in the node.

Greetings, Tom

---

<div class="post-metadata">

**Author:** ![sven-e](https://discourse.traintastic.org/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@sven-e](https://discourse.traintastic.org/u/sven-e)\
**Post date:** [May 18, 2026, 11:03am UTC](https://discourse.traintastic.org/t/a-table-for-events/124/5 "2026-05-18T11:03:43Z")

</div>

> [@DL7BJ](#):
>
> A own schema makes sense here, i.e. all 10xxx events are produced, all 20xxx events are consumed.

Sorry, that won’t work as an event is produced by one node and consumed by another. I.e. an event is both produced and consumed.

---

<div class="post-metadata">

**Author:** ![DL7BJ](https://discourse.traintastic.org/user_avatar/discourse.traintastic.org/dl7bj/32/76_2.png) [@DL7BJ](https://discourse.traintastic.org/u/DL7BJ)\
**Post date:** [May 18, 2026, 4:34pm UTC](https://discourse.traintastic.org/t/a-table-for-events/124/6 "2026-05-18T16:34:28Z")

</div>

Hi Sven,

ups, sorry! I mentally confused that with short and long events. I want to set it up so that there is a number range for signals, switches, feedbacks and for short and long events.

Greetings, Tom

---

<div class="post-metadata">

**Author:** ![sven-e](https://discourse.traintastic.org/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@sven-e](https://discourse.traintastic.org/u/sven-e)\
**Post date:** [May 18, 2026, 8:45pm UTC](https://discourse.traintastic.org/t/a-table-for-events/124/7 "2026-05-18T20:45:37Z")

</div>

> [@DL7BJ](#):
>
> I want to set it up so that there is a number range for signals, switches, feedbacks and for short and long events.

Yes, that makes more sense.

---

<div class="post-metadata">

**Author:** ![reinder](https://discourse.traintastic.org/user_avatar/discourse.traintastic.org/reinder/32/9_2.png) [@reinder](https://discourse.traintastic.org/u/reinder)\
**Post date:** [May 18, 2026, 9:32pm UTC](https://discourse.traintastic.org/t/a-table-for-events/124/8 "2026-05-18T21:32:44Z")

</div>

Hi,

I’m still a bit in doubt about this option. The primary goal should be, help the user not confuse the user.

Two limitations:

- Hard coded events can not be detected.
- Produced and/or Consumed can not be detected.

This eliminates the _Node P/C_ and _Status_ column because we can not be certain, so it might confuse the user.

What is left are the _Node_, _Event_, _Traintastic P/C_ and _Description_ columns. Apart from the _Description_ this information is already available in the _Inputs_ and _Outputs_ tabs. (_Description_ could be added to _Inputs_ and _Outputs_ as well.)

We could remove/hide the _Inputs_ and _Outputs_ tabs and add an _Events_ tab which basically is a combined list of both. Having _Inputs_, _Outputs_ and _Events_ is confusing I think. Downside of this is that it than is different than all other (and future) interfaces.

I’d love to here you opinion on it as user, I just entered CBUS/VLCB land 🙂

Greetings,  
Reinder

---

<div class="post-metadata">

**Author:** ![DL7BJ](https://discourse.traintastic.org/user_avatar/discourse.traintastic.org/dl7bj/32/76_2.png) [@DL7BJ](https://discourse.traintastic.org/u/DL7BJ)\
**Post date:** [May 18, 2026, 10:16pm UTC](https://discourse.traintastic.org/t/a-table-for-events/124/9 "2026-05-18T22:16:12Z")

</div>

Moin Reinder,

if I have a node with a very large number of events. I configured it using MMC, and now I would like an overview of all those events for the configuration in Traintastic.

 ![grafik](https://discourse.traintastic.org/uploads/default/original/1X/5838b83f4adea0563c17775f7ba72efd948c2abf.png)

I could certainly do this using a spreadsheet or MMC; the question simply boils down to: which is the better solution? A single click in Traintastic or call a other tool? I tried to attach the .ods export from MMC, but discourse says no.

But there are two .json files:

layoutData.json

```auto
 "256": {
      "CANID": 2,
      "nodeNumber": "256",
      "manufacturerId": 165,
      "moduleId": 32,
      "moduleIdentifier": "A520",
      "moduleVersion": "4d",
      "parameters": {
        "1": 165,
        "2": 100,
        "3": 32,
        "7": 4,
        "8": 95,
        "9": 23,
        "20": 7
      },
      "nodeVariables": {},
      "storedEventsNI": {
        "01022711": {
          "eventIdentifier": "01022711",
          "variables": {},
          "eventIndex": 1
        },
        "01022712": {
          "eventIdentifier": "01022712",
          "variables": {},
          "eventIndex": 2
        },

```

nodeConfig.json

```auto
 "256": {
      "CANID": 2,
      "nodeNumber": "256",
      "manufacturerId": 165,
      "moduleId": 32,
      "moduleIdentifier": "A520",
      "moduleVersion": "4d",
      "parameters": {
        "1": 165,
        "2": 100,
        "3": 32,
        "7": 4,
        "8": 95,
        "9": 23,
        "20": 7
      },
      "nodeVariables": {},
      "storedEventsNI": {
        "01022711": {
          "eventIdentifier": "01022711",
          "variables": {},
          "eventIndex": 1
        },
        "01022712": {
          "eventIdentifier": "01022712",
          "variables": {},
          "eventIndex": 2
        },

```

That’s also a possibilty, to read these files from MMC to get the name (and other information about the node) and show the info in a read only table (i.e. with a “Information” button). You had asked about an export, but using the .json files directly would be better, as they are more up-to-date and no extra export clicks are required.

But the user must configure the right filepath.

Greetings, Tom

---

<div class="post-metadata">

**Author:** ![sven-e](https://discourse.traintastic.org/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@sven-e](https://discourse.traintastic.org/u/sven-e)\
**Post date:** [May 19, 2026, 7:17pm UTC](https://discourse.traintastic.org/t/a-table-for-events/124/10 "2026-05-19T19:17:42Z")

</div>

Tom, I think I am missing something here. What do you want to do with this events table? Are you going to do something similar to JMRI where any feature that uses events (turnouts and sensors in JMRI terminology) uses these events rather than hardcoding the event ID every time? Yes, this has the benefit that the user can use event names rather than numeric IDs.

This shouldn’t be restricted to CBUS/VLCB events. This is a powerful concept in JMRI where it is used for all hardware systems.

---

<div class="post-metadata">

**Author:** ![reinder](https://discourse.traintastic.org/user_avatar/discourse.traintastic.org/reinder/32/9_2.png) [@reinder](https://discourse.traintastic.org/u/reinder)\
**Post date:** [May 19, 2026, 10:00pm UTC](https://discourse.traintastic.org/t/a-table-for-events/124/11 "2026-05-19T22:00:36Z")

</div>

Hi,

> [@sven-e](#):
>
> This shouldn’t be restricted to CBUS/VLCB events. This is a powerful concept in JMRI where it is used for all hardware systems.

This crossed my mind too, basically all systems can benefit from this, the only difference might be a systems specific format import option.

LocoNet/XpressNet/Z21 etc. users usually just talk about feedback/turnout addresses, so they might not use it…but it won’t hurt to generally support it.

@sven-e what is you opinion on seperate input/output tab vs. combined events tab for CBUS/VLCB? (In CBUS/VLCB this a _shared address_ space, in most other protocols/systems it are different address spaces.)

Greetings,  
Reinder

---

<div class="post-metadata">

**Author:** ![sven-e](https://discourse.traintastic.org/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@sven-e](https://discourse.traintastic.org/u/sven-e)\
**Post date:** [May 21, 2026, 10:50am UTC](https://discourse.traintastic.org/t/a-table-for-events/124/12 "2026-05-21T10:50:59Z")

</div>

> [@reinder](#):
>
> @sven-e what is you opinion on seperate input/output tab vs. combined events tab for CBUS/VLCB? (In CBUS/VLCB this a _shared address_ space, in most other protocols/systems it are different address spaces.)

Hard to say without trying it out. 😉

In a way I can see the benefit of keeping one tab for events generated by the layout and only used as input in Traintastic and one tab for events that are created by Traintastic. But there may be events that are generated by the layout that is also sent by Traintastic.

MMC does not separate these. But it is possible to group them, manually.

JMRI separates events (and commands for other systems) in turnouts (outputs) and sensors (inputs).

FCU colour codes the events but keeps them in a list for each node which means the list is not too big. FCU has no “global” list of all events.

---

<div class="post-metadata">

**Author:** ![MZwa](https://discourse.traintastic.org/letter_avatar_proxy/v4/letter/m/a183cd/32.png) [@MZwa](https://discourse.traintastic.org/u/MZwa)\
**Post date:** [May 21, 2026, 11:28am UTC](https://discourse.traintastic.org/t/a-table-for-events/124/13 "2026-05-21T11:28:08Z")

</div>

Maybe at least allow to filter / consecutive filters?

In that way it is at least applicable and manageable for larger instances; bonus for having a Cbus/loconet/??? Filter additional to board / name/ [node / dcc address/ …]

My setup with about 100 events is already unwieldy enough → excell with stacking and searching has helped me in the past 🤣

---

<div class="post-metadata">

**Author:** ![DL7BJ](https://discourse.traintastic.org/user_avatar/discourse.traintastic.org/dl7bj/32/76_2.png) [@DL7BJ](https://discourse.traintastic.org/u/DL7BJ)\
**Post date:** [May 22, 2026, 7:34pm UTC](https://discourse.traintastic.org/t/a-table-for-events/124/14 "2026-05-22T19:34:00Z")

</div>

Hi,

some things get complicated when you talk about them 😀

My idea was just to have a table for documentation, Node #, Event # and Description, so that you wouldn’t need any other software for it. I haven’t thought about combo boxes with a text or other automatic functions before.

How often we need this data? Only if we change something or want to do a lookup during board creation. One has to ask the question: is the effort justified compared to a simple table?

Another way could be, to show all configured events with node # and description for a board. Which turnout use event #50000 without clicking all turnouts and search manually?

Greetings, Tom

---

<div class="post-metadata">

**Author:** ![reinder](https://discourse.traintastic.org/user_avatar/discourse.traintastic.org/reinder/32/9_2.png) [@reinder](https://discourse.traintastic.org/u/reinder)\
**Post date:** [May 22, 2026, 10:44pm UTC](https://discourse.traintastic.org/t/a-table-for-events/124/15 "2026-05-22T22:44:38Z")

</div>

Hi,

Just something else I’d like to throw into the mix, a quick unpolished version, but the idea is clear I think:

 ![CBUS/VLCB input list](https://discourse.traintastic.org/uploads/default/original/1X/fabe8322b747c25ccfa587e4500d8594222c4bb5.png)

 ![LocoNet input list](https://discourse.traintastic.org/uploads/default/original/1X/24d2a175672cdbba62b3cab74191dc0cbf33166f.png)

Currently the _id_’s are shows, I want to change that to _name_ and make them clickable like a website link, so you can open the corresponding property dialog.

Besides that an editable description/notes column could be added, and problably a search bar for installations with huge amounts of items.

Sorting is also not supported yet.
