Using Protocol Macros

 

Section 5-1

 

 

 

 

 

 

 

Item

 

Description

 

 

 

 

 

Step contents

 

Commands

Send only (SEND), receive only (RECEIVE), or send and receive

 

 

 

(SEND&RECEIVE)

 

 

 

 

Repeat counter

1 to 255 times

 

 

 

 

 

 

 

 

 

 

Retry count

0 to 9

 

 

 

 

 

(Only when the command is SEND&RECEIVE)

 

 

 

 

 

 

 

Send wait time

0.01 to 0.99 s, 0.1 to 9.9 s, 1 to 99 s, or 1 to 99 min

 

 

 

(Only when the command is SEND or SEND&RECEIVE)

 

 

 

 

 

 

 

With or without

When receive processing is completed (when the receive data is

 

 

response write

stored in the area specified in the 3rd operand of the PMCR(––)

 

 

(operand)

instruction), whether or not to store the received messages can be

 

 

 

selected.

 

 

 

 

Next processing

When a step has ended normally, End (sequence completed), Next

 

 

 

(proceed to the next step No.), Goto (go to the specified step No.), or

 

 

 

Abort (interrupt the step and terminate that sequence) can be selected.

 

 

 

 

 

 

 

Error processing

When a step has ended abnormally, End, Next, Goto, or Abort can be

 

 

 

selected.

 

 

 

 

 

 

 

 

 

Send message

Data sent to the

Consists of a header (*1), address (*2), length,

 

 

 

specified address

data (*2), error check code (*3), and terminator

 

 

 

when the command

(*1).

 

 

 

 

is SEND or

For an explanation of *1, *2, and *3, see the

 

 

 

SEND&RECEIVE.

 

 

 

following pages.

 

 

 

 

 

 

Receive message

Data sent from the

 

 

 

 

 

specified address

 

 

 

 

 

when the command

 

 

 

 

 

is RECEIVE or

 

 

 

 

 

SEND&RECEIVE.

 

 

 

 

 

 

 

 

 

Reception matrix

When the

Specifies the receive messages and the next

 

 

 

command is

processing for each of cases No. 00 to No. 15.

 

 

 

RECEIVE or

Of the maximum 16 cases, one case must be set

 

 

 

SEND&RECEIVE,

as “Other” in the receive messages (in addition to

 

 

 

sets the expected

the set receive messages).

 

 

 

receive messages

 

 

 

 

 

(15 max.), and

 

 

 

 

 

switches to the

 

 

 

 

 

next processing

 

 

 

 

 

according to the

 

 

 

 

 

message received.

 

 

Note The baud rate and the communications distance sometimes depend on the re- mote device.

61

Page 72
Image 72
Omron CQM1H-SCB41 Step contents Commands, Repeat counter, Retry count, Send wait time, With or without, Response write