Example Of Connection Check - Omron V400-R2 Connection Manual

Ultra small multi-code reader (rs-232c)
Hide thumbs Also See for V400-R2:
Table of Contents

Advertisement

6.3. Example of Connection Check

This document shows an example of an ST (structured text) program and protocol macro data
in which the Controller sends/receives the message to/from the Code Reader.
The Controller and the Code Reader send and receive the message of "Reading Trigger
(sequence No. 900)". The following figure outlines the sequence operation.
●Overview of sequence operation
(1) The ST program executes the protocol macro instruction (ExecPMCR instruction) for
which sequence No. 900 of protocol macro data is specified
(2) The Reading Trigger command (sequence No. 900) is selected from the protocol macro
data, and it is sent to the Code Reader.
(3) The Code Reader executes the command according to the send data from the
Controller.
(4) The Controller receives the result of the command executed by the Code Reader, and
then stores in the specified variable.
CPU Unit
Project file
ST Program
IF .... THEN
..........
ELSE
..........
END_IF;
ExecPMCR(....
(1) Executing the protocol
macro instruction
(Specifying sequence No.900)
Output_RecvData
Receive data
storage area
Controller
Serial Communications Unit
Protocol macro
data
Sequence No.1
Sequence No.2
Sequence No.900
(4) Receiving the
execution result of
the command and
storing it in the
specified variable
6. Serial Communications Settings
RS-232C
(2) Reading Trigger
(Sequence No.900)
Send data
Receive data
Code Reader
(3) Executing the
command
12

Advertisement

Table of Contents
loading

Table of Contents