6 COMMUNICATION FUNCTIONS
6.5 Vision System Connection Function
325
6
Sample program
Explanation of the operations
The following section gives an example of a program that executes positioning control using the adjustment data recognized
by the vision system as the target data.
This program example is explained in the "Q series Motion compatible device assignment" device assignment method.
Setting the vision system
Complete the following settings with In-Sight
Explorer. Refer to the Cognex vision system manual or help sections for details
on operating and setting In-Sight
Explorer.
■Ethernet communication setting
■Job setting
Vision system parameter setting
Complete the vision system parameter setting of MT Developer2.
■Ethernet Communication Line Setting
• Vision System No.2
Item Setting value
IP address 10.0.50.100
Port No. Telnet 23
TCP/IP 3000
Item Setting value
Job name Worksearch1
TCP/IP protocol - Format output string 1 Pattern_1.fIXTURE.x Floating point
2 Pattern_1.fIXTURE.y Floating point
Setting item Description
IP address 10.0.50.100
Port No. Telnet 23
TCP/IP 3000
User name According to the vision system setting
Password According to the vision system setting
Status storage device D2000L
Error flag M0