Reading RMC Plots with a Host Controller
Reading
RMC Plots with a Host Controller
This topic describes how to read the RMC plots with a PLC, HMI, PC (via RMCLink) or other host controller. If you need help on viewing RMC plots in RMCTools, see the Plot Overview topic. For help on configuring the plots, such as changing the sample period or which registers are plotted, see the Plot Template Editor topic.
Determining which Data Items to Read
The RMC plot data items you can read via a host controller are not necessarily the same as the items displayed in the Plot Manager because the Plot Manager calculates some items. For example, some velocities are not actually uploaded from the controller, but are calculated from the position data.
To see which data items are actually captured and stored in the RMC:
In the Plot Template Editor, on a plot tab, choose Custom.
In the Plotted Data table header, click Show Data Items. These are the plot data items that you can read via a host controller.
The order of the captured data items can be changed by clicking the Up and Down arrows. To apply any changes to the RMC, click the Download button in the Plot Template Editor toolbar.
Methods
The RMC provides several methods of reading plots with a host controller:
Method 1: Read a Captured Plot - Basic
This method is the simplest method, but is limited to a maximum of 2 plots, a maximum of 4 data sets per plot, and up to the first 4096 samples from each data set can be read. This method is suitable for use by HMIs with limited sequencing capabilities and by low-bandwidth media, such as Basic or Enhanced PROFIBUS modes.Method 2: Read a Captured Plot - Advanced
With this method, you can read any plot in the RMC. However, it requires more sequencing capabilities in the host controller than Method 1.Method 3: Read a Continuous Plot - Continuous Data
With this method, you can read a plot continuously. As long as the host controller reads keep up with the data capture rate, there will be no gaps or overlap in the data. This method requires sequencing capabilities in the host controller.Method 4: Read a Continuous Plot - Newest Data
With this method, you can read a plot continuously. The newest data is always captured whether or not the data causes an overlap or gap with the last data that was read. This method requires sequencing capabilities in the host controller.
The methods refer to the registers listed in the Registers section below.
Method 1: Read a Captured Plot - Basic
Method 2: Read a Captured Plot - Advanced
Method 3: Read A Continuous Plot (Trending) - Continuous Data
Method 4: Read A Continuous Plot (Trending) - Newest Data
Registers
The following registers are used in the methods above. The addresses are given here.
# |
Register Name |
Details |
RMC70 Address |
RMC150 Address |
Data |
Plot Status/Configuration Registers |
|||||
|
Plot Sample Period |
|
%MD(32+n).2 |
%MD(96+n).2 |
REAL |
|
Plot ID |
|
%MD(32+n).8 |
%MD(96+n).8 |
REAL |
|
Plot State |
0 = not triggered 1 = capturing 2 = complete |
%MD(32+n).9 |
%MD(96+n).9 |
REAL |
|
Captured Samples |
|
%MD(32+n).10 |
%MD(96+n).10 |
REAL |
Dynamic Plot Upload Registers |
|||||
0 |
Upload Mode/Status |
Bits 0-3: Upload Mode 1 = triggered 2 = continuous 3 = continuous, always newest Bits 4-7: Upload Status 0 = normal 1 = plot state mismatches upload mode 2 = data overran (mode 2 only) |
%MD(40+n).0 |
%MD(104+n).0 |
UDINT |
1 |
Requested Read Samples |
|
%MD(40+n).1 |
%MD(104+n).1 |
UDINT |
2 |
Current Index |
|
%MD(40+n).2 |
%MD(104+n).2 |
UDINT |
3 |
Plot ID |
|
%MD(40+n).3 |
%MD(104+n).3 |
UDINT |
4 |
Samples Uploaded |
|
%MD(40+n).4 |
%MD(104+n).4 |
UDINT |
5+ |
Plot Data |
|
%MD(40+n).5-4095 |
%MD(104+n).5-4095 |
* |
See Also
Copyright (c) 2005-2012 by Delta Computer Systems, Inc.
