Using Protocol Macros

Section 5-3

Send Data

S:D00000

0007

 

D00001

0000

 

D00002

0101

 

D00003

000C

D00004

C000

D00005

0000

 

D00006

0001

 

Receive Data

 

 

 

 

D:D00010

 

0004

 

D00011

 

 

 

D00012

 

 

 

D00013

 

 

 

 

 

 

 

7 words from D00000 to D00006 K3N node No. : 00

CompoWay/F command “0101” (reads the K3N present value) Number of send bytes

CompoWay/F command send data

(Variable type, read start address, 00, number of elements)

4 words from D00010 to D00013 Response code is stored.

The read data (in this case, the present value of K3N) is stored.

3.Executing the PMCR(––) instruction

4.For details on confirming operation, see Section 12 Tracing and I/O Memory Monitoring in the CX-Protocol Operation Manual (W344).

Transmission Line Tracing

The data in the send/receive messages flowing over the transmission line (RS-232C or RS-422A/485) and the control codes are traced.

I/O Memory Monitoring

Monitors send/receive data and the status of the various flags.

Using User-created Protocols

CX-Protocol

CPU Unit

Use the CX-Protocol to create protocols.

PMCR(––)

External device

Serial

Communications

Board

Section references in the following procedure refer to the CX-Protocol Op- eration Manual (W344).

1, 2, 3... 1. For details on designing protocols, see Section 4 and Section 5.

a)Create a communications sequence status transition chart.

b)From the status transition chart, divide the processing contents into se- quence steps.

c)Determine the send/receive message contents.

2.Use the CX-Protocol to create and send a project (protocol data).

a)Creating a new project:

See 5.1 Creating a New Project or Protocol.

b)Creating a new communications sequence:

See 5.2 Creating a New Sequence or 7.1 Setting a Sequence.

c)Creating steps:

See 5.2 Creating a New Sequence and 8.1 Setting a Step.

d)Creating messages:

See 9.1 Setting a Message.

Note After creating messages, steps can also be created by specifying message names.

68

Page 79
Image 79
Omron CQM1H-SCB41 operation manual Send Data, Receive Data, Using User-created Protocols