4 Relays Module
Cdios 6159

Command / Reply / Event messages V1.0

 


Cdios controller commands

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/light gray text.


Command code 10h: Write outputs

This command modifies the relay outputs direct or after a central synchronization pulse (by bus or Cdios controller).

 

Command

Module ID

3

4

5

6

7

8

10h

0 - 15

Selector

Data

0

0

0

0

Parameter

Value

Description

Selector

0

Write outputs direct, one-shot counters disabled....

1

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.
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.
 

Parameter

Bit

 Description

Data

0

contains the state for output 1, 0 is off/no action, 1 is on/action.

until

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):

 

Reply

Module ID

3

4

5

6

7

8

10h

0 - 15

0

0

0

0

0

0

Possible error message:

 

Error

Module ID

3

4

5

6

7

8

90h

0 - 15

0

0

Error Status

0

0

0

Parameter

Bit

 Description

Error Status

0

1 =  Selector parameter out of range

 


Command code 11h: Read output status

This commands reads the current relay energized status

 

Command

Module ID

3

4

5

6

7

8

11h

0 - 15

0

0

0

0

0

0
 

Reply

Module ID

3

4

5

6

7

8

11h

0 - 15

0

Status

0

0

0

0

Parameter

Bit

 Description

Status

0

contains the status for output 1

until

contains ...

3

contains the status for output 4

 


Command code 12h: Set event on output status change mask

This commands defines the outputs to scan for status change.

 

Command

Module ID

3

4

5

6

7

8

12h

0 - 15

0

Mask

0

0

0

0

Parameter

Bit

Default

 Description

Mask

0

0

enables change of state event for output 1, 0 is off, 1 is on.

until

 

 

3

0

enables change of state event for output 4, 0 is off, 1 is on.

Confirmation reply message (suppressed when 'Confirm' is 0):

 

Reply

Module ID

3

4

5

6

7

8

12h

0 - 15

0

0

0

0

0

0
 


Command code 13h: Set output one-shot times

This commands defines the output one-shot times per output.

 

Command

Module ID

Selector

4

5

6

7

8

13h

0 - 15

0

One-shot 1

One-shot 2

0

1

One-shot 3

One-shot 4

0
 

Parameter

Value
Default

 Description

Selector

0-1
 

Select two one-shots

One-shot1
-
One-shot4

0-65535
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):

 

Reply

Module ID

3

4

5

6

7

8

13h

0 - 15

0

0

0

0

0

0

Possible error message:

 

Error

Module ID

3

4

5

6

7

8

93h

0 - 15

0

0

Error Status

0

0

0

Parameter

Bit

 Description

Error Status

0

1 =  Selector parameter out of range

 


Events

If an enabled output status changes state, a read output status event message is sent:

 

Event

Module ID

3

4

5

6

7

8

51h

0 - 15

0

Status

0

0

0

0

Parameter

Bit

 Description

Status

0

contains the status for output 1

until

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.

When the user polls the status with the 'read output status' command and events are enabled, it is possible that an event is not send.
This occurs when the user has read the status after the state change and before the event should be sent.


Home

Last Modified:26 November 2002