CompoWay/F Master Protocol

 

 

 

 

 

 

 

Appendix B

 

 

Send Data Word Allocation (2nd Operand of PMCR(260))

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

First word of

+0

 

 

Number of send data words

 

 

 

 

send data

 

 

 

 

 

 

 

 

 

 

 

 

 

+1

 

 

(Undefined)

 

Node No.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

+2

 

 

MRC

 

SRC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

+3

 

 

 

Number of send bytes

 

 

 

 

 

+4

 

 

 

Send data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Offset

Contents (data format)

Data

 

 

 

 

 

 

 

 

 

 

 

 

 

+0

 

Number of send data words

0005 to 0128

 

 

 

 

 

 

 

(4 digits BCD)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

+1

 

(Undefined)

 

Node No. (2 digits

00 to 99

 

 

 

 

 

 

 

 

 

 

BCD)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

+2

 

MRC

 

SRC

Set the command code for the required

 

 

 

 

 

 

 

(2 digits Hex)

 

(2 digits Hex)

service

 

 

 

 

 

 

 

 

 

 

 

 

 

+3

 

Number of send bytes (4 digits BCD)

Number of data bytes from the next byte

 

 

 

 

 

 

 

 

 

 

 

 

 

after the command code until the byte just

 

 

 

 

 

 

 

 

 

 

 

 

 

before the ETX.

 

 

 

 

 

 

 

 

 

 

 

 

 

0 to 984 decimal

 

 

 

 

 

 

 

 

 

 

 

 

+4

 

Send data (4-digit Hex)

The data specified in hexadecimal here will

 

 

 

 

 

on

 

 

 

 

 

 

 

be converted to ASCII and the number of

 

 

 

 

 

 

 

 

 

 

 

 

 

bytes specified in S+3 will be sent.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Note 1. Set the number of send bytes to twice the number of bytes in memory. This is necessary because the data is converted to ASCII data before being sent.

2.When hexadecimal data is converted to ASCII data, data is sent starting from the send data word with the largest offset. This is done because ladder programming handles data in 4-byte units.

Send data words

1 2 3 4

5 6 7 8

Send frame

“56” “78” “12” “34”

Receive Data Word Allocation (3rd Operand of PMCR(260))

Receive data

+0

storage words

+1

 

 

+2

Number of receive data words

Response code

Receive data

Offset

Contents (data format)

Data

 

 

 

+0

Number of receive data words

0003 to 0128

 

(4 digits BCD)

 

 

 

 

+1

Response code (4 digits Hex)

The response code will be stored in

 

 

hexadecimal form.

 

 

 

+2

Receive data (4-digit Hex)

The data from just after the response code

on

 

until just before the ETX will be converted

 

 

from ASCII to hexadecimal and stored

 

 

here.

Note When ASCII data is converted to hexadecimal data, data is stored starting from the receive data word with the largest offset. This is done because ladder programming handles data in 4-byte units.

Receive frame

“01” “23” “45” “67”

Receive data words

4 5 6 7

0 1 2 3

144

Page 151
Image 151
Omron CQM1H-SCB41 Send Data Word Allocation 2nd Operand of PMCR260, Receive Data Word Allocation 3rd Operand of PMCR260