Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

fatek serial communication???

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,

0 Kudos
Message 1 of 14
(7,967 Views)

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.

 

0 Kudos
Message 2 of 14
(7,936 Views)

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??

0 Kudos
Message 3 of 14
(7,928 Views)

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.

 

 

0 Kudos
Message 4 of 14
(7,924 Views)

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??

0 Kudos
Message 5 of 14
(7,903 Views)

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?

0 Kudos
Message 6 of 14
(7,830 Views)

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!!!!

0 Kudos
Message 7 of 14
(7,805 Views)

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.

 

 

0 Kudos
Message 8 of 14
(7,758 Views)

Hi,

 

i have done it!!! The basic serial read and write example is really helpful.

Thanks for your help.

0 Kudos
Message 9 of 14
(7,543 Views)
Hi,
0 Kudos
Message 10 of 14
(6,840 Views)