Vous êtes sur la page 1sur 26

I found the following pinout on the forum:

http://www.plctalk.net/qanda/showthread.php?t=3700
----LOGO unit is upright:
starting upper left pin as #1 (not labelled using convention)opposite side is #6, key is on right side of connector.
1-TTL in Rx Serial
2-Gnd
3-5 volts
4-SDA for card
5-SCL for card
6-TTL out Tx Serial
You will need TTL<->RS232 converter (ie MAX202) powered by pin 3 of LOGO. Baud rate is 9600, 8bit, even HEX char.
----Please let me know if this pinout works.
For more information about logo-pc connectivity please read also How can you connect LOGO! with a PC? and follow the links...
2006-11-30 21:02:07

ppatcher
Simple User

Hi to all
Is there a schematic for this cable?
Where can I find the logo! connector for the cable?
Has anyone made this cable?
Thank you

2006-12-01 08:21:24

Urmas
Simple User

Hi!
Actually I found schematic for this cable.
Pins are, like Nick sed, but 180deg rotated.
(it depends, where is your pin nr. 1)On this schematic it`s lower right. MAX232 is

powered from DB9 (PC), LOGO and PC are optically isolated with optrons, after
optrons are inverters and LOGO side of the schematic is powered from LOGO.
Can I upload the schematic somewhere?
Urmas
<2006-12-01 08:28:36 | modified by: Urmas>
2007-02-03 15:05:24

jezza
Simple User

lo Urmas,
If u email the schematic, I will put it online and spread it accross the whole wide
world!
mail me : jezza@europe.com
thx
Jezza

2007-02-04 16:06:36

nick
Administrator

quote:
Can I upload the schematic somewhere?
Yes, you can always send new pinouts information and schematic to
info@technick.net
The following is the schematic sent by Urmas:

<2007-02-08 07:05:21 | modified by: nick>


2007-03-25 21:56:55

ppatcher
Simple User

Hi to all,
I haven't understood the pinout of Logo! Siemens cable.I'll send you a picture by email in info@technick.net, in order to understand my quesstion.Which is the pinout?
Thank you
<2007-03-25 22:07:39 | modified by: ppatcher>

2007-03-27 10:39:33

nick
Administrator

If you check the schematic posted on this thread, you notice that the logo connectors
contains 6 pins numbered from 1 to 6.
As already reported before, the signals for these pins are:

1-TTL in Rx Serial
2-Gnd
3-5 volts
4-SDA for card
5-SCL for card
6-TTL out Tx Serial
Note also that the order of the pins on the schematic is relative to the cable
connector. The connector on the Logo is specular to this:
On the Siemens Logo connector:
[1] [2] [3]
[6] [5] [4]
On the cable connector:

2007-03-29 21:28:45

ppatcher
Simple User

[3] [2] [1]


[4] [5] [6]
Thank you Nick for your reply.
1.Have you made this cable according to the schematic posted?
2.Why the pin2:Gnd and the pin3:5 Volts on the Siemens cable connector not used?
Best Regards

2007-03-30 07:09:44

nick
Administrator

> 1. Have you made this cable according to the schematic posted?
No, I haven't.
> 2. Why the pin2:Gnd and the pin3:5 Volts on the Siemens cable connector not
used?

Because the circuit on the cable is already powered from the serial connector.

2007-08-22 12:11:21

logrodiego
Simple User

good morning, first of all thanks for tha schematic circuit.


I don't speak very well English but I will try to do it.
I done the PCB for this circuit but It doesn't work. I don't know if is a wrong
connection in the logo, parameters (like baud rate, even, number of bits,...) in
windows xp or another thing.
The steps I do to connet are the following:
1.- Connect Logo to RS-232 throught the circuit TTL-232.
2.- Start Logo Comfort in the computer
3.- Turn on the Logo
4.- Try to find the Logo by Logo Comfort--> It can't find it!! :-(
Can anyone help me what I'm doing wrong?
If any in the forum want this pcb to post in the forum don't deshiderate talk to me.

2007-08-23 12:20:54

nick
Administrator

Best regards,
The logo cable PCB drawing from logrodiego was added on the download section of
this site.

2007-08-24 16:44:26

logrodiego
Simple User

Hi, I finished the pcd and put all the component in the board.
When I check the signals, I see that for pin 4 and 7 (DB9) there is -12 volt with pin 5!.
then the supply of the MAX232 is not correct and is normal that the circuit doesn't
work fine.
Could any explain me what i'm doing bad?

2008-12-03 20:02:49

jaimesilva
Simple User

Best regards,
Diego
There is a lot of confusion about this one and that is because in the following text, as
it says, the pins are not numbered in standard order:
quote:
LOGO unit is upright:
starting upper left pin as #1 (not labelled using convention)opposite side is #6, key is
on right side of connector.
1-TTL in Rx Serial
2-Gnd
3-5 volts
4-SDA for card
5-SCL for card
6-TTL out Tx Serial
According to that text when we look at the LOGO in upright position the pins are
numbered:
|1|6|
|2|5|
|3|4|

But it doesn't fits in what is shown by the schematic posted and the files in the

download section. That is because those files and images have the pins numbered
according to convention. So, again, if we look at the LOGO in upright position the
pins are numbered:
|6|1|
|5|2|
|4|3|

So the pin functions, using the standard numbering are:


6-TTL in Rx Serial
5-Gnd
4-5 volts
3-SDA for card
2-SCL for card
1-TTL out Tx Serial
And now the schematic makes sense!
About the question of the MAX232 power you can see that a the voltage is reduced
to 5.1V by what seems to be a zenner diode (I don't understand that symbol),
however I don't see something that limits the current drained by the zenner. Maybe a
voltage regulator can work better? I don't know.
<2008-12-23 10:21:17 | modified by: jaimesilva>
2008-12-23 10:46:31

jaimesilva
Simple User

I've tried with and without opto-couplers with no success. Maybe is because I'm
using a USB->RS232 dongle.
Maybe SIEMENS has updated the port or there is need to pull up or down SDA or
SCL in order to make the LOGO detect the serial cable and enter in LOGO<->PC
mode.
I'm trying with a 6ED1 052-1MD00-0BA5 mostly known as a LOGO! 12/24 RC.

LOGO! PLC driver based on LabVIEW


Options

Mark as New

Bookmark

Subscribe

Subscribe to RSS Feed

Highlight

Print

Email to a Friend

Report to a Moderator

03-25-200908:29 AM
I'm happy because these past 2 weeks I have been working to decode and interpret the communication between the LOGO! PLC and a PC. Well ... I finished this work and
achieved the following:

- Ask the status of communication between PC - LOGO! PLC


- Ask the status of the PLC (The PLC responds RUN/STOP status)
- Forcing the status of the PLC to RUN mode.
- Forcing the status of the PLC to STOP mode.
- Ask the current values (in real-time) of all channels of the PLC:
o 24 digital inputs
o 16 digital outputs
o 8 analog inputs
o 2 analog outputs
o 24 digital marks
o 6 analog marks
o 4 cursors
The application developed in LabVIEW performs the main function of communicate the Desktop / Laptop with PLC LOGO! (That is to say link National Instruments with
Siemens ... ja ja). The software performs the following functions:
- Monitors and displays all channels of the LOGO!
- Choose the communication port.
- The user can save in a file all the data, each configurable period.
I have made many tests with different logic modules, and it has not given any problems.
In the image attached, I show you some of the topologies that can be implemented knowing this protocol of communication. I ask you to spread this to engineers/technicians
who design and implement these MICRO-AUTOMATION systems, in order to offer this Software applicable to supervisory system or data-logger device.
I'm ready to be able to help
____________________________________________
Carlos Caldern Crdova, Ing.
Universidad Tcnica Particular de Loja

Grupo de Control, Automatizacin y Robtica


Escuela de Electrnica y Telecomunicaciones
Phone: (+593) 7-2570275 ext. 2650
Cell: 098663798
____________________________________________
Solved! Go to Solution.
Message 1 of 18(24,313 Views)
Everyone's Tags:

done!!!

Driver

LabVIEW

LOGO plc

LOGO!
View All (9)
Reply
SNATAX
Member

Posts: 3
2 Kudos

Re: LOGO! PLC driver based on LabVIEW


Options

Mark as New

Bookmark

Subscribe

Subscribe to RSS Feed

Highlight

Print

Email to a Friend

Report to a Moderator

02-08-201011:07 AM
Hello,

I've also been working on this


and I'm sharing knowledge I've
adquired and the source code of
the VI. It's not finished and it's
not commercial. I'm just willing
to share something useful.
This program communicates
with Logo! (Tested with 7th
generation, former versions
may not work) and retrieve the
status of the inputs, outputs
Its just an outline of what I
think it should be. I explain
everything Ive done so anyone
can use it or create other
programs.
It uses LabView 8.6 and the
.NET library, Im sorry if this
bothers someone but it was the

easiest way for me to establish the serial connection. So you will need the .NET framework to make it works, or improve the program using
built-in LabView libraries.
The communication with Logo! is based on RS232 but its not revealed. Here you have some of the protocol configuration and control words that
Ive learned and how I have interpreted them.
BaudRate 9600. Parity=0. Databits=8. Stopbits=2. The XOn/XOff Handshake seems to work quite fine.
All control words and answers are written in Hexadecimal code. No terminator is needed.
Question? (PC) Answer (Logo)
(Status?) 21( Status OK ) 06 03 21 44
(Mode?) 55 17 17 AA --->(if STOP) 06 42
(if RUN) 06 01
(Go to Stop Mode) 55 11 11 AA --->(OK) 06
(Go to Run Mode) 55 18 18 AA --> (OK) 06
(Read all status) 55 13 13 00 AA --> (79 bytes length packet) 06 55 11 11 4A D6 00 19 20 00 00 00 00 00 00 00 .. AA
Where byte 34 represents the status of the digital inputs, byte 38 is the status of the digital outputs and byte 45 is the status of the cursors. But
there is much more like analog inputs, analog outputs and marks (both digital and analog) that I havent identified.
The cable (USB version) create a virtual COM PORT in order to use the RS232 protocol. It uses a 6pin connector but I havent been able to
identify the pins. They use a Texas Instruments chip HA14 7AK G4 but I couldnt find any information about it. I believe that the Logo! itself
power the chip on the cable with +5V (bottom left pin) and GND is middle left pin so it left 4 pins for TX, RX, RTS and DTR but trying to
identify the pins was when my Logo! died. So be careful.
Hope you find it useful and if anything is wrong or you learn something more, please post it.
Attachments:
Logo!Hack.zip 63 KB
Message 2 of 18(23,772 Views)
Everyone's Tags:


Driver

LabVIEW

LOGO!

PLC
View All (4)
Reply
cacalderon
Member

Posts: 14
0 Kudos

Re: LOGO! PLC driver based on LabVIEW


Options

Mark as New

Bookmark

Subscribe

Subscribe to RSS Feed

Highlight

Print

Email to a Friend

Report to a Moderator

02-08-201004:17 PM
Thanks for sharing ....
I send you some interesting items:
- The PLC data frame depends on the versions of the PLC
Generation 4 and 5 mistra not send the data frame.
The Generation 6 sends a data frame larger.
The generation 7 mmmm. I do not know. Siemens has not yet released it to Latin America.
- With respect to the data cable PLC-PC. This link may help you.
Siemens LOGO PC cable pinout

- With respect to commands ...

- Finally, with respect to the GUI

____________________________________________
Carlos Caldern Crdova, Ing.
Universidad Tcnica Particular de Loja
Grupo de Control, Automatizacin y Robtica
Escuela de Electrnica y Telecomunicaciones
Phone: (+593) 7-2570275 ext. 2650
Cell: 098663798
____________________________________________
Message 3 of 18(23,731 Views)
Reply
LOGOSA
Member

Posts: 1
0 Kudos

Re: LOGO! PLC driver based on LabVIEW


Options

Mark as New

Bookmark

Subscribe

Subscribe to RSS Feed

Highlight

Print

Email to a Friend

Report to a Moderator

09-27-201003:37 PM
Thanks for the VI which I managed to get to work with a OBA6, however it seems to be very unstable when running on my PC (Windows7 64bit) also when I converted it to use
the VISA blocks, the data has shifted. I am also getting very inconsistent comms? Any suggestions would be much appreciated.
Message 4 of 18(20,977 Views)
Reply
sren_hallberg
Member

Posts: 51
0 Kudos

Re: LOGO! PLC driver based on LabVIEW


Options

Mark as New

Bookmark

Subscribe

Subscribe to RSS Feed

Highlight

Print

Email to a Friend

Report to a Moderator

09-26-201109:11 AM
Carlos,
This looks amazing. I was just setting out on the same quest that I see you have been on. Would you be willing to post your code here ?
Greetings,
sren jensen (vendersgade@gmail.com)
Message 5 of 18(15,805 Views)
Reply
SNATAX
Member

Posts: 3
0 Kudos

Re: LOGO! PLC driver based on LabVIEW


Options

Mark as New

Bookmark

Subscribe

Subscribe to RSS Feed

Highlight

Print

Email to a Friend

Report to a Moderator

09-26-201111:28 AM
Hi.
Mi code is above, you can easly see what it does and make your own aplication.
Message 6 of 18(15,786 Views)
Reply
sren_hallberg
Member

Posts: 51
0 Kudos

Re: LOGO! PLC driver based on LabVIEW


Options

Mark as New

Bookmark

Subscribe

Subscribe to RSS Feed

Highlight

Print

Email to a Friend

Report to a Moderator

09-26-201112:09 PM
SNATAX,
Yes, thanks a bunch !. Already tested your code, it worked without any problems !. Did you find any good source of documentation of the LOGO protocol ?
In order to use all the features of the Logo, reading AI, AO and being able to set AO and DO's is also needed. Reverse engineering is always somwhat of a challenge and I
noticed that our fellow LV'er cacalderon had solved this issue.
I found a dutch made software for logging of the LOGO data, however, I could not get it to work.
http://logomonitor.quirex.nl/home.php
I have been using the USBlyzer software to capture the commands on the LOGO USB<->PC cable, its fairly easy to use ang comes with 33 days of free trial time.
/sren

Message 7 of 18(15,780 Views)


Reply
SNATAX
Member

Posts: 3
0 Kudos

Re: LOGO! PLC driver based on LabVIEW


Options

Mark as New

Bookmark

Subscribe

Subscribe to RSS Feed

Highlight

Print

Email to a Friend

Report to a Moderator

09-26-201112:32 PM
I didn't find any documentation, all I know is from this forum and reverse engineering.

I only had the basic model so I cna't help with AI, AO and I don't know if is possible to set a value.
Message 8 of 18(15,774 Views)
Reply
Alias for us
Member

Posts: 1
0 Kudos

Re: LOGO! PLC driver based on LabVIEW


Options

Mark as New

Bookmark

Subscribe

Subscribe to RSS Feed

Highlight

Print

Email to a Friend

Report to a Moderator

12-24-201107:13 AM
THANK YOU VERY MUCH FOR THIS GOOD PROJECT BUT PLEASE SEND ME THE BLOCK DIAGRAM OF THIS PROJECT
Message 9 of 18(14,425 Views)
Reply
gtathatos
Member

Posts: 23
0 Kudos

Re: LOGO! PLC driver based on LabVIEW


Options

Mark as New

Bookmark

Subscribe

Subscribe to RSS Feed

Highlight

Print

Email to a Friend

Report to a Moderator

04-26-201209:32 AM
Hello Carlos,
You have done an excellent job gongratulations.You would like to share with all of us your knoweldge of how you create this by posting your Vi code?Thanks