Winciu

cognex Cognex DataMan 262

4 posts in this topic

Hello,

I'm looking for sample program to communicate Cognex DataMan 262Q, now i have connecting by Tags, 496 bytes input/output, but in manual i see :

 

dataman_1.png

dataman_2.png

Share this post


Link to post
Share on other sites

I'm not familiar with that Cognex scanner, but the I/O mapping looks pretty much identical to a DM60.  Here is a quick example project showing a structure and the variables to communicate to a DM60.  There is no actual programming in it, just the communication setup; but there really isn't much to programming for these things.  The data from the scanner comes in as a string, and then you turn on the acknowledge bit once you've moved the string into a permanent data area.

Dataman Structure.pdf

Cognex Example.smc2

Share this post


Link to post
Share on other sites

Did you get reading X Y co-ordinates of the object to the plc?

Share this post


Link to post
Share on other sites

You have to use the Result Data to do that.  You would have to map the X and Y values of the inspection that you are performing into a Result Data field in Cognex.  Make sure to select matching formats (REAL, INT, etc) on both sides (Cognex and Omron).  You will have to change the structure on the Omron side to match the data type.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now