From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Siemens Logo8 (0BA8) communication

Solved!
Go to solution

Hello, this forum helped me a lot before, but now I must ask you for your help.

I have a problem with siemens Logo8 (0BA8) communication. For communication I'm using vi-s from https://decibel.ni.com/content/docs/DOC-5467. I want to read and write to some counters (see on picture below) for example B035 K where cnt is 5. I don't know how to read or write to that data. I suppose I'm not doing addressing correctly. On s7-1200 I successfully read/write to DB-s (choose DB and start address and that's it) but on logo I can connect but not read and write. Has anyone successfully done that and is willing to share that? I would be very greatful. 

 

Thank you for your time!

 

Pic.PNG

 

 

0 Kudos
Message 1 of 7
(10,987 Views)

Hello SecondBatman, 

To clarify, how do you know that you can connect on logo if you can't read or write? 
Also, I am not familiar with that communication protocol but the following website has some application examples that could be helpful: http://w3.siemens.com/mcms/programmable-logic-controller/en/logic-module-logo/application-examples/p...

Shalini M.
Partner Development Engineer
Alliance Partner Network
National Instruments
0 Kudos
Message 2 of 7
(10,910 Views)
Solution
Accepted by topic author SecondBatman

Hello,

 

shalumdawg thank you for your help and sorry for late reply. I know that I can connect because it reads something and replys but not what I wanted and in past week I found the solution.

 

In Logo SoftComfort v8 you must map adresses (developing software for Siemens Logo8). You do that by going to Tools --> Parameter VM mapping... and there you set adresses for what you want to read. 

 

Mine looks like this:

Untitled.png

 

In labview you set database to DB1 and use mapped addreses for example if you want to read counter B035 in labview you must set Function to Read, Transport Size to DWORD, Read Length to 1, Data Block # to 1, Add Area to DB Area and Start Address to 35.

 

Capture.PNG

 

You can read all seven addresses at once using same settings but set Read Length to 7 and start adress to first address whitch you want to read (in this case 35) and you'll get array with all 7 parameters.

 

 Capture2.PNG   Capture3.PNG

 

 

Writing is done by shanging Function to Write.

0 Kudos
Message 3 of 7
(10,823 Views)

Hi,

 

I want to test LOGO8 code with NET Input connected with labview by VM.

How i can simulate NET Input?

Could you help me?

 

Thanks a lot.

 

0 Kudos
Message 4 of 7
(8,116 Views)

Sorry, I've never worked on somethinng like this so I don't know the answer... maybe someone else here can help??

0 Kudos
Message 5 of 7
(8,110 Views)

@SecondBatman

First of all, thank you for sharing this solution.

As I am beginning to build up my LabView knowledge: may you be able to upload

an example of how to connect the LOGO to Labview and how to read and write from/to it.

 

A example-VI and a brief step by step explanaition would be very helpfull, also for further people that find this thread.

 

Cheers, afuchs_AB

0 Kudos
Message 6 of 7
(6,700 Views)

Sorry for late reply, but I do not have code anymore. Different firm now. 

I think I was using this: https://forums.ni.com/t5/Example-Program-Drafts/S7-PLC-TCP-IP-Protocol-Reference-Example/ta-p/349219...

0 Kudos
Message 7 of 7
(6,132 Views)