184
ifm
Programming Manual BasicDisplay CR0452 v03.02
05 / 2018
ifm function elements
ifm function elements for the device CR0452
>
PDM_PAGECONTROL
3186
Unit type = program (PRG)
Unit is contained in the library
available for the following devices:
ifm_PDM_UTIL_Vxxyyzz.LIB
• PDM360: CR1050, CR1051
• PDM360compact: CR1052, CR1053, CR1055, CR1056
ifm_PDMng_UTIL_Vxxyyzz.LIB
• PDM360 NG: CR108n, CR120n
ifm_PDMsmart_UTIL_Vxxyyzz.LIB
• BasicDisplay: CR045n
• PDM360smart: CR1070, CR1071
Symbol in CODESYS:
>
Description
3294
PDM_PAGECONTROL controls the opening of certain visualisation pages. In CoDeSys the
visualisation pages are opened and feedback is given via the system variable CurrentVisu (type
STRING[40]).
With this program it is possible to open a selected visualisati
→ p. or to scroll through the visualisations
step by step.
Optimum use of the program is ensured when all visualisation names correspond to the same pattern,
i.e. a combination of a basename followed by a 5-digit number (library version V04.00.07 or higher;
before: 3-digit *)).
Example BASENAME =
PAGE
:
Visualisation name =
PAGE00001
,
PAGE00002
,
PAGE00003
, etc.
For the basename 1...35 capital letters (no special characters) are allowed. The visualisations should
be numbered consecutively. The program creates the final visualisation name from the parameter
BASENAME and the number or reads the number from the current visualisation name and provides it
in the output parameter ACT_PAGE.
Instead of naming the visualisations with basename and consecutive number every visualisation can
also be named individually, e.g.
SERVICE1
,
MOTORDATA2
,
CONFIGURATION3
. In this case, however,
programming is more complex because basename and visualisation number must be assigned
individually. Scrolling step by step is then very restricted.
Use the letter
P
as BASENAME, your program is then compatible with the
ifm
templates.
*)
Also note the new 5-digit numbering when naming your existing visualisation pages!