LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can LabVIEW be used to activate a test device running on a Keyence PLC programmed with Keyence Ladder Logic?

Good Morning,
 
I'm working on automating a test at my workplace.  We have an automatic test fixture that is controlled by a Keyence PLC running on Keyence Ladder Logic.  It worth mentioning that the data from the test is monitored with a Chatillon digital torque gauge.  I was hoping that I would be able to program LabVIEW to activate the PLC and then have LabVIEW record the data from the Chatillon for the test.  I'm pretty sure I can get the Chatillon torque data into LabVIEW, but am unsure even where to start with the PLC.  I realize that I might not be able to use the PLC with LabVIEW, but just thought I check for certain.  Any help with either the Torque gauge or the PLC would be greatly appreciated.
0 Kudos
Message 1 of 16
(6,886 Views)

As far as I remember the chatillion gage uses the mitutoyo protokoll : You get adapters to RS232  ... RTFM .... solved

If you only need a trigger for your PLC (you have a start button or another spare input) you can use a hardware handshake line of another RS232 port to drive a optocoupler that trigger your PLC. Maybe you can use a control line of the same RS232 port reading the gage, but I'm afraid that the adaptor might use them.

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 2 of 16
(6,870 Views)

A list of the supported PLCs can be found at the following link:  https://www.ni.com/en/support/documentation/supplemental/07/supported-device---driver-plug-in-list-f...

Unfortunately the Keyence PLC is not currently supported and I have not heard of any plans for support in the near future.  For help with initial programming of the Keyence PLC I would suggest going to the Keyence website.  There are a few tutorial and PLC beginners guides that may be useful.

  http://www.keyence.com/products/barcode/plc/plc.php

 
S. Bassett
Applications Engineering
National Instruments
0 Kudos
Message 3 of 16
(6,856 Views)
Hi all,
 
I found this Active X for keyence and omron PLC. I have a keyence PLC which I want to comunicate with using LabVIEW. I have attached the files that I found. Can someone guide me on how to proceed and use this with LabVIEW.
 
Regards,
Giridhar Rajan
Design Engineer
Nextfirst Engineering Technologies Ltd.
0 Kudos
Message 4 of 16
(6,771 Views)
 

Giridhar,

Using ActiveX with LabVIEW is pretty easy. All you need to do is put down an automation open.vi and then create a constant for the "Automation Refnum". Then right click on the constant and select "select ActiveX Class". This will allow you to then browse to your application of interest. At this point you now have a reference to the application and can use property and invoke nodes to access the various features of the application.

Of course, this assumes that the application in your zip file registers the ActiveX class on your computer. I looked in the readme and there were directions on using the program, as well as an email address for questions \ suggestions. If you have problems using it, I'd contact that person.

For more information on using ActiveX in LabVIEW see, Using ActiveX with LabVIEW.

Chris C

0 Kudos
Message 5 of 16
(6,756 Views)
Hi Chris,
 
Thanks for your reply. I'm able to access only the omron active-x control but not keyence. Is there something wrong with the file or is there some compatibility issue. The property node and invoke node show nothing inside.
 
Regards,
Giridhar Rajan
0 Kudos
Message 6 of 16
(6,748 Views)


@Giridhar_Rajan wrote:
Hi Chris,
 
Thanks for your reply. I'm able to access only the omron active-x control but not keyence. Is there something wrong with the file or is there some compatibility issue. The property node and invoke node show nothing inside.
 
Regards,
Giridhar Rajan


I think this forum is not the right place to ask these question. There is probably nobody who knows specifics about these ActiveX controls and you would be better of asking these question to the programmer or the distributor you got the controls from. As to why the Property nodes show nothing there are a number of possible reasons: Corrupted file, not registered Active X object, licensing restrictions, etc. The people that created it could probably really help you here.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 7 of 16
(6,735 Views)

Rolfk,

Thanks for your suggestion on this. Perhaps i could develop a VI library for myself which could communicate with the keyence PLC and perform all the operations mentioned in the keyence manual. Thanks everybody for your valuable suggestions and help.

 

0 Kudos
Message 8 of 16
(6,721 Views)


@Giridhar_Rajan wrote:

Rolfk,

Thanks for your suggestion on this. Perhaps i could develop a VI library for myself which could communicate with the keyence PLC and perform all the operations mentioned in the keyence manual. Thanks everybody for your valuable suggestions and help.


This is always another option. I implemented several VI libraries in the past to access PLCs and PLC alike systems over serial port and TCP/IP directly such as AutomationDirect PLCs, Siemens AS511, Opto22 SnapIO, Haidenhein TNC, etc. However don't underestimate the work this will be. In general if the protocol is documented at least I can get something working in a single day, but until the protocol libraries are so well developed that they can work stable and reliably over days and weeks of uninterrupted communication with the device, you easily spend anything from one week to five or six weeks of development work. The difficulty is usually not to get the communication going, but to get a library that can cope with communication errors by ignoring certain errrors or retrying the operation even before the higher level software gets aware that there might have been a problem at all.

Of course if OPC is the only commercially available option and you do need to operate on a RT target for instance there is no other option than to dive in such a driver development. If however your time is limited and you do want a rather reliable operation and can work from a normal Windows computer using an OPC solution will almost always be easier, cheaper and much better for your blood pressure.

Rolf Kalbermatter


Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 9 of 16
(6,711 Views)
Rolfk,
 
You are right. I tried to contact NI abt. OPC server, but it does'nt support Keyence PLCs. Anyways, we are using Keyence PLCs for almost all our projects, so I'll check the reliability of my keyence library in a couple of projects to ensure that it works under various conditions. Are there any standard methods used to check such libraries??
0 Kudos
Message 10 of 16
(6,703 Views)