Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - thebestg2002

Pages: 1 [2]
16
Open Discussion / Re: Using a DLL
« on: October 27, 2017, 09:42:13 AM »
I'm trying to learn .Net on the fly so I appreciate everyone's responses.

Archie
There is a .Net sample program that I can pick apart to get the information I need without needing the DLL in its entirety. It will be a more productive conversation if I hold off until I actually receive the unit and start messing around with it myself.

Thanks again.

17
Open Discussion / Re: Using a DLL
« on: October 23, 2017, 01:21:47 PM »
If your Keyence vision system is using serial port, first make use which protocol uses. It can be simple ascii text where you would not need any DLL, just configurate you serial port on the PC application and receive the data. If it uses another protocol, like Rockwell uses DF1 over serial, then you need that DLL or another that is able to communicate using it.

Advanced HMI is not needed here unless you use one of its drivers, which are the protocols to communicate over different serial port types (RS232, RS485, Modbus) or Ethernet (Ethernet/IP, Modbus TCP).

So first thing, if you want some help, tell us what protocol is using the Keyence system.

The Keyence TM controller part number is TM-3001P. It has both ethernet and rs232 communication ports. By default, Keyence expects you to use rs232 for connecting to a PLC. I did not realize this and so I planned on using the ethernet tcp/ip port along with the RTA 490NBX-NNA1-D to get the measurement data from the TM to my Compactlogix PLC (1769-L18ER-BB1B).

I have other ways of getting the data serially, but I would like to learn more about .Net so I would like to try to use the prebuilt DLL from Keyence if possible. If you are not able to help with that, Sprungmonkey, then I thank you for your time.

18
Open Discussion / Using a DLL
« on: October 23, 2017, 10:29:49 AM »
Morning everyone
I have a project I'm working on that uses a Keyence TM inspection system. By default, the Keyence TM does not use the ethernet port for its communication to output it's measurement data. It is typically done serially. Unfortunately, I missed that when I purchased my Real Time Automation Ethernet TCP/IP to Ethernet I/P gateway. I spoke with my Keyence representative and he sent me a DLL (attached) that I think I should be able to implement into my solution. The problem is I have no idea how to do this.

A friend at work knows a little about .Net and he said I needed to add it as a reference. When I try to add it as a reference, I get the following error: "A reference to the "....dll" could not be added.Please make sure that the file is accessible and that it is a valid assembly or COM component." I have added them to a test project using "add existing item" for the .dll, .h and .lib files but I don't know how to access the measurement values in the project.

There is also an entire solution/project that I can add to my solution, but again I'm not sure how to do this and the files are too large to attach. I can post them on Dropbox or something if you'd like.

I'm hopeful one of you can lend a hand and get me pointed in the right direction. I'm using VSExpress 2012,  but I'm not opposed to updating to a newer version if necessary. This is going to be my first work related project using AHMI and I want it to be a success.

If there is anything else you need, please let me know.

19
Open Discussion / Is the driver for Modbus TCP/IP a master or slave?
« on: August 16, 2017, 08:52:48 AM »
Is the driver configurable as either a master or a slave?

20
Support Questions / BasicButton WriteToValue as a Variable
« on: April 01, 2015, 11:40:14 PM »
I have a basic button that I would like to use as a download button. It needs to write a value to a Modbus RTU based PLC. I loaded the applicable address in the click event and I am able to write a constant value without any issues. What I need to be able to do though is write a value that is a variable as opposed to a constant value. Is there a simple method for doing this? I am not a gifted vb.net programmer by any means so please take that into consideration.

Any help would be greatly appreciated.

Pages: 1 [2]