-
The purpose of this section is to give a brief explanation of the
tasks which must be carried out to create a diagram in the
wiring sheet.
- Placing functions: Open CLS M2, then check that the
Function bar is open and that Edit mode is
selected. Simply drag a block from the function bar onto the wiring sheet
(Edit window) and drop it.
- Links: When a number of blocks have been placed, they can
be connected together by wires.
To do this, move the mouse cursor onto an
output connection (OUT) and Drag/Drop to an
input connection (IN) on another block. It is possible to Drag/Drop from an
input to an output.

It is also possible to loop back onto the input of
the same block.

However, all these actions are dependent on the identity of the
types of connection. To find the type of a connection, leave the cursor on the
connection for 1 second to allow time for the information bubble to appear. The
line of the wire will differ depending on the type of connection. Different
types of data are transmitted on each type of connection (for example, digital
data (continuous black line), signed integers between -32768 and + 32767
(double black line), status tokens (twisted black lines)). The inputs and
outputs are also categorised by type. One input and one output of the same type
are connected implicitly on a link of the same type. An input and one (or more)
output(s) of different types cannot be connected on one link.
To make it
easier to draw links, there is a "magnetic" zone around each connection. As
soon as the cursor is in this zone, it changes shape (star-shaped) and is
automatically positioned in the centre of this zone (see output connection of
block B00).

- Input/output units: The input/output units represent the
inputs and outputs of the controller as well as its extensions. The input units
are on the left of the grid and the output units are on the right. Some IN type
blocks can be placed in the input units, whilst the OUT blocks can be placed in
the output units.
To move an empty output unit, simply click on it and
Drag/Drop. When a block is placed on a unit, it can be moved by clicking in the
field of the unit not covered by the block (the blue field).
Back to Contents
-
When the programmer wants to download his program to the target PLC,
he simply has to activate the command "Write to the controller", which can be
accessed via the Controller menu. However he must check that the target is
connected to the host (PC).
Back to Contents
-
To check that a program will execute what the user wants, and before
downloading it to a controller, it is possible to simulate the execution of the
program.
After creating a diagram in the wiring sheet (Edit window), its execution can
be checked using Simulation and Monitoring modes.
- Simulation: This function is used
to display, in the Edit, Supervision and Front Panel windows, the states of the
outputs and parameters of the function blocks of the program corresponding to
the chart contained in the wiring sheet and simulated on the host (PC).
Each user action on the chart has a corresponding simulation whose results are
displayed in the windows. The current value of each link is displayed close to
the output of the function block.
The following functions are inaccessible
during the whole of the Simulation:
- Graphic program editing
- Reading,
writing, comparing and clearing the controller program
- Monitoring
-
Modification of the communication parameters
The buttons in the Front
Panel window function in the same way as those on the actual front panel of the
controller. The function block outputs can be "forced" to test the behaviour of
the program under particular conditions. There are two forcing modes for the
function block outputs: a "temporary" mode (left mouse click on the link
exiting this output) and a permanent mode (contextual menu of the link exiting
the output and "Force and maintain"). In the latter case, a dialogue window
opens: Digital forcing if it is a digital output or
Analog forcing if it is an analog output. The forced
values are highlighted in the Edit and Supervision windows by the background
changing colour.
- Monitoring: This function is used for
a cyclical display (in the Edit, Supervision and Front Panel windows) of the
host, the program statuses, the I/O and the parameters (including the output
parameters) of the function blocks of a program running on the
controller. The various windows are updated each cycle. The current value
of each link is displayed close to the output of the function block.
As
with simulation, the buttons in the front panel window and the function block
links can be "forced" to test the behaviour of the program under particular
conditions.
Monitoring mode is independent of the "Controller On/Off" function. If the controller is
off, only modifications to the parameters and the inputs on the buttons of the
controller front panel are displayed. The following functions are inaccessible
during the whole of Monitoring mode:
- Graphic program editing
-
Reading, writing, comparing and clearing the controller program
-
Simulation
- Modification of the communication parameters
Monitoring Mode & controller "On":
The programmer can only enter this
mode if the controller:
- Contains a program for which the modification of
parameters is not read/write protected by a password
- Contains a program
for which the modification of parameters is read/write protected by a password,
for which the programmer knows the password.
The HMI checks whether there
is a password protecting the program and the parameters, or the controller
parameters. If there is, the HMI displays the Password
dialogue window. The chart in the Edit window must match the program in the
controller. The HMI starts the "Compare the
data in the controller with the program" function. If there is a
difference, the HMI returns to edit mode.
Monitoring mode & controller
"Off":
CLSM2 returns to edit mode. The current status of the function block
parameters is memorised. The application has memorised the fact that one or
more of the parameters has been modified so that it can suggest that the
programmer saves the modifications at the end of the session.
Digital data can only have two states: ON or OFF. During simulation
and monitoring modes, the states of the outputs of the function blocks placed
on the simulation window and the monitoring window are indicated as ON or
OFF.
-
Back to Contents
-
To create shapes such as squares, ellipses, lines, images or "text",
simply select the shape you wish to draw (in the Draw
menu or using the icons in the toolbar) and draw the shape in the coloured
field in the edit or supervision windows.
It is possible to change the line
width (3 widths), the colour of the lines and the colour of the background.
To add text to a "text" type object, position the shape on the draw field
using the Draw | Text menu, then double-click on it.
Back to Contents