256
4 OPERATION CONTROL PROGRAMS
4.17 Vision System Dedicated Function
Send a command for native mode: MVCOM
■Usable data
: Usable
*1 Specify the start device which stores the character string data. The character string can be specified directly.
■Description, data type of result
• Native Mode command specified with (S2) is sent to the vision system specified with (S1), and the return value is stored in
the device specified with (D) with the format specified with (S3).
• The Motion SFC program execution transits to the next block without waiting for the Native Mode command completion.
After process completion, the status storage device value set in the Ethernet communication line setting parameter is 20
(reception enabled).
• Refer to the Cognex Corporation vision system manual and help sections, etc. for details of Native Mode command
specified with (S2). In (S2), write directly the Native Mode command as a 99 one-byte character or less character string
enclosed with double quotation, or set the head of a device in which a 191 one-byte character or less character string is
stored.
Format Number of basic steps Usable steps
F/FS G
MVCOM(S1), (S2), (D), (S3), (S4) 19 or more
Setting
data
Usable Data
Bit
device
Word device Constant Calculation
expression
Bit
conditional
expression
Comparison
conditional
expression
16-bit
integer
type
32-bit
integer
type (L)
64-bit
floating
point
type (F)
16-bit
integer
type
(K/H)
32-bit
integer
type
(K/H, L)
64-bit
floating
point
type (K)
(S1)
(S2)
*1
(D)
(S3)
(S4)
Setting data Description Data type of result
(S1) Vision system (camera) No. to which Native Mode command will be sent (1 to 32)
(S2) Native Mode command character string
(D) Start device which stores return value
(S3) Mode setting for return value conversion
(S4) Timeout time until data is read from vision system (1 to 32767) [10ms]