CANopen Slave Protocol Stack 
Version 7.08.00
Loading...
Searching...
No Matches
cos404co.h File Reference

Detailed Description

This module implements the variables and callback functions for the object dictionary from CiA 404 (controller). The module adds the following objects to the object dictionary:

Index Description Function / Variable Configuration Symbol
6410h CO effective controller output Y (int16_t) Cos404_Idx6410() -
6421h CO automatic/manual mode switch A/M Cos404_Idx6421() -
6422h CO controller on/off Cos404_Idx6422() -
7402h CO set point W (int16_t) Cos404_Idx7402() -
7450h CO proportional band Xp1 (int16_t) Cos404_Idx7450() -
7451h CO proportional band Xp2 (int16_t) Cos404_Idx7451() -
7452h CO integral action time Tn1 (int16_t) Cos404_Idx7452() -
Include dependency graph for cos404co.h:

Functions

void Cos404_CO_Process (uint8_t ubChannelV)
Cos404_CO_Config_ts * Cos404_CO_GetConfig (uint8_t ubChannelV)

Function Documentation

◆ Cos404_CO_GetConfig()

Cos404_CO_Config_ts * Cos404_CO_GetConfig ( uint8_t ubChannelV)
Parameters
[in]ubChannelVController channel
Returns
Parameter value for given channel (or 0 if out of range)

Getter helpers for application templates to access controller parameters.

◆ Cos404_CO_Process()

void Cos404_CO_Process ( uint8_t ubChannelV)

Run one controller process step for the given channel.

Parameters
[in]ubChannelVController channel
Note
This function shall be called after the COS 404 module has been initialized by Cos404_ParmInit().

This function executes one PID step for the controller channel defined by ubChannelV. It reads the set point from object 7402h, applies the configured proportional band (7450h, 7451h) and integral action time (7452h), and writes the resulting output value to object 6410h.