Vision objects are used to communicate with the PreciseVision system. The communications occur across a TCP/IP Ethernet link between the Precise controller and the PC running PreciseVision. Simply creating a Vision object does not cause any communication to occur.
The Vision methods Process, Result, and ResultCount all send a request to PreciseVision and wait for a reply. There is no method to explicitly connect to PreciseVision. A connection is automatically established when one of these methods is called.
When making a connection, the Precise controller attempts to communicate with TCP port 1410 at the IP address specified by the parameter database entry "Vision server IP address" (DataID 424). If a connection cannot be made, an exception is thrown. Once a request is sent, PreciseVision must respond within 30 seconds or an exception is generated.
The steps for preparing PreciseVision to service requests and to execute vision processes for a Precise controller are as follows:
To develop a vision guidance application that will execute on a Precise controller and communicate with PreciseVision, write and execute a GPL procedure that does the following: