Peripheral status register (address 10022), Setting the logic command and reference – Rockwell Automation 20-COMM-M Modbus/TCP Adapter User Manual

Page 40

Advertising
background image

4-4

Using Modbus/TCP Function Codes

20-COMM-M Modbus/TCP Adapter User Manual
Publication 20COMM-UM014C-EN-P

Peripheral Status Register (Address 10022)

The Peripheral Status register contains information on which DPI Ports
presently have a peripheral connected and logged into the drive according to

Table 4.C

. By using Function Code 03 or 23, you can read register address

10022 to conveniently determine which DPI Ports and peripherals are in
use.

Table 4.C Peripheral Status Register Data

Setting the Logic Command and Reference

On Modbus/TCP, you can set the Logic Command word using any of the
following function codes:

Function Code 05 — For example, to stop a PowerFlex 70/700 drive (bit
0), write a binary value of “1” to register address 1 (

Table 4.D

).

Function Code 06 — For example, to stop a PowerFlex 70/700 drive (bit
0), write a decimal value of “1” to register address 10001
(

Table 4.E

).

Function Code 15 — For example, to select Ref 1 (Ref A Sel) as the
Reference for a PowerFlex 70/700 drive (bits 12, 13, and 14), write a
binary value of “1” to register address 13 and values of “0” (zero) to
register addresses 14 and 15 (

Table 4.D

).

Function Code 16 or 23 — For example, to set the direction for a
PowerFlex 70/700 drive (bits 4 - 5), write a decimal value of “16” to
command a forward direction or a decimal value of “32” to command a
reverse direction, and to start the drive (bit 1) write a decimal value of
“2” to register address 10001 (

Table 4.E

).

Table 4.D

shows that there are 16 discrete registers to represent the Logic

Command word bit by bit. These registers are used only for writing single
bits or multiple bits of commands.

Bit

Peripheral

0

This adapter

1

DPI Port 1

2

DPI Port 2

3

DPI Port 3

4

DPI Port 4

5

DPI Port 5

6

DPI Port 6 (reserved for future use)

!

ATTENTION: When using Function Codes to write to the
Logic Command or Reference, avoid sending the drive control
commands from multiple sources which can cause a conflict and
result in dangerous operation. Failure to observe this precaution
could cause bodily injury and/or damage to equipment.

Advertising