Omron CQM1H-SCB41 operation manual Broadcast with Ascii Conversion, No Response Sequence No

Models: CQM1H-SCB41

1 421
Download 421 pages 6 Kb
Page 153
Image 153

CompoWay/F Master Protocol

Appendix B

 

 

 

The 2nd and 3rd operands of the PMCR(260) instruction are specified as follows.

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

Offset

Contents (data format)

Data

 

 

 

 

+0

Number of send data words

0007

 

(4 digits BCD)

 

 

 

 

 

 

+1

(Undefined)

Node No. (2 digits

0000 Hex

 

 

BCD)

 

 

 

 

 

+2

MRC

SRC

0101 Hex

 

(2 digits Hex)

(2 digits Hex)

 

 

 

 

 

+3

Number of send bytes (4 digits BCD)

0012 (BCD)

 

 

 

+4

Send data (12 digits Hex)

C000 Hex

 

 

 

 

+5

 

 

0000 Hex

 

 

 

 

+6

 

 

0001 Hex

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

Offset

Contents (data format)

Data

 

 

 

+0

Number of receive data words

EX is stored at reception (0004)

 

(4 digits BCD)

 

 

 

 

+1

Response code (4 digits Hex)

The response code will be stored in

 

 

hexadecimal form.

 

 

The normal end response code is 0000.

 

 

 

+2

Receive data (8 digits Hex)

The 4 bytes of read data.

 

 

 

+3

 

 

Broadcast with ASCII Conversion, No Response (Sequence No. 601)

This sequence converts the specified data beginning with the command code to ASCII and broadcasts it. No re- sponses are received.

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

First word of

+0

Number of send data words

send data

 

 

 

 

+1

 

(Undefined)

 

 

 

 

 

 

 

 

+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)

 

---

 

 

 

 

+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.

146

Page 153
Image 153
Omron CQM1H-SCB41 operation manual Broadcast with Ascii Conversion, No Response Sequence No