Technical information

4/15
Functions (continued),
Software
Unity Pro software
Small/Large/Extra Large
Programmable process control
Process control in machines (continued)
CONT_CTL library functions (continued)
Process value processing
AVGMV Moving average with xed number of samples (50 max.)
AVGMV_K Moving average with constant correction factor, 10,000 samples
max.
DEAD_ZONE Dead zone
LOOKUP_TABLE1 Linearization of characteristic curves using rst-order interpolation
SAH Detection of a rising edge
HYST_XXX Detection of high threshold with hysteresis (1)
INDLIM_XXX Detection of high and low thresholds with hysteresis (1)
Output value processing
MS Manual control of an output
MS_DB Manual control of an output with dead zone
PWM1 Control via pulse width modulation
SERVO Control for servo motors
SPLRG Control of two Split Range actuators
Setpoint management
RAMP Ramp generator, with separate ascending and descending ramps
RATIO Ratio controller
SP_SEL Selection of setpoint value: local (operator) or remote (processing)
Setting up process control function blocks
Based on the sequencing of function blocks, the FBD language integrated in Unity
Pro is a programming language particularly suitable for building control loops.
Designers can use FBD to easily associate blocks from the CONT_CTL library with
their own DFBs written in Unity Pro’s ST, IL or LD language, or in C language.
Debugging, operation
All Unity Pro’s standard debugging services (see page 4/9) are available. In
particular, the PLC simulator can be used to check correct execution of processing
ofine.
Compatibility
The CONT_CTL control function block library is available in all versions of Unity Pro.
It is compatible with processors in the Modicon M340, Modicon M580, Premium and
Quantum ranges.
Optional specialized libraries
The CONT_CTL control function block library can be supplemented with optional
specialized libraries, to meet specic needs such as predictive control, fuzzy logic
controller, HVAC and mass ow calculation (see page 4/28).
Resources
The technical documentation provides many examples of how to set up
programmable process control function blocks in FBD, LD, IL and ST languages.
The techniques for adjusting process control loops are described in the document
“Process control, Unity V3.0” available online at www.schneider-electric.com.
(1) XXX according to the type of variable: DINT, INT, UINT, UDINT, REAL.
Programming in Unity Pro in ofine mode
Programming in online mode
Selection guide:
page 4/2
2
1
3
4
5
6
7
8
9
10
2
1
3
4
5
6
7
8
9
10