Reading Plots from the Communication Module

Overview

To load all plots on eight axes, the user would need to reserve 49,152 PLC registers. A single-axis full plot requires 6,144 PLC registers. A plot of a single piece of information on one axis requires 1,024 PLC registers.

The chart below can be used to determine the start of a given plot. n represents the axis number (0-7). Remember that there are 1024 registers per plot, so for non-Allen-Bradley addressing, the 1024 sequential registers hold each sample, but for Allen-Bradley addressing, only 256 registers fit in a register file. Therefore, the first 256 samples are in the register file calculated by the table below as elements 0-255. The next 256 samples are in the next register file, and so on.

Information

for Axis n

MB/TI505 Address

PROFIBUS Address

AB/SoftPLC
Address

Siemens S7
Address

Target Position

16385 + 6144*n

16384 + 6144*n

N(64+24*n):0

DB(208+6*n).DBW0

Actual Position

17409 + 6144*n

17408 + 6144*n

N(68+24*n):0

DB(209+6*n).DBW0

Status Word

18433 + 6144*n

18432 + 6144*n

N(72+24*n):0

DB(210+6*n).DBW0

Drive

19457 + 6144*n

19456 + 6144*n

N(76+24*n):0

DB(211+6*n).DBW0

Extra Plot Data #1†

20481 + 6144*n

20480 + 6144*n

N(80+24*n):0

DB(212+6*n).DBW0

Extra Plot Data #2†

21505 + 6144*n

21504 + 6144*n

N(84+24*n):0

DB(213+6*n).DBW0

†See the sections below for details on these arrays.

 

Position Units

The positions returned in these arrays are not in position units. The numbers returned are unsigned 16-bit numbers. To convert a ”r;position” returned in the array, perform the following math:

Position_real = ( Position_plot x Sign ) + Offset

In this equation, Sign will be +1 if the Scale is positive and -1 if the Scale is negative. For best results, this equation should be worked out using 32-bit integers or floating point math.

 

Extra Plot Data

Refer to the Selecting the Data to Plot topic for details on selecting the data to be entered into the last two plot arrays. The exact formats of the plot arrays are described below:

Note: Add the fractions before converting the raw Target and Actual to final Target and Actual Positions are described in the section above.

 

Auxiliary Axes

For auxiliary (non-position analog) axes, the Drive, Extra Plot Data #1, and Extra Plot Data #2 tables are unused. In addition, the target and actual analog values are signed 16-bit values that match the values displayed in RMCWin. Therefore, no conversions need to be done on them as must be done with position units. The following chart shows the starting addresses of each auxiliary axis’ 1024-element sample arrays:

MB/TI505 Address

PROFIBUS Address

AB/SoftPLC
Address

Siemens S7
Address

 

Information

16385 + 6144*n

16384 + 6144*n

N(64+24*n):0

DB(208+6*n).DBW0

Axis n Target Analog

17409 + 6144*n

17408 + 6144*n

N(68+24*n):0

DB(209+6*n).DBW0

Axis n Actual Analog

18433 + 6144*n

18432 + 6144*n

N(72+24*n):0

DB(210+6*n).DBW0

Axis n Status Word

 


Copyright (c) 1997-2015 by Delta Computer Systems, Inc.