|
4 Relays Module Command / Reply / Event messages V2.0
|
Cdios controller commands | Cdios download page | 6159 Cdios Module V1.0 Commands
Addition to V1.0:
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.
This command modifies the relay outputs direct or after a central synchronization pulse (by bus or Cdios controller).
|
|
|
|
|
|
|
|
|
|
|
|
Selector |
|
|
|
|
|
|
|
Value |
Description |
|
Selector |
|
Write outputs direct, one-shot counters disabled.... |
|
|
Write outputs latched, outputs will be updated after SYNC command. |
|
| 2 | Set outputs direct, one shot counters enabled Any bit set to 1 will energize corresponding relay, no action if bit is 0 |
|
| 3 | Set outputs latched, one shot counters enabled, outputs will
be updated after SYNC
command. Data will be logically ORred with data already present in the set latch. The latch will be cleared after the SYNC or a write outputs direct command. |
|
| 4 | Clear outputs direct. Any bit set to 1 will de-energize corresponding relay, no action if bit is 0 |
|
| 5 | Clear outputs latched, outputs will be updated after SYNC
command. Data will be logically ORred with data already present in the clear latch. The latch will be cleared after the SYNC or a write outputs direct command. |
|
|
|
Description |
|
|
|
contains the state for output 1, 0 is off/no action, 1 is on/action. |
|
|
contains ... |
|
|
3 |
contains the state for output 4, 0 is off/no action, 1 is on/action |
Confirmation reply message (suppressed when 'Confirm' is 0):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Possible error message:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Description |
|
|
|
1 = Selector parameter out of range |
This commands reads the current relay energized status
|
|
|
|
|
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
|
|
Description |
|
|
|
contains the status for output 1 |
|
|
contains ... |
|
|
3 |
contains the status for output 4 |
This commands defines the outputs to scan for status change.
|
|
|
|
|
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
|
|
Default |
Description |
|
|
|
0 |
enables change of state event for output 1, 0 is off, 1 is on. |
|
|
|
|
|
|
3 |
0 |
enables change of state event for output 4, 0 is off, 1 is on. |
Confirmation reply message (suppressed when 'Confirm' is 0):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This commands reads the outputs to scan for status change.
|
|
|
3 |
|
|
|
|
|
|
|
|
80h |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80h |
|
|
|
|
|
|
|
Description |
|
|
Same format as in the 'Set event on output change mask' command |
Possible error message:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Description |
|
|
|
1 = Selector parameter out of range |
This commands defines the output one-shot times per output.
|
|
|
Selector |
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
||||
|
|
|
Default |
Description |
|
Selector |
|
Select two one-shots |
|
|
- One-shot4 |
|
0 |
range is 0 - 65535 milliseconds, lsb first (0 is no one-shot time), power-on default is zero for all outputs. |
Confirmation reply message (suppressed when 'Confirm' is 0):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Possible error message:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Description |
|
|
|
1 = Selector parameter out of range |
This commands reads the output one-shot times per output.
|
|
|
Selector |
|
|
|
|
|
|
|
|
80h - 81h |
0 | 0 | 0 | 0 |
|
|
|
|
Selector |
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
||||
|
|
|
Description |
|
Selector |
|
Selected two one-shots |
|
- One-shot8 |
|
range is 0 - 65535 milliseconds, lsb first (0 is no one-shot time) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Description |
|
|
|
1 = Selector parameter out of range |
This commands defines the state of the outputs after power on / node reset / node stop.
For the failsafe value to work, a store command has to be given to store the
value in EEPROM
|
|
|
Selector |
|
|
|
|
|
|
|
|
0 |
Data |
|
|
|
|
Confirmation reply message (suppressed when 'Confirm' is 0):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Possible error message:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Description |
|
|
|
1 = Selector parameter out of range |
This commands reads the failsafe value.
|
|
|
Selector |
|
|
|
|
|
|
|
|
80h |
0 |
|
|
|
|
|
|
|
Selector |
|
|
|
|
|
|
|
|
80h |
Data |
|
|
|
|
|
|
Description |
|
Data |
Same format as in the 'Set failsafe value' command |
Possible error message:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Description |
|
|
|
1 = Selector parameter out of range |
This command stores the current or the default I/O module configuration into
internal EEPROM memory.
The configuration is restored from this memory after power on or a reset
command.
|
|
|
|
|
|
|
|
|
|
|
|
Selector |
43h |
44h |
53h |
|
|
|
|
Value |
Description |
|
Selector |
|
Store current configuration |
|
|
Change configuration into default and then store it. |
The internal EEPROM erasing / programming takes 120 up
to 250 milli-seconds, then the reply message is send.
During programming I/O communication with this module is inhibited.
Sending a command will result in a general error message with errorcode = 8.
The confirmation reply message for this command is NEVER SUPPRESSED.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Possible error message:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameter |
|
Description |
|
Error status |
|
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 |
If an enabled output status changes state, a read output status event message is sent:
|
|
|
3 |
|
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
|
|
Description |
|
|
|
contains the status for output 1 |
|
|
contains ... |
|
|
3 |
contains the status for output 4 |
All status data is given, so the application has to find out itself which
status actually changed.
| Home |
Last Modified:26 November 2002 |