Command code 08h: Read inputs
This commands reads the 8 inputs or the latched inputs.
|
|
|
|
|
|
|
|
|
|
|
|
Selector |
|
|
|
|
|
|
|
Value |
Description |
|
Selector |
|
Read 8 inputs directly |
|
|
Read latched inputs, latched by the latest SYNC command |
Normal reply is:
|
|
|
|
|
|
|
|
|
|
|
|
Selector |
|
|
|
|
|
|
|
|
Description |
| Selector | Copy of value of the command | |
|
|
|
bit 0 contains the state of input 1, 0 is inactive, 1 is active |
|
|
bit .... |
|
|
|
bit 7 contains the state of input 8, 0 is inactive, 1 is active |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Description |
|
|
|
1 = Selector parameter out of range |
This commands defines the inputs to scan for 'change of state'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Default |
Description |
|
|
|
0 |
when 1 it enables scanning input 1 for change |
|
|
|
when ... |
|
|
|
0 |
when 1 it enables scanning input 8 for change |
At power on or reset, the internal masks are cleared.
Confirmation reply message (suppressed when 'Confirm' is 0):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This commands configures the input debouncing counters.
|
|
|
Selector |
|
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Default |
Description |
|
- Debounce8 |
|
0 |
range is 0 - 255 milliseconds (0 is no debouncing) |
Confirmation reply message (suppressed when 'Confirm' is 0):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Possible error message:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Description |
|
|
|
1 = Selector parameter out of range |
A 'change of State' event can be configured with the 'Set event on input
change mask' command.
If an enabled input changes state, a read input event
message is sent:
|
|
|
|
|
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
|
|
Description |
|
|
|
bit 0 contains the state of input 1, 0 is inactive, 1 is active |
|
|
bit .... |
|
|
|
bit 7 contains the state of input 8, 0 is inactive, 1 is active |
All data is stored in one byte, so the application has to find out itself which input actually changed.
Input change events react directly on the actual inputs, not on latched
inputs.
| Home |
Last Modified: 26 November 2002 |