0% found this document useful (0 votes)
61 views62 pages

Logo in Detail Part 4 Techslides 2019-02-21 en

logo 8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views62 pages

Logo in Detail Part 4 Techslides 2019-02-21 en

logo 8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 62

Innovative switching and control

LOGO! 8 in detail part 4


Tasks and features

Unrestricted © Siemens 2019 siemens.com/logo

Unrestricted © Siemens 2019


LOGO! in detail – slides overview

The LOGO! in detail are split up in 4 parts as follows:

LOGO! in detail part 1


• Installation and overview of the function blocks

LOGO! in detail part 2


Usage at the device and handling of the software

LOGO! in detail part 3


• Knowing how

LOGO! in detail part 4


• Tasks and features

Unrestricted © Siemens 2019


Page 2 8/22/2018
LOGO! in detail – agenda

1. Preface 5. Features – Setting the LOGO! clock


2. Typical tasks for LOGO! – Cistern Control 6. Features – Enable analog inputs (AI)
Insert constants, basic functions, and special functions 7. Features – Setting Power-on Screen for LOGO! TDE
Connecting function blocks 8. Features – LOGO! Access control
Insert text fields 9. Features – LOGO! network view
Moving elements 10. Features – Creating and managing User-Defined functions
Aligning elements 11. Features – Master / master communication
Parameterization of blocks 12. Features – Master / slave communication
Formatting texts
Documentation
Program testing
Assign program password
Select LOGO! Version
Starting LOGO!
3. Typical tasks for LOGO! – Conveyor Control
4. Typical tasks for LOGO! – Astronomical clock with time offset
Example 1: Automatic lighting with shaded space
Example 2: Animal breeding

Unrestricted © Siemens 2019


Page 3 8/22/2018
LOGO! in detail – preface

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.

The download can be found via the following link


https://w3.siemens.com/mcms/programmable-logic-
controller/en/logic-module-logo/demo-software/Pages
/Default.aspx

Unrestricted © Siemens 2019


Page 4 8/22/2018
Typical tasks for LOGO! – Cistern Control

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.

Q1 (drinking water supply)

I3 (Pump OFF)

I2
(drinking water
supply OFF)
I1
(drinking water
supply ON)

I4
P
(Pump OFF)

Unrestricted © Siemens 2019


Page 5 8/22/2018
Cistern Control – Insert constants, basic functions, and
special functions

The schematic diagram (slide 5) shows clearly how many inputs and outputs are necessary to solve the task.

All necessary input, output, marker,


constant (high, low) blocks, and all
basic and special functions can be
chosen via the instructions tree
structure on the left side of the
software surface.

Drag and drop all required constants


into the Diagram Editor.

Unrestricted © Siemens 2019


Page 6 8/22/2018
Cistern Control – Insert constants, basic functions, and
special functions

Which basic functions are necessary to solve the task?

After placing both inputs I1 and I2 and


the output Q1 on the Diagram Editor
a basic function (NOT) is necessary.
Like in the first step, the basic functions
can be added via drag and drop.

Unrestricted © Siemens 2019


Page 7 8/22/2018
Cistern Control – Insert constants, basic functions, and
special functions

Which special functions are necessary to solve the task?

A latching relay is necessary to set the


value Q1 (open) till the water reaches
the I2.

Unrestricted © Siemens 2019


Page 8 8/22/2018
Cistern Control – Insert constants, basic functions, and
special functions

Alternatively the NOT function can be replaced by negating the S input of self-holding relay.

This can be done via the content


menu of the digital input (right
mouse click – Invert connector)
or via double click.

Unrestricted © Siemens 2019


Page 9 8/22/2018
Cistern Control – Connecting function blocks

To complete the control circuit, it is necessary to connect the bocks with each other.

Usually after placing a block, it is possible to


draw the connection line with the cursor. If a
different mode is selected, change the mode
to the selection mode or connect mode.

To draw a connection line move the cursor on


the connection pin of a block (a small blue box
will be shown) and click the left mouse key.
While holding move the cursor to the next pin.

Unrestricted © Siemens 2019


Page 10 8/22/2018
Cistern Control – Insert text fields

To obtain a better overview of the circuit diagram, LOGO! Soft Comfort offers several ways of embedding
text.

Add a comment to each block


in the program via Block
Properties…(right click) or
double click.

(All ways of embedding text


are described in Detail in
LOGO! in detail Part 3)

Unrestricted © Siemens 2019


Page 11 8/22/2018
Cistern Control – Moving elements

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.

Unrestricted © Siemens 2019


Page 12 8/22/2018
Cistern Control – Aligning elements

To design everything more neatly and more clearly, the individual function blocks can be aligned vertically
or horizontally.

First the elements have to be


selected to align them. Via the
buttons or the selected
elements will be aligned
vertically or horizontally.

Unrestricted © Siemens 2019


Page 13 8/22/2018
Cistern Control – Parameterization of blocks

Beside comment dialogues, there are also parameters dialogues. Here the user is able to preset parameters
of each function block.

Right click on a function block


and select Block Properties…
Alternatively double click on
The function block.

In the parameter dialogue,


addresses can be allocated.
Only addresses which are
available are displayed.

Unrestricted © Siemens 2019


Page 14 8/22/2018
Cistern Control – Parameterization of blocks

Additionally there is the possibility to change and check all block attributes centrally.

Edit – Block Properties (All Blocks)…

Unrestricted © Siemens 2019


Page 15 8/22/2018
Cistern Control – Formatting texts

Users can format comments and text fields.

Right click on text


and select Font…
Or double click

Unrestricted © Siemens 2019


Page 16 8/22/2018
Cistern Control – Documentation

For the documentation all used constants, basic functions and special functions can be displayed.

Via Edit – Go to block all used blocks can


be displayed. The window shows the
information about block number and
block type and their comments. Blocks
can be located by searching for their
names or clicking on their icon in the list.
The selected block will be highlighted in
the diagram editor.

Unrestricted © Siemens 2019


Page 17 8/22/2018
Cistern Control – Documentation

Further information about the program can be viewed via the information window. It is located at the bottom
window frame by default.

The information window can be added


via View – Info Window or alternatively
via F4 key. In the information window
the used resources are displayed with
current date and time.
LOGO! has to be connected to the PC.

Unrestricted © Siemens 2019


Page 18 8/22/2018
Cistern Control – Documentation

Program information can be entered via File – Properties in the LOGO! Setting dialogue – Additional Info.
They appear in the program printout in the footer.

Unrestricted © Siemens 2019


Page 19 8/22/2018
Cistern Control – Documentation

The program including the entered plant data can be viewed via File – Print Preview.

Unrestricted © Siemens 2019


Page 20 8/22/2018
Cistern Control – Documentation

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.

Unrestricted © Siemens 2019


Page 21 8/22/2018
Cistern Control – Documentation

If the program becomes bigger or more complex, it makes sense to divide the circuit diagram onto more
pages.

Unrestricted © Siemens 2019


Page 22 8/22/2018
Cistern Control – Program testing

After configuration and documentation, the program testing via offline simulation is the next step.

Unrestricted © Siemens 2019


Page 23 8/22/2018
Cistern Control – Program testing

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).

If a LOGO! is connected to the PC, a online


simulation is also possible via the offline
button . So a download of the program
to the LOGO! is not necessary.

Unrestricted © Siemens 2019


Page 24 8/22/2018
Cistern Control – Program testing

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.

The value range for each analog inputs


can be preset as well. These parameters
can centrally be changed and reviewed via
Tools – Simulation parameters.

Unrestricted © Siemens 2019


Page 25 8/22/2018
Cistern Control – Assign program password

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.

If the password has been lost and the


user wants to reuse this LOGO!, the
password has to be entered incorrectly
three time and the program is
automatically deleted.

Alternatively Tool – Transfer – Clear


User Program and Password (the
LOGO! has to be connected to the PC)

Unrestricted © Siemens 2019


Page 26 8/22/2018
Cistern Control – Select LOGO! version

To use a program for previous LOGO!s, the used LOGO! has to be selected via Tools – Select Hardware…

Every LOGO! generation can be


selected via Hardware type – Type.
Choosing a Type, all resources of
the selected LOGO! version are
displayed.

Unrestricted © Siemens 2019


Page 27 8/22/2018
Cistern Control – Starting LOGO!

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

Unrestricted © Siemens 2019


Page 28 8/22/2018
Typical tasks for LOGO! – Conveyor control

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)

Unrestricted © Siemens 2019


Page 29 8/22/2018
Typical tasks for LOGO! – Conveyor control

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.

Unrestricted © Siemens 2019


Page 30 8/22/2018
Typical tasks for LOGO! – Conveyor control

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)

Unrestricted © Siemens 2019


Page 31 8/22/2018
Typical tasks for LOGO! – Astronomical clock with time offset
Example 1: Automatic lighting with shaded space

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

Time offset properties:


Sunrise offset ‘+30 minutes’ means that the section will be light up till
30 minutes after sunrise.
Sunset offset ‘-30 minutes’ means that the section will be light up 30
minutes before sunset.

Unrestricted © Siemens 2019


Page 32 8/22/2018
Typical tasks for LOGO! – Astronomical clock with time offset
Example 2: Animal breeding

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.

The opening process shall start at sunrise. Therefore a time delay


is not necessary and the time offset has to be set to 0 minutes.

the outlet flap opening process of the stable at sunrise

Unrestricted © Siemens 2019


Page 33 8/22/2018
Typical tasks for LOGO! – Astronomical clock with time offset
Example 2: Animal breeding

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 outlet flap closing process of the stable at sunset

Unrestricted © Siemens 2019


Page 34 8/22/2018
Features – Setting the LOGO! clock

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.

Unrestricted © Siemens 2019


Page 35 8/22/2018
Features – Setting the LOGO! clock

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.

Depending on the chosen region,


the time will change automatically.

Unrestricted © Siemens 2019


Page 36 8/22/2018
Features – Enable analog inputs (AI)

The AI position can be enabled via File – Properties… - I/O settings.

Enable none, 2 or 4 AIs:

2 AIs: Only AI1 and AI2 corresponding to input terminals I7


and I8 are available for use in the circuit program.

4 AIs: Additionally, AI3 and AI4 corresponding to input I1


and I2 are available for use.

To ensure compatibility with older devices, enable 2 AIs.

Unrestricted © Siemens 2019


Page 37 8/22/2018
Features – Setting Power-on Screen for LOGO! TDE

Use Tools – Transfer – Set LOGO! TD Power-on Screen… to configure a power-on screen for the LOGO!
TDE.

Unrestricted © Siemens 2019


Page 38 8/22/2018
Features – LOGO! Access control

Use Tools – Transfer – Access control for assigning a password for Remote -, LOGO! App -, Web server -
and LOGO! TDE access.

Unrestricted © Siemens 2019


Page 39 8/22/2018
Features – LOGO! network view

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

Unrestricted © Siemens 2019


Page 40 8/22/2018
Features – LOGO! network view

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 .

Unrestricted © Siemens 2019


Page 41 8/22/2018
Features – Creating and managing User-Defined functions
(UDF) with LOGO!8

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 an UDF from an existing circuit


program, select the requested section, click
right anywhere and choose create UDF.

Unrestricted © Siemens 2019


Page 42 8/22/2018
Features – Creating and managing User-Defined functions
(UDF) with LOGO!8

The UDF editor is opened now with the selected


selected section of the circuit program. LOGO!
Soft Comfort V8 creates at the left and right edit
area of the UDF editor automatically an input
and output.

After creating, save as an UDF.

Unrestricted © Siemens 2019


Page 43 8/22/2018
Features – Creating and managing User-Defined functions
(UDF) with LOGO!8

To create a new User-Define function, select in the menu of LOGO! Soft Comfort V8 File – New – UDF
diagram (UDF).

Programming in the UDF editor is the same as in


the function block diagram editor.

Unrestricted © Siemens 2019


Page 44 8/22/2018
Features – Creating and managing User-Defined functions
(UDF) with LOGO!8

To edit UDF properties, open via right-click in


the UDF editor the shortcut menu and select
the item Edit UDF properties…

Alternatively via Edit – Edit UDF properties…

Unrestricted © Siemens 2019


Page 45 8/22/2018
Features – Creating and managing User-Defined functions
(UDF) with LOGO!8

In the dialog window that opens, can be assigned in the “I/O-specific”


tab for the UDF a name, a password , as well as connector names
For the inputs and outputs.

Unrestricted © Siemens 2019


Page 46 8/22/2018
Features – Creating and managing User-Defined functions
(UDF) with LOGO!8

In the “parameter-specific” tab it is possible to specify the parameters


of the function blocks used in the UDF.
If the UDF is used afterwards in a program, the specified parameters
of the UDF can be accessed for example as a parameter that is
Displayed in a text message which can be edited.

To insert a new parameter, clock on a block, choose the parameter


and click on Add. With the button Remove inserted parameters can
be removed at any time. For each specified parameter additionally
a name can be assigned in the Identifier tab.

Unrestricted © Siemens 2019


Page 47 8/22/2018
Features – Creating and managing User-Defined functions
(UDF) with LOGO!8

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.

As soon as the UDF have been added to the library, the


UDF block is immediately displayed in the instructions
tree and can be used in the circuit program.

Unrestricted © Siemens 2019


Page 48 8/22/2018
Features – Creating and managing User-Defined functions
(UDF) with LOGO!8

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.

If the UDF displays a red question mark, the UDF is no


longer available and has to be imported again to the UDF
library.

Unrestricted © Siemens 2019


Page 49 8/22/2018
Features – Creating and managing User-Defined functions
(UDF) with LOGO!8

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…

Unrestricted © Siemens 2019


Page 50 8/22/2018
Features – Master / master communication

This example uses two LOGO! Basic devices which are both configured as master. One master functions as
server, the other as client.

Start by opening a new program. Select Tools – Ethernet


connections… to create a connection. After creating a new
program, click on Tools – Ethernet Connections…

Unrestricted © Siemens 2019


Page 51 8/22/2018
Features – Master / master communication

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.

Configure the properties of the connection via double-click on the created


connection. The new connection displays as a new tab.

Unrestricted © Siemens 2019


Page 52 8/22/2018
Features – Master / master communication

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.

Configure the properties of the analog network input via double


click on it. The value is read in from the variables. The VW
Address is 5 as defined in the client connection

Unrestricted © Siemens 2019


Page 53 8/22/2018
Features – Master / master communication

Now edit the VW assignment. Select Tools – Parameter VM Mapping… and enter the parameters in the
table.

Unrestricted © Siemens 2019


Page 54 8/22/2018
Features – Master / master communication

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.

To create a new client connection, click right on Ethernet Connections and


select add client connection – S7 Connection.

Unrestricted © Siemens 2019


Page 55 8/22/2018
Features – Master / master communication

Configure the properties of the client connection.

In the table for data transfer, it is possible to specify


how many data (length) are to be sent or received
from the server, and which local and remote
addresses they should have.
In this example 4 bytes (2 words, VW 0 and VW 2)
are read by the server and 2 bytes (1 word, VW 5)
is written to the server.

Data Transfer direction:


Read: Local  Remote
Write: Local  Remote

Unrestricted © Siemens 2019


Page 56 8/22/2018
Features – Master / master communication

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

Send frequency to server

Unrestricted © Siemens 2019


Page 57 8/22/2018
Features – Master / master communication

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.

The settings for a master / master communication have now been


preset and the functions are available.

Unrestricted © Siemens 2019


Page 58 8/22/2018
Features – Master / slave communication

This example uses two LOGO! Basic devices of which one functions as master and the other as slave.

Select Tools – Transfer – Configure Master/Slave Mode


and set the addresses and the mode of the devices.

(The LOGO! Basic devices have to be connected to the


computer)

Unrestricted © Siemens 2019


Page 59 8/22/2018
Features – Master / slave communication

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.

Select a network input or output (analog or digital) and parameterize as follows


For example a digital network input:

Select Remote device and enter the IP


address of the slave. Depending on
the used device, the Device type has
to be set to the <device version> Slave

Unrestricted © Siemens 2019


Page 60 8/22/2018
Features – Master / slave communication

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.

Unrestricted © Siemens 2019


Page 61 8/22/2018
LOGO! 8 in detail part 4 - Tasks and features
Thank you for your attention!

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

Unrestricted © Siemens 2019


Page 62 8/22/2018

You might also like