3 Basics | LXM32M |
|
|
3.3.4.3 Parameter channel
The master can request a parameter value from the slave or change a parameter value via the parameter channel. Each parameter can be uniquely addressed via the index and subindex.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Byte | 0 | 1 | 2 |
| 3 |
| 4 | 5 | 6 | 7 |
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| PV |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
| Index | ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
| Subindex |
|
|
|
| ||||
|
|
|
|
|
| Ctrl |
|
|
|
| |||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
| Figure 4: Parameter channel |
|
|
|
|
|
|
|
|
|
|
|
|
| |||
Ctrl | Byte "Ctrl" contains the request to read or write a parameter. | ||||||||||||||||
| The transmit data contains the information whether a parameter is to | ||||||||||||||||
| be read or written. The receive data contains the information whether | ||||||||||||||||
| the read request or the write request were successful. | ||||||||||||||||
| Transmit data: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Ctrl | Function |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 02h | No request |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
| 12h | Read request |
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
| ||||||
| 22h | Write request (word) |
|
|
|
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
| ||||||||||
| 32h | Write request (double word) |
|
|
|
|
| ||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Receive data: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Ctrl | Function |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||
| 02h | Request not yet completed |
|
|
|
|
|
| |||||||||
|
|
|
| ||||||||||||||
| 12h | Read request or write request successfully completed (word) |
| ||||||||||||||
|
|
|
| ||||||||||||||
| 22h | Read request or write request successfully completed (double |
| ||||||||||||||
|
| word) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
| 72h | Error message |
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
| ||||||||||||||
| Only one request can be processed at a time. The slave provides the | ||||||||||||||||
| response until the master sends a new request. If a response includes | ||||||||||||||||
| parameter values, the slave responds with the current value in the | ||||||||||||||||
| case of a repetition. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| NOTE: Read requests are only executed by the slave if the value | ||||||||||||||||
| changes from 02h to 12h. Write requests requests are only executed | ||||||||||||||||
| by the slave if the value changes from 02h to 22h or to 32h. | ||||||||||||||||
Subindex | The byte "Subindex" must be set to the value 00h. | ||||||||||||||||
Index | The word "Index" contains the parameter address. | ||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 0198441113843,V1.01,01.2012 |
| See the product manual for a list of the parameters. |
26 |