LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LOGO! PLC driver based on LabVIEW

Solved!
Go to solution

Hello, I m working In some project and I want to know, how can virtual PLC by using Labview.

 

Best

Message 11 of 20
(4,905 Views)

Well,  cacalderon  hasn't solved the whole issue, has he ? He can read all statues ports in and out, and start and stop the box, but he

still have to program the box from Siemens software. He can't do that from LabVIEW, which would be really interesting ?

0 Kudos
Message 12 of 20
(4,890 Views)

' Logo-Parameter
' 0BA5 0BA6
' Pos  Pos      Bezeichnung
'-----------------------------------
' 29   37       Eingänge 1-8
' 30   38       Eingänge 9-16
' 31   39       Eingänge 17-32
'      40       TD-Funktionstasten
' 32   41       Ausgänge 1-8
' 33   42       Ausgänge 9-16
' 34   43       Merker 1-8
' 35   44       Merker 9-16
' 36   45       Merker 17-24
'      46       Merker 25-27
' 37   47       Schieberegister 1-8
' 38   48       Cursortasten C1-C4
' 39   49       Analogeingang 1 Low
' 40   50       Analogeingang 1 High
' 41   51       Analogeingang 2 Low
' 42   52       Analogeingang 2 High
' 43   53       Analogeingang 3 Low
' 44   54       Analogeingang 3 High
' 45   55       Analogeingang 4 Low
' 46   56       Analogeingang 4 High
' 47   57       Analogeingang 5 Low
' 48   58       Analogeingang 5 High
' 49   59       Analogeingang 6 Low
' 50   60       Analogeingang 6 High
' 51   61       Analogeingang 7 Low
' 52   62       Analogeingang 7 High
' 53   63       Analogeingang 8 Low
' 54   64       Analogeingang 8 High
' 55   65       Analogausgang 1 Low
' 56   66       Analogausgang 1 High
' 57   67       Analogausgang 2 Low
' 58   68       Analogausgang 2 High
' 59   69       Analogmerker 1 Low
' 60   70       Analogmerker 1 High
' 61   71       Analogmerker 2 Low
' 62   72       Analogmerker 2 High
' 63   73       Analogmerker 3 Low
' 64   74       Analogmerker 3 High
' 65   75       Analogmerker 4 Low
' 66   76       Analogmerker 4 High
' 67   77       Analogmerker 5 Low
' 68   78       Analogmerker 5 High
' 69   79       Analogmerker 6 Low
' 70   80       Analogmerker 6 High


SNATAX escribió:

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…It’s just an outline of what I think it should be. I explain everything I’ve done so anyone can use it or create other programs.

 

It uses LabView 8.6 and the .NET library, I’m 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 it’s not revealed. Here you have some of the protocol configuration and control words that I’ve 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 haven’t identified.

 

The cable (USB version) create a virtual COM PORT in order to use the RS232 protocol. It uses a 6pin connector but I haven’t been able to identify the pins. They use a Texas Instruments chip HA14 7AK G4 but I couldn’t 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.

 


https://www.automation.siemens.com/forum/guests/PostShow.aspx?HTTPS=REDIR&language=de&PostID=110191&...

Message 13 of 20
(4,652 Views)

Hello,
I tried to run the example with my OBA6, without success, could give me some help with the issue, because I have seen that managed to run his.
Thank you

0 Kudos
Message 14 of 20
(4,505 Views)

Hello,

 

i tried this with the 0BA7 over ethernet. I can get the status (21). But for example RUN / STOP don`t work with the 0BA6 commands. Have someone more informations about the 0BA7? I think setting outputs works (using Merker), but i don´t have the commands.

 

 

0 Kudos
Message 15 of 20
(4,435 Views)

Estimado primero felicitandole por compratir esta informacion , usted subio un comprimido adjunto este tiene clave podria proporcionarme la clave

0 Kudos
Message 16 of 20
(4,165 Views)

Amigo, quisiera preguntar si la aplicacion tambien podria ser posible utilizando un LOGO! v7 mediante su puerto Ethernet incorporado.

0 Kudos
Message 17 of 20
(4,013 Views)

Can you send me your code and file project, please i need it..

i hope you can help me..

 

prasetyo.dte007@gmail.com

0 Kudos
Message 18 of 20
(3,866 Views)

Hello Cacalderon,

 

Thanks for sharing your effors with us. 

 

Can you pls share the Labview program to my mail id .

saran.arulmozhi@gmail.com

0 Kudos
Message 19 of 20
(3,005 Views)

Bro, could you send me this code please? I wanna communicate with my logo versio 0BA6.

I appreciate that.

eronides.filho@eletrotil.com.br

0 Kudos
Message 20 of 20
(2,348 Views)