Jump to content


Photo
- - - - -

LOGO! PLC driver based on LabVIEW


  • Please log in to reply
7 replies to this topic

#1 CarlosCalderon

CarlosCalderon

    1 more post to go.

  • Members
  • 9 posts
  • Location:Loja, Ecuador
  • Version:LabVIEW 8.6
  • Since:2001

Posted 25 March 2009 - 03:40 PM

LOGO! PLC driver based on LabVIEW

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.

Posted Image



#2 TG

TG

    Very Active

  • Members
  • PipPipPip
  • 227 posts
  • Location:Hillsborough, NJ
  • Version:LabVIEW 8.6
  • Since:1989

Posted 25 March 2009 - 03:47 PM

QUOTE (CarlosCalderon @ Mar 24 2009, 03:19 PM)

LOGO! PLC driver based on LabVIEW

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

I'm ready to be able to help.

Posted Image




Im curious, what cable attaches LOGO PLC to the PC. Is it a serial cable?



#3 CarlosCalderon

CarlosCalderon

    1 more post to go.

  • Members
  • 9 posts
  • Location:Loja, Ecuador
  • Version:LabVIEW 8.6
  • Since:2001

Posted 25 March 2009 - 04:10 PM

QUOTE (TG @ Mar 24 2009, 09:26 AM)

Im curious, what cable attaches LOGO PLC to the PC. Is it a serial cable?


PLC side is proprietary protocol.
PC side: RS232/USB

To get the cable you have 2 options:
Buy it at the following link:

https://support.automation.siemens.com/WW/l...amp;caller=view

Create with the help of the following link (very good):

http://www.technick....r...&noupstat=1



#4 Yair

Yair

    Extwemely Active

  • Members
  • PipPipPipPipPipPip
  • 2,741 posts
  • Version:LabVIEW 2009
  • Since:2003

Posted 25 March 2009 - 07:39 PM

Since you work for a university, you should probably not have a problem with uploading the code, right?

You could also submit it to NI's site.



#5 Bobillier

Bobillier

    Very Active

  • Members
  • PipPipPip
  • 157 posts
  • Location:Rennes France
  • Version:LabVIEW 2009
  • Since:2009

Posted 27 March 2009 - 05:20 PM

Hi
me i have create something similar for millenium3 of crouzet to communicate via program cable like serial communication. if there is somebody interesting ...



#6 RalcoBe

RalcoBe

    Active

  • Members
  • Pip
  • 22 posts

Posted 31 March 2009 - 11:05 AM

Nice to have such a direct way.

We do the same, connect a PC to an Omron PLC with usb, but with a workaround.
OPC server works as the dataserver, both Labview and PLC are clients for datasharing, using global variables.

.



#7 CarlosCalderon

CarlosCalderon

    1 more post to go.

  • Members
  • 9 posts
  • Location:Loja, Ecuador
  • Version:LabVIEW 8.6
  • Since:2001

Posted 31 March 2009 - 08:58 PM

After repairing a few bugs in the code...
After improving the user interface ...
This is the final product:

Posted Image



#8 prasetyo

prasetyo

    One hit wonder!

  • Members
  • 1 posts
  • Version:LabVIEW 2013
  • Since:2014

Posted 06 August 2014 - 05:02 AM

to CarlosCalderon,

can you send me your file project LOGO!view.
please help me.
 

I hope this is for learning and to finish my final project.

I'm a basic user of LabVIEW and i need your help.
send me by email prasetyo.dte007@gmail.com

 

Thanks a lot