CANopen Slave Documentation
Version 6.16.04
|
This module implements the variables and callback functions for the object dictionary from CiA 401 (analog inputs). The module adds the following objects to the object dictionary:
Index | Description | Function / Variable | Configuration Symbol |
---|---|---|---|
6401h | Read analog input 16-bit | Cos401_Idx6401() | COS_DS401_AI |
6423h | Analog input global interrupt enable | Cos401_Idx6423() | COS_DS401_AI |
6426h | Analog input interrupt delta unsigned | Cos401_Idx6426() | COS_DS401_AI |
6430h | Analog input SI unit | Cos401_Idx6430() | COS_DS401_AI |
Functions | |
void | Cos401_AI_SetProcessValue16 (uint8_t ubChannelV, int16_t swValueV) |
void Cos401_AI_SetProcessValue16 | ( | uint8_t | ubChannelV, |
int16_t | swValueV | ||
) |
[in] | ubChannelV | channel number |
[in] | swValueV | actual field value |
The function sets the analog value for the given channel ubChannelV. The parameter ubChannelV starts at 0 for the first channel, and has the value N-1 for the channel N. The supplied value can be monitored via the object entry 6401h.