06-30-2010 05:36 PM
Hi,
i am working on fatek plc 20MA. i am confused how to communicate fatek plc serially with computer. i am using labview as HMI software...i am unable to connect labview with plc...even i didnt read the value from fatek communication server....is i need the ladder logic program for communication??? in which register plc stores the value which is recieve from serial port???
how can i communicate the plc with fatek communication server??
and then how i communicate fatek communication with labview??
i need help....
Thanx in advance,
07-01-2010 09:24 AM - edited 07-01-2010 09:26 AM
Hi Nabs,
If I understand your post correctly, you are trying to communicate with your PLC over serial. From the LabVIEW side, this is no different than communicating with any other serial device. In LabVIEW, go to Help>>Find Examples then search for Basic Serial Write and Read. This example should help you get started with serial communication. Another thing that can be helpful is using HyperTerminal to ensure the device is properly responding to Serial commands.
07-01-2010 10:33 AM
yes, i already try the basic serial write and read example......i also observe that the plc is recieving pin glow according to the given delay time. its show that the plc is recieving something. but i didnt recieve at the output. i am unable to glow the output led. is plc recieving undefine format??? should i use opc server if yes then how??
07-01-2010 10:51 AM
Hi Nabs,
You should confirm what termination character your PLC uses. It may be receiving the message but not recognizing the end of the message due to termination character mismatch. For more information about communication with OPC, see this developer zone article.
07-02-2010 12:31 PM
Hi Michael,
i dont know the termination character. where i put it. i download the simple program into the plc. one switch and one output(Y0). it works but i also want that output from labview when push the button. how i do this??
07-08-2010 08:53 AM
Hi Nabs,
These questions seem more geared towards your PLC as opposed to serial and LabVIEW. What do you mean when you say you "want that output from LabVIEW when push the button"? Are you referring to the PLC output? And which button are you referring to? In LabVIEW?
07-09-2010 05:08 AM
i want the plc output(Y0) from the panel and labview. still i cant able to operate the output from labview. I want in labview when i press the boolean button it sends info serially to the fatek plc & then plc will operate the output(Y0). thats what i need!!!!
07-12-2010 09:16 AM - edited 07-12-2010 09:17 AM
Hi Nabs,
Sometimes it can help to take LabVIEW out of the picture temporarily and use HyperTerminal to communicate with the PLC over serial. HyperTerminal will allow you to type command directly to the PLC and ensure that is it behaving correctly. Once you know the correct sequence of commands to make the PLC operate as desired, this will easily translate to LabVIEW. Please let me know if you get it working with HyperTerminal but not with LabVIEW.
08-12-2010 02:54 PM
Hi,
i have done it!!! The basic serial read and write example is really helpful.
Thanks for your help.
05-07-2012 12:49 AM