beckhoff TS4110 — 11.3 Previous implementation

PLC-API (***********************************************************************) (* setpoint parameters *) fWMin := 0.0, (* lower limit *) fWMax := 200, (* upper limit *) (* start up optional *) fWStartUp := 0.0, (* soft start plateau setpoint *) tStartUp := t#0s, (* soft start waiting time*) bStartUpRamping := FALSE, (* enable ramping while start up phase *) fWStartUpVeloPos := 0.0, (* max gradient for increasing setpoint in start up phase*) fWStartUpVeloNeg := 0.0, (* max gradient for decreasing setpoint in start up phase *) fWVeloPos := 0.0, (* max gradient for increasing setpoint *) fWVeloNeg := 0.0, (* max gradient for decreasing setpoint *) (***********************************************************************) (* actual value parameters *) bFilter := FALSE, tFilter := t#0s, (***********************************************************************) (* control value parameters *) fYMin := 0, (* lower limit *) fYMax := 100, (* upper limit *) fYManual := 0.0, (* manual operation*) fYOnFailure := 0.0, (* control value on failure *) tPWMCycleTime := t#100ms, (* PWM *) (***********************************************************************) (* controller settings *) bEnablePreController := FALSE, (* enable precontroller *) bEnableZones := FALSE, (* enable zone around setpoint with open loop control *) bEnableCVFilter := FALSE, (* enable filter for CV (type see iFilterType) *) iFilterType := E_FilterType_FIRSTORDER, (* filtertype of CV filter *) iControllerType := E_ControllerType_PID, (* used controller normally PID *) (***********************************************************************) (* min max temperatures *) TempLow := 10, TempLowLow := 20, TempHigh := 10, TempHighHigh := 20, TempAbsoluteHigh := 200, TempAbsoluteLow := 0, (***********************************************************************) (* internal tuning parameters *) fTuneKp := 1.2, fTuneTn := 2.0, fTuneTv := 0.42, fTuneTd := 0.25 ); The marked parameters are optional, and only have to be initialized if they are needed.

Assignment in the code may look as follows in ST: sControllerParameter.tPWMCycleTime := t#100ms; Specification of the controller sampling time, the task cycle time and the PWM cycle time The controller's sampling time must be adapted to the section. It should be selected to be equal to or less than one tenth of the section's dominant time constants. The task cycle time is specified by the PLC task from which the controller function block has been called. This value can be read from the task configuration (PLC Control: Resources Task Configuration). The PWM cycle time is usually equal to the controller cycle time.

If the task cycle time is 10 ms and the chosen PWM cycle time (=controller sampling time) is 100 ms, then a total of 10 levels (PWM cycle time / task cycle time) are available. Parameterization of TwinCAT Scope To check the results, a scope recording should always be made of the tuning process and the closed loop control behavior. To do this, TwinCAT Scope View should be started and parameterized. The following channels should be recorded: setpoint (fW1 or fW2), actual value (fX) and the analog control value (fYAnalog). Switching off the alarms during the commissioning phase The alarms can be temporarily switched off during the commissioning phase.

An appropriate bit mask must be written into the dwAlarmSupp Dword. If a bit is set in this Dword, the corresponding alarm is disabled. The assignment of the individual alarms is described here [ } 41] . TS4110 32 Version: 1.1