beautypg.com

Delta RMC151 User Manual

Page 459

background image

6 Communication

12.

Data Time

1

The RMC has 32-bit registers. Therefore, you can only write

32-bit words. Most RMC registers are floating-point; a few

are integers.

Data Item

n

To write n 32-bit registers to the RMC, make sure the

TxCount is correct. It should be (2 x n) + 3.


Example
A programmer wishes to write 5 values to the variable table in the RMC70 (address

%MD56.0). These values are: 32.876, 1.0, 12.0, 5.432, 862.0.
The send data for the ZP.BUFSND instruction would be as follows:

13
(16

bits)

0
(16

bits)

56
(16

bits)

0
(16

bits)

32.876
(32

bits)

1.0
(32

bits)

12.0
(32

bits)

5.432
(32

bits)

862.0
(32

bits)

Reading from the RMC with the Q-Series

To read registers from the RMC, use the ZP.BUFSND instruction to send a read request

and then use the ZP.BUFRCV instruction to read the received data. The ZP.BUFRCV

instruction is described in section 10.2 of the Q Corresponding Ethernet Interface Module

User's Manual (Basic).
Writing the Read Request
To send a request a read from the RMC, the send data of the ZP.BUFSND instruction must

be formatted as shown below. Each box is a 16-bit word.

3
(16

bits)

Read

Count
(16

bits)

Register

File
(16

bits)

Register
Element
(16

bits)


Description:

3

This is actually TxCount, the number of 16-bit words

written, not including this word. This value must be 3 when

requesting a read.

Read Count

This is the number of 32-bit registers to be read from the

RMC, starting at the address given by the file and element.

Register

File

This is the file number of the address of the first register to

be read. For example, for %MD8.12, the file number is 8.

Register

Element

This is the element number of the address of the first

register to be read. For example, for %MD8.12, the

element number is 12.

Receiving the Returned Data
After the write request is sent, the RMC will return the requested data. The QJ71E71

buffer memory location 20485 indicates whether data is being received. The bit in

memory location 20485 corresponding to the current connection can be used to indicate

when to read the receive buffer.
To read the receive buffer, use the ZP.BUFRCV instruction. The returned data is in the

format shown below:

16-

bit

Count

32-

bit
Read

Data

Item

1

Data

Item

2

Data

Item

n

deltamotion.com

439

This manual is related to the following products: