eeros_architecture:hal:scaling_multi
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
eeros_architecture:hal:scaling_multi [2017/07/04 15:55] – graf | eeros_architecture:hal:scaling_multi [2019/02/24 14:30] – [Input for Axis Position] graf | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Setting Multiple Scales and Ranges ====== | ====== Setting Multiple Scales and Ranges ====== | ||
- | Within eeros we work with signals having physically meaningful units. However, when such signals are read from real-world | + | The existing |
- | [{{ : | + | |
+ | |||
+ | ===== Output | ||
+ | The control of EEROS sets the torque for a motor. This signal passes a digital to analog | ||
+ | [{{ : | ||
+ | |||
+ | The HAL mirrors the multiple stages. Each stage can be described individually as given in the following example. | ||
< | < | ||
" | " | ||
Line 7: | Line 14: | ||
" | " | ||
" | " | ||
- | " | + | " |
+ | { " | ||
+ | " | ||
+ | " | ||
+ | { " | ||
+ | " | ||
+ | " | ||
" | " | ||
" | " | ||
- | " | + | " |
- | " | + | { " |
+ | " | ||
+ | " | ||
+ | { " | ||
+ | " | ||
+ | " | ||
+ | " | ||
} | } | ||
</ | </ | ||
+ | The HAL will calculate the scale and range of the whole chain considering the single stages. The range of the whole chain will be determined by the most restricting range of the single stages. The unit is determined by the unit of the last stage. | ||
+ | |||
+ | ===== Input for Axis Position ===== | ||
+ | The control of EEROS sets the torque for a motor. This signal passes a digital to analog converter and an amplifier. The amplifier delivers a current which is trabsformed by the motor constant into a torque. | ||
+ | [{{ : | ||
+ | |||
+ | The HAL mirrors the multiple stages. Each stage can be described individually as given in the following example. | ||
+ | |||
+ | < | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | { " | ||
+ | " | ||
+ | " | ||
+ | { " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | { " | ||
+ | " | ||
+ | " | ||
+ | { " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | The HAL will calculate the scale and range of the whole chain considering the single stages. The range of the whole chain will be determined by the most restricting range of the single stages. The unit is determined by the unit of the last stage. | ||
+ | |||
+ | ===== Two Inputs or Outputs with Different Scales ===== | ||
+ | There are cases where you want to read from a hardware input while this input might represent different things. A motor with its current and torque could serve as an example. | ||
+ | [{{ : | ||
+ | * Scale1 : scaling for the adc converter | ||
+ | * Scale2 : scaling for motor current. This input allows for current control of the motor. | ||
+ | * Scale3 : scaling for motor torque. This input allows for observation of the motor torque. | ||
+ | |||
+ | For outputs we have a similar situation. A motor might be controlled by setting its current during homing of the drive. During normal operation the motor will be controlled by setting its torque. | ||
+ | [{{ : | ||
+ | The scaling in the HAL includes the common part of the two outputs while each control signal have their individual scaling as well. |
eeros_architecture/hal/scaling_multi.txt · Last modified: 2021/05/20 07:37 by ursgraf