the first digital controller we want to discuss is the proportional integral, or PI,…
- User
the first digital controller we want to discuss is the proportional integral, or PI, controller. In the last part of Chapter 2, we have been describing in detail a possible analog implementation of this solution. We now move to a digital implementation observing that, in general, it can be quite convenient to derive a digital controller from an existing analog design. is procedure, that is called controller discretization, has the advantage of requiring only a minimal knowledge of digital control theory to be successfully applied. All that is needed is a satisfactory analog controller design and the application of one of the several possible discretization methods to turn the analog controller into a digital one. As we will see in the following, although generally satisfactory, the application of this method implies some loss of precision, as compared to a direct digital design, mainly due to the approximations involved in the discretization process itself and in the equivalent continuous time representation of delays. 翻译
- Assistant
首先要讨论的是比例积分(PI)控制器。在第二章的最后部分,我们详细描述了可能的模拟实现方法。现在我们要移步到数字实现,并观察到从现有模拟设计中产生数字控制器通常是非常方便的。这个过程被称为控制器离散化,它的优点在于,只需要最基本的数字控制理论知识就能成功应用。只需一个令人满意的模拟控制器设计,并应用几种可能的离散化方法之一,就可以将模拟控制器转化为数字控制器。正如我们将在以下的内容中看到的那样,尽管通常是令人满意的,但这种方法的应用意味着与直接数字设计相比存在一定精度损失,主要是由于离散化过程本身和延迟的等效连续时间表示所涉及的逼近。
- User
Referring to Fig. 3.7, we can see the block diagram of the control loop. As can be seen, it replicates the organization of the block diagram of Fig. 2.10, with the remarkable difference that some of the blocks are now discrete time blocks. In particular, we can see how the controller and modulator blocks are now inside the digital domain, the shaded area, that represents a mi- crocontroller or DSP board. e inverter and transducer models are instead exactly equal to those of Fig. 2.10, and, as such, continuous time models. e link between the two time domains is represented by the ideal sampler at the input of the controller and by the digital pulse width mod- ulator, that generates the controller output and, as we have explained, inherently implements the interpolator, or holder, function. All these characteristics imply that we are actually dealing with a sampled data dynamic system.
- Assistant
图3.7展示了控制回路的框图。可以看到,它重复了图2.10的框图组织方式,不同之处在于其中一些块现在是离散时间块。特别地,我们可以看到控制器和调制器块现在在数字域内(阴影区域),代表了微控制器或DSP板。反转器和传感器模型则与图2.10完全相同,因此是连续时间模型。两个时间域之间的链接由控制器输入处的理想采样器和数字脉宽调制器表示,后者生成控制器输出,并内在地实现了插值器或保持器功能,这样我们就处理了一个采样数据动态系统。
- User
For the reasons we previously explained talking about synchronization, we assume the con- troller operation is clocked by the DPWM, i.e., a new iteration of the control algorithm is started as soon as a modulation period begins. We also assume, for simplicity, that the single update mode of operation is adopted, so that, during each modulation period, a single new value of the controller output is computed. e computation is based on the current sample, acquired at the start of the period and indicated by I S O.k/. Since the controller operation proceeds at time steps that are multiple of TS, the modulation and sampling period, in all the controller signals we simply denote with k the instant k · TS from the origin of time. Accordingly, we say that, at the k-th modulation period, the output of the controller, i.e., the digital modulating signal, is m.k/. Please note that, although we keep identifying the output of the controller by m, as in the analog case, this must no longer be considered an analog signal, but rather a sequence of binary codes, i.e., a quantized discrete time signal. Of course, the same holds for each of the other controller internal signals, like IOREF and I S O.
- Assistant
基于我们之前关于同步的解释,我们假设控制器操作由DPWM时钟同步,即在调制周期开始时立即启动控制算法的一个新迭代。为简单起见,我们也假设采用单次更新的操作模式,因此,在每个调制周期内,计算一个新的控制器输出值。该计算基于在周期开始时获取的当前样本,用I S(O.k)表示。由于控制器操作在TS的倍数时刻进行,即在每个采样周期内,我们在所有控制器信号中只需要使用k表示从时间起点开始的k·TS。因此,在第k个调制周期中,控制器的输出即数字调制信号是m(k)。请注意,尽管我们仍然像模拟情况下一样将控制器的输出标识为m,但这不再是模拟信号,而是一系列二进制代码,即量化的离散时间信号。当然,对于每个其他控制器内部信号(例如IOREF和ISO),也同样适用。
- User
It is worth noting that, in order to make Fig. 3.7 more realistic, we are going to modify the static gains of the modulator and of the feedback path with respect to the analog design example of Fig. 2.10. Indeed, in a digital implementation, the modulator static gain is represented by the numerical scale factor that turns the binary code m.k/ in the corresponding duty-cycle d.t/. In general, this depends on the way variables are normalized in the control algorithm. It is possible to verify that, as soon as the normalization of variables is such that m.k/ is coded as a fractional binary number, i.e., the maximum binary value of m is made equivalent to unity, then the modulator static gain is also unity, i.e., m.k/ directly represents the duty-cycle, without further scale factors. e fractional normalization hypothesis also explains the presence of the ADC gain at the input of the digital controller, meaning that a full scale input value of the ADC is normalized to unity as well. Under these assumptions and without loss of generality, we will assume the DPWM static gain to be equal to unity. If a different normalization criterion is adopted, the modulator static gain will have to be adjusted accordingly.
- Assistant
值得注意的是,为了让图3.7更加实际,我们将根据图2.10的模拟设计示例修改调制器和反馈路径的静态增益。实际上,在数字实现中,调制器的静态增益由数值比例因子表示,该因子将二进制代码m(k)转换为相应的占空比d(t)。一般来说,这取决于控制算法中变量的归一化方式。我们可以验证,只要变量的归一化使m(k)编码为小数二进制数,即将m的最大二进制值等效于1,则调制器的静态增益也为1,即m(k)直接表示占空比,无需其他比例因子。小数标准化假设还解释了数字控制器输入处ADC增益的存在,这意味着ADC的满量程输入值也会被归一化为1。在这些假设下且不失一般性,我们将假设DPWM的静态增益等于1。如果采用不同的归一化标准,调制器的静态增益将需要相应地调整。