User`s manual
11-8 Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual
–
January 2001 GFK-1742A
11
Gain Scheduler Program Example
The following example illustrates a method to use local logic to implement a simple gain-
scheduling algorithm. Care should be taken whenever one implements an algorithm that
dynamically changes the control characteristics. In many situations, dynamically changing the
control characteristics can cause the controlled process to go unstable. Note that the
Velocity_Loop_Gain
control variable may be written multiple times in the same sweep in the
following program. However, the final value written in a given sweep is the active value since
variables are updated at the conclusion of Local Logic execution. Refer to Chapters 12 and 13 for a
detailed description of the Local Logic control variables and outputs.