Compact Mode Input Register Overview

In addition to the Output registers, each RMC module requires two 16-bit registers per axis to hold status information. The first input register for each axis always holds the current axis Status word. The second input register can hold any of several values depending on the value of the command register for the given axis.

When a Sensor DI/O module is installed, the state of inputs 0-17 and outputs 0-7 are reflected in an additional two registers. The contents of these registers is given as follows:

 

First Sensor DI/O Input Register:

Bits 0-15

Sensor DI/O Inputs 0-15

Second Sensor DI/O Input Register:

Bits 0-1

Sensor DI/O Inputs 16-17

Bits 8-15

Sensor DI/O Outputs 0-7

 

If Compact Mode with Sync is used (versus Compact Mode without Sync), one additional 16-bit register to hold the Synchronization Input is required. See Using the PROFIBUS-DP Compact Mode for details on using this register and the differences between these two sub-modes.

The order of the input registers for an n-axis module with a Sensor DI/O running in Compact Mode with Sync is shown below. I represents the RMC’s input base address. If your module does not have a Sensor DI/O, drop the last two registers:

Register Number

Contents

I + 0

Synchronization Input

I + 1

Status for axis 0

I + 2

Specified by command for axis 0

I + 3

Status for axis 1

I + 4

Specified by command for axis 1

:

:

I + 2*n + 1

Status for axis n

I + 2*n + 2

Specified by command for axis n

I + 2*n + 3

Sensor DI/O Inputs 0-15 (if present)

I + 2*n + 4

Sensor DI/O Inputs 16-17, Outputs 0-7 (if present)

 

The following chart shows the same for an RMC running in Compact Mode without Sync:

Register Number

Contents

I + 0

Status for axis 0

I + 1

Specified by command for axis 0

I + 2

Status for axis 1

I + 3

Specified by command for axis 1

:

:

I + 2*n + 0

Status for axis n

I + 2*n + 1

Specified by command for axis n

I + 2*n + 2

Sensor DI/O Inputs 0-15 (if present)

I + 2*n + 3

Sensor DI/O Inputs 16-17, Outputs 0-7 (if present)

 

 

For most commands, the value returned in the second register for each axis is selected using the Status Area Request bits in the command register. Refer to the individual commands for exceptions. The possible fields that can be returned in the second register when is it controlled by the Status Area Request bits are:

Status Area Request

StatusRegister

0 (0000)

Command Position

1 (0001)

Target Position

2 (0010)

Actual Position

3 (0011)

Transducer Counts

4 (0100)

Status Word

5 (0101)

Drive Output

6 (0110)

Actual Speed

 7 (0111)

Null Drive

8 (1000)

Current Step

9 (1001)

Link Value

 10-15 (1010-1111)

Reserved

 

Compact Mode with Sync Example

Suppose you have an RMC100-M1-PROFI and would like the Status and Actual Position for axis 0, and you would like the Status and Drive for axis 1. You would send commands with the following format:

          SAR CMND INDX (HEX)

 

O+1 0000|0010|XXXX|XXXX (02XX)

Requests Actual Position

+2  XXXX|XXXX|XXXX|XXXX (XXXX)

Data for command on axis 0

O+3 0000|0101|XXXX|XXXX (05XX)

Requests Drive Output

+4  XXXX|XXXX|XXXX|XXXX (XXXX)

Data for command on axis 1

 

After the Synchronization Output register is incremented, the RMC will process the commands and update the Synchronization Input register to match. At this time, the input registers would hold the following values:

I+1 XXXX|XXXX|XXXX|XXXX (XXXX)

Status of axis 0

+2  XXXX|XXXX|XXXX|XXXX (XXXX)

Actual Position of axis 0

I+3 XXXX|XXXX|XXXX|XXXX (XXXX)

Status of axis 1

+4  XXXX|XXXX|XXXX|XXXX (XXXX)

Drive of axis 1

Compact Mode without Sync Example

Suppose you have an RMC100-M1-PROFI and would like the Status and Actual Position for axis 0, and you would like the Status and Drive for axis 1. You would send commands with the following format:

          SAR CMND INDX (HEX)

 

O+0 0000|0010|XXXX|XXXX (02XX)

Requests Actual Position

+1  XXXX|XXXX|XXXX|XXXX (XXXX)

Data for command on axis 0

O+2 0000|0101|XXXX|XXXX (05XX)

Requests Drive Output

+3  XXXX|XXXX|XXXX|XXXX (XXXX)

Data for command on axis 1

 

When the RMC sees the changes to the SAR field, it processes the commands. As a result, the input registers would hold the following values:

I+0 XXXX|XXXX|XXXX|XXXX (XXXX)

Status of axis 0

+1  XXXX|XXXX|XXXX|XXXX (XXXX)

Actual Position of axis 0

I+2 XXXX|XXXX|XXXX|XXXX (XXXX)

Status of axis 1

+3  XXXX|XXXX|XXXX|XXXX (XXXX)

Drive of axis 1

 

See also:

Using the PROFIBUS-DP Compact Mode

Compact Mode Output Register Overview

Command Words for PROFIBUS-DP Compact Mode

 


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