|
Cdios Controller Commands V2.6
|
Cdios Controller Commands V2.5 Cdios download page
Addition to V2.5:
All CDIOS messages are presented as 8 bytes long. When variable length messages are selected, the part of the message that is not send over the CAN bus is represented in italic/lightgray text.
Cdios command / reply / event / error messages
|
event- error code |
|
|
|
|
|
|
|
|
|
Selector or zero |
|
|||||
When a command to the Cdios controller somehow generates an error, the error reply message is sent back.
The reply code will be a copy of the command code with bit 7 set:
|
Error |
Module ID |
3 |
4 |
5 |
6 |
7 |
8 |
|
|
|
|
|
|
|
|
|
|
|
|
Description |
|
|
|
Identifies that 'Error status' contains bitwise command specific error
indications. |
|
|
Module ID is not connected to any module |
|
|
|
Module ID is connected to an unsupported module |
|
|
3 |
Command is unknown in addressed module |
|
|
4 |
Cdios system is still in it's initialization phase (500 mS after power-up or Cdios controller reset) | |
|
5 |
Addressed Module contains an unsupported version number | |
|
6 |
Command is not supported by this software version of the module | |
|
7 |
I/O module communication error | |
|
8 |
CDIOS controller is busy with EEPROM programming, cannot evaluate the command |
|
|
|
Bit function description |
|
|
|
Bit function description |
Command code 01h: Identify I/O modules
This commands reads a part of the internal module type, serial number and software version table.
|
|
|
|
|
|
|
|
|
|
|
|
Selector |
|
|
|
|
|
Selector selects one of twenty five parts of the table
|
|
|
Selector |
|
|
|
|
|
|
|
|
|
type 0 | version 0 | type 1 | version 1 |
|
|
|
type 2 | version 2 | type 3 | version 3 |
|
||
|
|
type 4 | version 4 | type 5 | version 5 |
|
||
|
|
type 6 | version 6 | type 7 | version 7 |
|
||
| 4 |
type 8 |
version 8 | type 9 | version 9 | 0 | ||
| 5 | type 10 | version 10 | type 11 | version 11 | 0 | ||
| 6 | type 12 | version 12 | type 13 | version 13 | 0 | ||
| 7 | type 14 | version 14 | type 15 | version 15 | 0 | ||
| 8 | 1 | version of Cdios controller | 0 | 0 | 0 | ||
| 9 | Serial number of I/O module #0 (lsb first) | 0 | |||||
| 10 - 23 | Serial numbers of I/O modules #1 - #14 | 0 | |||||
| 24 | Serial number of I/O module #15 (lsb first) | 0 | |||||
To read the complete table, 25 command messages have to be given (total 50 messages over the bus), note:
Currently the following module types will be returned (module type will be type number - 6000, decimal) :
Cdios controller software version will be 25 for version 2.5
| Cdios controller version | 1.0 | 1.1 | 1.2 | 1.3 | 2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 2.6 | |
| Supported I/O Module | ||||||||||||
|
Type |
version | |||||||||||
| 6153 | 1.0 | x | x | x | x | x | x | x | x | x | x | x |
| 1.1 | x | x | x | x | x | x | x | x | x | |||
| 2.0 | x | x | x | x | x | x | x | |||||
| 2.5 | x | |||||||||||
| 6156 | 1.0 | x | x | x | x | x | x | x | x | x | x | x |
| 1.1 | x | x | x | x | x | x | x | x | x | |||
| 1.2 | x | x | x | x | x | x | x | x | ||||
| 2.0 | x | x | x | x | x | x | x | |||||
| 2.5 | x | |||||||||||
| 6159 | 1.0 | x | x | x | x | x | x | x | x | |||
| 2.0 | x | x | x | x | x | x | x | |||||
| 2.5 | x | |||||||||||
| 6160 | 1.0 | x | x | x | x | x | x | x | x | x | x | |
| 2.0 | x | x | x | x | x | x | x | |||||
| 2.1 | x | x | x | |||||||||
| 2.5 | x | |||||||||||
| 6162 | 1.0 | x | x | x | x | x | x | x | x | |||
| 2.0 | x | x | x | x | x | x | x | |||||
| 2.1 | x | x | x | x | x | |||||||
| 2.5 | x | |||||||||||
| 6163 | 1.0 | x | x | x | x | x | x | x | x | x | ||
| 2.0 | x | x | x | x | x | x | x | |||||
| 2.5 | x | |||||||||||
| 6164 | 2.0 | x | x | x | x | x | ||||||
| 2.5 | x | |||||||||||
| 6166 | 1.0 | x | x | x | x | x | x | x | x | x | x | x |
| 1.1 | x | x | x | x | x | x | x | x | x | |||
| 1.2 | x | x | x | x | x | x | x | x | ||||
| 2.0 | x | x | x | x | x | x | x | |||||
| 2.5 | x | |||||||||||
| 6167 | 2.0 | x | x | x | x | x | x | |||||
| 2.1 | x | x | x | x | ||||||||
| 2.2 | x | x | x | |||||||||
| 2.5 | x | |||||||||||
| 6168 | 2.0 | x | x | |||||||||
| 2.5 | x | |||||||||||
| 6190 | 2.0 | x | x | x | x | |||||||
| 2.5 | x | |||||||||||
Possible error message:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Description |
|
|
|
1 = Selector parameter out of range |
This command sets internal Cdios controller configuration
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Change of State |
Variable Length |
|
Confirmation reply message (suppressed when 'Confirm' is 0):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Possible error message:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Description |
|
|
|
1 = Confirm parameter out of range |
|
|
1 = Error parameter out of range |
|
|
2 |
1 = Change of state parameter out of range |
This commands gives a SYNC pulse to all I/O modules or enables/disables the
SYNC pulse directly from the CAN bus.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value |
Description |
|
|
|
Synchronizes all I/O modules; outputs are updated (if output latches are
written), inputs are latched. |
|
|
Disable CAN generated Sync pulse |
|
|
2 |
Enable CAN generated Sync pulse |
Confirmation reply message (suppressed when 'Confirm' is 0):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Possible error message:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Description |
|
|
|
1 = Sync parameter out of range |
This command stores the current or the default CDIOS controller configuration
into internal EEPROM memory. The configuration is restored from this memory
after power on or a reset command.
|
|
|
|
|
|
|
|
|
|
|
FFh |
Selector |
43h |
44h |
53h |
|
|
|
|
Value |
Description |
|
Selector |
|
Store current configuration |
|
|
Change configuration into default and then store it. |
The internal EEPROM erasing / programming takes up to 20 milli-seconds, then the reply message is send.
The confirmation reply message for this command is NEVER SUPPRESSED.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Possible error message:
|
|
|
|
|
|
|
|
|
|
|
FFh |
|
|
|
|
|
|
|
|
|
Description |
|
|
|
1 = Selector parameter out of range |
| 1 | 1 = 'password' bytes 4-6 in command are not equal to 43h,44h,53h | |
| 2 | 1 = Configuration EEPROM programming error | |
| 7 | 1 = Programming already busy (on another module) |
If an I/O module for some reason fails or resets itself (or has an internal configuration checksum error) and the reset parameter is set to one, the reset event message is sent:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Description |
|
|
|
1 = I/O module was reset by internal software failure (crash) |
|
|
1 = I/O module was reset by an internal low power supply (brown out) |
|
|
2 |
1 = I/O module has an configuration checksum error, the default configuration is used | |
|
3 |
1 = I/O module failed (does not communicate any more) | |
|
4 |
1 = I/O module came on-line (after it failed...). Bit 0-2 may be set also... |
If the DeviceNet I/O connection's expected packet rate is nonzero, the CDIOS controller will send an empty message to keep the connection alive when the trigger timer expires. Note that all eight bytes of this message will be transmitted, the 'variable length' configuration is ignored
|
|
|
|
|
|
|
|
|
|
|
|
|
0 |
|
|
|
|