Mitsubishi Electric VS20M-11F310 Connection Manual page 28

Melsensor, fa sensor, vision sensor
Hide thumbs Also See for VS20M-11F310:
Table of Contents

Advertisement

Creating a program
Create a program using the devices set in the refresh settings.
■Devices used in the program
Signal
Signal name
SM1536
Cyclic transmission status
SD1536.0
Cyclic transmission status for each
station (station No.1)
X1000
Trigger Ready
X1001
Trigger Ack
X1007
Online
X1009
Inspection Completed
Y1000
Trigger Enable
Y1001
Trigger
M0
Online command
M1
Trigger directive
M200
Communication condition satisfied
flag (station No.1)
■Program example
SM1536
SD1536.0
(0)
N0
M200
M0
(4)
M1
(7)
X1001
(12)
(20)
(21)
(0): Check that the cyclic transmission is normally performed between the master station (programmable controller) and the station No.1 (vision sensor).
When the cyclic transmission is normally performed, the program in line (4) and later are executed.
(4): Enable a trigger on the vision sensor.
(7): Request the start of the image capture to the vision sensor. ('Trigger' (Y1001) turns ON.)
(12): The processing for the completion of the image capture of the vision sensor is performed.
Precautions
Use 'Trigger Ack' (X1001) to set an interlock when checking 'Inspection Completed' (X1009).
1 CC-Link IE Field Network Basic CONNECTION
26
1.4 Setting a Programmable Controller
Description
This signal turns ON when the cyclic transmission starts.
The cyclic transmission status for each station is stored.
The status of the station No.1 is stored to bit 0.
The reception status of 'Trigger Enable' (Y1000) is stored.
• ON: Trigger is enabled.
• OFF: Trigger is disabled.
The reception status of 'Trigger' (Y1001) is stored.
• ON: With trigger
• OFF: Without trigger
The online status of a vision sensor is stored.
• ON: Online
• OFF: Offline
This signal is changed (toggled) at the completion of an
inspection of a vision sensor.
'Trigger' (Y1001) is enabled while this signal is ON.
By turning this signal OFF and ON, an image capture is
started.
'Trigger Enable' (Y1000) turns ON to make a vision sensor
online while this signal is ON.
By turning this signal OFF and ON, 'Trigger' (Y1001) is turned
ON, and an image capture is performed.
This signal turns ON while the cyclic transmission with the
station No.1 is performed.
X1007
X1000
X1001
Y1001
X1009
X1009
Remarks
CC-Link IE Field Network Basic
Reference Manual
Refresh device for RX0
Refresh device for RX1
Refresh device for RX7
Refresh device for RX9
Refresh device for RY0
Refresh device for RY1
N0
M200
MC
Y1000
Y1001
SET
Y1001
RST
M1
RST
N0
MCR
END

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents