| cmdCTR_CT | Index |
Command Code:
The Packet:
| 0 | 1 | 2 | 3 | 4 | ||||
| address | 3 | cmdCTR_CT | CtrID | CDIR |
| CtrID - | Index of the counter. Range is 0-7. |
| CDIR - | Direction for count. Range is 0-1. |
Description:
This command decrements or increments the 2-byte value for a counter depending on the direction byte. When CDIR is 0, the count is decremented. When CDIR is 1, the count is incremented. An ID that is out of range will generate an error message. There is no reply packet.
A counter generates a raw input when the count reaches zero after a decrement or increment operation.