show the entry list

LOGO! Soft Comfort -- Configuring and programming communication -- Setting up and using interfaces 
How do you establish a connection between a LOGO! 0BA7 and an HMI Panel? 
How do you set up a teleservice connection to LOGO! with an analog modem via the telephone network? 
How do you process a range of measured values from an EIB module which includes negative figures in LOGO!? 
How do you connect a LOGO PC cable (RS232) to a computer that only has a USB port? 
How do you connect a LOGO! with a PC using the COM port? 

How do you establish a connection between a LOGO! 0BA7 and an HMI Panel?Go to beginning
Part number:

Description
The aim of this entry is to enable you to establish a connection between a LOGO! and an HMI Panel. The table below shows you step by step how to create the LOGO! project and the HMI project for your HMI Panel with LOGO!Soft Comfort and WinCC (TIA-Portal). 

Instructions
Before you begin creating your LOGO! project and the HMI project you assign an IP address on your LOGO! device, on your HMI device and on your PC. Make sure that the IP addresses are in the same subnetwork.

Assign IP address on LOGO! device
How to assign an IP address on your LOGO! device is described in the latest LOGO! manual in the section entitled "Configuring Network Settings". After assigning the IP address to your LOGO! you connect the LOGO! with your PC over the Ethernet interface.

Assign IP address on HMI device
How to assign an IP address on your HMI device is described in the latest HMI Panel manual in the section entitled "Configuring Network Settings".

Set IP address on PC
In your operating system go to "Start > Settings > Network Connections" and double-click on your network connection to the LOGO!. Select the "Properties" menu item and double-click the "Internet Protocol (TCP/IP)" item. Now assign an IP address for your network connection and make sure that this is in the same subnet as the IP addresses for your LOGO! and your HMI Panel. How to proceed is described in the tables below.

Procedure in LOGO!Soft Comfort
 
No. Procedure
1 Open LOGO!Soft Comfort V7.0.
2 Open your old project or create a new project.
3 Select the menu "Tools > Select Hardware".
4 Select 0BA7 as basic device and confirm with OK.


Fig. 01

5 Select the menu "Tools > Options > Interface". Select the "Ethernet" item and click "Add".
6 Enter the IP address and subnet mask of your LOGO!. On the LOGO! 0BA7 device you can see this with the menu item "Network > IP Address".


Fig. 02

7 Click "Detect" to check the connection. If the word "Yes" appears under "Status", your connection has been established.

 
Fig. 03

8 Select the menu "Tools > Parameter VM Mapping".
9 Select the analog values to be transferred to your HMI project. Digital values that you want transferred to your HMI project do not have to be specified in the VM Mapping parameter.


Fig. 04

10 Select the menu "Tools > Ethernet Connections".
11 Enter the IP address and the subnet mask of your LOGO!.
12 Right-click "Ethernet Connections" and "Add connection".


Fig. 05

13 Double-click the newly created connection to open the Properties dialog.
14 Select the "Server Connection" item and enter the value 02.00 for "TSAP".
15 Select "Connect with an Operator Panel (OP)" and "Accept all connection requests".


Fig. 06

16 Select the menu "Tools > Transfer > PC > LOGO!". Select the IP address of your LOGO! and confirm with "OK" so that the program is downloaded to your LOGO! 0BA7 device.
Table 01

Procedure in WinCC (TIA Portal)
 
No. Procedure
1 Open WinCC (TIA Portal).
2 Create a new project.
3 In the project navigation double-click "Add new device" and select your HMI Panel.
4 Go to "Connections" in the project navigation and double-click it.
5 Double-click "Add" to create a new connection.
6 Enter your "S7-200" connection as communication driver.
Note
In WinCC (TIA Portal) V12 you can also select "LOGO" as communication driver.
7 Under "HMI device" you enter the IP address of your HMI Panel. Make sure that the IP address is in the same subnet as the IP addresses for your LOGO! and your computer.
8 Under "Controller" you enter the IP address you assigned to your LOGO!.


Fig. 07

9 In the project navigation you go to the "HMI Tags" folder and open it.
10 Create your new tags in the default tag table.

Analog values
Tags for analog values defined in LOGO!Soft Comfort with the VM Mapping parameter for transfer to the HMI Panel must be configured with the same data type and same address in WinCC (TIA Portal). For example: the tag with the "Word" type and address "0" in LOGO!Soft Comfort must be configured in WinCC (TIA Portal) with the "Word" data type and the address "VW0".

Digital values
Continue with Step 11.


Fig. 08

11 Digital values
In order to access digital values of LOGO!Soft Comfort the tag in WinCC (TIA Portal) must be configured with the corresponding address order. For example, the digital output "Q1" from LOGO!Soft Comfort must be configured in the tag table of WinCC (TIA Portal) with the address "Q0.0" and the "Bool" data type. The digital input "I1" has the address "I0.0" in WinCC (TIA Portal). According to this address order, therefore, a digital input "I8" from LOGO!Soft Comfort has the address "I0.7" in WinCC (TIA Portal) and a digital input "I9" the address "I1.0".  The same rules for the address order in the tag table of WinCC (TIA Portal) also apply for markers and outputs from LOGO!Soft Comfort.


Fig. 09

12 In the project navigation you go to the "Screens" folder and open it. Create a new screen.
13 Insert an object into the screen, for example a circle for the light display (On/Off).
14 Click the configured "circle" object to open its properties.
15 Configure an animation with tag link in the properties. For example, under "Display > Appearance" change of the background color depending on the bit value of the "Light_Display_On_Off" tag.


Fig. 10

16 As soon as you have completed your configuration, in the menu you select "Online > Download to device".
17 After connecting your LOGO! and your HMI panel through the Ethernet interface you can test the application created.
18 Entry IDs 68585344 and 68585346 include prepared sample applications for connecting a LOGO! with an HMI Panel which can also be operated by means of the PC with the simulation of the HMI Panel in WinCC (TIA Portal).
Table 02

Note
The current LOGO! manual is available for downloading in Entry ID: 50074616.

Further Information
In the sample applications in Entry IDs 68585344 and 68585346 you will find detailed information about:

  • The settings on the HMI device for transferring the project and the connection to the LOGO! 0BA7.
  • How to operate an application created between a LOGO! 0BA7 and an HMI Panel.
  • How with LOGO! 0BA7 (multiple LOGO! controllers) and an HMI Panel you can implement an automatic control.

Creation environment
The screens in this FAQ response were created with the LOGO!Soft Comfort V7.0 and WinCC (TIA Portal) V11 software.

Note on security
Caution
The functions and solutions described in this article confine themselves predominantly to the realization of the automation task. Furthermore, please take into account that corresponding protective measures have to be taken in the context of Industrial Security when connecting your equipment to other parts of the plant, the enterprise network or the internet. More information is available in Entry ID: 50203404.

Additional Keywords
Panel, WinCC V11, LOGO! Communication partners

How do you set up a teleservice connection to LOGO! with an analog modem via the telephone network?Go to beginning
Part number:

Validity
As from the LOGO! 0BA6 device series, an analog modem connection is supported between a PC and the LOGO! basic version 0BA6.
The modem connection can only be configured with LOGO!Soft Comfort as from V6.1. Use the Update Center in the Help menu of LOGO! Soft Comfort to update from V6.0 to V6.1.

Description
The modems used and the COM connection of the computer used are configured according to the description. Once the teleservice connection has been set up, you can use the usual functions like transferring control programs, changing the operating mode of the CPU and running online tests.

Connect the hardware components
Connect both LOGO! and your computer via a 56k modem with an analog telephone connection. The following figure shows in detail how to connect the components needed.


Fig. 01

1)   PC (desktop or laptop)
2)   Local analog modem (recommended: INSYS modem)
3)   PSTN (public telephone network)
4)   Remote analog modem (recommended: INSYS modem)
5)   LOGO! basic version
6)   RS232 cable (9-pin)
7)   RJ11 telephone cable
8)   LOGO! modem cable (length: 0.5 m)
9)   Plug-in connector marked with the visible text "MODEM"
10) Plug-in connector marked with the visible text "PC CABLE"
11) LOGO! PC cable

Additional information
The analog modems must meet the following requirements:

  • 11-bit send capacity (8 data bits, 1 stop bit, 1 even parity bit).
  • Output capacity fro AT standard commands or commands that function as AT standard commands.
  • The modem connected to the LOGO! modem cable must be able to supply a current of at least 5 mA via pin 1 of the RS232 interface (recommended: INSYS modem).

Only analog connections are supported. Access via GSM or ISDN protocol is not possible.

Change the COM connection
Proceed as follows to change the COM connection of your PC.
 
No. Remarks
1 Navigate to "System Properties" via "Start -> Settings -> Control Panel -> System".


Fig. 02

In the "System Properties" dialog you open the "Hardware" tab and then click on the "Device Manager" button.


Fig. 03

In the folder tree of the "Device Manager", you select the item "Ports (COM & LPT)", right-click on the COM connection used (e.g. COM1) and in the pop-menu that opens you select the item "Properties".


Fig. 04

Additional information
You need administrator rights to change the settings of the COM connection.

2 In the Properties dialog of the COM connection selected, you assign the parameters in the "Port Settings" tab.
 
Bits per second Data bits
Data bits 8
Parity Even
Stop bits 1
Flow control None
Table 01


Fig. 05

Click "OK" to finish assigning parameters.

Table 02

Configure and set up a teleservice connection
Proceed as follows to set up an analog teleservice connection between your PC and a LOGO! basic version.
 
No. Remarks
1 Modem information
In the menu bar of LOGO! Soft Comfort, you select "Tools -> Connect Modem...".


Fig. 06

This starts the modem connection wizard that guides you through the steps one by one. Click the "Next >" button to move on to the next step in each case.


Fig. 07

Additional information

  • This description shows the initial configuration of the modems and telephone connection needed.
  • More information about this topic is available in the Online Help under "Tools -> Set up modem connection".
2 Select modem
Activate the "Remote Modem" check box to configure the remote modem. Then click on the "Next >" button.


Fig. 08

Additional information

  • During the initial configuration, the modem connection wizard automatically opens the configuration dialog for the local modem.
  • More information about this topic is available in the Online Help under "Tools -> Set up modem connection - Select modem".
3

Select remote configuration
Select the "Create new configuration" option to create a new configuration for your remote modem. Then click on the "Next >" button.


Fig. 09

Additional information

  • If there are no configurations available (if you are using the configuration wizard for the first time, for example), you only have the "Create new configuration" option available.
  • More information about this topic is available in the Online Help under "Tools -> Set up modem connection - Select remote configuration".
4 Configure remote modem command
In "Modem name" line you assign a name for the configuration of the remote modem (here: "INSYS remote"). In this way, you can later assign the configuration to the modem concerned. Activate the "Default" check box to set the default settings for the modem commands. Save your settings by clicking on the "Save Configuration" button under the settings entered for the modem. Then click on the "Next >" button.


Fig. 10

Additional information

  • Experienced users can enter their own commands for the remote modem to suit their individual needs.
  • More information about this topic is available in the Online Help under "Tools -> Set up modem connection - Select remote configuration".
5 Configure remote modem
Connect the remote modem to the COM connection of your PC via an RS232 cable. Activate the "Done" check box, select the COM connection you are using and transfer the configuration to the remote modem via the "Configure Remote Modem" button.


Fig. 11

Connect your LOGO! to the telephone network as described under Connect the hardware components. Pay attention to the labeling of the connectors of the LOGO! modem cable.

Additional information

  • The configuration stored is retained in the modem even if the power fails.
  • More information about this topic is available in the Help under "Tools -> Set up modem connection - Configure remote modem".
6

Select local configuration
Select the "Create new configuration" option to create a new configuration for your local modem. Then click on the "Next >" button.


Fig. 12

Additional information

  • If there are no configurations available (if you are using the configuration wizard for the first time, for example), you only have the "Create new configuration" option available.
  • More information about this topic is available in the Help under "Tools -> Set up modem connection - Select local configuration".
7 Configure local modem command
In "Modem name" line you assign a name for the configuration of the local modem (here: "INSYS local"). In this way, you can later assign the configuration to the modem concerned. Activate the "Default" check box to set the default settings for the modem commands. Save your settings by clicking on the "Save Configuration" button under the settings entered for the modem. Then click on the "Next >" button.


Fig. 13

Additional information

  • Experienced users can enter their own commands for the remote modem to suit their individual needs.
  • More information about this topic is available in the Help under "Tools -> Set up modem connection - Configure local modem command".
8 Configure telephone number
Click on the "Add New" button and then enter the connection number of the remote modem in the table. Specify a name and description of the connection to ensure unique assignment.


Fig. 14

Additional information

  • Use the "Add New" button to enter data in the table; click in the field concerned and acknowledge your entry with the Enter key.
  • You can add multiple telephone numbers and you then just choose the number required in each case.
  • You can remove table entries by marking them and then clicking on the "Remove" button.
  • More information about this topic is available in the Help under "Tools -> Set up modem connection - Configure telephone number".
9 Set up a teleservice connection
Connect the local modem to the COM connection of your PC with an RS232 cable and to an analog telephone connection via an RJ11 telephone cable. Activate the "Done" check box and specify the COM connection you are using. The "Dial" button is activated. Mark an entry in the "Telephone number list" and click on the "Dial" button to set up a teleservice connection to the LOGO! required.
10 Disconnect the teleservice connection
Disconnect the connection via the menu bar by selecting "Tools -> Disconnect Modem".


Fig. 15

Additional information
More information about this topic is available in the Help under "Tools -> Disconnect modem connection".

Table 03

Find the Help function
More information on the individual steps is available in the "Help for LOGO! Soft Comfort". You find the Help by selecting "Help -> Contents" in the menu bar.


Fig. 16

Select the "Table of Contents" tab and navigate in the tree structure via "User interface -> Menu bar -> Tools menu to the item "Tools -> Connect Modem ->  ...(subitem required)".


Fig. 17

Options for accessing LOGO! via a teleservice connection
Once you have set up a connection to LOGO! via the telephone network, you use the LOGO! Soft Comfort functions as usual.
You can transfer control programs, change the operating mode of the CPU and run online tests.

Additional information
More information about this topic is available in the Help under "Tools -> Set up modem connection - Configure telephone number".

Keywords
Teleservice, Modem, Analog

How do you process a range of measured values from an EIB module which includes negative figures in LOGO!?Go to beginning
Part number:

Important:
LOGO! is only able to read positive values via an interface. Therefore, negative values from a connected EIB module have to be transferred into the positive range by means of the offset process.

Example:
There is a PT100 resistor at the EIB end with a value range of -40°C to 140°C, delivering values to LOGO! for further processing without any information loss. The following block diagram illustrates the conversion function in the EIB and the inverse function in LOGO!


Fig. 01


Procedure for transferring the above range of values into LOGO! via EIB:
 
No. Instructions
1 Taking the value -40°C as an example, we will explain the procedure for transferring the range of values in the EIB programming software into the positive range, allowing for an EIB resolution of 0.1:
  • In order to convert an EIB resolution with increments of 0.1 into a LOGO! resolution with increments of 1, multiply the value -40 by 10.
  • The negated value of +400 is added to the resulting value of -400 in order to move it into the positive range,
  • creating an offset of +400.

This offset has to be entered in the box marked below.


Fig. 02
 

2 Once the offset is set, the definition range of -40 to +140 is converted into the value range of 0 to +1800 (see y1 axis) and transferred to LOGO!.


Fig. 03
 

3 You can select "no sensor" as the sensor option in the block properties for the analog threshold switch in LOGO!. In this case, only gain and offset are of any significance. The fields "Minimum" and "Maximum" can be ignored.

In order to depict the temperature range (see x2 axis) with the correct +/- signs in LOGO! again (see y2 axis), select the following parameters for the threshold switch:

  • Gain: 1.0
  • Offset: -400


Fig. 04
 

6 You can now process the value in LOGO! with the correct +/- sign, albeit extended by a factor of 10. In order to display this value correctly in a message text, enter 1 under "Decimal place for display in message text".

Note:
The simulation in LOGO! Soft Comfort has been developed for LOGO! inputs which only supply values of 0 to 1000. Large values cannot be entered there. However, in this example the EIB module receives values between 0 and 1800.

Keywords:
PID, INIT, Manual mode

How do you connect a LOGO PC cable (RS232) to a computer that only has a USB port?Go to beginning
Part number:

Instructions
If you want to connect a LOGO PC cable to a computer, the computer should normally have one serial interface (RS232 socket).
Many new PCs only have USB ports (USB = universal serial bus). In this case you need a converter which enable the LOGO cable to be connected with the USB port of the PC. Alternatively you can connect your LOGO! with the USB PC cable (article number: 6ED1057-1AA01-0BA0) directly to a USB port of your PC. The current LOGO!Soft Comfort USB PC cable driver for Windows, Linux and Macintosh is available at the following internet site:"LOGO! Demo software, Upgrades/Updates, Drivers". Below is the basic procedure for using a USB-RS232 converter.

Installation of the driver for the converter
The converter is supplied with a CD or floppy disk. On it is the software to be installed on the PC. Slot the USB converter into your PC's USB port and then install the driver software. For this you insert the driver CD or floppy disk into the appropriate drive. Follow the instructions of the installation wizard. Make sure that you specify the correct version of your Windows operating system for the selected driver.

Connection settings
If the connection does not work properly after installing the driver, you can change the interface manually using the connection settings.
 
Parameter Value
Baud rate (bits per second) 9600
Data bits 8
Parity None
Stop bits 1
Flow control None
FIFO buffer Use
Receive and transfer buffer High
Table 01

The following online shops and distributors offer USB converters:
 
Provider URL Product name Driver for
Kabelshop www.kabelshop.net INLINE® USB-serial adapter cable, 9-pin (article no. 33304) WIN98/ME/2000/XP/Vista (32 bit), MAC OS (8.6, 9.0, X)
U.T.E.Elektronik www.ute.de USB to RS232 converter 
(product ID "UC-232-A")
WIN9x/2000/XP/Vista,Windows 7, Windows 8, LINUX, MAC OS and MAC OS X
Schuricht www.schuricht.com USB to serial/parallel converter module
Type: 1x DB9 male
(catalog no.: 672330)
WIN98SE/ME/2000/XP/Vista/7

Additional Keywords
Interface change, Interface converter

How do you connect a LOGO! with a PC using the COM port?Go to beginning
Part number:

Description
The aim of this entry is to enable you to establish a connection between a LOGO! and your PC using the COM port.

Connecting a LOGO! and your PC
 
No. Procedure
1 Connect your LOGO! with the LOGO!-PC cable (article number: 6ED1057-1AA00-0BA0) to a COM port of your PC.
2 Alternatively you can connect your LOGO! with the USB PC cable (article no.: 6ED1057-1AA01-0BA0) to a USB port of your PC. The current LOGO!Soft Comfort USB-PC cable driver for Windows, Linux and Macintosh is available at the following internet site:"LOGO! Demo Software, Upgrades/Updates, Drivers".
3 You can also use a USB-RS232 converter in addition to the LOGO!-PC cable to connect your LOGO! to a USB port of your PC. Detailed information about this is available in Entry ID 11611048. If errors occur with the converter or its driver, please refer to the manufacturer concerned.
4 Switch your LOGO! to transfer mode.
5 LOGO! Basic versions up to article number ...-0BA2
You switch your LOGO! into transfer mode by switching on the LOGO! power supply with the LOGO!-PC cable plugged in. Alternatively you can also get the LOGO! into transfer mode without removing the power supply. Switch the LOGO! from RUN mode to STOP state by simultaneously pressing the arrow keys ◄ and ► and the OK button. Then in the LOGO! display you navigate to the "PC/Card.." menu and then to the Transfer mode, see Fig. 01.


Fig. 01

You can find additional information in the manuals of the respective LOGO! device series available in the internet at the link "Technical Documentation SIMATIC Controllers".

6 LOGO! Basic versions with article number ...-0BA3
Switch the LOGO! from RUN mode to STOP state by pressing the ESC key. Then in the LOGO! display you navigate to the "PC/Card.." menu and then to the Transfer mode, see Fig. 01.

LOGO! Pure versions up to article number ...-0BA3
You switch your LOGO! into transfer mode by switching on the LOGO! power supply with the LOGO!-PC cable plugged in. After startup without the PC cable plugged in, the LOGO! automatically goes into RUN mode as long as LOGO! has a valid control program.

You can find additional information in the manuals of the respective LOGO! device series available in the internet at the link "Technical Documentation SIMATIC Controllers".

7 LOGO! Basic versions from article number ...-0BA4
The control program can only be transferred to the LOGO! if the LOGO! is in the STOP state and is in the main menu and not in a menu dialog, see Fig. 02.
Switch the LOGO! from RUN mode to STOP state by pressing the ESC key.


Fig. 02

If program transfer is then initiated on the PC in LOGO!Soft Comfort, the LOGO! automatically goes into transfer mode, see Fig. 03.


Fig. 03

LOGO! Pure versions from article number ...-0BA4
If a LOGO!-PC cable is plugged in, data transfer between the LOGO! and the PC can be started from the LOGO!Soft Comfort. If the LOGO! is in RUN mode, LOGO!Soft Comfort asks you whether you want to switch to the STOP state.
After startup without the PC cable plugged in, the LOGO! automatically goes into RUN mode as long as LOGO! has a valid control program.

You can find additional information in the manuals of the respective LOGO! device series available in the internet at the link "Technical Documentation SIMATIC Controllers".

Table 01

Possible error messages in LOGO!Soft Comfort when transferring the control program into the LOGO! controller
If you want to transfer a control program from your PC to your LOGO! using LOGO!Soft Comfort and the LOGO!-PC cable, the following error messages might occur.
The table below describes some remedies for the error messages.
 
No. Procedure
1 Make sure that your program does not have any open outputs. Each output (digital or analog) must be terminated in LOGO!Soft Comfort with a corresponding "terminal" (Qx, AQx).


Fig. 04

If you do not follow the above rule, you get the following error message in LOGO!Soft Comfort. The reason for the error is displayed in the information window of LOGO!Soft Comfort.


Fig. 05

2 Make sure that the COM interface selected is not being used by another application. If it is, you get the following error message.


Fig. 06

In the information window of LOGO!Soft Comfort you are informed of the non-availability of the interface. Close the other application.
If the above error message continues to be displayed, check that the LOGO!-PC cable has been correctly plugged into the COM port and that the correct COM port has been selected in LOGO!Soft Comfort.

3 If you get the following error message in LOGO!Soft Comfort, make sure that you have set the COM port in LOGO!Soft Comfort to which the LOGO! is connected by means of the LOGO!-PC cable.
You are informed of the incorrect port in the information window of LOGO!Soft Comfort.


Fig. 07

4 The COM port is set in LOGO!Soft Comfort under "Tools > Options... > Port".
There you can also determine the port automatically.


Fig. 08

For automatic determination of the port, LOGO! must be in Transfer mode (see Table 01, points 4 to 7), otherwise you get the following error message.


Fig. 09

In extremely rare cases it might happen that under "Tools > Options... > Port" no COM port is displayed for selection even though COM ports are available on the PC.

5 With LOGO! Soft Comfort V7.x onwards, make sure that "LOGO! Cable" has been selected as the port.


Fig. 10

6 Make sure that all the block types (functions) used in LOGO!Soft Comfort are supported by the firmware of the LOGO! used. If you do not follow this rule, you get the following error message.


Fig. 11

7 In the LOGO!Soft Comfort menu under "Tools > Select Hardware", all the LOGO! versions which do not support programmed functions from your control program are grayed out in the "Select Hardware..." field. If necessary, change your control program or select an appropriate LOGO! in the "Select Hardware..." field. If you select a grayed-out LOGO!, the "Resources" field displays the functions of your control program that the grayed-out LOGO! does not support.


Fig. 12

Table 02  

Further Information
Information about how you connect a LOGO! 0BA7 with a PC and an HMI panel is available in Entry ID 56348902.

Additional Keywords
Transfer LOGO! control program, Load LOGO! control program, LOGO!Soft Comfort error message, Download LOGO! control program, Upload LOGO! control program

 Entry ID:21961312   Date:2014-03-07 
I regard this article....as helpfulas not helpful                                 






























mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Topics
Help
Online Help
Guided Tour