Logo in Detail Part 4 Techslides 2019-02-21 en
Logo in Detail Part 4 Techslides 2019-02-21 en
LOGO! in detail, part 4, is intended to show the reader useful examples for typical tasks of LOGO!.
All screenshots were taken of the current version of LOGO! Soft Comfort V8.2.
When the water level drops below the level I1, the drinking water supply (Q1) shall automatically be switched
on and when the water level has reached the level I2, the drinking water supply shall automatically be
switched off again.
I3 (Pump OFF)
I2
(drinking water
supply OFF)
I1
(drinking water
supply ON)
I4
P
(Pump OFF)
The schematic diagram (slide 5) shows clearly how many inputs and outputs are necessary to solve the task.
Alternatively the NOT function can be replaced by negating the S input of self-holding relay.
To complete the control circuit, it is necessary to connect the bocks with each other.
To obtain a better overview of the circuit diagram, LOGO! Soft Comfort offers several ways of embedding
text.
The program is completed with insertion of function blocks and their connections. To get a clear view of
the program, it is possible to replace or move the function blocks, lines, and text fields.
The cursor tool has to be selected to move elements like function blocks, lines, and text fields.
To design everything more neatly and more clearly, the individual function blocks can be aligned vertically
or horizontally.
Beside comment dialogues, there are also parameters dialogues. Here the user is able to preset parameters
of each function block.
Additionally there is the possibility to change and check all block attributes centrally.
For the documentation all used constants, basic functions and special functions can be displayed.
Further information about the program can be viewed via the information window. It is located at the bottom
window frame by default.
Program information can be entered via File – Properties in the LOGO! Setting dialogue – Additional Info.
They appear in the program printout in the footer.
The program including the entered plant data can be viewed via File – Print Preview.
Via Properties… in the print preview window documents which shall be printed can be selected. By default
the circuit diagram, the parameter list and the list of connection names are selected.
If the program becomes bigger or more complex, it makes sense to divide the circuit diagram onto more
pages.
After configuration and documentation, the program testing via offline simulation is the next step.
The simulation tool allows to test the program even without using a LOGO!
To test the program the button has to be selected. In this offline simulation mode a tool bar for monitoring
and controlling (like I1, I2 and Q1) will be located at the bottom of the window frame. By clicking on the
buttons (like I1 or I2) at the tool bar, it is
possible to change the status of the inputs.
the signal run can be tracked via the color
change from blue (low) to red (high signal).
As an additional program testing feature, each input can be allocated to a certain switch function. Via the
context menu (right mouse key) of an input block, it is possible to change the input mode. Choosing
frequency mode inputs can be adjusted in Hz.
To protect the program and the user’s know how, a valid 10-digit password can be set for the program.
This password protects the program only on LOGO!. The program is not deletable, changeable or viewable
without the password. To upload a password protected program on the PC, the password is necessary as
well. To delete an assigned password, enter the Old password and leave the New password empty.
To use a program for previous LOGO!s, the used LOGO! has to be selected via Tools – Select Hardware…
After transferring the program, LOGO! has to be set to RUN-mode. Now the program can be tested in real
life.
Start program?
Start
Program
Setup
Network Yes No
Diagnostics
Card
Q1
I3
I2
I1
I4 P
Function description:
A bottle filling conveyor shall be controlled. The conveyor control is able to switch on and off via I1. When the
conveyor control is switched on, the conveyor motor Q1 runs. The motor can be switched off via I3 at any
time. When the sensor I2 detects a bottle, the motor has to be switched off for 3 seconds (filling time). After
filling the motor shall run again.
I2 (filling)
I3 (OFF)
Q1 I1 (ON)
I2 (filling)
Step 1: I3 (OFF)
The conveyor control is able to switch on and off via
I1. When the conveyor control is switched on, the
conveyor motor Q1 runs. The motor can be switched
Q1 I1 (ON)
off via I3 at any time.
I2 (filling)
Step 2: I3 (OFF)
When the sensor (I2) detects a bottle, the motor has to
be switched off for 3 seconds (filling time). After filling
the motor shall run again.
Q1 I1 (ON)
Automatic lightings are often used in buildings. At the sunset some parts of a building are getting shaded
earlier than others. Therefore these parts need to light up earlier. Additionally at sunrise the lighting needs to
switch off later.
The astronomical clock in LOGO! Soft Comfort offers a new function, called ‘time offset’, to solve this task.
Shaded section of building, e.g. backside
At an animal breeding, the animal outlet flap shall automatically open at sunrise and close after sunset.
Before closing, there has to be a sound to signal the animal that the closing process starts soon.
At an animal breeding, the animal outlet flap shall automatically open at sunrise and close after sunset.
Before closing, there has to be a sound to signal the animal that the closing process starts soon.
30 minutes after the signal sound, the closing shall start. Therefore a
time delay has to be set via time offset (-30).
The system clock of LOGO! can also be set via the software. The LOGO! has to be connected to the PC.
Alternatively it is possible to set the time directly on the device.
There is also the possibility to configure an automatic summer / winter clock change via the software or
directly on the device. As well the LOGO! has to be connected to the PC to set the time via the software.
Use Tools – Transfer – Set LOGO! TD Power-on Screen… to configure a power-on screen for the LOGO!
TDE.
Use Tools – Transfer – Access control for assigning a password for Remote -, LOGO! App -, Web server -
and LOGO! TDE access.
Via the Network Project, devices can be connected to a network. Devices can be added via Add New Device.
Up to 16 participants are able to display and configure.
Addable devices:
LOGO! (also as Slave)
(8.FS4, 0BA8, 0BA7)
S7 compatible device
ModBus compatible device
HMI
LOGO! TDE
Direct connecting of inputs and outputs between multiple devices via drag and drop. It is possible to display
up to 3 programs at the same time via the buttons .
Using LOGO! Soft Comfort V8, User-Defined functions (UDF) can be created and saved to a library. Program
sections that are repeated can easily be inserted with a UDF as a function block into the circuit program,
which significantly simplifies programming. It is possible to create a UDF from an existing circuit program or
design a completely new with the UDF editor.
To create a new User-Define function, select in the menu of LOGO! Soft Comfort V8 File – New – UDF
diagram (UDF).
To add the UDF to the library, navigate in the menu to Tools – Options and select the item UDF. Via the
button Add UDF, the UDF can be added to the library.
If the UDF displays in the program a green mark, the UDF is up-to-date. If the UDF displays a red warning
signal, the UDF has been edited and an update is necessary.
To insert or remove constants and function blocks in a UDF, open with right-click on the UDF block the
shortcut menu and select the item Expand UDF to display the details of the UDF.
Alternatively the UDF file (with the ending .Ima) can also be opened
in the menu via File – Open…
This example uses two LOGO! Basic devices which are both configured as master. One master functions as
server, the other as client.
Assign the IP address and the subnet mask of the server. Afterwards
create a new connection with a right-click on Ethernet Connections and
add a connection via Add server connection – S7 Connection.
Then create the program. In this example the value of analog input AI1 and the frequency at I3 is written to
the client. An input frequency is read by the client at the same time.
Now edit the VW assignment. Select Tools – Parameter VM Mapping… and enter the parameters in the
table.
Create a new program for the client device. After opening a new one, select Tools – Ethernet Connections…
and assign the IP address and subnet mask of the client.
Create the program by receiving the analog value and the input frequency from the server and by sending an
input frequency to the server.
Receive analog value from server
Parameterize the analog network
inputs to receive the values. Enter the
local addresses which are assigned in
the table for data transfer.
Receive frequency from server
At the end create the parameter VM assignment and specify in the table for data transfer that the input
frequency is written to VW 5 of the server.
This example uses two LOGO! Basic devices of which one functions as master and the other as slave.
Now create a program. To use inputs and outputs (analog or digital) form the basic device that has been
defined as slave, select the functions under Network in the instruction tree.
After setting all inputs and outputs of the slave device, the inputs or outputs are displayed in green.
Additionally, the IP addresses and used device versions
are displayed near to the input or output block.
DF FA S MP PRO&SW 1
90475 Nürnberg
www.siemens.com/logo
Subject to changes and errors. The information given in this document only contains general descriptions and/or performance features which may
not always specifically reflect those described, or which may undergo modification in the course of further development of the products. The requested
performance features are binding only when they are expressly agreed upon in the concluded contract.
All product designations, product names, etc. may contain trademarks or other rights of Siemens AG, its affiliated companies or third parties.
Their unauthorized use may infringe the rights of the respective owner.
siemens.com