Delta RMC151 User Manual
Page 626
RMC70/150 and RMCTools User Manual
Notice that the RMC’s I and Q data should generally not be accessed directly but should
instead go through the DPRD_DAT and DPWR_DAT SFCs in order to ensure that the data
is always handled as a consistent block.
Reading and Writing Record Data from the S7
Use the Data Records to read from or write to any location in the RMC. Record Data reads
and writes can be performed while the cyclic data exchange is occurring. The maximum
Record Data read or write length is 2048 32-bit registers (8192 bytes).
•
Fixed Data Records
Data Records 7-255 correspond to the register files 7 -255 in the RMC, as listed in the
RMC150 Register Map and RMC70 Register Map. Reads and writes of Data Records 7-
255 will begin at element 0 of the file. Fixed Data Records are useful for accessing plot
data, the Variable Table, and even the command area.
•
Custom Data Records
The locations of Data Records 1000-1003 can be specified in the PROFINET Settings
Page in RMCTools. This overcomes the Fixed Data Records limitations of starting at
element 0. Custom Data Records are useful for accessing any location in the RMC.
Reading and Writing Record Data
To read and write Record Data, use the RDREC (SFB52) and WRREC (SFB53) system
function blocks.
1. Insert the SFB52 (RDREC) or SFB53 (WRREC).
2. At the top of the SFB, type a name of a new Data Block (DB). If it does not exist, after
pressing Enter, STEP 7 will prompt to create a new one. Choose Yes.
3. Wire the EN input to turn on as required by your application.
4. Wire the REQ input so that it will turn on for one scan to trigger the read or write. This
can be done with a one-shot.
5. The ID must be set to the diagnostic address of the first slot/subslot of the RMC. In
the RDREC Example below, the value DW#16#7FB is the hexadecimal equivalent of
the diagnostic address 2043, also shown in step 10 above in the Hardware setup slot
table.
6. Index is the Data Record number to read from or write to.
7. Set MLen or Len to four times the number of 32-bit registers to be sent or received.
The maximum length is 8192 bytes (2048 32-bit registers).
8. Set Record to the Data Block that contains the source or destination data. You must
define this Data Block. The contents of the Data Block should match the data area of
the RMC.
9. Wire the Valid, Busy, Error, and Status outputs as required by your application.
RDREC Example
606
Delta Computer Systems, Inc.