For the CANBUS two models were developed for the setting of the module interfaces:
Simple Layout interface Model.
The node address of the module is set using DIP switches. Additional settings are not possible.
The CAN-GCA modules do not support this !!.
Full Layout interface Model.
All settings of the modules made with programming commands over the CBUS.
In Rocrail the CBUS programming dialog is implemented on multiple tabs for general and modules-specific properties.
The push button is only needed in case the node number has to be changed.
In all other cases Rocrail will put the module in learn mode by command when needed.
The IID is needed, if the CANBUS, is not the only defined command station in the Rocrail server.
This is a read only field which is automatically set after a node is selected from the index or was set in the FLiM setup mode.
The target node must be set manually in learn mode, after its powered on, by pushing short the button on the board before setting a new node number.
If there are nodes in the same CBUS in SLiM mode it is recommended to choose a node number higher than 255 to avoid conflicts. All CAN-GCA nodes are FLiM only.
The IID must be set if the CBUS is not the first one in the Rocrail command stations list.
Query all connected nodes.
The query CANBUS OPC_QNN is used. The CAN-GC2 reports with an OPC_PNN which contains node number, manufacturer and product ID.
|Use only with the CAN-GC1.|
Before reporting the Query button must have been pressed to fill up the list.
The Reporting option requires a file name which must be specified by dialog. The file format is CSV and can be read and manipulated by most spreadsheet programs.
All listed CAN-GC2 and CAN-GC6 modules are subsequently selected, read and port by port reported. The ID will be also reported if a Rocrail object is linked to the port address.
|The CSV file imported and exported as PDF with LibreOffice.|
To avoid bus conflicts, each node requires a unique CAN-ID.
A node should ensure that the CAN-ID is in the range of 1 to 99. CAN-ID values in the range 100 to 127 have been reserved for modules with a fixed CAN-ID.
CAN-ID 0 + 11 are reserved for the interface like CANGC1(e).
| A standard CAN frame has 11 bits for the CAN-ID. CBUS uses the 4 MSB for priority(arbitration), the rest 7 bits are used for the ID.
Extended CAN frames are reserved for the Bootloader.
Request all node events. An event definition is added to the list if its unknown.
Leave the Node# empty for defining a Short Event.
Delete the selected event from the node and from the list.
Delete all the event from the node and from the list.
The event variable must be requested separately for each event listed after a Get all request and is only possible in learn mode.
Opens the file picker dialog for selecting the HEX file to be send to the node.
The file must be accessible by the Rocrail server.
Put the selected node into boot mode.
Send the new firmware to the node.
The HEX file must be selected and the node should be set in boot mode.
Reset the node back to normal mode.
After sending the HEX file a reset is issued automatically.