Technical information

Modicon M340 automation
platform
0
Programmable process control
Unity Pro software
CONT_CTL library functions (continued)
Measurement processing
AVGMV Moving average with fixed 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 first order interpolation
SAH Detection of a rising edge
HYST_XXX (1) Detection of high threshold with hysteresis
INDLIM_XXX (1) Detection of high and low thresholds with hysteresis
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
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 DFB blocks 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/4) are available.
In particular, the Modicon M340 processor simulator can be used to check correct
execution of processing offline.
Compatibility
The CONT_CTL control function block library is available in all versions of Unity Pro.
It is compatible with all processors in the Modicon M340, Premium, Quantum and
Atrium ranges.
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” available online at
www.schneider-electric.com
___________________________________________________________________________
(1) XXX depending on the type of variable: DINT, INT, UINT, UDINT, REAL
Programming in Unity Pro in offline modeProgramming in Unity Pro in offline mode
Programming in online modeProgramming in online mode
Functions (continued),
setup
Processors:
page 1/2
Communication:
page 3/2
Software:
page 4/2
Ruggedized Modicon M340 modules:
page 6/2
1
2
3
4
5
6
7
8
9
10