DISPLAY FUNCTION (LCD DISPLAY)

The display function controls the liquid
crystal display (LCD) integrated in M2 controllers (with the exception of the
controllers in the series known as "economic EC..." and "bare board
CN").
It also controls the M2 "front panel" window in CLS M2
during simulation and monitoring sessions. In effect, this front panel window
is the image of the liquid crystal display for controllers with LCD and
replaces the LCD on economic and bare board series controllers.
Using this function, the user can enter text (48
characters max.) or indicate which values are to be displayed and in which
format (number, month, day, year, etc.)
All the standard ASCII characters (numbers, upper case
letters, lower case letters and punctuation marks) plus accented characters and
Greek letters can be used to display text in the DISPLAY function. Characters
and symbols which do not appear in the input window when typed on the keypad
are not available in the LCD matrix.
If it is set to OFF, the VALIDATE FUNCTION input can be
used to disable the function (no display). If it is set to ON, it can be used
to activate the selected displays in the parameters window. If it is not
connected, this input is set to ON. Only 8 of these functions can be active
simultaneously in one program. If more than 8 are active, only the first 8 (in
order of compilation) are processed.
If the VALUE INPUT is not connected, the character
string displayed on the LCD and in the "front panel" window will correspond to
the selections made in the "User options" parameter field, i.e.:
- If Text is selected: A character string
- If Date is selected: The current value of the internal date of
the unit on which the program is being executed (controller or simulator)
- If Time is selected: The current internal time value of the
unit on which the program is being executed (controller or simulator)
- If Calibration is selected: The drift value of the internal
clock on the controller.
The parameterisation box/Parameters tab is used to
modify the parameters of all the display functions used at a time given
in the edit window. This dialogue box also displays the string resulting from
all the display strings described in the parameters for all the display
functions in the edit window (text, date, time and values).
These parameters can only be modified in edit mode.
All the display functions are selected by their block
number (BXX) chosen from the list on the top left of the parameterisation
window. By default, this selection list suggests the number of the function
block from which the dialogue box is opened. Each block number selected
represents the display box associated with the function with this number.
The format string of the active block number is
indicated by red letters or stars. If the strings become superimposed, a
warning will appear underneath the grid and the affected cells will be
displayed with a red background. All other strings are displayed in black. Each
parameter window associated with a display function number has the following
input commands:
- Line: Number of the line from which the character string
corresponding to the action of the display function is placed on the LCD grid.
The value entered can be between 1 and 4, the maximum number of lines.
- Column: Number of the
column from which the character string corresponding to the action of the
display function is placed on the LCD grid. The value entered can be between 1
and 12, the maximum number of columns.
If the VALUE INPUT is connected to the output of a
function, the value of this output is displayed in the format indicated in the
parameterisation window.
The integer value present on the input is converted into
a corresponding display string which is placed starting at the location (line,
column) in the grid. The format of the string displayed depends on the display
formats selected in the parameters in edit mode.
Selecting the display style for an integer:
- Selecting a rate: 1/1, 1/10, 1/100, 1/1000, 1/10000
- If 1/1 is selected: The integer present on the VALUE INPUT is
displayed as a signed integer (1 to 5 decimal digits preceded by a minus sign
if the number is a negative value)
- If 1/10 or 1/100 or 1/1000 or 1/10000 is selected: The integer
present on the VALUE INPUT is displayed as a decimal value with one, two, three
or four digits after a decimal point.
Selecting a calendar date format:
- Year: The input value must be between 1 and 99, corresponding
to a display between 2001 and 2099. No other input value will produce a correct
display.
- Month: The input value must be between 1 and 12, corresponding
to a display indicating the first four letters of the name of the month. No
other input value will produce a correct display.
- Weeks: To ensure compatibility with TIME
PROG, it must be possible to display one, several or all weeks in the month
simultaneously. The first week is assigned the value 1 (display 1----), the
second the value 2 (display -2---), the third the value 4 (display --3--), the
fourth the value 8 (display ---4-) and the fifth the value 16 (display ----5).
If the input value is 20 (4+16) the display shows: --3--5 . Any other input
value less than 1 or greater than 31 will produce an incorrect display.
- Day of the month: The input value must be between 1 and 31. No
other input value will produce a correct display. There are no consistency
checks between "Day of the month", "Month" and "Year".
- Days (of the week): To ensure compatibility
with TIME PROG, it must be possible to display one, several or all days in the
week simultaneously. Monday is assigned the value 1 (display M------), Tuesday
the value 2 (display -T-----), Wednesday the value 4 (display --W----),
Thursday the value 8 (display ---T---), Friday the value 16 (display ----F--),
Saturday the value 32 (display -----S-) and Sunday the value 64 (display
------S). If the input value is 127 (1+2+4+8+16+32+64) all the days of the week
will be displayed (MTWTFSS). Any other input value less than 1 or greater than
127 will produce an incorrect display.
- Hour: Input value between 0 and 23. Two digits are displayed.
No consistency checks are carried out.
- Minute: Input value between 0 and 59. Two digits are
displayed. No consistency checks are carried out.
Modification option authorised: The user can use this check box to
modify the following parameters directly:
- Either the integer data connected on the VALUE INPUT of the function
if it can be modified by the DISPLAY function (see the online help for each
function)
- Or the current value of the internal controller date or time
(function execution on a controller)
- Or the current value of the internal simulator date or time (in
simulation mode)
- Or to correct drift in the internal controller clock (function
execution on a controller). This last option is not available in simulation
mode.
Modifications are made using the dialogue buttons on the
front panel of the controller or the image of the buttons shown on the front
panel window in CLS M2.
Parameterisation
box/Comments tab
Back to Contents