Communications Sequence - Omron CJ Series Connection Manual

General-purpose serial (rs-232c), corporation displacement sensor
Hide thumbs Also See for CJ Series:
Table of Contents

Advertisement

9.2. Communications Sequence

The following explains the communications sequence that can be used for the PMCR
instruction in this program.
9.2.1.
Communications Sequence Number
A communications sequence that is registered in SCU is identified by a communications
sequence number. The PLC executes a corresponding command on Destination Device by
specifying a communications sequence number in the PMCR instruction.
This protocol macro data includes the following communications sequence.
No.
Command name
900
Version information
acquisition
9.2.2.
PMCR Instruction Operand Settings
The PMCR instruction operands of the communications sequence No. 900 (#0384)" version
information acquisition" are shown below.
・Control word C1 setting (C1: CIO 5010)
CH
Description (data type)
Communications port No. (1-digit hex)
Serial port No. (1-digit hex)
C1
Unit address of Destination Device
(2-digit hex)
・Control word C2 setting (C2: CIO 5011)
CH
Description (data type)
C2
Communications sequence No.
・First send word S setting (S: CIO 5020)
CH
Description (data type)
S
Number of send data words (4-digit
hex)
・First receive word D setting (D: CIO 5500)
CH
Description (data type)
D
Number of receive data words (4-digit
hex)
D+1
Receive data [0] (4-digit hex)
D+2
Receive data [1] (4-digit hex)
D+50
Receive data [49] (4-digit hex)
Description
Acquires version information of Destination Device.
#7210 (Communications port No. 7,
&900 (Version information acquisition)
#0000: (No variable in send messages
Stores the number of words used,
including the D word.
Stores acquired version information.
9.Program
Data (description)
Serial port No.2,
#Unit number + #10)
Data (description)
Data (description)
of protocol macro data)
Data (description)
54

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents