324
6 COMMUNICATION FUNCTIONS
6.5 Vision System Connection Function
Flow of vision system control
This section explains the basic procedures for controlling the vision system from the Motion CPU.
Setting the vision system
Set the vision system network and create a job (vision program) using In-Sight
Explorer.
Setting the Motion CPU parameters
Set the Ethernet communication line setting and the vision program operation setting using MT Developer2. (Page 315
Vision system parameter setting)
Controlling the vision system with vision system dedicated functions of Motion SFC
1. Log onto the control target vision system using the MVOPEN instruction.
2. Load the job (vision program) to be used using the MVLOAD instruction.
3. Issue a trigger to the vision system using the MVTRG instruction or vision system’s image acquire trigger input. When
the MVPST instruction is used, the job can be loaded and the trigger issued simultaneously.
4. When the vision system finishes executing the job, the job execution results are stored into the device set with the
parameters (image data storage device and read value storage device) of Motion CPU.
In addition to the above procedure, data can be acquired from the vision system using the MVIN instruction or MC protocol.
Select the method that suits the required data acquisition time or data type.
: Enable, : Disable
5. Motion control is executed using the data acquired from the vision system.
6. Reset the status storage device using the MVFIN instruction to issue the next trigger.
7. If the job is not changed, repeat steps 3 to 6.
8. If necessary, log off the control target vision system using the MVCLOSE instruction.
• If a different vision system dedicated function is executed for a vision system that is processing a vision
system dedicated function, moderate error (error code: 38EDH) will occur. Apply the interlock conditions
with the vision system's status storage device value to prevent double startup.
• Depending on the status of the vision system and details of the job process, it may take some time to
process the vision system dedicated function. Set the timeout time according to the state.
• When logged onto the vision system, the vision system or Multiple CPU system's power supply can be
turned OFF without logging off using the MVCLOSE instruction.
Data
acquisition
method
Communication
protocol
Data
acquisition
time
Output data type of
vision system
Storage data type to the device Batch
acquisition of
multiple data
Image data
storage device
TCP/IP protocol Fast
Slow
Integer value 64-bit floating point type (Automatic conversion)
Floating point value
Read value
storage device
Telnet Integer value 32-bit integer type (Automatic conversion)
MVIN instruction Telnet Integer value 32-bit integer type (Automatic conversion)
Floating point value 64-bit floating point type (Automatic conversion)