Setup Periodic Sampling of CMIO States
warning
The common block API allows you to configure periodic sending of CMIO status messages.
Using the Setup CMIO sampling message, you can select multiple CMIO states for periodic transmission. States are selected using CMIO input ID. Up to 4 ranges of states can be configured.
Payload byte positions do not correspond directly to byte positions in the transfer layer (CAN, UART, USB, Bluetooth...) Before proceeding, carefully review how to create messages for:
Message - Setup CMIO Sampling
info
- All datagram types listed here are unicast with SID = 40
- All payloads listed here use big-endian byte order
Payload byte | Data-type | Description |
---|---|---|
0 | uint8 | Bank selection: 8 = bank 0, 9 = bank 1, 10 = bank 2, 11 = bank 3 |
1 | uint8 | Start IID of range |
2 | uint8 | End IID of range |
3-4 | uint16 | Transmission period in [ms] |
5-6 | uint16 | Initial delay in [ms] (Time before first message transmission). Set to 0 to disable bank transmission. |
Response
info
Message is multicast SID varies by bank:
- bank 0: SID = 42
- bank 1: SID = 43
- bank 2: SID = 44
- bank 3: SID = 45
Message length depends on the interface used. If payload exceeds message size limit, multiple messages are sent with different Offsets.
Payload byte | Data-type | Description |
---|---|---|
0 | 0-6 | Product signature |
0 | 7 | Error bit - 1 indicates common block error state; transmitted values may be invalid |
1 | uint8 | Offset - IID of first state |
2-3 | int16 | First state with IID = Offset |
4-5 | int16 | Second state with IID = Offset + 1 |
6-7 | int16 | Third state with IID = Offset + 2 |
... | int16 | Message size varies based on interface used |