Sequence program. Mitsubishi Electric Vision Sensor Basic Course
Advertisement
Advertisement
Sequence program
This program captures images by enabling the trigger of the vision sensor.
Devices to be used
Signal
D1002.0
Signal name
Trigger Ready
D1002.1
D1002.7
D1002.9
D1000.0
D1000.1
M0
M1
Trigger Ack
Online
Inspection Completed
Trigger enable
Trigger
Online command
Trigger command
Description
The reception status of "Trigger enable" (D1000.0) is stored.
• On: Trigger is enabled.
• Off: Trigger is disabled
The reception status of "Trigger" (D1000.1) is stored.
• On: With trigger
• Off: Without trigger
The online status of a vision sensor is stored.
• On: Online
• Off: Offline
This signal is inverted (toggled) at the completion of an inspection of a vision sensor.
"Trigger" (D1000.1) is enabled while this signal is on.
By turning this signal off and on, an image capture is started.
"Trigger enable" (D1000.0) turns on to set a vision sensor to online while this signal is on.
By turning this signal off and on, "Trigger" (D1000.1) is turned on, and an image capture is started.
Program example
1
2
3
1
M0
(0)
M1
(3)
(8)
D1002.1
2
D1002.7
D1002.0
D1002.9
D1002.9
4
3 4
D1002.1
D1000.1
5 (16)
5 6 7 8 9 10 11 12
D1000.0
SET
RST
RST
D1000.1
D1000.1
M1
END
(0): Set the vision sensor to online.
(3): Trigger the request to start the image capture to the vision sensor.
(8): The process when image capture processing of the vision sensor is completed
Precautions
• To check "Inspection Completed" (D1002.9), perform an interlock with "Trigger Ack" (D1002.1).
• This training does not include programming. When writing a program to a CPU module, write the pre-programmed project
"School_Vision.gx3".
112 5 TRAINING 2 COMMUNICATIONS BETWEEN A PROGRAMMABLE CONTROLLER AND VISION SENSOR
5.4 Setting a Programmable Controller
Download
Advertisement