Manual en US
Manual en US
Manual en US
___________________
Preface
___________________
Getting started with LOGO! 1
___________________
LOGO! installation and
wiring 2
___________________
Programming LOGO! 3
___________________
LOGO! functions 4
LOGO! ___________________
Web server 5
___________________
UDF (User-Defined
Function) 6
Manual
___________________
Data log 7
___________________
Configuring LOGO! 8
___________________
Using memory cards 9
___________________
Security 10
___________________
LOGO! software 11
___________________
Applications 12
___________________
Technical data A
___________________
Determining the cycle time B
___________________
LOGO! without display
("LOGO! Pure") C
___________________
LOGO! menu structure D
___________________
Order numbers E
___________________
Abbreviations F
This manual applies to LOGO! 0BA8 device series
only.
03/2015
A5E33039675 - AB
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
task in accordance with the relevant documentation, in particular its warning notices and safety instructions.
Qualified personnel are those who, based on their training and experience, are capable of identifying risks and
avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
Note the following:
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
documentation. If products and components from other manufacturers are used, these must be recommended
or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and
maintenance are required to ensure that the products operate safely and without any problems. The permissible
ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
With LOGO! you have acquired a logic module that meets the stringent quality requirements
of ISO 9001.
You can use LOGO! in many fields of applications. Due to its high functionality and easy
operation, LOGO! offers you the utmost efficiency for almost any application.
Guide
The manual contains the following chapters:
● Getting started with LOGO!
● LOGO! installation and wiring
● Programming LOGO!
● LOGO! functions
● Web server
● UDF (User-Defined Function)
● Data Log
● Configuring LOGO!
● Using memory cards
● Security
● LOGO! software
● Applications
LOGO!
Manual, 03/2015, A5E33039675 - AB 3
Preface
LOGO!
4 Manual, 03/2015, A5E33039675 - AB
Preface
Additional support
Additional support is available on the Siemens LOGO! Web site
(http://www.siemens.com/logo)
LOGO!
Manual, 03/2015, A5E33039675 - AB 5
Preface
Security information
Siemens provides products and solutions with industrial security functions that support the
secure operation of plants, solutions, machines, equipment and/or networks. They are
important components in a holistic industrial security concept. With this in mind, Siemens’
products and solutions undergo continuous development. Siemens recommends strongly
that you regularly check for product updates.
For the secure operation of Siemens products and solutions, it is necessary to take suitable
preventive action (e.g. cell protection concept) and integrate each component into a holistic,
state-of-the-art industrial security concept. Third-party products that may be in use should
also be considered. You can find more information about industrial security on the Internet
(http://www.siemens.com/industrialsecurity).
To stay informed about product updates as they occur, sign up for a product-specific
newsletter. You can find more information on the Internet
(http://support.automation.siemens.com).
Note
To protect LOGO!Soft Comfort from any undesired manipulation when your PC suffers
malicious attacks from the Internet, Siemens strongly recommends you to install a whitelist
tool such as McAfee Application Control 6.1 on the PC.
LOGO!
6 Manual, 03/2015, A5E33039675 - AB
Table of contents
Preface ................................................................................................................................................... 3
1 Getting started with LOGO! ................................................................................................................... 13
2 LOGO! installation and wiring ................................................................................................................ 25
2.1 Modular LOGO! setup .............................................................................................................27
2.1.1 Maximum LOGO! network setup ............................................................................................27
2.1.2 Maximum setup with expansion modules ...............................................................................29
2.1.3 Setup with different voltage classes .......................................................................................30
2.1.4 Compatibility ...........................................................................................................................31
2.2 Installing/removing LOGO! .....................................................................................................32
2.2.1 DIN rail mounting ....................................................................................................................33
2.2.2 Wall-mounting .........................................................................................................................35
2.2.3 Mounting the LOGO! TDE ......................................................................................................36
2.2.4 Labeling LOGO! ......................................................................................................................37
2.3 Wiring LOGO! .........................................................................................................................37
2.3.1 Connecting the power supply .................................................................................................38
2.3.2 Connecting the LOGO! TDE power supply .............................................................................40
2.3.3 Connecting LOGO! inputs .......................................................................................................40
2.3.4 Connecting outputs .................................................................................................................47
2.3.5 Connecting the Ethernet interface ..........................................................................................49
2.4 Putting into operation ..............................................................................................................50
2.4.1 Powering on LOGO!................................................................................................................50
2.4.2 Operating states ......................................................................................................................52
3 Programming LOGO! ............................................................................................................................ 55
3.1 Connectors ..............................................................................................................................56
3.2 Blocks and block numbers ......................................................................................................58
3.3 From circuit diagram to LOGO! program ................................................................................61
3.4 The four golden rules for operating LOGO! ............................................................................64
3.5 Configuring menu access protection for LOGO! .....................................................................65
3.6 Overview of LOGO! menus .....................................................................................................68
3.7 Writing and starting the circuit program ..................................................................................69
3.7.1 Selecting programming mode .................................................................................................69
3.7.2 The first circuit program ..........................................................................................................71
3.7.3 Circuit program input...............................................................................................................72
3.7.4 Assigning a circuit program name ..........................................................................................76
3.7.5 Password for circuit program protection .................................................................................77
3.7.6 Switching LOGO! to RUN mode .............................................................................................81
3.7.7 Second circuit program ...........................................................................................................85
3.7.8 Deleting a block ......................................................................................................................91
3.7.9 Deleting block groups .............................................................................................................92
LOGO!
Manual, 03/2015, A5E33039675 - AB 7
Table of contents
LOGO!
8 Manual, 03/2015, A5E33039675 - AB
Table of contents
LOGO!
Manual, 03/2015, A5E33039675 - AB 9
Table of contents
LOGO!
10 Manual, 03/2015, A5E33039675 - AB
Table of contents
LOGO!
Manual, 03/2015, A5E33039675 - AB 11
Table of contents
LOGO!
12 Manual, 03/2015, A5E33039675 - AB
Getting started with LOGO! 1
Here's LOGO!
LOGO! is a universal logic module made by Siemens that integrates:
● Controls
● Operator and display panel with background lighting
● Power supply
● Interface for expansion modules
● Interface for a micro SD card
● Interface for an optional text display (TDE) module
● Pre-configured standard functions, for example, on- and off-delays, pulse relay and
softkey
● Timers
● Digital and analog flags
● Inputs and outputs, according to the device type
LOGO! 0BA8 additionally integrates the following components:
● Interfaces for Ethernet communication
● FE (Functional Earth) terminal for connecting to earth ground
● One LED for indicating Ethernet communication status
LOGO!
Manual, 03/2015, A5E33039675 - AB 13
Getting started with LOGO!
LOGO!
14 Manual, 03/2015, A5E33039675 - AB
Getting started with LOGO!
Note
You can only use expansion modules of the same voltage as the LOGO! Base Module.
Mechanical encoding pins in the housing prevent you from connecting devices of a different
voltage class.
Exception: The interface on the left side of an analog module or communications module is
galvanically isolated. These types of expansion modules can therefore be connected to
devices of a different voltage class (Page 30).
A LOGO! TDE has two Ethernet interfaces. You can connect each interface to a Base
Module, a PC, or another LOGO! TDE.
Each LOGO! Base Module supports the following connections for the creation of the circuit
program, regardless of the number of connected modules:
• Digital inputs I1 to I24
• Analog inputs AI1 to AI8
• Digital outputs Q1 to Q20
• Analog outputs AQ1 to AQ8
• Digital flag blocks M1 to M64:
– M8: Startup flag
– M25: Backlight flag: LOGO! onboard display white
– M26: Backlight flag: LOGO! TDE white
– M27: Message text character set flag
– M28: Backlight flag: LOGO! onboard display amber
– M29: Backlight flag: LOGO! onboard display red
– M30: Backlight flag: LOGO! TDE amber
– M31: Backlight flag: LOGO! TDE red
• Analog flag blocks: AM1 to AM64
• Shift register bits: S1.1 to S4.8 (32 shift register bits)
• 4 cursor keys
• Blank outputs: X1 to X64
LOGO! 0BA8 additionally supports the display of the following network digital/analog inputs
and outputs if you have previously configured them in the circuit program in LOGO!Soft
Comfort V8.0 and downloaded the program to the 0BA8 device:
• 64 network digital inputs: NI1 to NI64
• 32 network analog inputs: NAI1 to NAI32
• 64 network digital outputs: NQ1 to NQ64
• 16 network analog outputs: NAQ1 to NAQ16
LOGO!
Manual, 03/2015, A5E33039675 - AB 15
Getting started with LOGO!
LOGO!
16 Manual, 03/2015, A5E33039675 - AB
Getting started with LOGO!
LOGO!
Manual, 03/2015, A5E33039675 - AB 17
Getting started with LOGO!
LOGO!
18 Manual, 03/2015, A5E33039675 - AB
Getting started with LOGO!
LOGO! AM2
LOGO!
Manual, 03/2015, A5E33039675 - AB 19
Getting started with LOGO!
LOGO! TDE
① Power supply
② Ethernet interfaces
The LOGO! TDE includes a wider display area than the LOGO! onboard display. It includes
four programmable cursor keys, four programmable function keys, an ESC key, and an
ENTER key. You use the Ethernet cable to connect from the Ethernet interface on the right
side of the LOGO! TDE to the Ethernet interface on the LOGO! Base Module.
Symbols
Version with display unit is equipped with 8 inputs, 4 outputs and 1 Ethernet interface.
Version without display unit is equipped with 8 inputs, 4 outputs and 1 Ethernet interface.
LOGO!
20 Manual, 03/2015, A5E33039675 - AB
Getting started with LOGO!
The digital module is equipped with 4 digital inputs and 4 digital outputs.
The digital module is equipped with 8 digital inputs and 8 digital outputs.
The analog module is equipped with 2 analog inputs or 2 analog outputs, according to
the device type.
Versions
The following LOGO! versions are available:
LOGO!
Manual, 03/2015, A5E33039675 - AB 21
Getting started with LOGO!
Expansion modules
The following expansion modules can be connected to LOGO!:
LOGO!
22 Manual, 03/2015, A5E33039675 - AB
Getting started with LOGO!
Note
You will find current approvals on the rating plate of the relevant module.
LOGO! is issued with the CE Certificate of Conformity. It is compliant with IEC 60730-1 and
IEC 61131-2 and interference-proof to EN 55011, Limit Class B.
Marine certification has been requested.
● ABS (American Bureau of Shipping)
● BV (Bureau Veritas)
● DNV (Det Norske Veritas)
● GL (Germanischer Lloyd)
● LRS (Lloyds Register of Shipping)
● Class NK (Nippon Kaiji Kyokai)
LOGO! modules are therefore suitable for use in industrial and residential areas. Use in
Class I, Division 2, Group A, B, C and D locations or in non-hazardous locations is supported.
ID for Australia
Our products carrying the label shown at the side are compliant with AS/NZS
2064:1997 (Class A) standard.
LOGO!
Manual, 03/2015, A5E33039675 - AB 23
Getting started with LOGO!
ID for Korea
Our products (except the LOGO! CSM modules) carrying the label shown at
the side are compliant with Korean standards.
WARNING
Explosion hazard
Do not disconnect equipment while the circuit is live or unless the area is konwn to be free
of ignitable concentrations.
Substitution of any components can impair suitability for Class I, Division 2. Combinations
of equipment are subject to investigation by the local authority having jurisdiction at the time
of the installation.
LOGO!
24 Manual, 03/2015, A5E33039675 - AB
LOGO! installation and wiring 2
General guidelines
Note the following guidelines for installing and wiring your LOGO!:
● Always ensure that the wiring of your LOGO! is compliant with current rules and
standards. Also, conform with all national and regional regulations when you install and
operate the devices. For information on standards and regulations that apply to your
specific case, contact your local authorities.
● Always switch off power before you wire or install/remove a module.
● Always use cables with appropriate conductor cross-sections for the relevant current. You
can wire LOGO! with cable conductor cross-sections (Page 37) from 1.5 mm2 to 2.5 mm2.
● Do not exceed the screw torque of the terminals. Range of torques: 0.5 Nm to 0.6 Nm.
● Keep the cabling as short as possible. If longer cables are necessary, use shielded
versions. Always route your cables in pairs; that it, one neutral conductor plus one phase
conductor or signal line.
● Always keep separate:
– The AC wiring
– High-voltage DC circuits with high-frequency switching cycles
– Low-voltage signal wiring
● Install wires with appropriate strain relief.
● Provide a suitable lightning surge arrester for cables installed in hazardous areas.
● Do not connect an external power supply in parallel to the output load of a DC output.
This could develop a reverse current at the output if you have not installed a diode or
similar barrier device.
● Be sure to use only certified components to ensure reliable functioning of equipment.
Note
Only skilled personnel who are familiar with and follow general engineering rules, relevant
regulations and standards must install LOGO! devices.
LOGO!
Manual, 03/2015, A5E33039675 - AB 25
LOGO! installation and wiring
WARNING
Attempts to install or wire LOGO! or related equipment with power applied could cause
electric shock or faulty operation of the equipment. Failure to disable all power to LOGO!
and related equipment during installation or removal procedures could result in death or
serious injury to personnel, and/or damage to equipment.
Always follow appropriate safety precautions and be sure to disconnect power from LOGO!
before attempting to install or remove LOGO! or related equipment.
Modules of a LOGO! are open facilities. This means that you must install LOGO! only in a
housing or cabinet.
Allow access to the housings or cabinets only with the use of a key or a tool and only by
authorized or approved personnel.
You can operate LOGO! from the front at any time.
LOGO!
26 Manual, 03/2015, A5E33039675 - AB
LOGO! installation and wiring
2.1 Modular LOGO! setup
LOGO!
Manual, 03/2015, A5E33039675 - AB 27
LOGO! installation and wiring
2.1 Modular LOGO! setup
are available. You can configure the static/dynamic connections as required, for example,
n static connections and 16-n dynamic connections. LOGO! supports a maximum of eight
static connections.
● A maximum of one TCP/IP Ethernet connection with the LOGO! TDE. A LOGO! TDE
module can connect with different Base Modules through IP address selection, but can
not communicate with more than one Base Module at the same time.
● A maximum of one TCP/IP Ethernet connection between a LOGO! Base Module and a
PC with LOGO!Soft Comfort V8.0 installed.
Note
You can only construct a LOGO! 0BA8 network topology using LOGO!Soft Comfort V8.0.
LOGO!
28 Manual, 03/2015, A5E33039675 - AB
LOGO! installation and wiring
2.1 Modular LOGO! setup
Maximum setup of a LOGO! without analog inputs onboard (LOGO! 24RCE/24RCEo and LOGO!
230RCE/230RCEo)
LOGO! Base Module, 4 digital modules and 8 analog modules (example)
For LOGO! 12/24RCE/12/24RCEo and LOGO! 24CE/24CEo modules, you can configure
whether the module uses zero, two or four of the four possible analog inputs. AI inputs are
numbered consecutively depending on how many you configure the LOGO! Base Module to
use. If you configure two inputs, they are numbered AI1 and AI2, and correspond to the I7
and I8 input terminals. Subsequent AI expansions modules would begin numbering at AI3. If
you configure four inputs, they are numbered AI1, AI2, AI3, and AI4, and correspond to I7, I8,
I1, and I2 in that order. Subsequent AI expansions modules would begin numbering at AI5.
See topics "Constants and connectors (Page 119)" and "Setting the number of AIs in LOGO!
(Page 275)".
LOGO!
Manual, 03/2015, A5E33039675 - AB 29
LOGO! installation and wiring
2.1 Modular LOGO! setup
Rules
You can only connect digital modules to devices of the same voltage class.
You can connect analog and communications modules to devices of any voltage class.
You can replace two similar DM8 expansion modules by one appropriate DM16 expansion
module (and vice versa) without having to change the circuit program.
Note
You can only replace two DM8 12/24R modules with one DM16 24R module if the power
supply is 24 VDC.
You can only replace two DM8 24R modules with one DM16 24R module if they use DC and
positive-voltage input.
LOGO!
30 Manual, 03/2015, A5E33039675 - AB
LOGO! installation and wiring
2.1 Modular LOGO! setup
2.1.4 Compatibility
You can only use the LOGO! TDE module with equipment series 0BA8. The LOGO! TDE is
fully compatible with LOGO! 0BA8.
The LOGO! TDE module provides two Ethernet ports for network connection and six-line text
display specifically for the LOGO! 0BA8 device.
All expansion modules (with the order number of 6ED1055-1XXXX-0BA2) are completely
compatible with the LOGO! Base Modules of equipment series 0BA8 and you can only use
them with equipment series 0BA8.
LOGO! 0BA8 supports micro SD cards only.
You cannot edit message texts from the LOGO! Base Module that contain any of the
following parameters:
● Par
● Time
● Date
● EnTime
● EnDate
● Analog input
● Digital I/O status
● Special characters (for example: ±, €)
You can only edit such message texts from LOGO!Soft Comfort.
LOGO!
Manual, 03/2015, A5E33039675 - AB 31
LOGO! installation and wiring
2.2 Installing/removing LOGO!
Dimensions
The LOGO! installation dimensions are compliant with DIN 43880.
LOGO! can be snap-mounted to 35 mm DIN rails according to EN 60715 or mounted on the
wall with two M4 screws.
LOGO! width:
● LOGO! TDE has a width of 128.2 mm.
● LOGO! 0BA8 Base Modules have a width of 71.5 mm.
● LOGO! expansion modules have a width of 35.5 mm (DM8...) or 71.5 mm (DM16...).
Note
The figures below show you an example of the installation and removal of a LOGO!
12/24RCE and a digital module. The measures shown apply to all other LOGO! Base
Module versions and expansion modules.
WARNING
Risk to life when you touch live parts
Death or serious injury can result when you touch live parts.
Always switch off power before you remove or insert an expansion module.
LOGO!
32 Manual, 03/2015, A5E33039675 - AB
LOGO! installation and wiring
2.2 Installing/removing LOGO!
Mounting
To mount a LOGO! Base Module and a digital module onto a DIN rail, follow these steps:
1. Hook the LOGO! Base Module onto the rail.
2. Push down the lower end to snap it on. The mounting interlock at the rear must engage.
3. On the right side of the LOGO! Base Module/LOGO! expansion module, remove the
connector cap.
4. Place the digital module onto the DIN rail on the right-hand side of the LOGO! Base
Module.
5. Slide the digital module towards the left until it contacts the LOGO! Base Module.
6. Using a screwdriver, push the interlock to the left. In its end position the slide interlock
engages in the LOGO! Base Module.
Note
Be sure to cover the expansion interface on the last expansion module.
LOGO!
Manual, 03/2015, A5E33039675 - AB 33
LOGO! installation and wiring
2.2 Installing/removing LOGO!
Removal
To remove LOGO! if you have installed only one LOGO! Base Module, follow these steps:
1. Insert a screwdriver into the eyelet at the bottom of the slide interlock and move the latch
downward.
2. Swing the LOGO! Base Module off the DIN rail.
To remove LOGO! if you have connected at least one expansion module to the LOGO! Base
Module, follow these steps:
1. Using a screwdriver, push the integrated slide interlock to the right.
2. Slide the expansion module off towards the right.
3. Insert a screwdriver into the eyelet at the bottom of the slide interlock and lever it
downward.
4. Swing the expansion module off the profile rail.
Repeat steps 1 to 4 for all other expansion modules.
Note
When removing modules, be sure to disengage the slide interlock of the module that
connects it to the next module. When removing multiple modules, it is easier to start with the
last module on the right side.
LOGO!
34 Manual, 03/2015, A5E33039675 - AB
LOGO! installation and wiring
2.2 Installing/removing LOGO!
2.2.2 Wall-mounting
Follow the instructions below to wall-mount LOGO! by means of two mounting slides and two
M4 screws (tightening torque 0.8 Nm to 1.2 Nm).
Note
When you do not wall-mount LOGO!, always keep the mounting slides in the factory default
positions, that is, within the data area given in the illustration above; otherwise, the mounting
slides may deform if they are exposed to hot and humid surroundings for a long term.
All dimensions in mm
LOGO!
Manual, 03/2015, A5E33039675 - AB 35
LOGO! installation and wiring
2.2 Installing/removing LOGO!
Note
Make sure you mount the LOGO! TDE vertically on a flat surface of an IP 65 or Type 4X/12
enclosure.
To prepare the mounting surface for the optional LOGO! TDE and mount it, follow these
steps:
1. Cut a 119 mm × 78.5 mm (tolerance: +0.5 mm) hole in the mounting surface.
LOGO!
36 Manual, 03/2015, A5E33039675 - AB
LOGO! installation and wiring
2.3 Wiring LOGO!
① Mounting brackets
② Mounting screws
③ Gasket
④ Cabinet door or control panel
(Thickness: 1.5 mm to 4 mm)
You can then connect the LOGO! TDE to the LOGO! Base Module through the Ethernet
interface.
In the case of expansion modules, you can use the rectangular areas for labeling the inputs
and outputs, for example. In this connection, you can enter a delta factor of +8 for the inputs
or +4 for the outputs if the LOGO! Base Module already has 8 inputs or 4 outputs.
LOGO!
Manual, 03/2015, A5E33039675 - AB 37
LOGO! installation and wiring
2.3 Wiring LOGO!
Note
Always cover the terminals after you have completed the installation. To protect LOGO!
adequately from impermissible contact to live parts, comply with local standards.
CAUTION
Expansion modules DM8 230R and DM16 230R must be operated with the same type of
power supply (DC or AC) as for the connected 230 V version of the LOGO! Base Module.
The same supply output "+/- "on DC power supplies or "N/L" on AC power supplies must
connect to the same phase on both the expansion module DM8/16 230R and the
connected LOGO! 230 .... Failure to follow the instructions could result in personal injury.
Note
A power failure might cause an additional edge triggering signal at the special functions. The
stored data will be from the last uninterrupted cycle.
LOGO!
38 Manual, 03/2015, A5E33039675 - AB
LOGO! installation and wiring
2.3 Wiring LOGO!
Connecting LOGO!
Connect LOGO! to the power supply as shown below, depending on whether your power
supply is DC or AC:
Note
LOGO! is a double-insulated switchgear. You must connect its FE terminal to earth ground.
LOGO!
Manual, 03/2015, A5E33039675 - AB 39
LOGO! installation and wiring
2.3 Wiring LOGO!
① Ethernet interfaces
② Power supply
• The power connection is non-polar. If you connect a DC power supply to the LOGO!
TDE, you can connect the positive supply wire or negative supply wire to either pin 1
or pin 2.
• Pin 3 must be connected to the ground.
Note
Siemens recommends that you protect the LOGO! TDE with a 0.5 A safety fuse on the
power supply.
Requirements
At the inputs you connect sensor elements such as: momentary pushbuttons, switches, light
barriers, daylight control switches etc.
LOGO!
40 Manual, 03/2015, A5E33039675 - AB
LOGO! installation and wiring
2.3 Wiring LOGO!
LOGO! 24RCE (AC) LOGO! 24RCE (DC) LOGO! 230RCE (AC) LOGO! 230RCE (DC)
LOGO! 24RCEo (AC) LOGO! 24RCEo (DC) LOGO! 230RCEo (AC) LOGO! 230RCEo (DC)
LOGO! DM8 24R (AC) LOGO! DM8 24R (DC) LOGO! DM8 230R (AC) LOGO! DM8 230R (DC)
Signal status 0 < 5 VAC < 5 VDC < 40 VAC < 30 VDC
Input current < 1.0 mA < 1.0 mA < 0.03 mA < 0.03 mA
Signal status 1 > 12 VAC > 12 VDC > 79 VAC > 79 VDC
Input current > 2.5 mA > 2.5 mA > 0.08 mA > 0.08 mA
LOGO! DM16 24R LOGO! DM16 24 LOGO! DM16 230R (AC) LOGO! DM16 230R (DC)
Signal status 0 < 5 VDC < 5 VDC < 40 VAC < 30 VDC
Input current < 1.0 mA < 1.0 mA < 0.05 mA < 0.05 mA
Signal status 1 > 12 VDC > 12 VDC > 79 VAC > 79 VDC
Input current > 2.0 mA > 2.0 mA > 0.08 mA > 0.08 mA
Note
LOGO! 230RCE/230RCEo and expansion module DM16 230R each contains two groups of
four inputs, for a total of eight. Within each group, you must operate all inputs on the same
phase. Different phases are only possible between the groups.
Example: I1 to I4 on phase L1, I5 to I8 on phase L2.
You must not connect the inputs of the LOGO! DM8 230R to different phases.
Sensor connections
Connecting glow lamps and two-wire proximity switches (Bero) to LOGO! 230RCE/230RCEo
or LOGO! DM8 230R (AC) and LOGO! DM16 230R (AC)
The figure below shows how you connect a switch with a glow lamp to LOGO!. The current
that flows through the glow lamp allows LOGO! to detect a "1" signal even though the switch
contact is not closed. If, however you use a switch that has the glow lamp fitted with a power
supply, this response does not occur.
LOGO!
Manual, 03/2015, A5E33039675 - AB 41
LOGO! installation and wiring
2.3 Wiring LOGO!
Take into account the quiescent current of any two-wire proximity switches that you use. The
level of the quiescent current of some two-wire proximity switches is high enough to trigger a
logical "1" signal at the LOGO! input. You should therefore compare the quiescent current of
the proximity switches with the technical data of inputs (Page 299).
Remedy
To suppress this response, use an X1/X2-type capacitor rated at 100 nF and 275 VAC. In a
destructive situation, this type of capacitor safely disconnects. You must choose the voltage
level for which the capacitor is rated such that it is not destroyed in the case of overvoltage!
At 230 VAC, the voltage between N and an input I(n) must not be greater than 40 V to
guarantee a "0" signal. You can connect approximately ten glow lamps to the capacitor.
Restrictions
Signal status transitions 0 → 1/1 → 0
After a 0 to 1 or 1 to 0 transition, the signal must remain constant at the input at least for the
duration of one program cycle, so that LOGO! can detect the new signal status.
The size of the circuit program determines the program execution time. The appendix
"Determining the cycle time (Page 327)" contains a benchmark test routine that you can use
to determine the current scan cycle time.
Note
Expansion modules do not have fast digital inputs.
LOGO!
42 Manual, 03/2015, A5E33039675 - AB
LOGO! installation and wiring
2.3 Wiring LOGO!
The inputs I1, I2, I7 and I8 provide digital inputs, and the inputs AI3, AI4, AI1 and AI2 provide
analog inputs, as described in the topic "Constants and connectors (Page 119)". AI3
corresponds to the input terminal I1; AI4 corresponds to I2; AI1 corresponds to I7; AI2
corresponds to I8. The use of AI3 and AI4 is optional. You configure your LOGO! to use
either two or four analog inputs as the topic "Setting the number of AIs in LOGO!
(Page 275)" describes.
When using inputs I1, I2, I7 and I8 as analog inputs, only the range from 0 to 10 VDC is
available.
Connecting a potentiometer to inputs I1, I2, I7 and I8
To allow you to achieve 10 V as the maximum value when you completely turn the
potentiometer once, you must connect a series resistor on the potentiometer's input side
regardless of the input voltage (see figure below).
We suggest the following sizes of potentiometers and associated series resistors:
When using a potentiometer and 10 V input voltage as the maximum value, you must ensure
that with a connected input voltage of 24 V, 14 V must release via the series resistor to
ensure a maximum supply of 10 V when you turn the potentiometer one full rotation. With a
voltage of 12 V, you can neglected this.
Note
The LOGO! AM2 expansion module provides additional analog inputs. The LOGO! AM2
RTD expansion module provides PT100/PT1000 inputs.
Always use twisted and shielded cables for analog signals, and keep these as short as
possible.
LOGO!
Manual, 03/2015, A5E33039675 - AB 43
LOGO! installation and wiring
2.3 Wiring LOGO!
Sensor connections
Connect sensors to LOGO! as shown below.
Connection example
LOGO!
44 Manual, 03/2015, A5E33039675 - AB
LOGO! installation and wiring
2.3 Wiring LOGO!
LOGO! 230....
Connection example
WARNING
Current safety regulations (VDE 0110, ... and IEC 61131-2, ... as well as cULus) do not
permit the connection of different phases to an AC input group (I1 to I4 or I5 to I8) or to the
inputs of a digital module.
LOGO!
Manual, 03/2015, A5E33039675 - AB 45
LOGO! installation and wiring
2.3 Wiring LOGO!
LOGO! AM2
The illustration above shows an example of four-wire current measurement and two-wire
voltage measurement.
Connecting a two-wire sensor to the LOGO! AM2
Wire up the two-wire sensor's connecting wires as follows:
1. Connect the sensor's output to connection U (0 V to 10 V voltage measurement) or to
connection I (0/4 mA to 20 mA current measurement) of the AM2 module.
2. Connect the plus connector on the sensor to the 24 V supply voltage (L+).
3. Connect the ground connection of the current output M (on the right side of the sensor, as
shown in the figure above) to the corresponding M input (M1 or M2) on the AM2 module.
LOGO!
46 Manual, 03/2015, A5E33039675 - AB
LOGO! installation and wiring
2.3 Wiring LOGO!
Note
Fluctuating analog values can occur if you do not mount/correctly mount the screening on
the connecting wire from the analog valuator device to the analog AM2 / AM2 RTD LOGO!
expansion module (encoder wire).
To avoid fluctuating analog values when using these expansion modules, take the following
measures:
• Use only shielded encoder wires.
• Shorten the encoder wire as much a possible. The encoder wire must not be more than
10 meters long.
• Clamp the encoder wire on one side only and clamp it only to the FE terminal on the
AM2/AM2 AQ/AM2 RTD expansion module.
• Connect ground on the encoder supply to the FE terminal on the expansion module.
• Avoid operating the LOGO! AM2 RTD expansion module with a power supply that is not
grounded (potential-free). If you cannot avoid this, connect the negative output/ground
output on the power supply to the shielding on the resistance thermometer's measuring
wires.
LOGO! ...R...
The LOGO! ...R... version includes relay outputs. The potential of the relay contacts is
isolated from the power supply and the inputs.
LOGO!
Manual, 03/2015, A5E33039675 - AB 47
LOGO! installation and wiring
2.3 Wiring LOGO!
Connecting
Connect the load to LOGO! ...R... as shown below:
Connecting
Connect the load to a LOGO! with solid-state outputs as shown below:
LOGO!
48 Manual, 03/2015, A5E33039675 - AB
LOGO! installation and wiring
2.3 Wiring LOGO!
LOGO! AM2 AQ
The illustration below shows an example of how to connect the voltage or current load.
① Earth
② Standard DIN rail
LOGO! ...E
The LOGO! ...E version is equipped with a 10/100 Mbit/s Ethernet RJ45 interface.
LOGO!
Manual, 03/2015, A5E33039675 - AB 49
LOGO! installation and wiring
2.4 Putting into operation
Connecting
You connect the FE terminal to earth ground, and connect a network cable to the Ethernet
interface.
① Earth ground
② Ethernet cable, for connecting to the Ethernet interface
③ Ethernet status LED
LOGO!
50 Manual, 03/2015, A5E33039675 - AB
LOGO! installation and wiring
2.4 Putting into operation
power supplies at the same time); if you do not do this, the system does not detect the
expansion module when you start up the LOGO! Base Module.
The following illustration shows all possible reactions of LOGO!:
LOGO!
Manual, 03/2015, A5E33039675 - AB 51
LOGO! installation and wiring
2.4 Putting into operation
You can also memorize four simple rules for starting LOGO! :
1. If neither LOGO! nor the inserted card contains a circuit program, the LOGO! Basic
displays the following:
2. LOGO! automatically copies the circuit program on the card to memory and overwrites
the existing circuit program.
3. If there is a circuit program in LOGO! or on the card, LOGO! adopts the operational state
it had prior to power-off. Versions without a display unit (LOGO!...o) automatically change
from STOP to RUN (LED changes from red to green).
4. If you have enabled retentivity for at least one function, or a function is permanently
retentive, LOGO! retains the current values at power-off.
Note
When a power failure occurs while you are entering a circuit program, the program in LOGO!
is missing after power is returned.
Before you modify the circuit program, save a backup copy of your original to a card or to a
computer using LOGO!Soft Comfort.
STOP RUN
• The display shows that the program is • Display: Screen mask for monitoring I/O and
empty when you start the program messages (after START in the main menu) or for
the parameter assignment menu
(except for LOGO!...o devices)
• Switching LOGO! to programming mode (except for LOGO!...o devices)
(except for LOGO!...o devices) • Switching LOGO! to parameter assignment mode
• LED is red (except for LOGO!...o devices)
(only for LOGO!...o devices) • LED is green
(only for LOGO!...o devices)
LOGO!
52 Manual, 03/2015, A5E33039675 - AB
LOGO! installation and wiring
2.4 Putting into operation
STOP RUN
Action of LOGO!: Action of LOGO!:
• The input data is not read. • LOGO! reads the status of the inputs.
• The circuit program is not executed. • LOGO! uses the circuit program to calculate the
• The relay contacts are permanently open status of the outputs.
or the solid-state outputs are switched off. • LOGO! switches the relay/solid-state outputs on
or off.
Note
After switching the power on, the system briefly switches through the outputs on the LOGO!
24CE/24CEo. With an open circuit, a voltage of > 8 V can occur for up to approximately 100
ms; when the circuit is loaded, this time reduces to a matter of microseconds.
LOGO!
Manual, 03/2015, A5E33039675 - AB 53
LOGO! installation and wiring
2.4 Putting into operation
LOGO!
54 Manual, 03/2015, A5E33039675 - AB
Programming LOGO! 3
Getting started with LOGO!
Programming refers to creating a circuit program from the LOGO! Base Module.
In this chapter you will learn how to use LOGO! to create the LOGO! circuit programs for
your application.
LOGO!Soft Comfort is the LOGO! programming software that you can use on your PC to
quickly and easily create, test, modify, save and print the circuit programs. The topics in this
manual, however, relate only to the creation of circuit programs on the actual LOGO! Base
Module. The programming software LOGO!Soft Comfort contains extensive online help.
Note
LOGO! versions without a display unit, that is, the LOGO! 24CEo, LOGO! 12/24RCEo,
LOGO! 24RCEo and LOGO! 230RCEo versions, do not have an operator panel and display
unit. These devices are ideal for use in small machine and process equipment engineering
systems for series production.
You do not program LOGO!...o versions directly on the device. Instead, you download a
program to the device from LOGO!Soft Comfort or from memory cards with the program you
created on another LOGO! device.
LOGO! versions without a display cannot write data to memory cards.
See Chapters "Using memory cards (Page 277)", "LOGO! software (Page 291)" and the
Appendix "LOGO! without display ("LOGO! Pure") (Page 329)" for more information.
A small example in the first part of this chapter introduces the operating principles of LOGO!:
● You will learn the meaning of two basic terms, namely the connector and the block.
● As the next step, you will create a circuit program based on a simple conventional circuit.
● Lastly, you will enter this program directly in LOGO!
It will take you only a few pages of this manual to store your first executable circuit program
in the LOGO! device. With suitable hardware (switches etc.), you will then be able to carry
out initial tests.
LOGO!
Manual, 03/2015, A5E33039675 - AB 55
Programming LOGO!
3.1 Connectors
3.1 Connectors
The illustration shows the conceptual usage of the inputs, not the actual physical markings
on the module.
The letters I followed by numerals identify the inputs. When you look at LOGO! from the front,
you can see the input terminals at the top. Only analog input modules LOGO! AM2 and AM2
RTD have the inputs at the bottom.
LOGO!
56 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.1 Connectors
The letters Q followed by numerals (on AM2 AQ, AQ plus numeral) identify the outputs. In
the figure, you can see the output terminals at the bottom.
Note
LOGO! can recognize, read and switch the I/O of all expansion modules regardless of their
type. The I/O numbers follow the installation order of the modules.
For LOGO! 0BA8 series, the following I/O and flag blocks are available for creating your
circuit program from LOGO!:
• I1 to I24, AI1 to AI8, Q1 to Q20, AQ1 to AQ8, M1 to M64, and AM1 to AM64
• 32 shift register bits S1.1 to S4.8
• 4 cursor keys C ,C ,C and C
• four function keys on the LOGO! TDE: F1, F2, F3, and F4
• 64 blank outputs X1 to X64
If you have previously configured any of the network digital or analog inputs/outputs NI1 to
NI64, NAI1 to NAI32, NQ1 to NQ64, and NAQ1 to NAQ16 in your circuit program from
LOGO!Soft Comfort, after downloading the circuit program to LOGO!, these network digital
or analog inputs/outputs are available in the LOGO!; however, you can not edit the rest of
the program from the LOGO!, except for the Par parameter.
See the "Constants and connectors (Page 119)" topic for more details.
The following applies to inputs I1, I2, I7 and I8 of LOGO! 12/24... and LOGO! 24CE/24CEo
versions: If you use I1, I2, I7 or I8 in the circuit program, this input signal is digital. If you use
AI3, AI4, AI1, or AI2, the input signal is analog. The numbering of the analog inputs is
significant: AI1 and AI2 corresponded to I7 and I8. With the addition of two new analog
inputs, these modules optionally use I1 for AI3 and I2 for AI4. See the graphical
representation in the topic on "Maximum setup with expansion modules (Page 29)". Also
note that you can also use I3, I4, I5, and I6 as fast digital inputs.
LOGO!'s connectors
The term connector refers to all connections and states in LOGO! .
The digital I/O status can be '0' or '1'. Status '0' means that the input does not carry a specific
voltage. Status '1' means that the input does carry a specific voltage.
The 'hi' and 'lo' connectors make it easier for you to create the circuit program. 'hi' (high) is
assigned the status '1', and 'lo' (low) is assigned the status '0'.
You do not have to use all of the connectors of a block. The circuit program automatically
assigns the unused connectors a status that ensures proper functioning of the relevant block.
For information on the meaning of the term "block", refer to the topic on "Blocks and block
numbers (Page 58)".
LOGO!
Manual, 03/2015, A5E33039675 - AB 57
Programming LOGO!
3.2 Blocks and block numbers
Connectors
LOGO!
58 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.2 Blocks and block numbers
Blocks
A block in LOGO! represents a function that is used to convert input information into output
information. Previously you had to wire the individual elements in a control cabinet or
terminal box. When you create the circuit program, you interconnect the blocks.
Logic operations
The most elementary blocks are the logic operations:
● AND
● OR
● ...
LOGO!
Manual, 03/2015, A5E33039675 - AB 59
Programming LOGO!
3.2 Blocks and block numbers
The figure above shows you three views of the LOGO! onboard display, which represent the
circuit program. As you can see, LOGO! interconnects the blocks using their numbers. To
scroll the circuit program, use the keys or .
LOGO!
60 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.3 From circuit diagram to LOGO! program
Note
An organizational program chart can be a valuable aid when you create the circuit program
because you can enter in this chart all the block numbers that LOGO! assigns.
By using the LOGO!Soft Comfort software to program LOGO!, you can directly create a
function chart of your circuit program. LOGO!Soft Comfort also allows you to assign 12-
character names to up to 100 blocks, and to view these on the LOGO! onboard display in
parameter assignment mode. See the topic "The four golden rules for operating LOGO!
(Page 64)".
LOGO!
Manual, 03/2015, A5E33039675 - AB 61
Programming LOGO!
3.3 From circuit diagram to LOGO! program
Note
Although you have four inputs available for logic operations (Page 124), most of the views
only show three inputs for reasons of clarity. You program this fourth input and assign
parameters just like you do with the other three inputs.
LOGO!
62 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.3 From circuit diagram to LOGO! program
Unused inputs
The circuit program automatically assigns the unused connectors a status that ensures
proper functioning of the relevant block.
In our example we shall use only two inputs of the OR block and two inputs of the AND block;
the third and fourth inputs are unused.
Now connect the I/O to LOGO! .
Wiring
Connect the switches S1 to S3 to the screw terminals of your LOGO! :
● S1 to connector I1 of LOGO!
● S2 to connector I2 of LOGO!
● S3 to connector I3 of LOGO!
The output of the AND block controls the relay at output Q1. The load E1 connects to output
Q1.
Wiring example
The following figure shows you the wiring, based on a 230 VAC version of LOGO!.
LOGO!
Manual, 03/2015, A5E33039675 - AB 63
Programming LOGO!
3.4 The four golden rules for operating LOGO!
LOGO!
64 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.5 Configuring menu access protection for LOGO!
Rule 4: Planning
● Before you start to create a circuit program, first create a design on paper or program
LOGO! directly using LOGO!Soft Comfort.
● LOGO! can only save complete and faultless circuit programs.
Note
The access level of the LOGO! TDE is operator by default, and you can switch it to
administrator with the password "LOGO".
The LOGO! TDE saves its access level before power-off if it connects to the same Base
Module after power-on. If you connect a different Base Module to it, however, the LOGO!
TDE restores its access level to operator after power-on.
The access level setting on the LOGO! TDE is independent of that on the Base Module.
LOGO!
Manual, 03/2015, A5E33039675 - AB 65
Programming LOGO!
3.5 Configuring menu access protection for LOGO!
LOGO!
66 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.5 Configuring menu access protection for LOGO!
5. Press or to move up and down the alphabet to select your letters (for example,
"LOGO").
LOGO!
Manual, 03/2015, A5E33039675 - AB 67
Programming LOGO!
3.6 Overview of LOGO! menus
* These menu commands are visible only with the access level of administrator.
For more details on the menus, refer to the Appendix "LOGO! Basic (Page 331)".
The following illustration shows an overview of LOGO! TDE menus:
LOGO!
68 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.7 Writing and starting the circuit program
LOGO!
Manual, 03/2015, A5E33039675 - AB 69
Programming LOGO!
3.7 Writing and starting the circuit program
The first line is highlighted. Press and to move the highlight bar up and down. Move it
to "①" and confirm with OK. LOGO! opens the programming menu.
The LOGO!'s programming menu is as shown below:
Here you can also move the highlight bar by pressing and . Move the highlight bar to
"②" and confirm with OK.
You are now in the circuit program window. Press OK to enter the program editing mode,
and the cursor appears as a solid square at the "NEW" block. The display now shows as
follows:
Confirm with OK and LOGO! now shows you the first output:
You are now in programming mode. Press and to select the other outputs. Now you
can start to edit your circuit program.
Note
Because you have not yet saved a password for the circuit program in LOGO!, you can
directly enter editing mode. When you select to edit the program after you have saved a
password-protected circuit program, LOGO! prompts you to enter a password and to confirm
it with OK. You can only edit the program after you have entered the correct password
(Page 77).
If you have created your circuit program in LOGO!, you can view it in the circuit program
window by moving cursor on the blocks. LOGO! can display a maximum of 31*31 blocks in
the circuit program window.
LOGO!
70 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.7 Writing and starting the circuit program
Circuit diagram
The corresponding circuit diagram shows as follows:
Translated into a LOGO! circuit program, you use an OR block to control relay K1 at output
Q1.
Circuit program
Switch S1 connects to input I1 and switch S2 connects to input I2. Inputs I1 and I2 connect
to the OR block connectors.
The corresponding layout of the circuit program in LOGO! shows as follows:
LOGO!
Manual, 03/2015, A5E33039675 - AB 71
Programming LOGO!
3.7 Writing and starting the circuit program
Wiring
The corresponding wiring shows as follows:
S1 switches input I1, while S2 switches input I2. The load connects to the relay Q1.
You will see a solid square at Q1, which is the cursor. The cursor indicates your current
position in the circuit program. You can move the cursor by pressing the , , and
keys. Now press the key. The cursor moves to the left.
At this point you enter only the first (OR) block. Press OK to select editing mode.
LOGO!
72 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.7 Writing and starting the circuit program
The cursor now appears as a flashing solid square. LOGO! offers you various options here.
Select GF (basic functions) by pressing the key until GF appears, and confirm with OK.
LOGO! now shows the first block from the list of basic functions:
Press OK to select editing mode, which causes LOGO! to display the cursor as a flashing
solid square. Now press or until the OR block appears on the display:
You have now entered the first block. LOGO! automatically assigns a block number to each
new block. If you assign a name to the block, LOGO! shows the block name instead of the
block number. You can assign a block name as required:
Press to move the cursor to "B1".
Press OK and the cursor is now displayed as a flashing solid square. Now you can press
and to list the alphabet, numbers and special characters, either in ascending or
descending order. For more information on the available character set, refer to Section
"Assigning a circuit program name (Page 76)".
LOGO!
Manual, 03/2015, A5E33039675 - AB 73
Programming LOGO!
3.7 Writing and starting the circuit program
Note
Inputs F1, F2, F3, and F4 correspond to the four function keys on the optional LOGO! TDE.
More shift register bits (S1.1 to S4.8), blank connectors (X1 to X64) and analog flags (AM1
to AM64) are available in the 0BA8 device series.
Network digital inputs (NI1 to NI64), network analog inputs (NAI1 to NAI32), network digital
outputs (NQ1 to NQ64), and network analog outputs (NAQ1 to NAQ16) are available for the
0BA8 device series. LOGO! 0BA8 does not include these inputs and outputs until you
configure them in a circuit program in LOGO!Soft Comfort V8.0 and download the program
to your LOGO! 0BA8 device.
Press OK to confirm. You have now connected I1 to the input of the OR block.
LOGO!
74 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.7 Writing and starting the circuit program
Note
You can invert individual inputs of the basic and special functions; that is, if an input carries a
logical "1" signal, you can cause the circuit program to output a logical "0". You can also
cause LOGO! to invert a logical "0" signal to a logical "1".
To invert an input, move the cursor to the relevant position, for example:
You can review your first circuit program by pressing or to move the cursor through the
circuit program.
LOGO!
Manual, 03/2015, A5E33039675 - AB 75
Programming LOGO!
3.7 Writing and starting the circuit program
To exit circuit programming mode and return to the programming menu, press ESC
Note
LOGO! has now saved your circuit program to nonvolatile memory. The circuit program
remains in the LOGO! memory until you explicitly delete it.
You can save the actual values of special functions in the case of a power outage assuming
that these functions support the "Retentive" parameter and that the necessary program
memory is available. By default, LOGO! deactivates the "Retentive" parameter when you
insert a function; to use it, you must enable this option.
A B C D E F G H I J K L M N O
P Q R S T U V W X Y Z 0 1 2 3 4
5 6 7 8 9 ! " # $ % & ' ( ) * +
, - . / : ; < = > ? @ [ \ ] ^ _
LOGO!
76 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.7 Writing and starting the circuit program
` { | } ∼ a b c d e f g h i j k
l m n o p q r s t u v w x y z
Assuming that you want to name your circuit program "ABC", follow these steps:
1. Select " A": Press
2. Move to the next letter: Press
3. Select " B": Press
4. Move to the next letter: Press
5. Select " C": Press
6. Confirm the complete name: Press OK
Your circuit program is now named "ABC", and LOGO! returns to the programming menu.
To change the name of your circuit program, proceed in the same way.
Note
You can change the name of the circuit program in programming mode only. If you have
saved a password-protected circuit program, you can change the name of the circuit
program only after you have entered the correct password (refer to Section "Password for
circuit program protection (Page 77)"). You can read the name in both programming mode
and parameter assignment mode.
Note
There is only one circuit program protection password that you can assign for LOGO!.
LOGO!
Manual, 03/2015, A5E33039675 - AB 77
Programming LOGO!
3.7 Writing and starting the circuit program
To enter a password of "AA", for example, the procedure is the same as for entering the
name of the circuit program.
6. Select "A": Press
7. Move to the next letter: Press
8. Select "A": Press
The display now appears as follows:
LOGO!
78 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.7 Writing and starting the circuit program
You have now protected your circuit program with the password "AA" and LOGO! returns to
the programming menu.
Note
You can cancel the input of a new password with ESC. In this case, LOGO! Basic returns to
the programming menu without saving the password.
You can also set your password using LOGO!Soft Comfort or LOGO! TDE. You cannot edit
a password-protected circuit program in a LOGO! Base Module or upload it to LOGO!Soft
Comfort unless you enter the correct password.
To allow you to create and edit a circuit program for a protected module (Card), you first
need to assign a password to this new program (Page 289).
Enter your old password (in our case: 'AA') by repeating steps 5 through 9 as described
earlier. Press OK.
Now you can enter the new password, for example, "ZZ".
3. Move the cursor to "②": Press or
LOGO!
Manual, 03/2015, A5E33039675 - AB 79
Programming LOGO!
3.7 Writing and starting the circuit program
Alternatively, you can also select "③" and clear the password by leaving the input box
blank.
5. Press any key and LOGO! returns to the programming menu. You have now cleared the
password.
LOGO!
80 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.7 Writing and starting the circuit program
Note
This action disables the password prompt, and thus permits access without a password.
Leave the password deactivated for quicker progress through the remaining exercises and
examples.
In this case, press any key and LOGO! returns to the programming menu. This repeats itself
over and over again until you enter the correct password.
LOGO!
Manual, 03/2015, A5E33039675 - AB 81
Programming LOGO!
3.7 Writing and starting the circuit program
LOGO!
82 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.7 Writing and starting the circuit program
LOGO!
Manual, 03/2015, A5E33039675 - AB 83
Programming LOGO!
3.7 Writing and starting the circuit program
The display refreshes continuously and the curve shifts to the left of the display bit by bit.
You can press or to move the screen form to the left/right in order to view the
earlier/later value changes.
In this example, only the inputs I1and I15 and the outputs Q8 and Q12 are set "high".
LOGO!
84 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.7 Writing and starting the circuit program
Modifying circuits
You will use the first circuit program as a basis for the second, with some slight modifications.
First of all take a look at the circuit diagram for the second circuit program:
LOGO!
Manual, 03/2015, A5E33039675 - AB 85
Programming LOGO!
3.7 Writing and starting the circuit program
You can see the OR block and the output relay Q1 that you used in the first circuit program.
The only difference is the new off-delay block.
LOGO!
86 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.7 Writing and starting the circuit program
Press twice to select the SF list. The SF list contains the special function blocks.
Press OK.
LOGO! displays the block of the first special function:
When you select a special or basic function block, LOGO! shows you the relevant function
block and positions the solid square cursor on the block. Press OK to enter the editing mode,
and the cursor appears as a flashing solid square. Press or to select the required block.
Select your block (off-delay, see the next figure), and then press OK:
LOGO! automatically connects the uppermost input of the new block to B1, which you had
previously connected to Q1. Note that you can only interconnect digital inputs with digital
outputs or analog inputs with analog outputs. LOGO! otherwise removes the 'old' block.
The off-delay block has two inputs and a parameter. At the top is the trigger input (Trg) you
use to start the off-delay time. In our example, the OR block B1 triggers the off-delay. You
LOGO!
Manual, 03/2015, A5E33039675 - AB 87
Programming LOGO!
3.7 Writing and starting the circuit program
reset the time and the output with a signal at the reset input (R). You set the off-delay time at
parameter T of the Par.
LOGO!
88 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.7 Writing and starting the circuit program
Enabling/disabling retentivity
To decide whether you want to retain your current data after a power failure or not, follow
these steps:
1. Move the cursor to "-/": Press or
2. Switch to editing mode: Press OK
3. Move the cursor to the retentivity setting: Press or
4. Select the retentivity setting: Press or
The display now shows:
LOGO!
Manual, 03/2015, A5E33039675 - AB 89
Programming LOGO!
3.7 Writing and starting the circuit program
Note
For further information on the protection mode, refer to the topic "Parameter protection
(Page 133)".
For further information on retentivity, refer to the topic "Retentivity (Page 133)".
You can modify the protection mode and retentivity setting only in programming mode. This
is not possible in parameter assignment mode.
LOGO! displays protection mode ("+" or "-") and retentivity ("R" or "/") settings only where
you can actually change these settings.
LOGO!
90 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.7 Writing and starting the circuit program
3. Confirm"①": Press OK
4. Select "②": Press or
LOGO!
Manual, 03/2015, A5E33039675 - AB 91
Programming LOGO!
3.7 Writing and starting the circuit program
Result: LOGO! deletes block B2 from the circuit and connects the output of B1 directly to
output Q1.
To delete these two blocks from that program, follow these steps:
1. Switch LOGO! to programming mode.
(As a reminder, refer to the topic "The four golden rules for operating LOGO! (Page 64)").
2. To select "①": Press or
LOGO!
92 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.7 Writing and starting the circuit program
8. Move the cursor to B2, the input of Q1, and confirm with OK.
LOGO!
Manual, 03/2015, A5E33039675 - AB 93
Programming LOGO!
3.7 Writing and starting the circuit program
The circle with a dot before "④" above indicates the current setting for the analog output
channels.
You can select either "③" or "④". The default setting is "④" which means that LOGO!
holds the values of the analog outputs at their last values. A setting of "③" means that
LOGO! sets the analog output values to specific values, which you can configure. When
LOGO! changes from RUN mode to STOP mode, the values of the analog outputs
change as well, depending on the setting.
7. Select the desired output setting: Press or .
8. Confirm your entry: Press OK.
LOGO!
94 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.7 Writing and starting the circuit program
LOGO!
Manual, 03/2015, A5E33039675 - AB 95
Programming LOGO!
3.7 Writing and starting the circuit program
5. Press or to increase or decrease the delay time by 0.2 s. You can also press and
hold down or to quickly increase or decrease the time.
6. Confirm your setting: Press OK.
LOGO!
96 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.7 Writing and starting the circuit program
2. On the main menu, press or to move the cursor to "①". Press OK. LOGO! opens
the programming menu.
3. On the programming menu, move the cursor to "②": Press or
5. If you are sure that you want to clear the circuit program in the memory, move the cursor
to "③" and confirm with OK. LOGO! clears the circuit program and password.
To cancel clearing of the circuit program, leave the cursor at "④" and press OK.
LOGO!
Manual, 03/2015, A5E33039675 - AB 97
Programming LOGO!
3.7 Writing and starting the circuit program
Note
Summertime refers to "daylight saving time" and wintertime refers to "standard time" in the
United States.
LOGO!
98 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.7 Writing and starting the circuit program
The current setting of automatic S/W Time conversion is indicated by a circle with a dot.
The default setting is "④": disabled.
What is shown on the display?:
– "④": LOGO! disables automatic S/W time conversion.
– "⑤" represents the start and end of European summertime.
– "⑥" represents the start and end of summertime in the United Kingdom.
– "⑦" represents the start and end of daylight saving time (summertime) in the United
States prior to 2007.
– "⑧" represents the start and end of daylight saving time (summertime) in the United
States in 2007 and later years.
– "⑨" represents the start and end of Australian summertime.
– "⑩" represents the start and end of Australian/ Tasmanian summertime.
– "⑪" represents the start and end of New Zealand summertime.
– "⑫": Here you can enter any month, day and time zone difference.
The table below lists the preset conversions:
LOGO!
Manual, 03/2015, A5E33039675 - AB 99
Programming LOGO!
3.7 Writing and starting the circuit program
Note
You can specify a time zone difference Δ between 0 and 180 minutes.
User-defined parameters
If none of the parameters/conversions apply to your country, follow these steps to customize
the settings:
1. Move the cursor to the menu item "①": Press or
LOGO!
100 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.7 Writing and starting the circuit program
For example, consider an example where you want to configure the following parameters:
● Start of summertime = 31st March
● End of summertime = 1st November
● Time difference of 120 minutes
To configure these settings, follow these steps:
1. Press or to move the flashing solid square/cursor.
2. Press and to change the value at the cursor position.
The display shows:
Note
Summertime/wintertime conversion only functions when LOGO! is operating in RUN or
STOP mode. It does not function when the internal real–time clock of LOGO! continues
operation after a power failure (refer to Section "Backup of the real-time clock (Page 133)").
3.7.16 Synchronization
You can enable/disable time synchronization between LOGO! and a connected
communications module by means of the setup menu.
When you enable synchronization, LOGO! can receive the time-of-day from a
communications module.
LOGO!
Manual, 03/2015, A5E33039675 - AB 101
Programming LOGO!
3.7 Writing and starting the circuit program
Regardless of whether you enable or disable synchronization, LOGO! always sends the
time-of-day to the expansion modules at power-up, every hour (STOP mode or RUN mode),
and when the time of day changes (either after a clock reset or summertime/wintertime
conversion).
Note
When using a LOGO! Base Module with digital or analog expansion modules, but without a
communications module, you must not activate time synchronization. You must check
whether time synchronization is disabled.
LOGO!
102 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.8 Configuring additional functions for LOGO!
LOGO! indicates the current setting of the automatic synchronization function by the
circle with a dot. The default setting is "④"; that is, the synchronization is disabled.
8. To enable synchronization, press or to select "⑤", and then confirm with OK.
LOGO!
Manual, 03/2015, A5E33039675 - AB 103
Programming LOGO!
3.8 Configuring additional functions for LOGO!
Note
If your circuit program in a LOGO! 0BA8 device contains any network digital or analog
inputs/outputs, you can only edit the "Par" parameter of function blocks from LOGO!. You
can not edit any of the rest of the circuit program from the device.
Note
You can configure LOGO!'s network settings including IP adress, subnet mask and gateway
with the access level of administrator only. With the access level of operator, you can only
view but cannot change the network settings.
LOGO!
104 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.8 Configuring additional functions for LOGO!
6. The display now shows the default IP address of your LOGO!. To change the setting,
press OK. When the cursor appears in a flashing solid square, press or to move the
cursor to a position where you want to modify the number, then press or to increase
or decrease the number. To confirm your change, press OK.
LOGO! stores up to four addresses that you set previously. To view your last settings,
press to move the cursor to the " " symbol, and then press OK to open a drop-down
list, for example:
You can press or to select a previously configured address in the list, and then
press OK to comfirm.
7. Press or to move to the subnet mask setting. The default subnet mask is as shown
above. To change the setting, press OK. When the cursor appears in a flashing solid
square, press or to move the cursor to a position where you want to modify the
number, then press or to increase or decrease the number. To confirm your change,
press OK.
8. Press to move to the gateway address setting. The default gateway is as shown above.
To change the setting, press OK. When the cursor appears in a flashing solid square,
press or to move the cursor to a position where you want to modify the number,
then press or to increase or decrease the number. To confirm your change, press
OK.
LOGO!
Manual, 03/2015, A5E33039675 - AB 105
Programming LOGO!
3.8 Configuring additional functions for LOGO!
Note
You can only configure these network connectors for your circuit program from LOGO!Soft
Comfort. If your circuit program in LOGO! contains a network connector, you can not make
any edits to the circuit program from the LOGO! onboard display.
LOGO!
106 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.8 Configuring additional functions for LOGO!
3. Confirm"①": Press OK
4. Select "②": Press or
You can see that there is a network digital input NI1 connected at the first input of B5.
The following views are examples of network digital and analog outputs in LOGO!:
LOGO!
Manual, 03/2015, A5E33039675 - AB 107
Programming LOGO!
3.8 Configuring additional functions for LOGO!
Note
A LOGO! in slave mode can also have its own expansion modules. It also supports a
maximum of 24 digital inputs, 8 analog inputs, 20 digital outputs and 8 analog outputs.
LOGO!
108 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.8 Configuring additional functions for LOGO!
7. In this view, you enter the IP address of the LOGO! that you want to configure to be the
master of your slave LOGO!. To change the setting, press OK. When the cursor appears
in a flashing solid square, press or to move the cursor through the numbers. Press
or to change the number.
8. Confirm the setting: Press OK
You have now successfully changed LOGO! from master mode to slave mode. LOGO!
restarts automatically and then displays the main menu. Stepping into the following view,
you can see that your LOGO! is now in slave mode:
Note
When LOGO! is in slave mode, you can not edit the circuit program from the slave LOGO!.
You cannot change LOGO! to master/slave mode in parameter assignment mode.
LOGO!
Manual, 03/2015, A5E33039675 - AB 109
Programming LOGO!
3.8 Configuring additional functions for LOGO!
Alternatively, you can change LOGO! from slave mode to master mode from LOGO!Soft
Comfort. If you download a circuit program to a LOGO! in slave mode from LOGO!Soft
Comfort, you are prompted to switch LOGO! to master mode to complete the downloading.
For more information, refer to the Online Help for LOGO!Soft Comfort.
LOGO!
110 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.8 Configuring additional functions for LOGO!
4. Confirm "②": Press OK. LOGO! shows you the following display:
5. You can select "③" to view the real-time status of the S7 connection or "④" to view the
firmware version of LOGO!.
After you select "③", you can press or to view the status of each S7 connection.
4. Confirm "②": Press OK. LOGO! shows you the following display:
5. You can select the following menu commands to view the corresponding hardware status
and errors:
– ③: To view the status of the Ethernet interface of LOGO!. If the Ethernet cable is not
connected, an error appears.
– ④: To view the status of the micro SD card. You may find an error event under this
menu command when no card is inserted, the card is full, or a read/write error occurs.
– ⑤: To view the real-time status of the connected expansion module(s). You can find
the number of the expansion modules and the total I/O number under this menu
command.
– ⑥: To view the MAC address of LOGO!
LOGO!
Manual, 03/2015, A5E33039675 - AB 111
Programming LOGO!
3.8 Configuring additional functions for LOGO!
4. Confirm "②": Press OK. LOGO! displays all errors detected. You can press or to
view each error record. Press ESC or OK to return to the previous menus.
LOGO!
112 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.8 Configuring additional functions for LOGO!
6. Confirm "③": Press OK. LOGO! clears all error messages and displays as follows:
LOGO!
Manual, 03/2015, A5E33039675 - AB 113
Programming LOGO!
3.8 Configuring additional functions for LOGO!
5. To enter an IP address, Press OK. When the cursor appears in a flashing solid square,
press or to move the cursor to a position where you want to modify the number,
then press or to increase or decrease the number.
6. Press OK to confirm your input.
LOGO! stores up to four addresses that you entered previously. To view your last inputs,
press to move the cursor to the " " symbol, and then press OK to open a drop-down
list, for example:
You can press or to select a previously configured address in the list, and then
press OK to comfirm.
4. Confirm your selection: Press OK. LOGO! returns to the previous view.
If you enable the error alert, when an error occurs, the LOGO! display turns to red backlight,
reminding you that LOGO! detects an error. You can go to the diagnostics menu to view and
clear the error.
LOGO!
114 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.9 Memory space and circuit program size
Memory areas
● Program memory:
LOGO! allows only a limited number of blocks in your circuit program.
The second limitation is based on the maximum number of bytes a circuit program can
contain. You can determine the total number of bytes used by adding up the number of
bytes used for the relevant function blocks.
● Retentive memory (Rem):
In this area, LOGO! stores values that are retentive; for example, the hours counter value.
Blocks with optional retentivity use this memory area only if you have enabled the
retentivity function.
LOGO! monitors memory utilization, and offers only those functions from the lists for which it
can actually provide sufficient memory space.
Memory requirements
The table below shows an overview of the memory requirements for the basic and special
function blocks in LOGO! 0BA8:
LOGO!
Manual, 03/2015, A5E33039675 - AB 115
Programming LOGO!
3.9 Memory space and circuit program size
LOGO!
116 Manual, 03/2015, A5E33039675 - AB
Programming LOGO!
3.9 Memory space and circuit program size
Note
Since a UDF block is a preconfigured circuit program that you create from LOGO!Soft
Comfort for your LOGO! device, the memory size (program memory and Rem memory) of a
UDF block depends upon the size of the function blocks contained in the UDF.
LOGO!
Manual, 03/2015, A5E33039675 - AB 117
Programming LOGO!
3.9 Memory space and circuit program size
LOGO!
118 Manual, 03/2015, A5E33039675 - AB
LOGO! functions 4
LOGO! provides you with various elements in programming mode, and organizes them in the
following lists:
● Connector list (Connector) (Page 119)
● ↓GF: List of the basic functions AND, OR, ... (Page 124)
● ↓SF: List of the special functions (Page 136)
● List of reusable blocks configured in the circuit program
LOGO! 0BA8 can additionally provide you with the following elements in programming mode,
if you have previously configured them in your circuit program using LOGO!Soft Comfort:
● UDF: List of user-defined function blocks configured in the circuit program
● L: A Data Log function block configured in the circuit program
List contents
All lists show the elements available in LOGO!. Usually, this includes all connectors, basic
functions, and special functions.
LOGO! does not show all elements if:
● You cannot add additional blocks.
This occurs wthen the memory space is insufficient or when you have reached the
maximum number of blocks.
● A specific block's memory space requirement (Page 115) would exceed the space
available in LOGO!.
● You have created program elements in LOGO!Soft Comfort but have not downloaded the
program to LOGO!.
LOGO!
Manual, 03/2015, A5E33039675 - AB 119
LOGO! functions
4.1 Constants and connectors
Inputs
● Digital inputs
Digital inputs begin with the letter I. The number of the digital inputs (I1, I2, ...)
corresponds to the number of the input connectors of the LOGO! Base Module and of the
connected digital modules, in the order of their installation. You can use the fast digital
inputs I3, I4, I5, and I6 of the LOGO! versions LOGO! 12/24 RCE, LOGO! 12/24 RCEo,
LOGO! 24 CE and LOGO! 24 CEo as fast counters.
Note
To avoid that the LOGO! Base Module fails to read input signals because its built-in MCU
(Microcontroller Unit) is too sensitive and runs much faster than those in previous LOGO!
devices, an on-/off-delay function is designed for LOGO!:
• For LOGO! 230RCE and LOGO! 230RCEo, a 25 ms on-delay time and a 20 ms off-
delay time are defined for digital inputs I1 to I8.
• For all the other LOGO! versions, a 5 ms on-delay time and a 5 ms off-delay time are
defined for all the digital inputs.
Besides, when the LOGO! Base Module is in slave mode, a 5 ms on-delay time and a
100 ms signal-retentive-time are defined for all the digital inputs.
● Analog inputs
The LOGO! versions LOGO! 24 CE, LOGO! 24 CEo, LOGO! 12/24 RCE and LOGO
12/24 RCEo have the inputs I1, I2, I7 and I8, which you can also program for use as AI3,
AI4, AI1 and AI2 inputs. As described in topic "Setting the number of AIs in LOGO!
(Page 275)", you can configure these modules to use either two analog inputs (AI1 and
AI2), or all four. LOGO! interprets signals at the I1, I2, I7 and I8 inputs as digital values,
and those at the AI3, AI4, AI1 and AI2 inputs as analog values. Note that AI3
corresponds to I1 and AI4 corresponds to I2. This numbering preserves the previous
correspondence of AI1 to I7 and AI2 to I8 that was available with the 0BA5 series. LOGO!
numbers the inputs of a connected analog module according to the already existing
analog inputs. See topic "Maximum setup with expansion modules (Page 29)" for
example setups. In programming mode, when you select the input signal of a special
function that takes an analog input, LOGO! offers the analog inputs AI1 to AI8, analog
flags AM1 to AM64, analog outputs AQ1 to AQ8, and the block numbers of functions with
analog outputs.
LOGO!
120 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.1 Constants and connectors
Outputs
● Digital outputs
Digital outputs begin with the letter Q. The output numbers (Q1, Q2, ... Q20) correspond
with the numbers of the output connectors at the LOGO! Base Module and with those of
the expansion modules, in their order of installation.
LOGO! 0BA8 also provides 64 blank outputs and identifies them with the letter x. You
cannot reuse the blank outputs in a circuit program. The blank outputs differ from flags,
for example, which you can reuse. A blank output, for example, is useful for the special
function "Message texts" (Page 204), if only the message text is of significance to a circuit
program.
● Analog outputs
Analog outputs begin with the letters AQ. Eight analog outputs are available, namely AQ1,
AQ2,... AQ8. You can only connect an analog output with the analog input of a function,
an analog flag AM or an analog output connector.
The following figure shows an example LOGO! configuration and the numbering of the
inputs and outputs for the circuit program.
Note
LOGO! 0BA8 supports the graphical display of the analog value changes in the form of a
trend curve on the onboard display. You can easily monitor each analog I/O in use by means
of the trend curves when LOGO! is in RUN mode. For more information on how to view the
trend curve, refer to "Viewing the analog changes (Page 81)".
Flag blocks
The letters M or AM identify flag blocks. These are virtual outputs, which output the value of
their inputs. LOGO! 0BA8 provides 64 digital flags M1 to M64 and 64 analog flags AM1 to
AM64.
LOGO!
Manual, 03/2015, A5E33039675 - AB 121
LOGO! functions
4.1 Constants and connectors
Startup flag M8
LOGO! sets flag M8 in the first cycle of the circuit program. You can thus use it as a startup
flag in your circuit program. LOGO! resets M8 at the end of the first cycle.
You can use the M8 flag in all further cycles for setting, deletion and evaluation procedures
in the same way as other flags.
Note
• The output of the flag always carries the signal of the previous program cycle. This value
does not change within the same program cycle.
• You can read or write flags from the network. If you have not added any special flags in
the diagram, but written them from the network, they can still work except M27. So if you
want to control character sets by M27, you must add it in the diagram first, and you can
connect M27 to NI blocks to control it from the network.
LOGO!
122 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.1 Constants and connectors
Cursor keys
Up to four cursor keys are available to you, namely C , C , C and C ("C" = "Cursor").
Cursor keys are programmed for the circuit program in the same way as other inputs. You
can program cursor keys in the corresponding display while the system is in RUN (Page 81) ,
and in an active message text (ESC + Key). Cursor keys can save switches and inputs, and
allow operator control of the circuit program. Cursor key inputs from the LOGO! TDE are
identical to cursor key inputs from the LOGO! Base Module.
Levels
Voltage levels are designated hi and lo. A constant "1" = hi or "0" = lo status at the block can
be set by means of a permanent voltage level or constant value hi or lo.
Open connectors
LOGO! uses the letter x to indicate unused block connectors.
LOGO!
Manual, 03/2015, A5E33039675 - AB 123
LOGO! functions
4.2 Basic functions list - GF
View in the circuit diagram View in LOGO! Name of the basic function
AND (Page 125)
LOGO!
124 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.2 Basic functions list - GF
View in the circuit diagram View in LOGO! Name of the basic function
OR (Page 128)
4.2.1 AND
The output of the AND is only 1 if all inputs are 1, that is, all contacts are closed.
At an unused block input (x): x = 1.
1 2 3 4 Q
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
LOGO!
Manual, 03/2015, A5E33039675 - AB 125
LOGO! functions
4.2 Basic functions list - GF
1 2 3 4 Q
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 0
1 0 1 0 0
1 0 1 1 0
1 1 0 0 0
1 1 0 1 0
1 1 1 0 0
1 1 1 1 1
The output of an edge-triggered AND is only 1 if all inputs are 1 and if at least one input was
low in the previous cycle.
At an unused block input (x): x = 1.
LOGO!
126 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.2 Basic functions list - GF
The output of the NAND is only 0 if the status at all inputs is 1, that is, the contacts are
closed.
At an unused block input (x): x = 1.
1 2 3 4 Q
0 0 0 0 1
0 0 0 1 1
0 0 1 0 1
0 0 1 1 1
0 1 0 0 1
0 1 0 1 1
0 1 1 0 1
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 0
LOGO!
Manual, 03/2015, A5E33039675 - AB 127
LOGO! functions
4.2 Basic functions list - GF
The output status of the NAND with edge evaluation is only 1 if at least one input is 0 and if
all inputs were 1 in the previous cycle.
At an unused block input (x): x = 1.
4.2.5 OR
The output status of the OR element is only 1 if at least one input is 1, that is, at least one of
the contacts is closed.
At an unused block input (x): x = 0.
1 2 3 4 Q
0 0 0 0 0
0 0 0 1 1
0 0 1 0 1
0 0 1 1 1
0 1 0 0 1
0 1 0 1 1
0 1 1 0 1
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1
1 0 1 0 1
LOGO!
128 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.2 Basic functions list - GF
1 2 3 4 Q
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
The output status of the NOR is only 1 if all inputs are 0, that is, off. The NOR output is set to
0 when one of the inputs is on (logical 1 status).
At an unused block input (x): x = 0.
1 2 3 4 Q
0 0 0 0 1
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 0
1 0 1 0 0
1 0 1 1 0
1 1 0 0 0
1 1 0 1 0
1 1 1 0 0
1 1 1 1 0
LOGO!
Manual, 03/2015, A5E33039675 - AB 129
LOGO! functions
4.2 Basic functions list - GF
The output status of the XOR is 1 if the inputs are not equivalent.
At an unused block input (x): x = 0.
1 2 Q
0 0 0
0 1 1
1 0 1
1 1 0
The output status is 1 if the input is 0. The NOT block inverts the input status.
An advantage of the NOT block, for example, is that you do not have to use break contacts.
You simply use a make contact and the NOT block to convert these into a break contact.
1 Q
0 1
1 0
LOGO!
130 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.3 Special functions
Logical inputs
The following connectors enable you to create a logical link to other blocks or to the inputs of
the LOGO! unit:
● S (Set):
A signal at input S sets the output to logical "1".
● R (Reset):
The reset input R takes priority over all other inputs and resets the outputs.
● Trg (Trigger):
This input triggers the start of a function.
● Cnt (Count):
This input counts pulses.
● Fre (Frequency):
LOGO! applies frequency signals to be evaluated to this input.
● Dir (Direction):
This input determines the direction, + or -.
● En (Enable):
This input enables a block function. When this input is "0", the block ignores all other
signals.
● Inv (Invert):
A signal at this input inverts the output signal of the block.
● Ral (Reset all):
A signal at this input resets all internal values.
● Lap (for the stopwatch function)
A signal at this input pauses the stopwatch.
Note
Unused logical inputs of special functions default to logical "0".
LOGO!
Manual, 03/2015, A5E33039675 - AB 131
LOGO! functions
4.3 Special functions
Connector X at SF inputs
The connector "x" input for any SF input is low. That is, the input carries a "lo" signal.
Parameter inputs
At some of the inputs you do not apply any signals. You configure the relevant block values
instead. Examples:
● Par (Parameter):
You do no connect the Par parameter. Instead, you set the relevant blcok parameters
(times, on/off thresholds etc.).
● Priority:
This is an open input. Here, you define priorities and specify whether a message is to be
acknowledged in RUN.
Parameter T
You can configure a time value T for some of the SF blocks. When you preset this time, note
that your input values are based on the timebase set:
Timebase __:__
s (seconds) seconds : 1/100 seconds
m (minutes) minutes : seconds
h (hours) hours : minutes
The LOGO! 0BA8-specific stopwatch (Page 176) function provides an additional timebase -
10 ms.
Accuracy of T
Because of slight tolerances in the characteristics of electronic components, the set time T
can deviate. You can find a detailed description of such deviations in the "On-delay" topic
(Page 141).
LOGO!
132 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.3 Special functions
4.3.4 Retentivity
You can set the switching states, counter and time values of many SF blocks (Page 136) to
be retentive. This means that LOGO! retains current data values after a power failure, and
that the block resumes operation at the break point. The timer is not reset, but resumes
operation until the time-to-go has expired.
To enable this response, however, the relevant functions must be set retentive. Two options
are available:
R: The data is retentive.
/: Current data is not retentive (default). See the section in topic "Second circuit program
(Page 85)" on enabling and disabling retentivity.
The hours counter, weekly timer, yearly timer and PI controller are always retentive.
LOGO!
Manual, 03/2015, A5E33039675 - AB 133
LOGO! functions
4.3 Special functions
Note
Parameter protection covers only the "Set Parameter" window. If you embed variables of
protected special functions in a message text, the variables are still editable from the
message text. To protect these variables, you must also activate the protection of the
message text.
Mathematical rule
Actual value Ax =
(internal value at input Ax • gain) + offset
LOGO!
134 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.3 Special functions
Process variable Voltage (V) Internal value Gain Offset Value shown (Ax)
-30 °C 0 0 0.1 -30 -30
0 °C 3 300 0.1 -30 0
+70 °C 10 1000 0.1 -30 70
1000 mbar 0 0 4 1000 1000
3700 mbar 6.75 675 4 1000 3700
5000 mbar 10 1000 4 1000 5000
0 0 0.01 0 0
5 500 0.01 0 5
10 1000 0.01 0 10
0 0 1 0 0
5 500 1 0 500
10 1000 1 0 1000
0 0 10 0 0
5 500 10 0 5000
10 1000 10 0 10000
0 0 0.01 5 5
5 500 0.01 5 10
10 1000 0.01 5 15
0 0 1 500 500
5 500 1 500 1000
10 1000 1 500 1500
0 0 1 -200 -200
5 500 1 -200 300
10 1000 1 -200 800
0 0 10 -10000 -10000
10 1000 10 -10000 0
0.02 2 0.01 0 0
0.02 2 0.1 0 0
0.02 2 1 0 2
0.02 2 10 0 20
For further information on a sample application, refer to the "Analog comparator (Page 193)"
topic.
LOGO!
Manual, 03/2015, A5E33039675 - AB 135
LOGO! functions
4.4 Special functions list - SF
For further information on analog inputs, refer to the Constants and connectors (Page 119)
topic.
LOGO!
136 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
The table also specifies whether the relevant function can be set retentive (Rem). The
following SFs are available:
LOGO!
Manual, 03/2015, A5E33039675 - AB 137
LOGO! functions
4.4 Special functions list - SF
Counter
Up/down counter (Page 178) REM
LOGO!
138 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Analog
Analog threshold trigger (Page 188)
LOGO!
Manual, 03/2015, A5E33039675 - AB 139
LOGO! functions
4.4 Special functions list - SF
Miscellaneous
Latching relay (Page 202) REM
LOGO!
140 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
4.4.1 On-delay
Short description
The output is only set after a configurable on-delay time expires.
Parameter T
Note the defaults for parameter T in topic Time response (Page 132).
LOGO!
Manual, 03/2015, A5E33039675 - AB 141
LOGO! functions
4.4 Special functions list - SF
The actual value of another already-configured functions can provide the time for parameter
T. You can use the actual values of the following functions for the value of T:
● Analog comparator (Page 193)(actual value Ax - Ay)
● Analog threshold trigger (Page 188)(actual value Ax)
● Analog amplifier (Page 200)(actual value Ax)
● Analog multiplexer (Page 218)(actual value AQ)
● Analog ramp (Page 221)(actual value AQ)
● Mathematic instruction (Page 232) (actual value AQ)
● PI controller (Page 225)(actual value AQ)
● Up/down counter (Page 178)(actual value Cnt)
● Analog filter (Page 237) (actual value AQ)
● Average value (Page 243) (actual value AQ)
● Max/Min (Page 239) (actual value AQ)
● On-delay (current time Ta)
● Off-delay (Page 145)(current time Ta)
● On-/off-delay (Page 147)(current time Ta)
● Retentive on-delay (Page 149)(current time Ta)
● Wiping relay (pulse output) (Page 151)(current time Ta)
● Edge-triggered wiping relay (Page 153)(current time Ta)
● Asynchronous pulse generator (Page 155)(current time Ta)
● Stairway lighting switch (Page 159)(current time Ta)
● Multiple function switch (Page 161)(current time Ta)
● Stopwatch (Page 176)(actual value AQ)
● Threshold trigger (Page 185) (actual value Fre)
Select the required function by the block number. The timebase is configurable.
LOGO!
142 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
The LOGO! display appears as follows in programming mode, if you have, for example, set
the actual value of B6 in seconds to parameter T of B12:
If the referenced block (B6, in the example) returns a value that lies out of the valid range,
LOGO! rounds the value up or down to the next valid value.
2. Press to change the equal sign into an arrow. LOGO! displays the last referenced
block if it exists.
LOGO!
Manual, 03/2015, A5E33039675 - AB 143
LOGO! functions
4.4 Special functions list - SF
3. Press to move the cursor to the "B" of the shown block, and then press to select the
required block number.
4. Press to move the cursor to the block's timebase and press to select the required
timebase.
Timing diagram
Functional description
A 0 to 1 transition triggers the time Ta at input Trg (Ta is the current LOGO! time).
If the status of input Trg is 1 at least for the duration of the configured time T, LOGO! sets
the output to 1 on expiration of this time (the output follows the input with on-delay).
LOGO! resets the time when the status at input Trg returns to 0 before the time T expires.
LOGO! resets the output to 0 when the signal at input Trg is 0.
If the block is retentive, LOGO! resets output Q and the expired time to the values before a
power failure; if the block is not retentive, LOGO! resets output Q and the expired time to
defaults after a power failure.
LOGO!
144 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
4.4.2 Off-delay
Short description
When an on-delay (Page 141) is set, the output is reset when the configured time has
expired.
Parameter T
Note the parameter T defaults specified in topic Time response (Page 132).
The actual value of another already-configured functions can provide the time for parameter
T. You can use the actual value of the following functions:
● Analog comparator (Page 193) (actual value Ax - Ay)
● Analog threshold trigger (Page 188) (actual value Ax)
● Analog amplifier (Page 200) (actual value Ax)
● Analog multiplexer (Page 218) (actual value AQ)
● Analog ramp (Page 221) (actual value AQ)
● Mathematic instruction (Page 232) (actual value AQ)
● PI controller (Page 225) (actual value AQ)
● Up/down counter (Page 178) (actual value Cnt)
● Analog filter (Page 237) (actual value AQ)
● Average value (Page 243) (actual value AQ)
● Max/Min (Page 239) (actual value AQ)
● On-delay (Page 141) (current time Ta)
● Off-delay (current time Ta)
● On-/off-delay (Page 147) (current time Ta)
● Retentive on-delay (Page 149) (current time Ta)
● Wiping relay (pulse output) (Page 151) (current time Ta)
LOGO!
Manual, 03/2015, A5E33039675 - AB 145
LOGO! functions
4.4 Special functions list - SF
Timing diagram
Functional description
LOGO! sets Output Q to hi immediately when the input Trg changes to hi.
LOGO! retriggers the actual time Ta at the 1 to 0 transition of Trg. The output remains set.
LOGO! resets Output Q to 0 with off-delay when Ta reaches the value configured at T (Ta=T).
LOGO! retriggers he time Ta with a one-shot at input Trg.
You can set input R (Reset) to reset the time Ta and the output before Ta expires.
If the block is retentive, LOGO! resets output Q and the expired time to the values before a
power failure; if the block is not retentive, LOGO! resets output Q and the expired time to
defaults after a power failure.
LOGO!
146 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
4.4.3 On-/off-delay
Short description
The on-/off-delay function sets the output after the set on-delay time has expired, and resets
it upon expiration of the off-delay time.
Parameters TH and TL
Note the preset values for the parameters TH and TL in topic Time response (Page 132).
The actual value of another, already-configured function can provide the on-delay and off-
delay times for parameters TH and TL . You can use the actual values of the following
functions:
● Analog comparator (Page 193)(actual value Ax - Ay)
● Analog threshold trigger (Page 188)(actual value Ax)
● Analog amplifier (Page 200)(actual value Ax)
● Analog multiplexer (Page 218)(actual value AQ)
● Analog ramp (Page 221)(actual value AQ)
● Mathematic instruction (Page 232) (actual value AQ)
● PI controller (Page 225)(actual value AQ)
● Up/down counter (Page 178)(actual value Cnt)
● Analog filter (Page 237) (actual value AQ)
● Average value (Page 243) (actual value AQ)
● Max/Min (Page 239) (actual value AQ)
● On-delay (Page 141)(current time Ta)
● Off-delay (Page 145)(current time Ta)
● On-/off-delay (current time Ta)
LOGO!
Manual, 03/2015, A5E33039675 - AB 147
LOGO! functions
4.4 Special functions list - SF
Timing diagram
Functional description
The time TH is triggered with a 0 to 1 transition at input Trg.
If the status at input Trg is 1 at least for the duration of the time TH, LOGO! sets the output to
1 on expiration of the time TH (the output follows the input with on-delay).
LOGO! resets the time when LOGO! resets the signal at input Trg to 0 before the time TH
expires.
A 1 to 0 transition at input Trg triggers the time TL.
If the status at input Trg is 0 at least for the duration of the signal TL, LOGO! sets the output
to 0 on expiration of the time TL (the output follows the input with off-delay).
LOGO! resets the time when the signal at input Trg changes to 1 again before the time TL
expires.
If the block is retentive, LOGO! resets output Q and the expired time to the values before a
power failure; if the block is not retentive, LOGO! resets output Q and the expired time to
defaults after a power failure.
LOGO!
148 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Short description
A one-shot at the input triggers a configurable on-delay time. The output is set when this
time has expired.
Parameter T
Note the defaults specified in topic Time response (Page 132).
The actual value of another already-programmed function can provide the time for parameter
T. You can use the actual values of the following functions:
● Analog comparator (Page 193)(actual value Ax – Ay)
● Analog threshold trigger (Page 188)(actual value Ax)
● Analog amplifier (Page 200)(actual value Ax)
● Analog multiplexer (Page 218)(actual value AQ)
● Analog ramp (Page 221)(actual value AQ)
● Mathematic instruction (Page 232) (actual value AQ)
● PI controller (Page 225)(actual value AQ)
● Up/down counter (Page 178)(actual value Cnt)
● Analog filter (Page 237) (actual value AQ)
● Average value (Page 243) (actual value AQ)
● Max/Min (Page 239) (actual value AQ)
● On-delay (Page 141)(current time Ta)
● Off-delay (Page 145)(current time Ta)
● On-/off-delay (Page 147)(current time Ta)
● Retentive on-delay (current time Ta)
● Wiping relay (pulse output) (Page 151)(current time Ta)
● Edge-triggered wiping relay (Page 153)(current time Ta)
LOGO!
Manual, 03/2015, A5E33039675 - AB 149
LOGO! functions
4.4 Special functions list - SF
Timing diagram
Functional description
The 0 to 1 signal transition at input Trg triggers the current time Ta. LOGO! sets output Q
when Ta = T. A further signal at input Trg does not influence the time Ta.
LOGO! resets the output and the time Ta with the next 1 signal at input R.
If the block is retentive, LOGO! resets output Q and the expired time to the values before a
power failure; if the block is not retentive, LOGO! resets output Q and the expired time to
defaults after a power failure.
LOGO!
150 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Short description
An input signal generates a signal with a configurable period at the output.
Parameter T
Note the information on parameter T in topic Time response (Page 132).
The actual value of another already-programmed function can provide the time for parameter
T. You can use the actual values of the following functions:
● Analog comparator (Page 193)(actual value Ax – Ay)
● Analog threshold trigger (Page 188)(actual value Ax)
● Analog amplifier (Page 200)(actual value Ax)
● Analog multiplexer (Page 218)(actual value AQ)
● Analog ramp (Page 221)(actual value AQ)
● Mathematic instruction (Page 232) (actual value AQ)
● PI controller (Page 225)(actual value AQ)
● Up/down counter (Page 178)(actual value Cnt)
● Analog filter (Page 237) (actual value AQ)
● Average value (Page 243) (actual value AQ)
● Max/Min (Page 239) (actual value AQ)
● On-delay (Page 141)(current time Ta)
● Off-delay (Page 145)(current time Ta)
● On-/off-delay (Page 147)(current time Ta)
● Retentive on-delay (Page 149)(current time Ta)
● Wiping relay (pulse output) (current time Ta)
● Edge-triggered wiping relay (Page 153)(current time Ta)
● Asynchronous pulse generator (Page 155)(current time Ta)
LOGO!
Manual, 03/2015, A5E33039675 - AB 151
LOGO! functions
4.4 Special functions list - SF
Timing diagram
Functional description
A 0 to 1 transition at input Trg sets the output, and triggers a time Ta during which the output
remains set.
LOGO! resets output Q to lo (pulse output) when Ta reaches the value preset at T (Ta = T).
LOGO! sets the output immediately if there is a 1 to 0 transition at input Trg before the
specified time expires.
If the block is retentive, LOGO! resets output Q and the expired time to the values before a
power failure; if the block is not retentive, LOGO! resets output Q and the expired time to
defaults after a power failure.
LOGO!
152 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Short description
An input pulse generates a preset number of output pulses with a defined pulse/pause ratio
(retriggerable), after a configured delay time has expired.
Parameters TH and TL
Note the information on parameter T in topic Time response (Page 132).
The actual value of another already-programmed function can provide the pulse width TH
and the interpulse width TL. You can use the actual values of the following functions:
● Analog comparator (Page 193) (actual value Ax – Ay)
● Analog threshold trigger (Page 188) (actual value Ax)
● Analog amplifier (Page 200) (actual value Ax)
● Analog multiplexer (Page 218) (actual value AQ)
● Analog ramp (Page 221) (actual value AQ)
● Mathematic instruction (Page 232) (actual value AQ)
● PI controller (Page 225) (actual value AQ)
● Up/down counter (Page 178) (actual value Cnt)
● Analog filter (Page 237) (actual value AQ)
● Average value (Page 243) (actual value AQ)
● Max/Min (Page 239) (actual value AQ)
● On-delay (Page 141) (current time Ta)
● Off-delay (Page 145) (current time Ta)
● On-/off-delay (Page 147) (current time Ta)
● Retentive on-delay (Page 149) (current time Ta)
LOGO!
Manual, 03/2015, A5E33039675 - AB 153
LOGO! functions
4.4 Special functions list - SF
Select the required function by the block number. The timebase is configurable. For
information on valid ranges and parameter defaults, refer to the On-delay (Page 141) topic.
Timing diagram A
Timing diagram B
Functional description
A 0 to 1 transition at input Trg triggers the time TL (Time Low). After the time TL has expired,
output Q is set for the duration of TH (Time High).
If there is a further 0 to 1 transition (retriggering pulse) at input Trg before the preset time (TL
+ TH) has expired, Ta is reset and the pulse/pause cycle is restarted.
If the block is retentive, LOGO! resets output Q and the expired time to the values before a
power failure; if the block is not retentive, LOGO! resets output Q and the expired time to
defaults after a power failure.
LOGO!
154 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Short description
You can asynchronously output pulses with this function.
Parameters TH and TL
Note the information on parameter T in topic Time response (Page 132)
The actual value of another already-programmed function can provide the pulse width TH
and the interpulse width TL. You can use the actual values of the following functions:
● Analog comparator (Page 193) (actual value Ax – Ay)
● Analog threshold trigger (Page 188) (actual value Ax)
● Analog amplifier (Page 200) (actual value Ax)
LOGO!
Manual, 03/2015, A5E33039675 - AB 155
LOGO! functions
4.4 Special functions list - SF
Timing diagram
Functional description
You can configure the pulse/interpulse width at the TH (Time High) and TL (Time Low)
parameters.
Input Inv can be used to invert the output signal, provided the block is enabled with a signal
at input EN.
If the block is retentive, LOGO! resets output Q and the expired time to the values before a
power failure; if the block is not retentive, LOGO! resets output Q and the expired time to
defaults after a power failure.
LOGO!
156 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Short description
The random generator function sets an output randomly within a configured time.
Parameter TH and TL
Note the defaults of the TH and TL parameters listed in topic Time response (Page 132).
The actual value of another already-programmed function can provide the on-delay time TH
and the off-delay time TL. You can use the actual values of the following functions:
● Analog comparator (Page 193) (actual value Ax – Ay)
● Analog threshold trigger (Page 188) (actual value Ax)
● Analog amplifier (Page 200) (actual value Ax)
● Analog multiplexer (Page 218) (actual value AQ)
● Analog ramp (Page 221) (actual value AQ)
● Mathematic instruction (Page 232) (actual value AQ)
● PI controller (Page 225) (actual value AQ)
● Up/down counter (Page 178) (actual value Cnt)
● Analog filter (Page 237) (actual value AQ)
● Average value (Page 243) (actual value AQ)
● Max/Min (Page 239) (actual value AQ)
● On-delay (Page 141) (current time Ta)
● Off-delay (Page 145) (current time Ta)
● On-/off-delay (Page 147) (current time Ta)
● Retentive on-delay (Page 149) (current time Ta)
LOGO!
Manual, 03/2015, A5E33039675 - AB 157
LOGO! functions
4.4 Special functions list - SF
Timing diagram
Functional description
The 0 to 1 transition at input En triggers a random on-delay time between 0 s and TH. The
output is set when the on-delay time expires and if the signal at input En remains hi at least
for the duration of this time.
The time is reset if input En is reset before the on-delay time has expired.
A 1 to 0 transition at input EN triggers a random off-delay time between 0 s and TL.
LOGO! resets the output after the off-delay time expires, provided input En remains lo at
least for the duration of this time.
LOGO! resets the time if the signal at input En changes to 1 again before the off-delay time
expires.
If the block is retentive, LOGO! resets output Q and the expired time to the values before a
power failure; if the block is not retentive, LOGO! resets output Q and the expired time to
defaults after a power failure.
LOGO!
158 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Short description
An input edge triggers a configurable and retriggerable time. LOGO! resets the output after
this time expires. LOGO! can optionally output a warning signal to warn of the impending
time expiration.
LOGO!
Manual, 03/2015, A5E33039675 - AB 159
LOGO! functions
4.4 Special functions list - SF
Timing diagram
Functional description
A 0 to 1 signal transition at input Trg sets output Q. The next 1 to 0 transition at Trg
retriggers the current time Ta, and output Q remains set.
LOGO! resets output Q when Ta = T. You can output a warning signal before the off-delay
time (T - T!) expires to reset Q for the time of the pre-warning period T!L.
A further one-shot at input Trg during Ta retriggers the time Ta .
If the block is retentive, LOGO! resets output Q and the expired time to the values before a
power failure; if the block is not retentive, LOGO! resets output Q and the expired time to
defaults after a power failure.
Note
All times must have the same timebase.
LOGO!
160 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Short description
The multiple function switch provides two different functions:
● Pulse switch with off-delay
● Switch (permanent lighting)
LOGO!
Manual, 03/2015, A5E33039675 - AB 161
LOGO! functions
4.4 Special functions list - SF
The actual value of another already-programmed function can provide the off-delay time T,
the permanent light time TL, the on-delay prewarning time T! and the prewarning time period
T!L. You can use the actual values of the following functions:
● Analog comparator (Page 193) (actual value Ax – Ay)
● Analog threshold trigger (Page 188) (actual value Ax)
● Analog amplifier (Page 200) (actual value Ax)
● Analog multiplexer (Page 218) (actual value AQ)
● Analog ramp (Page 221) (actual value AQ)
● Mathematic instruction (Page 232) (actual value AQ)
● PI controller (Page 225) (actual value AQ)
● Up/down counter (Page 178) (actual value Cnt)
● Analog filter (Page 237) (actual value AQ)
● Average value (Page 243) (actual value AQ)
● Max/Min (Page 239) (actual value AQ)
● On-delay (Page 141) (current time Ta)
● Off-delay (Page 145) (current time Ta)
● On-/off-delay (Page 147) (current time Ta)
● Retentive on-delay (Page 149) (current time Ta)
● Wiping relay(pulse output) (Page 151) (current time Ta)
● Edge triggered wiping relay (Page 153) (current time Ta)
● Asynchronous pulse generator (Page 155) (current time Ta)
● Stairway light switch (Page 159) (current time Ta)
● Multiple function switch (current time Ta)
● Stopwatch (Page 176) (actual value AQ)
● Threshold trigger (Page 185) (actual value Fre)
Select the required function by the block number. The timebase is configurable. For
information on valid ranges and parameter defaults, refer to the On-delay (Page 141) topic.
Timing diagram
LOGO!
162 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Functional description
A 0 to 1 transition at input Trg sets output Q.
If output Q = 0, and input Trg is set hi at least for the duration of TL, LOGO! enables the
permanent lighting function and sets output Q accordingly.
LOGO! triggers the off-delay T when input Trg returns to 0 before TL has expired.
Output Q is reset when Ta = T.
You can output an off-warning signal prior to the expiration of the off-delay time (T - T!) that
resets Q for the duration of the prewarning time period T!L. A subsequent signal at Trg
always resets T and the output Q.
If the block is retentive, LOGO! resets output Q and the expired time to the values before a
power failure; if the block is not retentive, LOGO! resets output Q and the expired time to
defaults after a power failure.
Note
T, T! and T!L must all have the same timebase.
LOGO!
Manual, 03/2015, A5E33039675 - AB 163
LOGO! functions
4.4 Special functions list - SF
Short description
The weekly timer controls an output by means of a configurable on/off date. The function
supports any combination of weekdays. You select the active weekdays by hiding the
inactive days.
Note
Because LOGO! 24/24o does not have a real-time clock, the weekly timer function is not
available.
Functional description
Each weekly timer has three cams for you to configure a time hysteresis. You specify the on-
and off-times at the Cam parameters. The weekly timer sets the output at a certain on-time;
if you have not set it, the weekly timer resets the output at a certain off-time if you configure
an off-time, or at the end of the cycle if you specify a pulse output.
You will cause a conflict if you set overlapping on- and off-times; the earliest on- and off-
times take priority. Here is an example:
LOGO!
164 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
2 1:10h 1:50h
3 1:20h 1:40h
LOGO!
Manual, 03/2015, A5E33039675 - AB 165
LOGO! functions
4.4 Special functions list - SF
On-/Off-times
Any time between 00:00 h and 23:59 h is possible. You can also configure the on time to be
a pulse signal. The timer block will be activated at the specified time for one cycle and then
the output is reset.
- -:- - means: No on-/off-times set.
Note
For information on timer accuracy, refer to the technical data and to the topic "Time
response (Page 132)".
LOGO!
166 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Views in LOGO!:
Result
Short description
The output is controlled by means of a configurable on/off date. You can configure the timer
to activate on a yearly, monthly, or user-defined time basis. With any mode, you can also
configure the timer to pulse the output during the defined time period. The time period is
configurable within the date range of January 1, 2000 to December 31, 2099.
Note
Because LOGO! 24/24o does not have a real-time clock, the yearly timer is not available for
both versions.
LOGO!
Manual, 03/2015, A5E33039675 - AB 167
LOGO! functions
4.4 Special functions list - SF
Timing diagrams
Example 1: Yearly mode on, Monthly mode off, Pulse Off, On Time = 2000-06-01, Off Time =
2099-08-31: every year on June 1 the timer output switches on and remains on until August
31.
Example 2: Yearly mode on, Monthly mode off, Pulse on, On Time = 2000-03-15, Off Time =
2099-**-**: every year on March 15, the timer switches on for one cycle.
Example 3: Yearly mode on, Monthly mode off, Pulse off, On Time = 2008-06-01, Off Time =
2010-08-31: on June 1 of 2008, 2009, and 2010 the timer output switches on and remains on
until August 31.
LOGO!
168 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Example 4: Yearly mode on, Monthly mode off, Pulse on, On Time = 2008-03-15, Off Time =
2010-**-**: on March 15 of 2008, 2009, and 2010, the timer output switches on for one cycle.
Example 5: Yearly mode off, Monthly mode off, Pulse off, On Time = 2008-06-01, Off Time =
2010-08-31: on June 1, 2008 the timer output switches on and remains on until August 31,
2010.
Example 6: Yearly mode off, Monthly mode off, Pulse selected, On Time = 2008-03-15, Off
Time = ****-**-**: on March 15, 2008 the timer output switches on for one cycle. Because the
timer does not have a monthly action or yearly action, the timer output pulses only one time
at the specified On Time.
LOGO!
Manual, 03/2015, A5E33039675 - AB 169
LOGO! functions
4.4 Special functions list - SF
Example 7: Yearly mode on, Monthly mode off, Pulse off, On Time = 2008-12-15, Off Time =
2010-01-07: on December 15 of 2008 and 2009, the timer output switches on and remains
on until January 7 of the following year. When the timer output turns off on January 7, 2010 it
does NOT turn on again the following December 15.
Example 8: Yearly mode on, Monthly mode on, On Time = 2008-**-01, Off Time = 2010-**-
05: starting in 2008, on the first day of each month the timer output switches on and switches
off on the fifth day of the month. The timer continues in this pattern through the last month of
2010.
Functional description
The yearly timer sets and resets the output at specific on and off dates. Sets and resets are
executed at 00:00. If your application requires a different time, use a weekly timer together
with a yearly timer in your circuit program.
LOGO!
170 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
The on time specifies when the timer is activated. The off time specifies when the output is
reset again. For the on and off times, note the order of the fields: The first field defines the
year, the second the month and the third the day.
If you set the Monthly mode on, the timer output switches on each month at the specified day
of the on time and remains on until the specified day of the off time. The on time specifies
the initial year in which the timer is activated. The off time defines the last year in which the
timer turns off. The maximum year is 2099.
If you set the Yearly mode on, the timer output switches on each year at the specified month
and day of the on time and remains on until the specified month and day of the off time. The
on time specifies the initial year in which the timer is activated. The off time defines the last
year in which the timer turns off. The maximum year is 2099.
If you set Pulse output, the timer output switches on at the specified on time for one cycle
and then the timer output is reset. You can choose to pulse a timer on a monthly or yearly
basis, or just a single time.
If you set none of the Monthly, Yearly, or Pulse modes on, you can define a specific time
period with the on time and off time. It can span any time period that you choose.
For a process action that is to be switched on and off at multiple but irregular times during
the year, you can define multiple yearly timers with the outputs connected by an OR function
block.
LOGO!
Manual, 03/2015, A5E33039675 - AB 171
LOGO! functions
4.4 Special functions list - SF
Sample configuration
The output of a LOGO! is to be set annually on March 1, reset on April 4, set again on July 7,
and reset again on November 19. You need to configure two yearly timers with
corresponding on-times, then logically link the outputs by means of an OR block.
Result
LOGO!
172 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Short description
The astronomical clock function is used to set an output high when the current time of your
LOGO! Base Module is between the time of sunrise (TR) and the time of sunset (TS). LOGO!
automatically calculates these times based on the geographical location, the settings for
automatic summertime/wintertime conversion, and the current time of the module.
Note
From LOGO!Soft Comfort V8.0, you can choose from several pre-defined time zone
locations. If you select one of these locations, LOGO!Soft Comfort uses the latitude,
longitude, and the time zone of your selection. This location pre-configuration capability is
only possible from LOGO!Soft Comfort.
LOGO!
Manual, 03/2015, A5E33039675 - AB 173
LOGO! functions
4.4 Special functions list - SF
Timing diagram
The following illustration is an example of the timing diagram where Ta refers to the current
time of the LOGO! Base Module:
Functional description
The function calculates the TR and TS values at the input and sets Q when Ta (Ta is the
current LOGO! Time) is between TR and TS; otherwise, the function resets Q.
If automatic summertime/wintertime conversion (see the topic Summertime/wintertime
conversion (Page 98) for details) is enabled, the function takes the configured time
difference into consideration when calculating the TR and TS values.
Press
Press
LOGO!
174 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Press
LOGO!
Manual, 03/2015, A5E33039675 - AB 175
LOGO! functions
4.4 Special functions list - SF
4.4.14 Stopwatch
Short description
The stopwatch function counts the elapsed time between a start stopwatch signal and a stop
stopwatch signal.
Parameters TB
You can set a timebase from the following timebase set:
● 10 ms (10 milliseconds)
● s (seconds)
● m (minutes)
● h (hours)
LOGO!
176 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Timing diagram
Functional description
En = 1 and Lap = 0: Using the selected timebase, the stopwatch outputs the current time
(CurT) to AQ.
En = 1 and Lap = 1: The stopwatch leaves AQ at its last value when Lap = 0. This value is
recorded as LapT for stopwatch pause time.
En = 0 and Lap = 1: The stopwatch pauses counting time. It outputs LapT to AQ.
En = 0 and Lap = 0: The stopwatch outputs the current time (CurT) to AQ.
A signal at R sets the AQ value to 0.
Setting the Par parameter
View in programming mode (example):
To change the timebase, press to move the cursor to "10ms". Press OK and now the
timebase can be selected. Press or to select another timebase. To confirm your
selection, press OK.
View in parameter assignment mode (example):
LOGO!
Manual, 03/2015, A5E33039675 - AB 177
LOGO! functions
4.4 Special functions list - SF
Short description
An input pulse increments or decrements an internal value, depending on the parameter
setting. The output is set or reset when a configured threshold is reached. The direction of
count can be changed with a signal at input Dir.
LOGO!
178 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Timing diagram
Functional description
The internal counter increments (Dir = 0) or decrements (Dir = 1) by one count with every
positive edge at input Cnt.
You can use input R to reset the internal count value to the start value. As long as R = 1, the
output is also 0 and the pulses at input Cnt are not counted.
If retentivity is not set, output Q and the expired time are reset after a power failure.
Q is set or reset depending on the current value at Cnt and the set thresholds. See the
calculation rule below.
LOGO!
Manual, 03/2015, A5E33039675 - AB 179
LOGO! functions
4.4 Special functions list - SF
Calculation rule
● If the On threshold ≥ Off threshold, then:
Q = 1, if Cnt ≥ On
Q = 0, if Cnt < Off
● If the On threshold < Off threshold, then Q = 1, if On ≤ Cnt < Off.
Note
The system scans the counter limit value cyclically.
Thus, if the pulse frequency at the fast digital inputs I3, I4, I5 or I6 is faster than the cycle
time, the special function might not switch until after the specified limit value is exceeded.
Example: Up to 100 pulses per cycle can be counted; 900 pulses have been counted so
far. On = 950; Off = 10000. The output is set in the next cycle, after the value has
reached 1000. (The output would not be set at all if the value Off = 980).
If the referenced block (B021, in the example) returns a value that lies out of the valid range,
the value is rounded to the next valid value.
The view in parameter assignment mode (example):
LOGO!
180 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Short description
A configured time is triggered with a signal at the monitoring input. The output is set when
this time has expired.
Note
MI, MN and OT are always retentive.
LOGO!
Manual, 03/2015, A5E33039675 - AB 181
LOGO! functions
4.4 Special functions list - SF
Parameter MI
The maintenance interval MI can be provided by the actual value of another already-
programmed function. The timebase of the referenced value is "h" (for hours) only. You can
use the actual values of the following functions:
● Analog comparator (Page 193) (actual value Ax – Ay)
● Analog threshold trigger (Page 188) (actual value Ax)
● Analog amplifier (Page 200) (actual value Ax)
● Analog multiplexer (Page 218) (actual value AQ)
● Analog ramp (Page 221) (actual value AQ)
● Mathematic instruction (Page 232) (actual value AQ)
● PI controller (Page 225) (actual value AQ)
● Up/down counter (Page 178) (actual value Cnt)
● Analog filter (Page 237) (actual value AQ)
● Average value (Page 243) (actual value AQ)
● Max/Min (Page 239) (actual value AQ)
● On-delay (Page 141) (current time Ta)
● Off-delay (Page 145) (current time Ta)
● On-/off-delay (Page 147) (current time Ta)
● Retentive on-delay (Page 149) (current time Ta)
● Wiping relay(pulse output) (Page 151) (current time Ta)
● Edge triggered wiping relay (Page 153) (current time Ta)
● Asynchronous pulse generator (Page 155) (current time Ta)
● Stairway light switch (Page 159) (current time Ta)
● Multiple function switch (Page 161) (current time Ta)
● Stopwatch (Page 176) (current time Ta)
Select the required function by the block number.
LOGO!
182 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Timing diagram
Functional description
The hours counter monitors input En. When En = 1, LOGO! computes the time expired and
the time-to-go MN. LOGO! shows these times in parameter assignment mode. Output Q is
set when the time-to-go MN = 0.
A signal at reset input R resets output Q and sets the preset value of MI at the counter for
the duration of MN. The hours counter OT is not affected.
With a signal at the reset input Ral, you reset output Q and set the preset value of MI at the
counter for the duration of MN. The hours counter OT is reset to zero.
Depending on your configuration of parameter Q, the output is either reset with a signal at
input R or Ral ("Q→0:R"), or when a reset signal is set hi, or the En signal is set lo
("Q→0:R+En").
LOGO!
Manual, 03/2015, A5E33039675 - AB 183
LOGO! functions
4.4 Special functions list - SF
Limit value of OT
The value of the operating hours in OT is retained when you reset the hours counter with a
signal at input R. The hours counter OT will be reset to zero with a transition from 0 to 1 at
Ral. It continues the count as long as En = 1, irrespective of the status at the reset input R.
The counter limit of OT is 99999 h. The hours counter stops when it reaches this value.
In programming mode, you can set the initial value of OT. MN is calculated according to the
following formula when reset input R is never enabled: MN = MI - (OT % MI). The % operator
provides an integer division remainder.
Example:
MI = 30h, OT = 100h
MN = 30 - (100 % 30)
MN = 30 -10
MN = 20h
In runtime mode, the value OT can not be preset. If the value for MI is changed, there would
be no calculation for the MN. MN would take on the value of MI.
MI is the configurable time interval. The permissible range of values is 0 to 9999 hours.
For information on how to assign the actual value of another already-programmed function to
a parameter, see the On-delay (Page 141) topic.
View in parameter assignment mode:
LOGO!
184 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Short description
The output is set and reset with two configurable threshold triggers.
Parameter G_T
The gate time G_T can be provided by the actual value of another already-programmed
function. You can use the actual values of the following functions:
● Analog comparator (Page 193) (actual value Ax – Ay)
● Analog threshold trigger (Page 188) (actual value Ax)
● Analog amplifier (Page 200) (actual value Ax)
● Analog multiplexer (Page 218) (actual value AQ)
● Analog ramp (Page 221) (actual value AQ)
● Mathematic instruction (Page 232) (actual value AQ)
● PI controller (Page 225) (actual value AQ)
● Up/down counter (Page 178) (actual value Cnt)
● Analog filter (Page 237) (actual value AQ)
● Average value (Page 243) (actual value AQ)
● Max/Min (Page 239) (actual value AQ)
LOGO!
Manual, 03/2015, A5E33039675 - AB 185
LOGO! functions
4.4 Special functions list - SF
Timing diagram
Functional description
The threshold trigger measures the signals at input Fre. The pulses are recorded across a
configurable time G_T.
Output Q is set and reset in accordance with the set thresholds. See the calculation rule
below.
Calculation rule
● If the On threshold ≥ Off threshold, then Q = 1, if fa > On or Q = 0, if fa ≤ Off.
● If the On threshold < Off threshold, then Q = 1 if On ≤ fa < Off.
Note
The system scans the counter limit value once per interval G_T.
LOGO!
186 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Note
The "seconds" timebase is here set as permanent default.
When you preset a time G_T of 1 s, LOGO! returns the current frequency in parameter fa in
Hz.
Note
fa always represents the total pulses measured per time unit G_T.
LOGO!
Manual, 03/2015, A5E33039675 - AB 187
LOGO! functions
4.4 Special functions list - SF
Short description
The output is set and reset at two configurable thresholds.
LOGO!
188 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Timing diagram
Functional description
The function fetches the analog signal at input Ax.
Ax is multiplied by the value of the A (gain) parameter, and the value at parameter B (offset)
is added to product, i.e. (Ax • gain) + offset = actual value of Ax.
Output Q is set or reset, depending on the set thresholds. See the calculation rule below.
LOGO!
Manual, 03/2015, A5E33039675 - AB 189
LOGO! functions
4.4 Special functions list - SF
Calculation rule
● If the On threshold ≥ Off threshold, then Q = 1, if the actual value Ax > On or Q = 0, if the
actual value Ax ≤ Off.
● If the On threshold < Off threshold, then Q = 1 if On ≤ actual value Ax < Off.
LOGO!
190 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Short description
The output is set and reset depending on a configurable threshold and a differential value.
LOGO!
Manual, 03/2015, A5E33039675 - AB 191
LOGO! functions
4.4 Special functions list - SF
Functional description
The function fetches the analog signal at input Ax.
Ax is multiplied by the value of the A (gain) parameter, and the value at parameter B (offset)
is added to product, i.e. (Ax • gain) + offset = actual value of Ax.
Output Q is set or reset, depending on the set (On) threshold and difference value (Δ). The
function automatically calculates the Off parameter: Off = On + Δ, whereby Δ may be
positive or negative. See the calculation rule below.
Calculation rule
● When you set a negative differential value Δ, the On threshold ≥ Off threshold, and Q =
1if the actual value Ax > On or Q = 0 if the actual value Ax ≤ Off.
See the timing diagram A.
● When you set a positive differential value Δ, the On threshold < the Off threshold, and Q
= 1, if On ≤ actual value Ax < Off.
See the timing diagram B.
LOGO!
192 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Short description
The output is set and reset depending on the difference Ax - Ay and on two configurable
thresholds.
LOGO!
Manual, 03/2015, A5E33039675 - AB 193
LOGO! functions
4.4 Special functions list - SF
Timing diagram
LOGO!
194 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Functional description
The function fetches the analog values from the inputs Ax and Ay.
Ax and Ay are each multiplied by the value of the A (gain) parameter, and the value at
parameter B (offset) is then added to the relevant product, i.e.
(Ax • gain) + offset = actual value Ax or
(Ay • gain) + offset = actual value Ay.
The function forms the difference ("Δ") between the actual values Ax - Ay.
Output Q is set or reset, depending on difference of the actual values Ax - Ay and the set
thresholds. See the calculation rule below.
Calculation rule
● If the On threshold ≥ Off threshold, then Q = if (actual value Ax - actual value Ay) > On or
Q = 0 if (actual value Ax - actual value Ay) ≤ Off.
● If the On threshold < Off threshold, then Q = 1, if On ≤ (actual value Ax - actual value Ay)
< Off.
Example
In a heating control system, the supply Tv and return line temperatures Tr are to be
compared, for example with a sensor at AI2.
A control signal is to be triggered (for example "heater On") when the difference between the
supply and return line temperatures is greater than 15 °C. The control signal is reset when
the difference is less than 5 °C.
The process variable of the temperature is to be shown in parameter assignment mode.
The thermocouples available have the following technical data: -30 °C to +70 °C, 0 VDC to
10 VDC.
LOGO!
Manual, 03/2015, A5E33039675 - AB 195
LOGO! functions
4.4 Special functions list - SF
Configuration (example):
LOGO!
196 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Short description
This special function saves the process variable of an analog input to memory, and sets the
output when the output variable exceeds or drops below this stored value plus a configurable
offset.
LOGO!
Manual, 03/2015, A5E33039675 - AB 197
LOGO! functions
4.4 Special functions list - SF
LOGO!
198 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Timing diagram
Functional description
A 0 to 1 transition at input En saves the value of the signal at the analog input Ax. This saved
process variable is referred to as "Aen".
Both the analog actual values Ax and Aen are multiplied by the value at parameter A (gain),
and parameter B (offset) is then added to the product:
(Ax • gain) + offset = Actual value Aen, when input En changes from 0 to 1, or
(Ax • gain) + offset = Actual value Ax.
Output Q is set when the signal at input En = 1 and if the actual value at input Ax is out of
range of Aen - Δ 2 to Aen + Δ 1 .
Output Q is reset, when the actual value at input Ax lies within the range of Aen - Δ 2 to Aen+
Δ 1, or when the signal at input En changes to lo.
LOGO!
Manual, 03/2015, A5E33039675 - AB 199
LOGO! functions
4.4 Special functions list - SF
Short description
This special function amplifies the value of an analog input and outputs the result at an
analog output.
Functional description
The function fetches the analog signal of input Ax.
This value is multiplied by the value of the A (gain) parameter, and parameter B (offset) is
then added to the product: (Ax • gain) + offset = actual value Ax.
The actual value Ax is output at AQ.
LOGO!
200 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Analog output
If you interconnect this special function with a real analog output, note that the analog output
can only process values between 0 and 1000. To do this, you may need to connect an
additional amplifier between the analog output of the special function and the real analog
output. Using this amplifier, you standardize the output range of the special function to a
value range of 0 to 1000.
LOGO!
Manual, 03/2015, A5E33039675 - AB 201
LOGO! functions
4.4 Special functions list - SF
Short description
Input S sets output Q, input R resets output Q again.
Timing diagram
Switching response
A latching relay represents a simple binary element. The output value depends on the status
at the inputs and on the previous output status. The following table shows the logic once
again:
Sn Rn Q Comment
0 0 x The status is retentive
0 1 0 Reset
1 0 1 Set
1 1 0 Reset (takes priority over Set)
When retentivity is enabled, the current status of the output signal is retained after a power
failure.
LOGO!
202 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Short description
A short pulse at the input sets and resets the output.
Timing diagram
Functional description
Output Q changes its status; that is, the output is set or reset with each 0 to 1 transition at
input Trg and if the inputs S and R = 0.
The signal at input Trg does not influence the special function when S or R = 1.
You set the pulse relay with a signal at input S. The output is set hi.
You reset the pulse relay with a signal at input R. The output is set lo.
Status diagram
LOGO!
Manual, 03/2015, A5E33039675 - AB 203
LOGO! functions
4.4 Special functions list - SF
*: RS or SR
**: Triggering signal is effective, because S and R = 0.
Depending on your configuration, either input R takes priority over input S (input S is not
effective when R = 1), or vice versa (input R is not effective when S = 1).
After a power failure, the pulse relay and output Q are reset if you have not enabled
retentivity.
View in programming mode:
Note
If Trg = 0 and Par = RS, the special function "Pulse relay" corresponds with the special
function "Latching relay (Page 202)".
Short description
With the message text function block, you can configure a message that includes text and
other parameters for LOGO! to display in RUN mode.
LOGO!
204 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
You can configure simple message texts from the LOGO! onboard display. LOGO!Soft
Comfort provides an extended set of features for message texts: bar graph representation of
data, names for digital I/O states and more. Refer to the LOGO!Soft Comfort documentation
for information on these features.
Of the 50 possible message texts that you can configure, you can select any number of them
to be from the first language and any number from the second language. For example, you
could configure 50 message text function blocks that have a single message text for
Character Set 1. Alternatively, you could configure twenty-five message text function blocks,
each of which has two message texts: one for Character Set 1 and one for Character Set 2.
Any combination is valid such that the total does not exceed 50.
Within a single message text, the text must be from one character set. You can edit
message texts in any of the supported character sets from LOGO!Soft Comfort. From
LOGO! Basic, you can only edit text using characters from the ISO8859-1 character set.
The language and therefore character set of a message text is independent of the language
setting for menus on the LOGO! onboard display. They can be different.
LOGO!
Manual, 03/2015, A5E33039675 - AB 205
LOGO! functions
4.4 Special functions list - SF
LOGO!
206 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Restriction
A maximum of 50 message text blocks are available.
Functional description
When LOGO! is in RUN mode, LOGO! displays the message text that you have configured
along with its parameter values upon a 0 to 1 transition of the signal at input En.
Based on your setting for the message destination, the message text displays on the
LOGO! onboard display, the LOGO! TDE, or both.
If you use flag M27 in your circuit program, then if M27=0 (low) then LOGO! displays the
message text only if it is from the primary character set (Character Set 1). If M27=1 (high),
then LOGO! displays the message text only if it is from the secondary character set
(Character Set 2). (See the M27 flag description in topic Constants and connectors
(Page 119)).
LOGO!
Manual, 03/2015, A5E33039675 - AB 207
LOGO! functions
4.4 Special functions list - SF
If you have configured message ticking, the message will tick on and off the display
according to your specifications, either a character at a time, or a line at a time.
If acknowledgment is disabled (Ack = No), the message text is hidden when the status of the
signal at input En changes from 1 to 0.
If acknowledgment is enabled (Ack = Yes) and the status of the signal at input En changes
from 1 to 0, the message text is output until it is acknowledged with OK. When En = 1, you
cannot acknowledge the message text.
When multiple message text functions are triggered with En=1, LOGO! displays the message
text with the highest priority (0 = lowest, 127 = highest). This also means that LOGO!
displays a newly activated message text only if its priority is higher than that of previously
activated message texts.
After a message text is disabled or acknowledged, the function automatically shows the
previously active message text that takes the highest priority.
You can press the and keys to step through multiple active message texts.
Example
This is how two message texts could be shown:
Message ticking
You can configure message text lines to tick or not tick. Two types of message ticking exist:
● Character by character
● Line by line
LOGO!
208 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Messages that tick character by character scroll off the characters of the message line one
character at a time to the left with the additional characters scrolling in one at a time from the
right. The time interval for the tick is specified by the TickTime message text setting.
Messages that tick line by line scroll one half of the message off the display to the left with
the second half of the message scrolling in from the right. The time interval for the tick is ten
times the TickTime parameter. The two halves of the message simply alternate on the
LOGO! onboard display or LOGO! TDE.
If you set this message to tick "character by character" with a tick interval of 0.1 seconds,
then the initial appearance of this message line on the LOGO! onboard display or
LOGO! TDE is as shown in this illustration:
After 0.1 second, one character of the message line ticks. The message appears as follows
on the LOGO! onboard display or LOGO! TDE:
If you set this message to tick "line by line" with a tick interval of 0.1 seconds, then the initial
appearance of this message on the LOGO! onboard display or LOGO! TDE is the left half of
the message as shown in this illustration:
LOGO!
Manual, 03/2015, A5E33039675 - AB 209
LOGO! functions
4.4 Special functions list - SF
After 1 second (10 x 0.1 second), the message ticks to show the right half of the message as
shown in this illustration:
The screen display alternates between the two message halves every second.
You can configure each individual line of a message text to tick or not tick. The "character by
character" or "line by line" setting applies to all lines that you configure to tick.
4. Press and to select the letter to be displayed in the text. To move the cursor from
one position to another, press and .
Note
The list of available characters is the same as for the circuit program name. The
character set is found in topic Circuit program input (Page 72). When you enter message
text from LOGO! Basic, you can only enter characters from the ISO8859-1 character set.
To enter text from another language, you must enter the text in LOGO!Soft Comfort.
Note that the number of characters per line of message text can be greater than the
number of character positions on the LOGO! onboard display.
LOGO!
210 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
9. Press or to toggle through the three choices for message destination: BM, TDE, or
Both.
10.Press to position the cursor on the "Tick Type" line.
13.To choose between "No" and "Yes" to define whether Line 1 ticks, press or
14.Press to move the cursor to the second line, and press or to choose between
"No" and "Yes" for Line 2. Configure line ticking for lines 3, 4, 5 and 6 in the same way as
for lines 1 and 2.
15.Position the cursor on the "Web Show" line by pressing . Press or to select
between "No" and "Yes" for "Web Show".
16.Press OK to confirm the complete message text configuration.
LOGO!
Manual, 03/2015, A5E33039675 - AB 211
LOGO! functions
4.4 Special functions list - SF
LOGO!
212 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
For timers, a message text can also display the remaining time. "Remaining time" refers to
how much time of the parameter setting remains.
Bar graphs can be either horizontal or vertical representations of the current or actual value
scaled between the minimum and maximum value. For more information on configuring and
displaying bar graphs in message texts, refer to the Online Help for LOGO!Soft Comfort.
Note
You must keep the ESC key pressed for at least one second.
Press and to select the relevant parameter. Press OK to change the parameter. Use
the and keys to edit a parameter.
Confirm your changes with OK. You can now edit further parameters in the message text (if
any exist). Press ESC to exit editing mode.
LOGO!
Manual, 03/2015, A5E33039675 - AB 213
LOGO! functions
4.4 Special functions list - SF
4.4.26 Softkey
Short description
This special function has the effect of a mechanical pushbutton or switch.
Factory setting
The default parameter setting is switching action.
Timing diagram
Functional description
In parameter assignment mode, the output is set with a signal at input En, if the "Switch"
parameter is set to "On" and confirmed with OK. Whether the function was configured for
pushbutton or switching action is of no concern here.
LOGO!
214 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
LOGO!
Manual, 03/2015, A5E33039675 - AB 215
LOGO! functions
4.4 Special functions list - SF
Short description
You can use the shift register function to read the value of an input and to shift its bits left or
right. The output value corresponds with the configured shift register bit. The shifting
direction can be changed at a special input.
Functional description
The function reads the value at input In with a positive edge (0 to 1 transition) at input Trg
(Trigger).
LOGO!
216 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
This value is applied to shift register bit Sx.1 or Sx.8 depending on the shifting direction,
where "x" refers to the index number of the shift register and the number after the decimal
point refers to the bit number:
● Shift up: the value at input In is set at Sx.1; the previous value at Sx.1 is shifted to Sx.2;
the previous value at Sx.2 is shifted to Sx.3 etc.
● Shift down: the value at input In is set at Sx.8; the previous value at Sx.8 is shifted to Sx.7;
the previous value at Sx.7 is shifted to Sx.6 etc.
Output Q returns the value of the configured shift register bit.
If retentivity is disabled, the shift function restarts at Sx.1 or Sx.8 after a power failure. When
enabled, retentivity always applies to all shift register bits.
Note
There are a maximum of four shift register function blocks available for use in the circuit
program in LOGO!.
Timing diagram
The timing diagram example for the shift register in LOGO! is shown as follows:
The view above indicates that the configured shift register bit is S4.8.
This special function is not available in parameter assignment mode.
LOGO!
Manual, 03/2015, A5E33039675 - AB 217
LOGO! functions
4.4 Special functions list - SF
Short description
This special function outputs one of four predefined analog values or 0 at the analog output.
Parameters V1...V4
The analog values for the parameters V1to V4 can be derived from another already-
programmed function. You can use the actual values of the following functions:
● Analog comparator (Page 193) (actual value Ax – Ay)
● Analog threshold trigger (Page 188) (actual value Ax)
● Analog amplifier (Page 200) (actual value Ax)
● Analog ramp (Page 221) (actual value AQ)
● Mathematic instruction (Page 232) (actual value AQ)
● PI controller (Page 225) (actual value AQ)
● Up/down counter (Page 178) (actual value Cnt)
● Analog multiplexer (actual value AQ)
● Analog filter (Page 237) (actual value AQ)
● Average value (Page 243) (actual value AQ)
LOGO!
218 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Timing diagram
Functional description
If input En is set, then the function issues one of four possible analog values V1 to V4 at the
output AQ, depending on the value of S1 and S2.
If the input En is not set, then the function issues the analog value 0 at output AQ.
LOGO!
Manual, 03/2015, A5E33039675 - AB 219
LOGO! functions
4.4 Special functions list - SF
Analog output
If you interconnect this special function with a real analog output, note that the analog output
can only process values between 0 and 1000. To do this, you may need to connect an
additional amplifier between the analog output of the special function and the real analog
output. Using this amplifier, you standardize the output range of the special function to a
value range of 0 to 1000.
LOGO!
220 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Short description
This function allows the output to be changed from the current level to the selected level at a
specified rate.
LOGO!
Manual, 03/2015, A5E33039675 - AB 221
LOGO! functions
4.4 Special functions list - SF
Parameters L1, L2
The analog values for the parameters L1 and L2 can be derived from another already-
programmed function. You can use the actual values of the following functions:
● Analog comparator (Page 193) (actual value Ax – Ay)
● Analog threshold trigger (Page 188) (actual value Ax)
● Analog amplifier (Page 200) (actual value Ax)
● Analog multiplexer (Page 218) (actual value AQ)
● Mathematic instruction (Page 232) (actual value AQ)
LOGO!
222 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
LOGO!
Manual, 03/2015, A5E33039675 - AB 223
LOGO! functions
4.4 Special functions list - SF
Functional description
If the input En is set, then the function sets the current level to StSp + Offset "B" for 100 ms.
Then, depending on the connection of Sel, the function runs from the level StSp + Offset "B"
to either level 1 or level 2 at the acceleration set in Rate.
If the input St is set, the function runs to a level of StSp + Offset "B" at the acceleration set in
Rate. Then the function holds the level at StSp + Offset "B" for 100 ms. After 100 ms, the
level is set to Offset "B". The scaled value (output AQ) is 0.
If the input St is set, the function can only be restarted after the inputs St and En have been
reset.
If input Sel has been changed, depending on the connection of Sel, the function runs from
the current target level to the new target level at the rate that is specified.
If the input En is reset, the function immediately sets the current level to Offset "B".
The current level is updated every 100 ms. Note the following relationship between output
AQ and the current level:
Output AQ = (current level - Offset "B" ) / Gain "A"
Note
For further information on analog value processing, please refer to the Online Help for
LOGO!Soft Comfort.
LOGO!
224 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
4.4.30 PI controller
Short description
Proportional-action and integral-action controllers. You can use both types of controller
individually or combined.
LOGO!
Manual, 03/2015, A5E33039675 - AB 225
LOGO! functions
4.4 Special functions list - SF
Parameters SP and Mq
The set-value SP and the value for Mq can be provided by another already-programmed
function. You can use the actual values of the following functions:
● Analog comparator (Page 193) (actual value Ax – Ay)
● Analog threshold trigger (Page 188) (actual value Ax)
● Analog amplifier (Page 200) (actual value Ax)
● Analog multiplexer (Page 218) (actual value AQ)
● Analog ramp (Page 221) (actual value AQ)
● Mathematic instruction (Page 232) (actual value AQ)
● Up/down counter (Page 178) (actual value Cnt)
● Analog filter (Page 237) (actual value AQ)
● Average value (Page 243) (actual value AQ)
● Max/Min (Page 239) (actual value AQ)
● On-delay (Page 141) (current time Ta)
● Off-delay (Page 145) (current time Ta)
● On-/off-delay (Page 147) (current time Ta)
● Retentive on-delay (Page 149) (current time Ta)
● Wiping relay (pulse output) (Page 151) (current time Ta)
● Edge-triggered wiping relay (Page 153) (current time Ta)
● Asynchronous pulse generator (Page 155) (current time Ta)
● Stairway lighting switch (Page 159) (current time Ta)
● Multiple function switch (Page 161) (current time Ta)
● Stopwatch (Page 176) (actual value AQ)
● PI controller (actual value AQ)
● Threshold trigger (Page 185) (actual value Fre)
Select the required function by the block number. For information on parameter defaults,
refer to the On-delay (Page 141) topic.
Parameters KC, TI
Please note the following circumstances:
● If parameter KC has value 0, the "P" function (proportional control) will not be executed.
● If parameter TI has value 99:59 m, the "I" function (integral-action control) will not be
executed.
LOGO!
226 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Timing diagram
The nature, manner and speed with which the AQ changes depend on the parameters KC
and TI. Thus, the course of AQ in the diagram is merely an example. A control action is
continuous; therefore the diagram portrays just an extract.
Functional description
If the input A/M is set to 0, then the special function issues output AQ with the value that you
set with parameter Mq.
If the input A/M is set to 1, then automatic mode commences. As an integral sum the value
Mq is adopted, the controller function begins the calculations.
Note
For further information on the controller basics, please refer to the Online Help for
LOGO!Soft Comfort.
LOGO!
Manual, 03/2015, A5E33039675 - AB 227
LOGO! functions
4.4 Special functions list - SF
Sampling time
The sampling time is fixed at 500 ms.
Parameter sets
For more information and application examples with application-related parameter sets for
KC, TI and Dir, refer to the Online Help for LOGO!Soft Comfort.
LOGO!
228 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Short description
The Pulse Width Modulator (PWM) instruction modulates the analog input value Ax to a
pulsed digital output signal. The pulse width is proportional to the analog value Ax.
Parameter T
Note the defaults of the T parameters listed in topic Time response (Page 132).
The periodic time T can be provided by the actual value of another already-programmed
function. You can use the actual value of the following functions:
● Analog comparator (Page 193) (actual value Ax – Ay)
● Analog threshold trigger (Page 188) (actual value Ax)
● Analog amplifier (Page 200) (actual value Ax)
● Analog multiplexer (Page 218) (actual value AQ)
● Analog ramp (Page 221) (actual value AQ)
● Mathematic instruction (Page 232) (actual value AQ)
● PI controller (Page 225) (actual value AQ)
● Up/down counter (Page 178) (actual value Cnt)
● Analog filter (Page 237) (actual value AQ)
● Average value (Page 243) (actual value AQ)
● Max/Min (Page 239) (actual value AQ)
LOGO!
Manual, 03/2015, A5E33039675 - AB 229
LOGO! functions
4.4 Special functions list - SF
Functional description
The function reads the value of the signal at the analog input Ax.
This value is multiplied by the value of parameter A (gain). Parameter B (offset) is added to
the product, as follows:
(Ax • Gain) + Offset = Actual value Ax
The function block calculates the proportion of the actual value Ax to the range. The block
sets the digital output Q high for the same proportion of the T (periodic time) parameter, and
sets Q low for the remainder of the time period.
LOGO!
230 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Example 2
Analog input value: 300 (range 0 to 1,000)
Periodic time T: 10 seconds
The digital output of the PWM function is three seconds high, seven seconds low, three
seconds high, seven seconds low and continues in that pattern as long as parameter "En" =
high.
Calculation rule
Q = 1, for (Ax - Min)/ (Max - Min) of time period T, when Min < Ax < Max.
Q = 0, for PT - [ (Ax - Min) / (Max - Min) ] of periodic time T.
Note: Ax in this calculation refers to the actual value Ax as calculated using the Gain and
Offset.
LOGO!
Manual, 03/2015, A5E33039675 - AB 231
LOGO! functions
4.4 Special functions list - SF
Short description
The mathematic instruction block calculates the value AQ of an equation formed from the
user-defined operands and operators.
Qen→0:
0: reset value of AQ to 0 when En=0
1: retain last value of AQ when En=0
p: number of decimals
Range of values: 0, 1, 2, 3
Output AQ The output AQ is the result of the equation formed
from the operand values and operators. AQ will be
set to 32767 if a divide by 0 or overflow occurs, and -
32768 if a negative overflow (underflow) occurs.
Parameters V1 to V4
Another already-programmed function can provide the analog values for the parameters V1
to V4. You can use the actual values of the following functions:
● Analog comparator (Page 193) (actual value Ax – Ay)
● Analog threshold trigger (Page 188) (actual value Ax)
● Analog amplifier (Page 200) (actual value Ax)
● Analog multiplexer (Page 218) (actual value AQ)
LOGO!
232 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Note
If the analog value for parameter V1, V2, V3 or V4 is derived from another already-
programmed function whose actual value exceeds the value range for V1 to V4, LOGO! will
display the limit value -32768 if the value is less than the lower range or 32767 if the value is
greater than the upper range.
Functional description
The mathematic instruction function combines the four operations and three operators to
form an equation. The operator can be any one of the four standard operators: +, -, *, or /.
The priority of operators is determined by "( )" and "[ ]", in which "( )" has a higher priority.
The operand values can reference another previously-defined function to provide the value.
The mathematic instruction function rounds the result to the nearest integer value.
LOGO!
Manual, 03/2015, A5E33039675 - AB 233
LOGO! functions
4.4 Special functions list - SF
The number of operand values is fixed at four and the number of operators is fixed at 3. If
you need to use fewer operands, use constructions such as + 0 or * 1 to fill the remaining
parameters.
You can also configure the behavior of the function when the Enable parameter En=0. The
function block can either retain its last value, or be set to 0. If the parameter Qen → 0 = 0,
then the function sets AQ to 0 when En=0. If the parameter Qen → 0 = 1, then the function
leaves AQ at its last value when En=0.
Examples
The following tables show some simple example mathematic instruction block parameters,
and the resulting equations and output values:
Equation: 2 + [3 * (1 + 4)]
Result: 17
LOGO!
234 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Short description
The mathematic instruction error detection block sets an output if an error has occurred in
the referenced Mathematic instruction (Page 232) function block.
Parameter MathBN
The value for the MathBN parameter references the block number of an already-
programmed mathematic instruction function block.
LOGO!
Manual, 03/2015, A5E33039675 - AB 235
LOGO! functions
4.4 Special functions list - SF
Functional description
The mathematic instruction error detection block sets the output when the referenced
mathematic instruction function block has an error. You can program the function to set the
output on a zero division error, an overflow error, or when either type of error occurs.
If AutoRst is set, the output is reset prior to the next execution of the function block. If
AutoRst is not set, then whenever the output is set it remains set until the mathematic
instruction error detection block is reset with the R parameter. In this way, even if the error
subsequently clears, the circuit program still has knowledge that an error did occur at some
point.
In any scan cycle, if the referenced mathematic instruction function block executes before
the mathematic instruction error detection function block, the error is detected in the same
scan cycle. If the referenced mathematic instruction function block executes after the
mathematic instruction error detection function block, the error is detected in the next scan
cycle.
Err ZD OF Q
ZD 1 x 1
ZD 0 x 0
OF x 1 1
OF x 0 0
ZD/OF 1 0 1
ZD/OF 0 1 1
ZD/OF 1 1 1
ZD/OF 0 0 0
LOGO!
236 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Short description
The analog filter function smooths the analog input signal.
LOGO!
Manual, 03/2015, A5E33039675 - AB 237
LOGO! functions
4.4 Special functions list - SF
Functional description
The function fetches the analog signal at input Ax based on the set number of samples (Sn)
and outputs the average value.
Note
There are a maximum of eight analog filter function blocks available for use in the circuit
program in LOGO!.
LOGO!
238 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
4.4.35 Max/Min
Short description
The Max/Min function records the maximum or minimum value of Ax.
LOGO!
Manual, 03/2015, A5E33039675 - AB 239
LOGO! functions
4.4 Special functions list - SF
Parameter Mode
The actual value of another already-programmed function can provide the value for
parameter Mode. You can use the actual values of the following functions:
● Analog comparator (Page 193) (actual value Ax – Ay)
● Analog threshold trigger (Page 188) (actual value Ax)
● Analog amplifier (Page 200) (actual value Ax)
● Analog multiplexer (Page 218) (actual value AQ)
● Analog ramp (Page 221) (actual value AQ)
● Mathematic instruction (Page 232) (actual value AQ)
● PI controller (Page 225) (actual value AQ)
● Up/down counter (Page 178) (actual value Cnt)
● Analog filter (Page 237) (actual value AQ)
● Average value (Page 243) (actual value AQ)
● On-delay (Page 141) (current time Ta)
● Off-delay (Page 145) (current time Ta)
● On-/off-delay (Page 147) (current time Ta)
● Retentive on-delay (Page 149) (current time Ta)
● Wiping relay (pulse output) (Page 151) (current time Ta)
● Edge-triggered wiping relay (Page 153) (current time Ta)
● Asynchronous pulse generator (Page 155) (current time Ta)
● Stairway lighting switch (Page 159) (current time Ta)
● Multiple function switch (Page 161) (current time Ta)
● Stopwatch (Page 176) (actual value AQ)
● Max/Min (actual value AQ)
● Threshold trigger (Page 185) (actual value Fre)
Select the required function by the block number.
LOGO!
240 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Functional description
ERst = 1 and En = 0: the function sets the AQ value to 0.
ERst = 1 and En = 1: the function outputs a value at AQ, depending on the settings of Mode
and S1.
ERst = 0 and En = 0: the function holds the value of AQ at the current value.
ERst = 0 and En = 1: the function outputs a value at AQ, depending on the settings of Mode
and S1.
Mode = 0: the function sets AQ to the minimum value
Mode = 1: the function sets AQ to the maximum value
Mode = 2 and S1 = 0: the function sets AQ to the minimum value
Mode = 2 and S1 = 1: the function sets AQ to the maximum value
Mode = 3: the function outputs current analog input value.
LOGO!
Manual, 03/2015, A5E33039675 - AB 241
LOGO! functions
4.4 Special functions list - SF
LOGO!
242 Manual, 03/2015, A5E33039675 - AB
LOGO! functions
4.4 Special functions list - SF
Short description
The average value function calculates the average value of an analog input over a
configured time period.
LOGO!
Manual, 03/2015, A5E33039675 - AB 243
LOGO! functions
4.4 Special functions list - SF
Functional description
This function fetches the analog input signal according to both the set sampling time St and
the number of samples Sn and outputs the average value. A signal at R sets AQ to 0.
LOGO!
244 Manual, 03/2015, A5E33039675 - AB
Web server 5
LOGO! 0BA8 has a built-in Web server which enables you to operate the LOGO! Base
Module or the LOGO! TDE from a traditional PC or a mobile device.
In this approach, you can access the LOGO! Base Module or the LOGO! TDE using a
connected device (conventional PC, tablet or smart phone with Web browsing capabilities)
through its IP address.
The Web server allows you to use the mouse pointer or the touch screen, depending on the
device you are using, to perform fast and easy operations on the virtualized LOGO! Base
Module and LOGO! TDE.
LOGO! 0BA8 also provides access security control over the Web server. For more
information, see section Network access security (Page 287).
Note
Make sure you do not disable cookies on your browser.
Supported devices
The LOGO! Web server supports the following communications devices when you use one
of the above explorers:
● Conventional PC
● Apple iPhone series
LOGO!
Manual, 03/2015, A5E33039675 - AB 245
Web server
5.2 Logging on to the Web server
– Remote access:
Note
Make sure you have enabled TCP port 8080 for remote access.
LOGO!
246 Manual, 03/2015, A5E33039675 - AB
Web server
5.2 Logging on to the Web server
3. Click or tap the button. The LOGO! Web server redirects you to the welcome page.
Note
If you have enabled Web user access without changing the password, you can log on
with the default password "LOGO".
LOGO!
Manual, 03/2015, A5E33039675 - AB 247
Web server
5.3 Viewing LOGO! system information
Note
• You can only enable the Web server access or change the logon password using
LOGO!Soft Comfort. For more information about setting the user password, refer to
the Online Help for LOGO!Soft Comfort.
• If you do not desire to enter the user name and password again at the next logon, you
can select the "①" check box. Make sure you do not set your browser to private
mode, since your browser does not record any browsing history or passwords in this
mode.
• You can access one LOGO! Base Module from multiple LOGO! Web server clients,
but due to memory usage, this might also impact the performance of the connected
Base Module.
Note
• For remote access, the logon may take several seconds.
• If your logon fails, press or tap the refresh button on your browser (or press the
keyboard shortcut "F5" on the conventional PC) to try it again.
LOGO!
248 Manual, 03/2015, A5E33039675 - AB
Web server
5.3 Viewing LOGO! system information
Note
The firmware verison in the screen above is listed for example, your LOGO! device may be
of an later version.
LOGO!
Manual, 03/2015, A5E33039675 - AB 249
Web server
5.4 Operating the virtual module on the Web server
LOGO!
250 Manual, 03/2015, A5E33039675 - AB
Web server
5.4 Operating the virtual module on the Web server
Click or tap LOGO! BM or LOGO! TD on the left navigation bar and you can view active
messages on the virtual device.
● On the LOGO! Base Module:
LOGO!
Manual, 03/2015, A5E33039675 - AB 251
Web server
5.4 Operating the virtual module on the Web server
Note
The and are gray, indicating they are not applicable in viewing message texts.
LOGO!
252 Manual, 03/2015, A5E33039675 - AB
Web server
5.4 Operating the virtual module on the Web server
Enter the desired parameter value in line "①" on the above screens. In this example, enter
"20:00s".
LOGO!
Manual, 03/2015, A5E33039675 - AB 253
Web server
5.4 Operating the virtual module on the Web server
Make sure you have strictly followed the example of your current value. Any inconsistency
may cause errors on the module.
Click or tap "②". The updated parameter is displayed.
● On the LOGO! Base Module:
LOGO!
254 Manual, 03/2015, A5E33039675 - AB
Web server
5.5 Viewing and editing variable memory tables
Click or tap "②" to add a new variable. Follow the steps below to set the variable.
1. Choose a desired range. Web server displays the mapping address, variable type,
display format of the range.
2. Enter the new mapping address in the added empty column "③".
The indicates the variable is to be modified.
The indicates it is not editable.
Click or tap "④" to apply the new mapping addresses.
LOGO!
Manual, 03/2015, A5E33039675 - AB 255
Web server
5.6 Logging off from the Web server
LOGO!
256 Manual, 03/2015, A5E33039675 - AB
UDF (User-Defined Function) 6
User-Defined Function (UDF)
LOGO!Soft Comfort provides you with a UDF (User-Defined Function) editor for creating
circuit programs. You can save circuit programs created in the UDF editor as individual UDF
blocks for use in a circuit program in the UDF or FBD editor.
A UDF block is a preconfigured circuit program that you create. You can add it to an existing
circuit program as you do with a function block. If the circuit program in LOGO!Soft Comfort
already contains a UDF, after transferring the program from LOGO!Soft Comfort to a LOGO!
0BA8, you can edit the elements connected to this UDF from the module.
For a detailed description of the UDF configuration in LOGO!Soft Comfort, refer to the Online
Help for LOGO!Soft Comfort.
Note
Each UDF block has a maximum of eight inputs and four outputs, dependent upon your
configuration in LOGO!Soft Comfort.
LOGO!
Manual, 03/2015, A5E33039675 - AB 257
UDF (User-Defined Function)
5. Press OK twice to enter circuit program edit mode. A "U" identifies a UDF block. "U1"
refers to the first UDF block. The following display shows you an example of the circuit
program that contains a UDF block configured from LOGO!Soft Comfort.
8. Position the cursor on the selected input ("I1" in this example) and press OK. The cursor
appears in a flashing solid square. If you want to change the first input to another element,
press or .
9. Confirm your selection by pressing OK. The first input of "U1" is now changed.
2. Move the cursor to "In" by pressing . Press OK and the cursor appears in a flashing
solid square. You can change the input to "U1.1" (".1" refers to the first output of the UDF
LOGO!
258 Manual, 03/2015, A5E33039675 - AB
UDF (User-Defined Function)
block that is connected to "Q1") by pressing or and LOGO! shows the following
display:
3. Confirm your selection by pressing OK. Press ESC and LOGO! shows the following
display:
5. Press OK and the cursor appears in a flashing solid square. Select an empty input by
pressing or . Press OK and LOGO! shows the following display:
LOGO!
Manual, 03/2015, A5E33039675 - AB 259
UDF (User-Defined Function)
1. Press to move the cursor to "Par" and press OK. LOGO! shows you the following
display (T and TH are the identifiers you specified for the relevant UDF parameters in
LOGO!Soft Comfort . You can configure a maximum of eight parameters for each UDF
block using LOGO!Soft Comfort. LOGO! can show a maximum of three parameters on a
single display.):
3. Press or to change the value. Press or to select another number and then
press or to change its value. Press OK to confirm your modifications. Then LOGO!
shows the following display:
You can also edit UDF parameter settings in parameter assignment mode in the same way
as you do in programming mode.
LOGO!
260 Manual, 03/2015, A5E33039675 - AB
Data log 7
You can configure a maximum of one data log for your circuit program using LOGO!Soft
Comfort. The data log records process measurement variables for function blocks that you
configure for data logging. You can add the data log instruction to your circuit program as
you do with a function block.
If you configured the data log for your circuit program, after transferring the program from
LOGO!Soft Comfort to LOGO!, you can edit the elements connected to the data log block.
For a detailed description of configuration of the data log function in LOGO!Soft Comfort,
refer to the Online Help for LOGO!Soft Comfort. From the LOGO! Base Module, you can
only configure elements connected to the data log block.
2. Move the cursor to "L1" by pressing (The data log is identified with a "L1"). Press OK.
LOGO! shows the following display:
LOGO!
Manual, 03/2015, A5E33039675 - AB 261
Data log
3. Press OK on the selected input ("M1" in this example) and the cursor appears in a
flashing solid square. To select a different element from the available list (for example,
B3), press . Press OK. LOGO! shows the following display:
4. In the following example, you can see that this "L1" is now connected to the B3 block:
Note
LOGO! 0BA8 provides a 1024-byte buffer for data logging. If the data in this buffer
reaches 512 bytes, LOGO! automatically writes data to the micro SD card inserted in the
card slot. If the speed of data generation in LOGO! 0BA8 is faster than that of data writing
to the micro SD card, data loss can occur. To avoid the occurrence of data loss, apply an
enable signal to the data log function block at a minimum time interval of 500 ms. If,
however, no micro SD card is inserted in the card slot, the buffer area in LOGO! 0BA8
can only store 512 bytes of data log and the left data log gets lost.
A micro SD card can store a maximum of 50 data log files for each LOGO! Base Module.
If you insert the same card into another LOGO! Base Module, it can store another 50 data
log files for the current LOGO! Base Module, but the maximum number of lines that a
card can store is limited to its memory size. A data log file on the micro SD card can store
a maximum of 20000 lines. If the memory of the micro SD card is full and you want to
create a new data file, then an error message will be generated automatically.
LOGO! automatically creates file names with the format of "<XYZ>_<number>.csv".
<XYZ> stands for the last part of the four-part IP address code of the connected LOGO!
Base Module. It ranges from one digit to three digits. <number> indicates the sequential
number of the created data file and ranges from 1 to 50. Do not change the file name
because the LOGO! Base Module cannot recognize user-defined names.
You can only upload the most recent data log file on the micro SD card from LOGO! to
LOGO!Soft Comfort.
Under the following circumstances, LOGO! creates a new data log file:
• When the circuit program in LOGO! is changed
• When the number of lines in the data log file exceeds 20000
The created file will have a name with an increased number index, for example, if the
name for the current data file is "135_1.csv", the new file will be named "135_2.csv".
LOGO!
262 Manual, 03/2015, A5E33039675 - AB
Configuring LOGO! 8
Parameter assignment refers to the configuration of the block parameters. You can set delay
times for time functions, the switching times of timers, counter threshold values, the
monitoring interval of an hours counter, the on and off thresholds of the trigger, and more.
You can configure the parameters:
● In programming mode
● In parameter assignment mode
Parameter assignment mode allows the editing of parameters without having to modify the
circuit program. This feature is available so that you can edit parameters without having to
change to programming mode. The advantage is that you can edit program parameters, but
the circuit program remains protected.
Note
In parameter assignment mode, LOGO! continues execution of the circuit program.
For more information about the menu commands in parameter assignment mode, refer to
Section "LOGO! Basic (Page 331)".
Follow these steps to stop your circuit program and thus change to the main menu of
programming mode:
1. Move the cursor to "①": Press or
LOGO!
Manual, 03/2015, A5E33039675 - AB 263
Configuring LOGO!
8.1 Selecting parameter assignment mode
4. Confirm placing LOGO! in STOP mode by pressing OK with the cursor on "②".
LOGO! shows the main menu of the programming mode:
For more information about switching LOGO! to RUN mode, refer to Section "Switching
LOGO! to RUN mode (Page 81)".
● Menu command ①
For information on the various settings, refer to the following topics:
– Parameters (Page 265)
– Selecting the parameters (Page 266)
– Modifying parameters (Page 267)
– Assigning a circuit program name (Page 76)
● Menu command ②
For information on the various settings, refer to the following topics:
– Setting the time of day and date (Page 270)
– Summertime/wintertime conversion (Page 98)
– Synchronization (Page 101)
– Setting the start screen (Page 275)
– Setting the display contrast and backlight choice (Page 271)
– Setting the default values for LOGO! (Page 269)
LOGO!
264 Manual, 03/2015, A5E33039675 - AB
Configuring LOGO!
8.1 Selecting parameter assignment mode
● Menu command ③
For information on the various settings, refer to the topic "Configuring network settings
(Page 104)".
● Menu command ④
For information on the various settings, refer to the topic "Diagnosing errors from LOGO!
(Page 110)".
8.1.1 Parameters
Note
You can only view and edit parameters in the parameter assignment mode when they have
the read/write ("+") designation. See the "Parameter protection (Page 133)" topic and the
"Synchronization (Page 101)" topic.
Note
LOGO!Soft Comfort also allows you to assign names to blocks (for more information, refer to
the chapter entitled "LOGO! Software (Page 291)".
LOGO!
Manual, 03/2015, A5E33039675 - AB 265
Configuring LOGO!
8.1 Selecting parameter assignment mode
If no parameter can be set, the display shows as follows, and you can press ESC to
return to the parameter assignment menu.
5. Press or to move the cursor to the block that you desire to change its parameter,
and confirm with OK.
LOGO!
266 Manual, 03/2015, A5E33039675 - AB
Configuring LOGO!
8.1 Selecting parameter assignment mode
Note
When changing the time parameter when the system is in RUN, you can also change the
timebase (s=seconds, m=minutes, h=hours). This does not apply if the time parameter
represents the result of another function (for an example, see the "On-delay (Page 141)"
topic). In this case you can neither change the value nor the timebase. The current time is
reset to zero when you change the timebase.
LOGO!
Manual, 03/2015, A5E33039675 - AB 267
Configuring LOGO!
8.1 Selecting parameter assignment mode
You can change the on/off threshold. This does not apply if the on or off threshold represents
the result of another function (In the "Up/down counter (Page 178)" topic, this is B021).
LOGO!
268 Manual, 03/2015, A5E33039675 - AB
Configuring LOGO!
8.2 Setting the default values for LOGO!
Clock settings
You can set the default values for time-of-day and date (Page 270) , summertime/wintertime
conversion (Page 98) and synchronization (Page 101) in programming mode or parameter
assignment mode through the following menu commands:
Menu language
You can set the language (Page 274) in which LOGO! displays the menus in programming
mode through the following menu commands:
LOGO!
Manual, 03/2015, A5E33039675 - AB 269
Configuring LOGO!
8.2 Setting the default values for LOGO!
Setting the time of day and the date in parameter assignment mode
Follow these steps to set the time of day and the date:
1. Select parameter assignment mode (Page 263).
2. On the parameter assignment menu, move the cursor to "①": Press or
LOGO!
270 Manual, 03/2015, A5E33039675 - AB
Configuring LOGO!
8.2 Setting the default values for LOGO!
8. To set the correct time of day, press or to move the cursor to the desired position,
and press or to change the value.
9. To set the correct date, press or to move the cursor to the desired position, and
press or to change the value.
10.To confirm your entries: Press OK
LOGO!
Manual, 03/2015, A5E33039675 - AB 271
Configuring LOGO!
8.2 Setting the default values for LOGO!
LOGO!
272 Manual, 03/2015, A5E33039675 - AB
Configuring LOGO!
8.2 Setting the default values for LOGO!
LOGO!
Manual, 03/2015, A5E33039675 - AB 273
Configuring LOGO!
8.2 Setting the default values for LOGO!
Note
The backlight lifetime of the LOGO! TDE is 20000 hours.
You can change the backlight colors of the LOGO! onboard display or the LOGO! TDE by
means of some special flags (M25, M26, M28 to M31). For more information, refer to section
"Constants and connectors (Page 119)". If you use these special flags in your circuit
programs, the backlight setting through the above menu commands takes no effect.
LOGO!
274 Manual, 03/2015, A5E33039675 - AB
Configuring LOGO!
8.2 Setting the default values for LOGO!
LOGO!
Manual, 03/2015, A5E33039675 - AB 275
Configuring LOGO!
8.2 Setting the default values for LOGO!
The current setting of the start screen is indicated by the circle with a dot. The default
setting is "③".
You can choose to display the current time-of-day and date (③), the values of the digital
inputs (④), or the parameter assignment menu (⑤).
6. Select the desired default setting: Press or
7. To confirm your entry: Press OK
Power LOGO! off then on to make your changes take effect. When LOGO! is in RUN mode,
it displays the start screen that you selected.
LOGO!
276 Manual, 03/2015, A5E33039675 - AB
Using memory cards 9
LOGO! supports only micro SD cards that support FAT32 file system format for program
storage. You can store and copy-protect a circuit program, with or without the data log of
process data, from a LOGO! device to a micro SD card, or copy a circuit program from the
card to a LOGO! device.
LOGO! allows you to store only one circuit program in its memory. If you want to modify the
circuit program or create an additional one without deleting the first, you must archive it
somewhere.
For detailed information about how to format micro SD cards, see Section "Formatting micro
SD cards (Page 277)".
For detailed information about the copy protection function, see Section "Program copy
protection (Page 289)".
For detailed information about the data log, see Chapter "Data log (Page 261)".
LOGO!
Manual, 03/2015, A5E33039675 - AB 277
Using memory cards
9.1 Formatting micro SD cards
1.
2.
LOGO!
278 Manual, 03/2015, A5E33039675 - AB
Using memory cards
9.1 Formatting micro SD cards
3.
4.
2. Enter the first command "fdisk -1" in the terminal to search for the removable device block
name and "/dev/sdc1" is found.
3. Enter "sudo umount /dev/sdc1" to umount this device.
4. Enter "sudo mkfs.vfat -f 32 /dev/sdc1" and formatting is completed.
LOGO!
Manual, 03/2015, A5E33039675 - AB 279
Using memory cards
9.1 Formatting micro SD cards
1.
2.
LOGO!
280 Manual, 03/2015, A5E33039675 - AB
Using memory cards
9.2 Inserting and removing the card from LOGO!
3.
4.
LOGO!
Manual, 03/2015, A5E33039675 - AB 281
Using memory cards
9.2 Inserting and removing the card from LOGO!
Note
Make sure that you insert the card into the right position in the socket until you hear an
audible sound of a click.
LOGO!
282 Manual, 03/2015, A5E33039675 - AB
Using memory cards
9.3 Copying data from LOGO! to the card
Press OK. LOGO! starts copying the circuit program to the card.
If power fails while LOGO! is copying the circuit program, repeat the process after power-on.
Note
• If the program is empty, a message will display on the screen to remind you the program
in LOGO! is empty.
• The password of a protected circuit program in LOGO! also applies to the copied program
version on your card.
Note
To successfully copy the circuit program from LOGO! to the micro SD card, make sure that
the free memory space available on the micro SD card is at least 100 Kbytes.
LOGO!
Manual, 03/2015, A5E33039675 - AB 283
Using memory cards
9.4 Copying data from the card to LOGO!
Note
When LOGO! with an inserted micro SD card is in STOP mode, you can upload the most
recent data log file on the micro SD card to LOGO!Soft Comfort using a transfer menu
command in LOGO!Soft Comfort. For more information about the data log uploading
command, refer to the Online Help for LOGO!Soft Comfort.
Note
If the program on the card is protected with a password, the copied program in LOGO! is
also protected with the same password. For more information about the Card menu, refer to
Section "Overview of LOGO! menus (Page 68)".
LOGO!
284 Manual, 03/2015, A5E33039675 - AB
Using memory cards
9.4 Copying data from the card to LOGO!
Note
Before you switch LOGO! to RUN, you must ensure that the system you are controlling
with LOGO! does not represent a source of hazard.
Press OK. LOGO! copies the circuit program from the card to LOGO!. When LOGO! has
finished copying, it automatically returns to the LOGO! main menu.
LOGO!
Manual, 03/2015, A5E33039675 - AB 285
Using memory cards
9.4 Copying data from the card to LOGO!
LOGO!
286 Manual, 03/2015, A5E33039675 - AB
Security 10
Overview
This chapter describes the following security functions for improved protection on LOGO!:
LOGO!
Manual, 03/2015, A5E33039675 - AB 287
Security
10.1 Network access security
Siemens strongly recommends that you do not put the LOGO! devices (LOGO! Base
Modules and the LOGO! TDE) and the SIMATIC S7 devices directly on the Internet, but hide
them behind a firewall (see illustration below). In addition, make sure you select TCP port
8080 and block all other ports in the firewall configuration; otherwise, there may be network
security risks, for example, data leakage, virus invasion and hacker attack.
WARNING
Death, severe personal injury and/or property damage from unauthorized access to LOGO!
from the Web server
You can set from LOGO!Soft Comfort to enable remote access to LOGO! from the Web
server. This allows you to perform program/variable changes from the Web server.
Unauthorized access to LOGO! from the Web server could disrupt process operation and
could result in death, severe personal injury and/or property damage.
Siemens recommends that you observe the following security practices:
• Password-protect Web server access to LOGO! with a strong password. Strong
passwords are at least eight characters in length, mix letters, numbers, and special
characters, are not words that can be found in a dictionary, and are not names or
identifiers that can be derived from personal information. Keep the password secret and
change it frequently.
• Perform error-checking and range-checking on your variables in your program logic.
Note
To protect your devices, you must make sure your Intranet is secure; otherwise, your
devices may still be subject to network security risks.
LOGO!
288 Manual, 03/2015, A5E33039675 - AB
Security
10.2 Program access security
LOGO!
Manual, 03/2015, A5E33039675 - AB 289
Security
10.3 Menu access security
Note
The protection function applies only to the card; you must copy (Page 283) the circuit
program to the card in a separate action at power-on.
You can always change the status of protection function disabled to protection function
enabled.
A status change from protection function enabled to protection function disabled is only
possible if the card does not contain a circuit program.
LOGO!
290 Manual, 03/2015, A5E33039675 - AB
LOGO! software 11
11.1 LOGO! software
LOGO!Soft Comfort is available as a programming package for the PC. This software
provides many features, for example:
● A graphical user interface for offline creation of your circuit program by means of Ladder
Diagram (contact chart / circuit diagram) or Function Block Diagram (function chart)
● Simulation of your circuit program on the PC
● Generating and printing of an overview chart for the circuit program
● Saving a backup of the circuit program on the hard drive or other media
● Comparing circuit programs
● Easy configuration of blocks
● Transferring the circuit program in both directions:
– from LOGO! to the PC
– from the PC to LOGO!
● Reading the values of the hour counter
● Setting the time of day
● Summertime/wintertime conversion
● Online testing that provides a display of status changes and process variables of LOGO!
in RUN mode:
– Status of digital I/O, flags, shift register bits and cursor keys
– Values of all analog I/O and flags
– Results of all blocks
– Current values (including the times) of selected blocks
● Starting and stopping circuit program execution from the PC (switching between RUN and
STOP modes)
● Network communication
● Creating UDF blocks (Page 257) for use in a circuit program
● Configuring the Data Log (Page 261) function block for your circuit program to record
process values of the configured function blocks
The current version is LOGO!Soft Comfort V8.0. The Online Help for LOGO!Soft Comfort
describes all of the programming functionality and design features.
LOGO!
Manual, 03/2015, A5E33039675 - AB 291
LOGO! software
11.1 LOGO! software
You can find order numbers in Section "Order numbers (Page 345)".
To upgrade from an old version to a new version, follow these steps:
1. Install the new software from the DVD.
2. When the system prompts you for the previous version, place the old LOGO!Soft Comfort
DVD in the DVD drive.
3. Point your browser to the "...\Application" directory on the DVD.
LOGO!
292 Manual, 03/2015, A5E33039675 - AB
LOGO! software
11.2 Connecting LOGO! to a PC
Connecting LOGO! to a PC
LOGO! 0BA8 has an Ethernet port so you can connect a LOGO! 0BA8 Base Module to a PC
with an Ethernet cable.
When LOGO! is in STOP mode and online with the PC, the following PC commands are
available:
● Switch LOGO! to RUN
● Read/write the circuit program
● Read/write the summertime/wintertime
Note
For more information on LOGO! versions without display, refer to the Appendix topic "LOGO!
without display ("LOGO! Pure") (Page 329)".
LOGO!
Manual, 03/2015, A5E33039675 - AB 293
LOGO! software
11.2 Connecting LOGO! to a PC
Note
If you have password-protected the program that you created in LOGO!Soft Comfort, LOGO!
receives both the circuit program and the password during the download.
The upload of a password-protected program created in LOGO! is possible only after you
enter the correct password in LOGO!Soft Comfort.
LOGO!
294 Manual, 03/2015, A5E33039675 - AB
Applications 12
Note
LOGO! sample applications are available to all our customers free of charge on the Siemens
LOGO! website (http://www.siemens.com/logo) (go to Products & Solutions → Applications →
Application Examples).
Siemens does not guarantee that the provided examples are error-free; they serve as
general information about the fields of application for LOGO!, and can be different from user-
specific solutions. Siemens reserves the right to make changes.
You are responsible for the operation of your system.. For safety concerns, refer to the
relevant national standards and system-related installation regulations.
On the Internet you can find the following sample applications, tips for further applications,
and more:
● Irrigation system for greenhouse plants
● Conveyor control system
● Bending machine control system
● Shop window lighting
● Bell system (for example, in a school)
● Parking lot surveillance
● Outdoor lighting
● Shutter control system
● Domestic outdoor and indoor lighting system
● Control system of a cream stirrer
● Sports hall lighting
● Constant load on three consumers
● Sequential control system for cable-welding machines for large cross–sections
● Step switch (for example, for fans)
● Sequential control for boilers
● Control system for several pump sets with centralized operator control
● Cutting device (for example, for detonating fuses)
● Monitoring periods of utilization, for example of a solar energy system
● Intelligent foot switches, for example, for speed preselection)
● Elevating platform controls
● Impregnation of textiles, heating and conveyor belt controls
LOGO!
Manual, 03/2015, A5E33039675 - AB 295
Applications
● Silo-filling system
● Fill station with message text on the LOGO! TDE that displays the sum of counted objects
On the Web you can also find descriptions and the corresponding circuit diagrams of the
applications. You can read these *.pdf files with the Adobe Acrobat Reader. If you have
installed LOGO!Soft Comfort on your computer, you can simply click the disk icon to
download the relevant circuit programs, which you can then adapt to suit your application
and download to LOGO! directly via the PC cable.
Benefits of LOGO!
LOGO! is a particularly useful feature:
● For replacing auxiliary switchgear with the integrated LOGO! functions
● For saving wiring and installation work - because LOGO! keeps the wiring "in its head."
● For reducing space requirements for components in the control cabinet/distribution box. A
smaller control cabinet/distribution box may provide sufficient space.
● For adding or changing functions, without having to install additional switchgear or
change the wiring.
● For offering your customers new, additional functions for domestic and commercial
housing installations. Examples:
– Domestic security systems: LOGO! switches on a lamp at regular intervals or opens
and closes the shutters while you are on holiday.
– Central heating: LOGO! runs the circulation pump only when water or heating is
actually required.
– Refrigerating systems: LOGO! can defrost refrigerating systems at regular intervals to
save energy costs.
– You can illuminate aquaria and terraria on a time-dependent basis.
Last but not least, you can:
● Use commonly available switches and pushbuttons, which makes it easy to install a
domestic system.
● Connect LOGO! directly to your domestic installation; the integrated power supply makes
it possible.
LOGO!
296 Manual, 03/2015, A5E33039675 - AB
Applications
Write to:
Siemens AG
A&D AS FA PS4
PO box 48 48
D-90327 Nuremberg
LOGO!
Manual, 03/2015, A5E33039675 - AB 297
Applications
LOGO!
298 Manual, 03/2015, A5E33039675 - AB
Technical data A
A.1 General technical data
LOGO! Pure
71.5 x 90 x 58 mm
Dimensions (WxHxD)
Weight
• Modules with relay output Approx. 200 g
Approx. 160 g
• Modules with transistor output
On a 35 mm profile rail four
Installation module widths or wall mounting
LOGO! expansion modules DM16...
Dimensions (WxHxD) 71.5 x 90 x 58 mm
Weight
• Modules with relay output Approx. 225 g
• Modules with transistor output Approx. 165 g
On a 35 mm profile rail four
Installation
module widths or wall mounting
LOGO! expansion modules
DM8...
Dimensions (WxHxD) 35.5 x 90 x 58 mm
Weight
• Modules with relay output Approx. 130 g
• Modules with transistor output Approx. 95 g
On a 35 mm profile rail two
Installation
module widths or wall mounting
LOGO! expansion modules
AM...
Dimensions (WxHxD) 35.5 x 90 x 58 mm
Weight Approx. 95 g
Installation On a 35 mm profile rail two
module widths or wall mounting
LOGO!
Manual, 03/2015, A5E33039675 - AB 299
Technical data
A.1 General technical data
LOGO!
300 Manual, 03/2015, A5E33039675 - AB
Technical data
A.2 Technical data: LOGO! 230...
LOGO!
Manual, 03/2015, A5E33039675 - AB 301
Technical data
A.2 Technical data: LOGO! 230...
Delay time at 1 to 0:
• 120 VAC • Typ. 45 ms • Typ. 45 ms
• 240 VAC • Typ. 70 ms • Typ. 70 ms
• 120 VDC • Typ. 60 ms • Typ. 60 ms
• 240 VDC • Typ. 75 ms • Typ. 75 ms
Line length (unshielded) max. 100 m max. 100 m
Digital outputs
Number 4 4
Output type Relay outputs Relay outputs
Electrical isolation Yes Yes
In groups of 1 1
Control of a digital input Yes Yes
Continuous current Ith Recommended range of appli- Recommended range of appli-
cation ≥ 100 mA at cation ≥ 100 mA at
12 VAC/VDC 12 VAC/VDC
Max. 10 A per relay Max. 10 A per relay
LOGO!
302 Manual, 03/2015, A5E33039675 - AB
Technical data
A.3 Technical data: LOGO! DM8 230R and LOGO! DM16 230R
Notice: For fluorescent lamps with capacitors, you must consider the technical data of
fluorescent lamp ballasts. If the current exceeds the maximum allowed surge current,
appropriate contactor relays must switch the flourescent lamps.
The data was determined with the following devices:
● Siemens fluorescent tubes 58 W VVG 5LZ 583 3-1 uncompensated.
● Siemens fluorescent tubes 58 W VVG 5LZ 583 3-1 parallel compensated with 7 μF.
● Siemens fluorescent tubes 58 W VVG 5LZ 501 1-1N with ballast.
A.3 Technical data: LOGO! DM8 230R and LOGO! DM16 230R
LOGO!
Manual, 03/2015, A5E33039675 - AB 303
Technical data
A.3 Technical data: LOGO! DM8 230R and LOGO! DM16 230R
LOGO!
304 Manual, 03/2015, A5E33039675 - AB
Technical data
A.3 Technical data: LOGO! DM8 230R and LOGO! DM16 230R
Delay time at 1 to 0:
• 120 VAC • Typ. 45 ms • Typ. 45 ms
• 240 VAC • Typ. 70 ms • Typ. 70 ms
• 120 VDC • Typ. 60 ms • Typ. 60 ms
• 240 VDC • Typ. 75 ms • Typ. 75 ms
Line length (unshielded) Max. 100 m Max. 100 m
Digital outputs
Number 4 8
Output type Relay outputs Relay outputs
Electrical isolation Yes Yes
In groups of 1 1
Control of a digital input Yes Yes
Continuous current Ith Recommended range of appli- Recommended range of appli-
cation ≥ 100 mA at cation ≥ 100 mA at
12 VAC/VDC 12 VAC/VDC
Max. 5 A per relay Max. 5 A per relay
Surge current Max. 30 A Max. 30 A
Incandescent lamp load (25000
switching cycles) at:
230/240 VAC 1000 W 1000 W
115/120 VAC 500 W 500 W
Fluorescent tubes with ballast 10 x 58 W (at 230/240 VAC) 10 x 58 W (at 230/240 VAC)
(25000 switching cycles)
Fluorescent tubes, convention- 1 x 58 W (at 230/240 VAC) 1 x 58 W (at 230/240 VAC)
ally compensated (25000
switching cycles)
Fluorescent tubes, uncompen- 10 x 58 W (at 230/240 VAC) 10 x 58 W (at 230/240 VAC)
sated (25000 switching cycles)
Short circuit-proof cos 1 Power protection B16, 600 A Power protection B16, 600 A
Short circuit-proof cos 0.5 to 0.7 Power protection B16, 900 A Power protection B16, 900 A
Derating None; across the entire temper- None; across the entire temper-
ature range ature range
Parallel output circuits for power Not permitted Not permitted
increase
Protection of output relay (if Max. 16 A, Max. 16 A,
desired) characteristic B16 characteristic B16
Switching rate
Mechanical 10 Hz 10 Hz
LOGO!
Manual, 03/2015, A5E33039675 - AB 305
Technical data
A.4 Technical data: LOGO! 24...
Notice: For fluorescent lamps with capacitors, you must consider the technical data of
fluorescent lamp ballasts. If the current exceeds the maximum allowed surge current,
appropriate contactor relays must switch the flourescent lamps.
The data was determined with the following devices:
● Siemens fluorescent tubes 58 W VVG 5LZ 583 3-1 uncompensated.
● Siemens fluorescent tubes 58 W VVG 5LZ 583 3-1 parallel compensated with 7 μF.
● Siemens fluorescent tubes 58 W VVG 5LZ 501 1-1N with ballast.
LOGO! 24CE
LOGO! 24CEo
Power supply
Input voltage 24 VDC
Permissible range 20.4 VDC to 28.8 VDC
Reverse polarity protection Yes
Permissible mains frequency --
Power consumption from 24 VDC 15 mA to 50 mA (no load on digital output)
1.2 A (with max. load on digital output)
Voltage failure buffering --
Power loss at 24 VDC 0.4 W to 1.2 W
Backup of the real-time clock at 25 °C Typ. 20 days
Accuracy of the real-time clock Typ. ± 2 s/day
Digital inputs
Number 8
Electrical isolation No
Numbef of high speed inputs 4 (I3, I4, I5, I6)
Input frequency
• Normal input • Max. 4 Hz
• High speed input • Max. 5 kHz
Max. continuous permissible voltage 28.8 VDC
Input voltage L+
Signal 0 < 5 VDC
Signal 1 > 12 VDC
LOGO!
306 Manual, 03/2015, A5E33039675 - AB
Technical data
A.4 Technical data: LOGO! 24...
LOGO! 24CE
LOGO! 24CEo
Input current at
Signal 0 < 0.9 mA (I3 to I6)
< 0.07 mA (I1, I2, I7, I8)
Signal 1 > 2.1 mA (I3 to I6)
> 0.18 mA (I1, I2, I7, I8)
Delay time at
0 to 1 • Typ. 1.5 ms
<1.0 ms (I3 to I6)
1 to 0 • Typ. 1.5 ms
<1.0 ms (I3 to I6)
Line length (unshielded) Max. 100 m
Analog inputs
Number 4 (I1=AI3, I2=AI4, I7=AI1, I8=AI2)
Range 0 VDC to 10 VDC
Input impedance 72 kΩ
Cycle time for analog value generation 300 ms
Line length (shielded and twisted) Max. 10 m
Error limit ± 1.5% at FS
Digital outputs
Number 4
Output type Transistor,
current-sourcing 1)
Electrical isolation No
In groups of --
Control of a digital input Yes
Output voltage ≤ Supply voltage
Output current Max. 0.3 A per channel
Short circuit-proof and overload-proof Yes
Short circuit current limitation Approx. 1 A per channel
Derating None; across the entire temperature range
Short circuit-proof cos 1 --
Short circuit-proof cos 0.5 to 0.7 --
Parallel output circuit for power increase Not permitted
Protection of output relay (if desired) --
Switching rate 2)
Mechanical --
Electrical 10 Hz
LOGO!
Manual, 03/2015, A5E33039675 - AB 307
Technical data
A.5 Technical data: LOGO! DM8 24 and LOGO! DM16 24
LOGO! 24CE
LOGO! 24CEo
Ohmic load/lamp load 10 Hz
Inductive load 0.5 Hz
1) When you switch on LOGO! 24CE/24CEo, LOGO! DM8 24 or LOGO! DM16 24, the CPU sends
signal 1 to the digital outputs for about 50 μs. Take this into account, especially when using devic-
es that react to short pulses.
2) The maximum switching rate is only dependent on the switching program's cycle time.
LOGO!
308 Manual, 03/2015, A5E33039675 - AB
Technical data
A.6 Technical data: LOGO! 24RC...
LOGO! 24RCE
LOGO! 24RCEo
Power supply
Input voltage 24 VAC/VDC
Permissible range 20.4 VAC to 26.4 VAC
20.4 VDC to 28.8 VDC
Reverse polarity protection --
Permissible mains frequency 47 Hz to 63 Hz
LOGO!
Manual, 03/2015, A5E33039675 - AB 309
Technical data
A.6 Technical data: LOGO! 24RC...
LOGO! 24RCE
LOGO! 24RCEo
Power consumption
• 24 VAC • 15 mA to 150 mA
• 24 VDC • 15 mA to 130 mA
Voltage failure buffering Typ. 5 ms
Power loss
• 24 VAC • 0.4 W to 3.6 W
• 24 VDC • 0.4 W to 3.2 W
Backup of the real-time clock at 25 °C Typ. 20 days
Accuracy of the real-time clock Typ. ± 2 s/day
Digital inputs
Number 8, optional positive voltage or negative voltage
Electrical isolation No
Number of high speed inputs 0
Input frequency
• Normal input • Max. 4 Hz
• High speed input • --
Max. continuous permissible voltage 26.4 VAC
28.8 VDC
Input voltage L
• Signal 0 • < 5 VAC/VDC
• Signal 1 • > 12 VAC/VDC
Input current at
• Signal 0 • < 1.2 mA
• Signal 1 • > 2.6 mA
Delay time at
• 0 to 1 • Typ. 1.5 ms
• 1 to 0 • Typ. 15 ms
Line length (unshielded) Max. 100 m
Analog inputs
Number --
Range --
max. Input voltage --
Digital outputs
Number 4
Output type Relay outputs
Electrical isolation Yes
In groups of 1
Control of a digital input Yes
LOGO!
310 Manual, 03/2015, A5E33039675 - AB
Technical data
A.7 Technical data: LOGO! DM8 24R and LOGO! DM16 24R
LOGO! 24RCE
LOGO! 24RCEo
Continuous current Ith Recommended range of application ≥ 100 mA at
12 VAC/VDC
Max. 10 A per relay
Surge current Max. 30 A
Incandescent lamp load (25000 switching 1000 W
cycles) at
Fluorescent tubes with ballast (25000 10 x 58 W
switching cycles)
Fluorescent tubes, conventionally compen- 1 x 58 W
sated (25000 switching cycles)
Fluorescent tubes, uncompensated (25000 10 x 58 W
switching cycles)
Derating None; across the entire temperature range
Short circuit-proof cos 1 Power protection B16, 600 A
Short circuit-proof cos 0.5 to 0.7 Power protection B16, 900 A
Parallel output circuits for power increase Not permitted
Protection of output relay Max. 16 A,
(if desired) characteristic B16
Switching rate
Mechanical 10 Hz
Ohmic load/lamp load 2 Hz
Inductive load 0.5 Hz
Notice: For fluorescent lamps with capacitors, you must consider the technical data of
fluorescent lamp ballasts. If the current exceeds the maximum allowed surge current,
appropriate contactor relays must switch the flourescent lamps.
The data was determined with the following devices:
● Siemens fluorescent tubes 58 W VVG 5LZ 583 3-1 uncompensated.
● Siemens fluorescent tubes 58 W VVG 5LZ 583 3-1 parallel compensated with 7 μF.
● Siemens fluorescent tubes 58 W VVG 5LZ 501 1-1N with ballast.
A.7 Technical data: LOGO! DM8 24R and LOGO! DM16 24R
LOGO!
Manual, 03/2015, A5E33039675 - AB 311
Technical data
A.7 Technical data: LOGO! DM8 24R and LOGO! DM16 24R
LOGO!
312 Manual, 03/2015, A5E33039675 - AB
Technical data
A.8 Technical data: LOGO! 12/24... LOGO! DM8 12/24R
Notice: For fluorescent lamps with capacitors, you must consider the technical data of
fluorescent lamp ballasts. If the current exceeds the maximum allowed surge current,
appropriate contactor relays must switch the flourescent lamps.
The data was determined with the following devices:
● Siemens fluorescent tubes 58 W VVG 5LZ 583 3-1 uncompensated.
● Siemens fluorescent tubes 58 W VVG 5LZ 583 3-1 parallel compensated with 7 μF.
● Siemens fluorescent tubes 58 W VVG 5LZ 501 1-1N with ballast.
LOGO!
Manual, 03/2015, A5E33039675 - AB 313
Technical data
A.8 Technical data: LOGO! 12/24... LOGO! DM8 12/24R
LOGO!
314 Manual, 03/2015, A5E33039675 - AB
Technical data
A.8 Technical data: LOGO! 12/24... LOGO! DM8 12/24R
Notice: For fluorescent lamps with capacitors, you must consider the technical data of
fluorescent lamp ballasts. If the current exceeds the maximum allowed surge current,
appropriate contactor relays must switch the flourescent lamps.
The data was determined with the following devices:
● Siemens fluorescent tubes 58 W VVG 5LZ 583 3-1 uncompensated.
● Siemens fluorescent tubes 58 W VVG 5LZ 583 3-1 parallel compensated with 7 μF.
● Siemens fluorescent tubes 58 W VVG 5LZ 501 1-1N with ballast.
LOGO!
Manual, 03/2015, A5E33039675 - AB 315
Technical data
A.9 Switching capacity/service life of the relay outputs
Switching capacity and service life of the contacts with ohmic loading (heating):
Switching capacity and service life of the contacts with high inductive load to IEC 947-5-1 DC 13/AC
15 (contactors, solenoid coils, motors):
Note
To ensure the switching capacity and service life, keep the minimum switching load of the
relay outputs at 100 mA with the voltage of 12 VAC/VDC.
LOGO!
316 Manual, 03/2015, A5E33039675 - AB
Technical data
A.10 Technical data: LOGO! AM2
LOGO! AM2
Power supply
Input voltage 12/24 VDC
Permissible range 10.8 VDC to 28.8 VDC
Power consumption 15 mA to 30 mA
Voltage failure buffering Typ. 10 ms
Power loss at
• 12 VDC • 0.2 W to 0.4 W
• 24 VDC • 0.4 W to 0.8 W
Electrical isolation No
Reverse polarity protection Yes
Ground terminal For connecting ground and shielding of the analog
measuring line
Analog inputs
Number 2
Type Unipolar
Input range 0 VDC to 10 VDC (input impedance 76 kΩ) or
0/4 mA to 20 mA (input impedance <250 Ω)
Resolution 10 bit, normalized to 0 to 1000
Cycle time for analog value generation 50 ms
Electrical isolation No
Line length (shielded and twisted) Max. 10 m
Encoder supply voltage None
Error limit ± 1.5%
Interference frequency suppression 55 Hz
LOGO!
Manual, 03/2015, A5E33039675 - AB 317
Technical data
A.12 Technical data: LOGO! AM2 AQ
LOGO! AM2 AQ
Power supply
Input voltage 24 VDC
LOGO!
318 Manual, 03/2015, A5E33039675 - AB
Technical data
A.13 Technical data: LOGO! Power 12 V
LOGO! AM2 AQ
Permissible range 20.4 VDC to 28.8 VDC
Power consumption 15 mA to 82 mA
Voltage failure buffering Typ. 10 ms
Power loss at 24 VDC 0.4 W to 2.0 W
Electrical isolation No
Reverse polarity protection Yes
Ground terminal For connecting ground and shielding of the analog
output line.
Analog outputs
Number 2
Voltage range 0 VDC to 10 VDC
Voltage load ≥5 kΩ
Current output 0/4 mA to 20 mA
Curreny load ≤250 Ω
Resolution 10 bit, normalized to 0 to 1000
Cycle time for analog output Depending on installation (50 ms)
Electrical isolation No
Line length (shielded and twisted) Max. 10 m
Error limit Voltage output: ± 2.5% FS
Short circuit protection Voltage output: Yes
Overload protection Current output: Yes
Voltage output: Yes
LOGO!
Manual, 03/2015, A5E33039675 - AB 319
Technical data
A.14 Technical data: LOGO! Power 24 V
LOGO!
320 Manual, 03/2015, A5E33039675 - AB
Technical data
A.14 Technical data: LOGO! Power 24 V
LOGO!
Manual, 03/2015, A5E33039675 - AB 321
Technical data
A.15 Technical data: LOGO! Contact 24/230
LOGO! LOGO!
Contact 24 Contact 230
Operating voltage 24 VDC 230 VAC;
50/60 Hz
Power consumption
• 24 VDC • 170 mA • --
• 230 VAC • -- • 20 mA
Switching capacity
Utilization category AC-1: Switching of ohmic loads at 55°C
Operating current at 400 V 20 A
Output with three-phase loads at 400 V 13 kW
Utilization category AC-2, AC-3: Motor with slip ring induction/cage
armature
Operating current at 400 V 8.4 A
Output with three-phase loads at 400 V 4 kW
Short-circuit protection:
Assignment type 1 25 A
Assignment type 2 10 A
Connecting leads Fine-wire with wire end ferrules
Solid wire
2 x (0.75 to 2.5) mm2
2 x (1 to 2.5) mm2
1 x 4 mm2
Dimensions (WxHxD) 36 x 72 x 55 mm
Ambient temperature -25 °C to +55 °C
Storage temperature -50 °C to +80 °C
A.16 Technical data: LOGO! TDE (Text Display with Ethernet interfaces)
LOGO! TDE
Mechanical data
Keyboard Membrane keypad with 10 keys
Display FSTN-Graphic Display with 160 x 96 (columns x rows), LED
backlight (white/amber/red)
Power supply
Input voltage 24 VAC/VDC
12 VDC
LOGO!
322 Manual, 03/2015, A5E33039675 - AB
Technical data
A.17 Technical data: LOGO! CSM12/24
LOGO! TDE
Permissible range 20.4 VAC to 26.4 VAC
10.2 VDC to 28.8 VDC
Permissible mains frequency 47Hz to 63 Hz
Power consumption (Ethernet and
white backlight active)
• 12 VDC • Typ. 145 mA
• 24 VDC • Typ. 70 mA
• 24 VAC • Typ. 75 mA
Degree of protection
IP20 for LOGO! TDE excluding front panel
IP65 for LOGO! TDE front panel
Communication port
Ethernet performance Two Ethernet interfaces with 10/100 M full/half duplex data
transmission rate
Connection distance Max. 30 m
LCD Display and Backlight
Backlight lifetime 1) 20,000 hours
Display lifetime 2) 50,000 hours
Mounting
Mounting hole dimensions (WxH) (119 + 0.5 mm) x (78.5 + 0.5 mm)
Mounting conditions Mount the LOGO! TDE vertically on a flat surface of an IP
65 or Type 4x/12 enclosure.
1) The backlight lifetime is when the final brightness is 50% of the original brightness.
2) The display lifetime is calculated under ordinary operating and storage conditions: room tempera-
ture (20 ± 8 °C), normal humidity below 65% relative humidity, and not in exposure to direct sun-
light.
LOGO! CSM12/24
Ethernet interface
Communications connector 4 x RJ45 jacks with MDI-X assignment 10/100 Mbps (half/full du-
plex), autopolarity, autonegotiation
Network cable Use a shielded Ethernet cable to connect to the Ethernet interface.
To minimize electromagnetic interference, make sure you use a
standard Category 5 shielded twisted-pair Ethernet cable with a
shielded RJ45 connector on each end.
Largest data packet 1518 byte
Smallest data packet 64 byte
LOGO!
Manual, 03/2015, A5E33039675 - AB 323
Technical data
A.17 Technical data: LOGO! CSM12/24
LOGO! CSM12/24
Delay resulting from latency When a frame passed through the CSM12/24, the stored and for-
ward function of the switch delays the frame according to the char-
acteristics below:
• With a 64 byte frame length by approx. 8 μs (at 100 Mbps).
• With a 1518 byte frame length by approx. 125 μs (at 100
Mbps).
Topology Star and bus topology
Note that the direct connection of two ports on the switch or acci-
dental connection over several switches causes an illegal loop.
Such a loop can lead to network overload and network failures.
Insulation of the ports You need shield all ports with each other that adhere to 1.5 kV
insulation voltage.
Learnable MAC addresses 1024
Aging time 300 seconds
Electrical specification
Input voltage 12 VDC to 24 VDC
(permitted range) (10.2 VDC to 30.2 VDC)
Current consumption 12 VDC: 0.2 A
24 VDC: 0.1 A
Effective power loss 1.5 W
Connection Per terminal for L+ and M
Cable cross section: 1 x 2.5 mm2 or 2 x 1.5 mm2
Tightening torque 0.57 Nm (5 lb in)
Use 75 °C conductors only. Use copper conductors only.
Functional grounding You can achieve functional grounding by connecting a cable from
terminal 3, for example to the DIN rail.
Keep this cable as short as possible.
Grounding is, however, not necessary for interference-free opera-
tion.
Further technical specifications
Operating temperature 0 °C to 55 °C
Transport/storage temperature -40 °C to +70 °C
Relative humidity during opera- < 90% (no condensation)
tion
Dimensions (W x H x D) in mm 72 x 90 x 55
Net weight 140 g
Installation 35 mm DIN rail (DIN EN 60715 TH35) or wall mounting
Degree of protection IP20
Protection class III
LOGO!
324 Manual, 03/2015, A5E33039675 - AB
Technical data
A.18 Technical data: LOGO! CSM230
LOGO! CSM230
Ethernet interface
Communications connector 4 x RJ45 jacks with MDI-X assignment 10/100 Mbps (half/full du-
plex), autopolarity, autonegotiation
Network cable Use a shielded Ethernet cable to connect to the Ethernet interface.
To minimize electromagnetic interference, make sure you use a
standard Category 5 shielded twisted-pair Ethernet cable with a
shielded RJ45 connector on each end.
Largest data packet 1518 bytes
Smallest data packet 64 bytes
Delay resulting from latency When a frame passed through the CSM12/24, the stored and for-
ward function of the switch delays the frame according to the char-
acteristics below:
• with a 64 bytes frame length by approx. 8 μs (at 100 Mbps).
• with a 1518 bytes frame length by approx. 125 μs (at 100
Mbps).
Topology Star and bus topology
Note that the direct connection of two ports on the switch or acci-
dental connection over several switches causes an illegal loop.
Such a loop can lead to network overload and network failures.
Insulation of the ports You need shield all ports with each other that adhere to 1.5 kV
insulation voltage.
Learnable MAC addresses 1024
Aging time 300 seconds
Electrical specification
Input voltage 100 VAC to 240 VAC
115 VDC to 210 VDC
Permitted line power frequency AC 47 Hz to 63 Hz
Current consumption 100 VAC to 240 VAC: 0.05 A to 0.03 A
115 VDC to 210 VDC: 0.02 A to 0.012 A
Effective power loss 1.8 W
Connection Per terminal for L+ and M
Cable cross section: 1 x 2.5 mm2 or 2 x 1.5 mm2
Tightening torque 0.57 Nm (5 lb in)
Use 75 °C conductors only. Use copper conductors only.
Functional grounding You can achieve functional grounding by connecting a cable from
terminal 3, for example to the DIN rail.
Keep this cable as short as possible.
Grounding is, however, not necessary for interference-free opera-
tion.
Further technical specifications
LOGO!
Manual, 03/2015, A5E33039675 - AB 325
Technical data
A.18 Technical data: LOGO! CSM230
LOGO! CSM230
Operating temperature 0 °C to 55 °C
Transport/storage temperature -40 °C to +70 °C
Relative humidity during opera- < 90% (no condensation)
tion
Dimensions (W x H x D) in mm 72 x 90 x 55
Net weight 155 g
Installation 35 mm DIN rail (DIN EN 60715 TH35) or wall mounting
Degree of protection IP20
LOGO!
326 Manual, 03/2015, A5E33039675 - AB
Determining the cycle time B
The program cycle is the complete execution of the circuit program, that is, primarily the
reading in of the inputs, the processing of the circuit program and the subsequent writing the
outputs. The cycle time is the time required to execute a circuit program once in full.
You can determine the time required for a program cycle using a short test program. Create
this test program in LOGO! to return a value from which you can calculate the cycle time.
Test program
To program this test program, follow these steps:
1. Create the test program by linking an output to a threshold trigger and connecting the
trigger input with an inverted flag.
2. Configure the threshold trigger as shown below. LOGO! generates a pulse in each
program cycle due to the inverted flag. The trigger interval is 2 seconds.
3. Now start the circuit program and switch LOGO! to parameter assignment mode. In this
mode, view the trigger parameters.
4. The reciprocal value of fa is equivalent to the LOGO! execution time of the current circuit
program in its memory.
1/fa = cycle time in s
LOGO!
Manual, 03/2015, A5E33039675 - AB 327
Determining the cycle time
Explanation
The inverted flag block changes its output signal at each program execution. Thus, one logic
level (high or low) width is exactly equivalent to the length of one cycle. Hence, a period lasts
two cycles.
The threshold trigger indicates the ratio of periods per two seconds, which results in the ratio
of cycles per second.
LOGO!
328 Manual, 03/2015, A5E33039675 - AB
LOGO! without display ("LOGO! Pure") C
Because some specific applications do not require operator control and interface elements
such as buttons or a display, Siemens provides the LOGO! 12/24RCEo, LOGO! 24RCEo,
LOGO! 24CEo and LOGO! 230RCEo versions without display.
LOGO!
Manual, 03/2015, A5E33039675 - AB 329
LOGO! without display ("LOGO! Pure")
Operating characteristics
LOGO! is ready for operation when you switch on power. Switching off a LOGO! without
display is equivalent to disconnecting the power supply.
You can not start or stop the circuit program of LOGO!...o versions by means of buttons,
therefore, this is why the LOGO!...o versions have other startup characteristics.
Startup characteristics
If there is no circuit program in LOGO! or on the inserted micro SD card, LOGO! remains in
STOP mode.
If there is a valid circuit program in LOGO! memory or on the micro SD card, LOGO!
automatically switches from STOP mode to RUN mode when you switch on power.
LOGO! automatically copies the circuit program on an inserted micro SD card to memory,
immediately after you switch on power. LOGO! rewrites the existing circuit program in
memory if one exists, and then changes from STOP mode to RUN mode.
By connecting an Ethernet cable to LOGO! (Page 293), you can use LOGO!Soft Comfort to
download the circuit program and place LOGO! in RUN mode.
LOGO!
330 Manual, 03/2015, A5E33039675 - AB
LOGO! menu structure D
D.1 LOGO! Basic
① See "Start menu (Page 336)" ④ See "Network menu (Page 334)"
② See "Programming menu (Page 332)" ⑤ See "Diagnostic menu (Page 335)"
③ See "Setup menu (Page 333)" ⑥ See "Card menu (Page 332)"
LOGO!
Manual, 03/2015, A5E33039675 - AB 331
LOGO! menu structure
D.1 LOGO! Basic
Note
When LOGO! is in RUN mode, only the menu commands with an asterisk (*) are available in
the programming menu.
LOGO!
332 Manual, 03/2015, A5E33039675 - AB
LOGO! menu structure
D.1 LOGO! Basic
LOGO!
Manual, 03/2015, A5E33039675 - AB 333
LOGO! menu structure
D.1 LOGO! Basic
Note
When LOGO! is in RUN mode, only the menu commands with an asterisk (*) are available in
the setup menu.
Note
When LOGO! is in RUN mode, only the menu commands with an asterisk (*) are available in
the network menu.
LOGO!
334 Manual, 03/2015, A5E33039675 - AB
LOGO! menu structure
D.1 LOGO! Basic
LOGO!
Manual, 03/2015, A5E33039675 - AB 335
LOGO! menu structure
D.1 LOGO! Basic
LOGO!
336 Manual, 03/2015, A5E33039675 - AB
LOGO! menu structure
D.2 LOGO! TDE
LOGO!
Manual, 03/2015, A5E33039675 - AB 337
LOGO! menu structure
D.2 LOGO! TDE
① See "LOGO! selection menu (Page 339)". ⑥ See "Diagnostic menu (Page 339)".
② See "Start menu (Page 339)". ⑦ See "Card menu (Page 339)".
③ See "Programming menu (Page 339)". ⑧ See "TDE setup menu (Page 341)".
④ See "Setup menu (Page 339)". ⑨ See "TDE network menu (Page 341)".
⑤ See "Network menu (Page 339)". ⑩ See "TDE diagnostic menu (Page 341)".
LOGO!
338 Manual, 03/2015, A5E33039675 - AB
LOGO! menu structure
D.2 LOGO! TDE
Program menu
The program menu is the same as that on the LOGO! Base Module. See "Programming
menu (Page 332)" for more information.
Card menu
The card menu is the same as that on the LOGO! Base Module. See "Card menu
(Page 332)" for more information.
LOGO!
Manual, 03/2015, A5E33039675 - AB 339
LOGO! menu structure
D.2 LOGO! TDE
Setup menu
The setup menu is different from that on the LOGO! Base Module. See "Setup menu
(Page 333)" for the complete setup menu for LOGO! Basic.
Note
When LOGO! 0BA8 is in RUN mode, only the menu commands with an asterisk (*) are
avaiable in the above menu.
LOGO!
340 Manual, 03/2015, A5E33039675 - AB
LOGO! menu structure
D.2 LOGO! TDE
Network menu
The network menu is the same as that on the LOGO! Base Module. See "Network menu
(Page 334)" for more information.
Diagnostics menu
The diagnostics menu is the same as that on the LOGO! Base Module. See "Diagnostics
menu (Page 335)" for more information.
Start menu
The start menu is the same as that on the LOGO! Base Module. See "Start menu
(Page 336)" for more information.
Note
The start screen of the LOGO! TDE is always the clock display when LOGO! Basic is in RUN
mode.
LOGO!
Manual, 03/2015, A5E33039675 - AB 341
LOGO! menu structure
D.2 LOGO! TDE
Note
The IP address of the LOGO! TDE is read-only when it is in RUN mode.
LOGO!
342 Manual, 03/2015, A5E33039675 - AB
LOGO! menu structure
D.2 LOGO! TDE
LOGO!
Manual, 03/2015, A5E33039675 - AB 343
LOGO! menu structure
D.2 LOGO! TDE
LOGO!
344 Manual, 03/2015, A5E33039675 - AB
Order numbers E
Modules
Accessories
LOGO!
Manual, 03/2015, A5E33039675 - AB 345
Order numbers
LOGO!
346 Manual, 03/2015, A5E33039675 - AB
Abbreviations F
AM Analog module
B1 Block number B1
C LOGO! device designation: integrated clock
Cnt Count = Counter input
Dir Direction (of count, for example)
DM Digital Module
E LOGO! device designation: integrated Ethernet interface
En Enable = switching on (for example, clock generators)
Fre Input for frequency signals to be analyzed
GF Basic Functions
Inv Input for inverting the output signal
DL Data Log
NAI Network analog input
NAQ Network analog output
NI Network input
No Cam (parameter of the timer)
NQ Network output
o In LOGO! designations: without display
Par Parameter
R Reset input
R In LOGO! designations: Relay outputs
Ral Reset all = Input for resetting all internal values
S Set (latching relay, for example)
SF Special functions
T Time = parameter
TDE Text Display with Ethernet interfaces
Trg Trigger (parameter)
UDF User-Defined Function
0BA8 device The latest LOGO! Basic Module version, described in this manual
LOGO!
Manual, 03/2015, A5E33039675 - AB 347
Abbreviations
LOGO!
348 Manual, 03/2015, A5E33039675 - AB
Index
B E
Backlight flags, 122 Error event diagnostics, 110
Basic functions Ethernet interface, 49
AND, 125 Expansion modules, 14
AND, with edge, 126
NAND, 127
NAND, with edge, 128 F
NOT, 130
Flag blocks, 121
OR, 128
Formatting micro SD cards, 277
XOR, 130
Basics on special functions, 131
Block number, 60
G
Blocks, 59
Gain, 134
GB-2312, 205
C
Certification and approvals
H
CE label, 23
cFMus, 23 Hysteresis, 196
C-tick label, 23
cULus, 23
KCC label, 24 I
Ch by Ch ticking, 209
Inputs
Character set flag, 122
analog inputs, 120
Character sets, 205
cursor keys, 123
Circuit protection, 39
digital inputs, 120
Co, 119
inverting, 124, 136
Compatiblity, 31
TDE function keys, 123
Connectors, 57
Installation and removal
Counters
DIN rail mounting, 33
operating hours, 181
LOGO! TDE, 36
threshold trigger, 185
wall-mounting, 35
Up/down, 178
Internet support, 5
Inverter, 130
ISO8859-1, 205
D
ISO8859-16, 205
Data log, 261 ISO8859-5, 205
Days of the week, 165 ISO8859-9, 205
Demo versions, 292
DIN rail, 32
Display modules, 14 L
Latching relay, 202, 202
LED, 330
Ln by Ln ticking, 209
LOGO!
Manual, 03/2015, A5E33039675 - AB 349
Index
LOGO!
350 Manual, 03/2015, A5E33039675 - AB
Index
T
Time response, 132
Timebase, 132, 142
Timer accuracy, 133
Timers
Astronomical clock, 173
Asynchronous pulse generator, 155
Edge-triggered wiping relay, 153
Multiple function switch, 161
Off-delay, 145
On-/off- delay, 147
On-delay, 141
Random generator, 157
Retentive on-delay, 149
Stairway lighting switch, 159
Stopwatch, 176
Weekly timer, 164
Wiping relay (pulse output), 151
Yearly timer, 167
Timing inaccuracy, 133
U
User-Defined Function (UDF), 257
LOGO!
Manual, 03/2015, A5E33039675 - AB 351
Index
LOGO!
352 Manual, 03/2015, A5E33039675 - AB