roscas npt & bsp

118
MVI46-DFNT SLC Platform EtherNet/IP Interface Module User Manual November 5, 2004

Upload: carlos-eduardo-lima-coelho

Post on 28-Dec-2015

96 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Roscas Npt & Bsp

MVI46-DFNT SLC Platform

EtherNet/IP Interface Module

User Manual

November 5, 2004

Page 2: Roscas Npt & Bsp

ProSoft Technology, Inc. Page 2 of 118 November 9, 2004

Please Read This Notice Successful application of this module requires a reasonable working knowledge of the SLC Platform EtherNet/IP Interface Module hardware and the application in which the combination is to be used. For this reason, it is important that those responsible for implementation satisfy themselves that the combination will meet the needs of the application without exposing personnel or equipment to unsafe or inappropriate working conditions. This manual is provided to assist the user. Every attempt has been made to assure that the information provided is accurate and a true reflection of the product's installation requirements. In order to assure a complete understanding of the operation of the product, the user should read all applicable Allen-Bradley documentation on the operation of the A-B hardware. Under no conditions will ProSoft Technology, Inc. be responsible or liable for indirect or consequential damages resulting from the use or application of the product. Reproduction of the contents of this manual, in whole or in part, without written permission from ProSoft Technology, Inc. is prohibited. Information in this manual is subject to change without notice and does not represent a commitment on the part of ProSoft Technology, Inc. Improvements and/or changes in this manual or the product may be made at any time. These changes will be made periodically to correct technical inaccuracies or typographical errors. ProSoft Technology, Inc. 1675 Chester Avenue, 2nd Floor Bakersfield, CA 93301 (661) 716-5100 (661) 716-5101 (Fax) www.prosoft-technology.com

Copyright © ProSoft Technology, Inc. 2000 – 2004. All Rights Reserved. MVI46-DFNT User Manual November 5, 2004

Page 3: Roscas Npt & Bsp

Table of Contents MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 3 of 118 November 9, 2004

Table of Contents PLEASE READ THIS NOTICE .......................................................................................................... 2

1 INTRODUCTION......................................................................................................................... 5 1.1 Using this Manual........................................................................................................... 5 1.2 Product Specifications................................................................................................... 5

1.2.1 General Specifications.................................................................................................. 6 1.2.2 Hardware Specifications ............................................................................................... 7

2 FUNCTIONAL OVERVIEW......................................................................................................... 9 2.1 General Concepts........................................................................................................... 9

2.1.1 Module Power Up ......................................................................................................... 9 2.1.2 Main Logic Loop............................................................................................................ 9 2.1.3 Backplane Data Transfer ............................................................................................ 10

2.2 Module Control Blocks ................................................................................................ 11 2.2.1 Status Data Request................................................................................................... 12 2.2.2 Output Data Initialization Request .............................................................................. 12 2.2.3 Command Error List Request ..................................................................................... 12 2.2.4 Command Control....................................................................................................... 13 2.2.5 Warm Boot .................................................................................................................. 13 2.2.6 Cold Boot .................................................................................................................... 14

2.3 Data Flow between MVI46-DFNT Module and SLC Processor................................. 14 2.3.1 Server Driver............................................................................................................... 14 2.3.2 Client Driver ................................................................................................................ 19

3 MODULE CONFIGURATION ................................................................................................... 21 3.1 Setting Up the Module.................................................................................................. 21 3.2 Module Data .................................................................................................................. 22

4 LADDER LOGIC ....................................................................................................................... 23 4.1 Main Routine (U:2)........................................................................................................ 23 4.2 Data Transfer (U:3) ....................................................................................................... 23 4.3 Control Routine (U:4) ................................................................................................... 23

5 CONFIGURATION FILE ........................................................................................................... 29 5.1 Command List Overview.............................................................................................. 30 5.2 Commands Supported by the Module........................................................................ 30 5.3 Command Entry Formats............................................................................................. 31

6 DIAGNOSTICS AND TROUBLESHOOTING........................................................................... 35 6.1 Reading Status Data From the Module ...................................................................... 35

6.1.1 Required Hardware..................................................................................................... 35

Page 4: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Table of Contents EtherNet/IP Interface Module

Page 4 of 118 ProSoft Technology, Inc. November 9, 2004

6.1.2 Required Software.......................................................................................................36 6.1.3 Using the Port..............................................................................................................36 6.1.4 Menu Options ..............................................................................................................36

6.2 LED Status Indicators...................................................................................................44 6.2.1 Clearing a Fault Condition...........................................................................................46 6.2.2 Troubleshooting...........................................................................................................46

7 CABLE CONNECTIONS...........................................................................................................49 7.1 Ethernet Connection.....................................................................................................49 7.2 Pass-Through Ports......................................................................................................49 7.3 RS-232 Configuration/Debug Port...............................................................................50

8 ETHERNET PORT CONFIGURATION: WATTCP.CFG...........................................................51

APPENDIX A - MVI46-DFNT STATUS DATA DEFINITION............................................................53

APPENDIX B - MVI46-DFNT CONFIGURATION DATA DEFINITION............................................67

APPENDIX C - EXAMPLE DFNT.CFG FILE ...................................................................................73

APPENDIX D: COMMAND FUNCTION CODES .............................................................................75

APPENDIX E: CLIENT CONFIGURATIONS FOR SERVER...........................................................87 RSLinx Software ..........................................................................................................................87

DDE Connection ........................................................................................................................89 OPC Connection ........................................................................................................................93

ControlLogix (CLX) Processor...................................................................................................95 Encapsulated PCCC Messages ................................................................................................95 CIP Data Table Operations........................................................................................................98

PLC5 Processor.........................................................................................................................101 PLC5 Write Commands ...........................................................................................................101 PLC5 Read Commands...........................................................................................................102

SLC 5/05 Processor...................................................................................................................104 SLC5/05 Write Commands ......................................................................................................104 SLC5/05 Read Commands......................................................................................................105

RSView Software .......................................................................................................................106

APPENDIX F – ACCESSING AN SLC 5/03 PROCESSOR VIA ETHERNET USING MVI46-DFNT109 Troubleshooting ........................................................................................................................112

APPENDIX G - FREQUENTLY ASKED QUESTIONS ..................................................................115

APPENDIX H - SUPPORT, SERVICE, AND WARRANTY............................................................117

Page 5: Roscas Npt & Bsp

Introduction MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 5 of 118 November 9, 2004

1 Introduction This manual provides information on the MVI46-DFNT (EtherNet/IP Communication Module) module.

1.1 Using this Manual This manual contains the following sections: Product Specifications This section provides an overview of the MVI46-DFNT features. These features are explained later in the following sections. Functional Overview This section provides details about how the module functions including how data is transferred between the module and the SLC. This section also explains the module control blocks and the supported commands. Finally it describes the server and client drivers. Module Configuration This section describes the MVI46-DFNT configuration file in the RSLogix. Ladder Logic This section explains the sample ladder logic. ProSoft Technology, Inc. strongly suggests that you use the sample ladder logic as a starting point to build your application. Configuration File This section describes the configuration file. It also discusses the command list in detail. Additional parameters are explained in Appendix B. Appendix C contains a configuration file example. Diagnostics and Troubleshooting The section describes the debug port menu. Cable Connections The required cabling is discussed in detail in this section. Wattcp.cfg This section presents the Ethernet configuration file, used to set up the module IP address and other TCP/IP network configurations.

1.2 Product Specifications The MVI46-DFNT (“EtherNet/IP Communication Module”) product allows Allen-Bradley SLC I/O compatible processors to easily interface with other EtherNet/IP protocol compatible devices. Compatible devices include not only Allen-Bradley controllers but also a wide assortment of other client and server devices. The following is a list of Ethernet/IP (Explicit Messaging) Compatible Devices:

Page 6: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Introduction EtherNet/IP Interface Module

Page 6 of 118 ProSoft Technology, Inc. November 9, 2004

List of A-B material that support EPIC: • PLC5/E rev C/N, D/E, E/D • SLC5/05 series A, OS503 frn4 • 1785-ENET Series A, rev D • Interchange V6.2 • ControlLogix 1756-ENET • RSLinx Gateway V1.7

1.2.1 General Specifications The MVI46-DFNT module acts as a gateway between the EtherNet/IP, TCP/IP network, and the Allen-Bradley backplane. The data transfer from the SLC processor is asynchronous from the actions on the EtherNet/IP network. A 4000-word register space in the module is used to exchange data between the processor and the EtherNet/IP network. Some of the general specifications include:

• Support for the storage and transfer of up to 4000 registers to/from the SLC processor’s user data files

• Module memory usage that is completely user-definable • 10/100 MB Ethernet compatible interface • Configurable parameters for the client include:

Minimum Response Delay: 0 to 65535 milliseconds Response Timeout : 1 to 65535 milliseconds Retry Count: 0 to 20

• The module permits programming of the SLC processor over Ethernet using a TCP/IP service and a serial port on the module connected to Channel 0 of the processor. In this configuration, the module’s third port emulates the Channel 0 of the processor to pass-through messages from the port to the processor.

1.2.1.1 Server Functional Specifications The MVI46-DFNT module supports EtherNet/IP explicit, connected and unconnected class messaging. The 20 servers permit remote clients to interact with all data contained in the module. This data can be derived from other clients on the network, through the client on the module, or from the SLC processor.

1.2.1.2 Client Specifications A client configured as a EtherNet/IP device on the MVI46-DFNT module will actively issue connected, explicit messages to other nodes on the network. One hundred (100) user-defined commands are supported for the single client.

1.2.1.3 Pass-Through Services The module permits remote programming of the SLC processor on the Ethernet network using the built-in pass-through TCP service and a serial communication port (pass-through port) on the module. DF1 messages passed from the RSLogix 500 software and RSLinx (using the DF1 serial driver and port redirection software) are

Page 7: Roscas Npt & Bsp

Introduction MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 7 of 118 November 9, 2004

placed on the Ethernet network. The module receives these messages and passes them on to the SLC processor. This permits any node on the network to remotely program the SLC processor. Only one connection is permitted to prevent confusion during programming. When this feature is used, the third port on the module can emulate the Channel 0 port on the SLC. A DF1 master device can be attached to this port to monitor and control data in the SLC using the serial interface.

1.2.1.4 Physical This module is designed by ProSoft Technology and incorporates licensed technology from Allen-Bradley (SLC backplane technology).

• SLC Form Factor - Single Slot • Connections:

o 1 – RJ45 connector for Ethernet interface o 1 – RJ45 RS-232 Configuration Tool Connector o 2 – RJ45 RS-232/485/422 Serial ports for pass-through operations

1.2.1.5 SLC Interface • Operation via simple ladder logic • Complete set up and monitoring of module through RSLogix 500 software

and user constructed configuration file (DFNT.CFG) • SLC backplane interface via M1 file • All data related to the module is contained in user-defined files and a user

configuration file

1.2.2 Hardware Specifications The MVI46-DFNT module is designed by ProSoft Technology and incorporates licensed technology from Allen-Bradley (PLC backplane technology).

• Current Loads: 800 ma @ 5V (from backplane) • Operating Temperature: 0 to 60 Deg C (32 to 140 Deg F) • Storage Temperature: -40 to 85 Deg C (-40 to 185 Def F) • Relative Humidity: 5-95% (w/o condensation) • Ethernet Connector: One RJ45 Connector • Configuration Connector: RJ45 RS-232 Connector (RJ45 to DB9 cable

shipped with unit) • Pass-Through ports (2): RJ45 RS-232/485/422 Connector (RJ45 to DB9

cable shipped with unit)

Page 8: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Introduction EtherNet/IP Interface Module

Page 8 of 118 ProSoft Technology, Inc. November 9, 2004

Page 9: Roscas Npt & Bsp

Functional Overview MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 9 of 118 November 9, 2004

2 Functional Overview This section gives the reader a functional overview of the MVI46-DFNT module. A thorough understanding of the information contained in this document is required for successful implementation of the module in a user application. If you already understand the content of this section, refer to the Module Configuration section to get the module up and running. If you are not familiar with the data transfer method used by the module, read this section before setting up the module.

2.1 General Concepts The following discussion covers several concepts that are key to understanding the operation of the MVI46-DFNT module.

2.1.1 Module Power Up On power up the module begins performing the following logical functions:

1. Initialize hardware components a. Initialize SLC backplane driver b. Test and clear all RAM c. Initialize the serial communication ports

2. Read configuration for module from DFNT.CFG file on Compact Flash Disk 3. Initialize Module Register space 4. Enable Server Drivers 5. Enable Client Driver 6. Initialize all serial communication ports

Once the module receives the configuration, the module begins communicating with other nodes on the network, depending on the configuration.

2.1.2 Main Logic Loop Upon completing the power up configuration process, the module enters an infinite loop that performs the functions shown in the following diagram.

Page 10: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Functional Overview EtherNet/IP Interface Module

Page 10 of 118 ProSoft Technology, Inc. November 9, 2004

2.1.3 Backplane Data Transfer The MVI46-DFNT module is unique in the way that the SLC backplane is used. All data for the module is contained in the module’s M1 file. Data is moved between the module and the SLC processor across the backplane using the module’s M1 file. The SLC scan rate and the communication load on the module determine the update frequency of the M1 file. The COP instruction can be used to move data between user data files and the module’s M1 file. The following diagram displays the data transfer method used to move data between the SLC processor, the MVI46-DFNT module, and the TCP/IP Network.

Page 11: Roscas Npt & Bsp

Functional Overview MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 11 of 118 November 9, 2004

TCP/IPStackAnd

EthernetInterface

ClientDriverLogic

ClientDriverLogic

Module’sInternal

Database

MVI46-DFNT Module

To EtherNet/IPNetwork

LadderLogic

TransfersData from

module’s M1 File to dataareas in theprocessor

User Data Files

SLC Processor

LadderLogic

TransfersData from Processor data areasto M1 File

M1 File

Bac

kpla

ne D

river

Status

Read Data

Write Data

Special ControlBlocks

ServerDriverLogic

ServerDriverLogic

Command Control

As shown in the diagram, all data transferred between the module and the processor over the backplane is through the M1 file. Ladder logic must be written in the SLC processor to interface the M1 file data in the module’s internal database. All data used by the module is stored in its internal database. The following diagram shows the layout of the database:

4000 registers for user data

M1 File

Module’s Internal Database Structure

0

3999

4999

1000 registers for command control

Data registers in the module above 3999 are used for command control. When special values are written in this register set, the module performs specific functions. The following sections define the special functions handled by the module.

2.2 Module Control Blocks As discussed in the previous section, range 4000 to 4999 in the M1 file is used to control the module in order to perform specific tasks. These tasks are described in the following sections. Word 4000 contains the block ID that identifies the block to the MVI46-DFNT module. The block structure, which is different for each block, is shown in the following sections.

Page 12: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Functional Overview EtherNet/IP Interface Module

Page 12 of 118 ProSoft Technology, Inc. November 9, 2004

2.2.1 Status Data Request When the user wants to read the module’s general error and status data to the SLC, it must make a special request using the command control area. The following tables lists the two values recognized by the module in register 4000 to request the data:

Control Code Content Description 250 General Status data for the module, client

and pass-through server 251 DFNT Servers Status data for each of the 5

DFNT servers

Appendix A of this document contains a complete listing of the data returned for the two status blocks.

2.2.2 Output Data Initialization Request When the module performs a restart operation, it requests output data from the processor to initialize the module’s output data. This mode of operation is selected using the Initialize Output Data parameter in the configuration file. This facility can be used to bring the module to a known state after the restart operation. The structure of the block used to request the data is shown in the following table:

Offset Description / Value Length 4000 1000 1

The command control value of 1000 is placed in register 4000 of the M1 file to indicate that the module is requesting initialization of the M1 data file. Ladder logic in the processor must recognize this command and place the correct information in the M1file. After the data transfer is complete, the ladder logic should place a value of 1001 in register 4000 of the module’s M1 file. The format of the returned write block is shown in the following table:

Offset Description / Value Length 4000 1001 1

2.2.3 Command Error List Request This command control request (control code of 2000) is used to request a set of data from the command list error data set. The error codes returned in the block are DFNT error codes noted in Appendix A. The format of the request block from the ladder logic has the following format:

M1-File Offset Description 4000 This field contains the command code value of 2000 4001 This field contains the starting command index for the first error to report.

This field has a range of 0 to 99. 4002 This field contains the number of command error list values to report in

the response block. This register has a range from 1 to 60.

Page 13: Roscas Npt & Bsp

Functional Overview MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 13 of 118 November 9, 2004

After the module processes the block, it supplies the following values in the control register area:

M1-File Offset Description 4000 This field will be set to a value of 0 to indicate the function is complete. 4001 This field contains the command code value of 2000 requested 4002 This field contains the starting command index reported in the response

block. 4003 This field contains the number of command error list values in the

response block. 4004 to 4063 This data area contains the error codes for each of the command in the

module.

2.2.4 Command Control Blocks 3000 to 3002 are used to alter the command type field for a set of commands in the client command lists. Block 3000 is used to disable commands by setting the enable type field to value of 0. Block 3001 is used to enable commands by setting the enable type field to a value of 1. The commands will be issued at the time interval no more frequent than set in the poll interval parameter for the command. Block 3002 is used to set the enable type field to a value of 2. This operation should only be used for write functions as the command is only executed when the data referenced by the command changes. The general format for the blocks is as follows:

M1-File Offset Description 4000 This field contains the command code value of 3000 to 3002 4001 This field contains the number of commands from the first command

defined in the 4001 register to apply the new code. The register has a range of 1 to 60..

4002 This field contains the starting command index to apply the new enable type code to. This field has a range of 0 to 99.

After the module processes the block, it supplies the following values in the control register area:

M1-File Offset Description 4000 This field will be set to a value of 0 to indicate the function is complete. 4001 This field contains the command code value of 3000 to 3002 requested 4002 This field contains the number of commands processed by the module.

2.2.5 Warm Boot This block is sent from the SLC processor to the module when the module is required to perform a warm-boot (software reset) operation. This block is commonly sent to the module any time configuration data modifications are made in the controller tags data area. This forces the module to read the new configuration information and to restart. The structure of the control block is shown in the following table:

Page 14: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Functional Overview EtherNet/IP Interface Module

Page 14 of 118 ProSoft Technology, Inc. November 9, 2004

Offset Description / Value Length 4000 9998 1

2.2.6 Cold Boot This block is sent from the SLC processor to the module when the module is required to perform the cold boot (hardware reset) operation. This block is sent to the module when a hardware problem is detected by the ladder logic that requires a hardware reset. The structure of the control block is shown in the following table:

Offset Description / Value Length 4000 9999 1

2.3 Data Flow between MVI46-DFNT Module and SLC Processor The following discussion outlines the flow of data between the two pieces of hardware (SLC processor and MVI46-DFNT module) and other nodes on the TCP/IP network under the module’s different operating modes. The module contains both servers and a client. The servers are used to accept TCP/IP connections on service port AF12. The client establishes connections to service port AF12 (hexadecimal) on other EtherNet/IP servers. The following sections discuss the operation of the server and client drivers.

2.3.1 Server Driver The Server Driver allows the MVI46-DFNT module to respond to data read and write commands issued by clients on the EtherNet/IP network using explicit messaging. The following flow chart and associated table describe the flow of data into and out of the module.

0

4999

DatabaseAddresses

ServerDriver

RegisterData

storageM1 File

Processor Memory DFNT ModuleBackplane Interface

Configuration

Status

4

2

3

5

1

3999

Step Description 1 The server driver receives the configuration information from the configuration file on the Compact

Flash Disk, and the module initializes the servers.

Page 15: Roscas Npt & Bsp

Functional Overview MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 15 of 118 November 9, 2004

Step Description 2 A Host device, such as a ControlLogix processor, RSLinx or an MMI package issues a read or write

command to the module. The server driver qualifies the message before accepting it into the module.

3 Once the module accepts the command, the data is immediately transferred to or from the internal database in the module. If the command is a read command, the data is read out of the database and a response message is built. If the command is a write command, the data is written directly into the database and the M1 file and a response message is built.

4 Once the data processing has been completed in Step 3, the response is issued to the originating master node.

5 Status data for the servers is passed to the processor under ladder logic control using the command control data area in the M1 file.

The DFNT module supports server functionality using the reserved ControlNet service port 0xAF12. Services supported in the module permit client applications (i.e., RSView, ControlLogix processors, and RSLinx) to read from and write to the module’s database. This section discusses the requirements for attaching to the module using several client applications. The following diagram displays the relationship of the DFNT module’s functionality to devices on an Ethernet network:

ClientServer

RSSql

RSLinx ControlLogix Processor

PLC5Processor

SLC5/05Processor

DDE/OPCApps

RSView

SoftLogix

DFNT MODULE

DB

Server functionality is used to place all data transfer operations outside the module. There is no configuration required in the module other than setting up the network and database parameters in the user configuration file. Ladder logic in attached processors use MSG instructions to perform read and write operations on the module’s internal database. When RSLinx is used to link a user application to the module, the module’s server functionality must be used. RSLinx exists on an Ethernet network only as a client application. It cannot act as a server. User applications can use the DDE/OPC capabilities built into RSLinx to interface with the

Page 16: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Functional Overview EtherNet/IP Interface Module

Page 16 of 118 ProSoft Technology, Inc. November 9, 2004

data in the DFNT module. RSView can link directly to the module using drivers supplied by RSLinx. The internal database of the DFNT module is used as the source (read requests) and destination (write requests) for requests from remote clients. Access to the database is dependent on the MSG command type executed to interface with the database. The following table defines the relationship of the module’s internal database to the addresses required in the MSG instructions:

MSG INSTRUCTION TYPE DATABASE PLC2 PLC5 OR CONTROLLOGIX ADDRESS SLC PCCC CIP Integer 0 0 N10:0 N10:0 Int_data[0] 999 999 N10:999 N10:999 Int_data[999] 1000 1000 N11:0 N11:0 Int_data[1000] 1999 1999 N11:999 N11:999 Int_data[1999] 2000 2000 N12:0 N12:0 Int_data[2000] 2999 2999 N12:999 N12:999 Int_data[2999] 3000 3000 N13:0 N13:0 Int_data[3000] 4000 4000 N14:0 N14:0 Int_data[4000]

When using PLC5 or SLC commands, access to the database is through simulated ‘N’ files. For example, to access database element 3012, use the file address of N13:12. The module simulates N-files in the internal database. The following table lists the relationship between the N-files and the module’s internal database registers:

Internal Simulated Database N-File Register 0 N10:0 1 N10:1 --- 999 N10:999 1000 N11:0 1001 N11:1 --- 1999 N11:999 2000 N12:0 2001 N12:1 --- 2999 N12:999 3000 N13:0 3001 N13:1 --- 3999 N13:999

Page 17: Roscas Npt & Bsp

Functional Overview MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 17 of 118 November 9, 2004

Note: The way the data files are used will depend on the DFNT Server File Size value (100 or 1000). The previous example shows an example where this parameter is set with a value of 1000.The following table lists the PCCC functions supported by the module:

Basic Command Set Functions

Command Function Definition 0x00 N/A Protected Write 0x01 N/A Unprotected Read 0x02 N/A Protected Bit Write 0x05 N/A Unprotected Bit Write 0x08 N/A Unprotected Write

PLC-5 Command Set Functions

Command Function Definition 0x0F 0x00 Word Range Write (Binary Address) 0x0F 0x01 Word Range Read (Binary Address) 0x0F 0x00 Word Range Write (ASCII Address) 0x0F 0x01 Word Range Read (ASCII Address)

SLC-500 Command Set Functions

Command Function Definition 0x0F 0xA1 Protected Typed Logical Read With

Two Address Fields 0x0F 0XA2 Protected Typed Logical Read With

Three Address Fields 0x0F 0XA9 Protected Typed Logical Write With

Two Address Fields 0x0F 0XAA Protected Typed Logical Write With

Three Address Fields

Additionally, the module supports CIP data table read and write functions. These functions use controller tags to access data in the module’s database. This is the preferred data access method as it directly specifies the data type used with the command. The following table lists the data access methods:

Page 18: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Functional Overview EtherNet/IP Interface Module

Page 18 of 118 ProSoft Technology, Inc. November 9, 2004

SERVER DATABASE ACCESS

DATABASE PLC2 PLC5 ORADDRESS SLC PCCC CIP CIP CIP CIP CIP CIP

Boolean Bit Array Byte Integer Double Int Real0 0 N10:0 N10:0 BoolData[0] BitAData[0] SintData[0] Int_Data[0] DIntData[0] RealData[0]

999 999 N10:999 N10:999 BoolData[15984] SintData[1998] Int_Data[999]1000 1000 N11:0 N11:0 BoolData[16000] BitAData[500] SintData[2000] Int_Data[1000] DIntData[500] RealData[500]1999 1999 N11:999 N11:999 BoolData[31984] SintData[3998] Int_Data[1999]2000 2000 N12:0 N12:0 BoolData[32000] BitAData[1000] SintData[4000] Int_Data[2000] DIntData[1000] RealData[1000]2999 2999 N12:999 N12:999 BoolData[47984] SintData[5998] Int_Data[2999]3000 3000 N13:0 N13:0 BoolData[48000] BitAData[1500] SintData[6000] Int_Data[3000] DIntData[1500] RealData[1500]3998 3998 N13:998 N13:998 BoolData[63968] BitAData[1999] SintData[7996] Int_Data[3998] DIntData[1999] RealData[1999]3999 3999 N13:998 N13:999 BoolData[63984] SintData[7998] Int_Data[3999]

MSG INSTRUCTION TYPECONTROLLOGIX

If the CIP data table read and write functions are utilized, the controller tag array names defined in the module must be used. The following table lists the controller tag names recognized by the module and the associated data types:

Tag Array Data Type Data Size BoolData[] Bit 1-bit BitAData[] Bit Array 32-bits SintData[] Byte 8-bits Int_Data[] Word 16-bits DIntData[] Double Word 32-bits RealData[] Floating-point 32-bits

The following table shows the supported commands when the module acts as a slave (server):

Basic Command Set Functions Command Function Definition Supported

in Slave 0x00 N/A Protected Write X 0x01 N/A Unprotected Read X 0x02 N/A Protected Bit Write X 0x05 N/A Unprotected Bit Write X 0x08 N/A Unprotected Write X

PLC-5 Command Set Functions Command Function Definition Supported

in Slave 0x0F 0x00 Word Range Write (Binary Address) X 0x0F 0x01 Word Range Read (Binary Address) X 0x0F Typed Range Read (Binary Address) X 0x0F Typed Range Write (Binary Address) X 0x0F 0x26 Read-Modify-Write (Binary Address) 0x0F 0x00 Word Range Write (ASCII Address) X 0x0F 0x01 Word Range Read (ASCII Address) X 0x0F 0x26 Read-Modify-Write (ASCII Address)

Page 19: Roscas Npt & Bsp

Functional Overview MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 19 of 118 November 9, 2004

SLC-500 Command Set Functions Command Function Definition Supported

in Slave 0x0F 0xA1 Protected Typed Logical Read With Two Address Fields X 0x0F 0XA2 Protected Typed Logical Read With Three Address

Fields X

0x0F 0XA9 Protected Typed Logical Write With Two Address Fields X 0x0F 0XAA Protected Typed Logical Write With Three Address

Fields X

0x0F 0XAB Protected Typed Logical Write With Mask (Three Address Fields)

2.3.2 Client Driver In the client driver, the MVI46-DFNT module is responsible for issuing read or write commands to servers on the EtherNet/IP network using explicit, connected messaging. These commands are user configured in the module via the Client Command List received from the module’s configuration file (DFNT.CFG). Command status is returned to the processor for each individual command in the command list status block in the command control data area. Ladder logic is responsible for acquiring this data from the module. The following flow chart and associated table show the flow of data into and out of the module.

ClientDriver

DFNT Module

ConfigurationClient

Command List

Status

3

1

2

4

5

0

3999

DatabaseAddresses

RegisterData

storage

M1 File

Processor Memory Backplane Interface

CommandControl

CommandControl

4

4999

Page 20: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Functional Overview EtherNet/IP Interface Module

Page 20 of 118 ProSoft Technology, Inc. November 9, 2004

Step Description 1 The client driver obtains configuration data from the DFNT.CFG file when the module

restarts. The configuration data obtained includes the timeout parameters and the Command List. These values are used by the driver to determine the type of commands to be issued to the other nodes on the EtherNet/IP (see Module Configuration).

2 Once configured, the client driver begins transmitting read and/or write commands to the other nodes on the network. If writing data to another node, the data for the write command is obtained from the module's internal database to build the command.

3 Presuming successful processing by the node specified in the command, a response message is received into the client driver for processing.

4 Data received from the node on the network is passed into the module's internal database, assuming a read command.

5 Status data is returned to the SLC processor for the client and a Command List error table can be established in the module’s internal database. This data is requested using the command control data area and is a responsibility of the ladder logic.

The Module Setup section provides a complete description of the parameters required to define the client.

2.3.2.1 Client Command List In order for the client to function, the module’s Client Command List must be defined. This list contains up to 100 individual entries, with each entry containing the information required to construct a valid command. This includes the following:

• Command enable mode ((0) disabled, (1) continuous or (2) conditional) • IP address of the remote server • Slot number for processor when interfacing with a ControlLogix procssor • Command Type – Read or Write command • Database Source and Destination Register Address – Determines where data

will be placed and/or obtained • Address information to access data in remote unit • Count – Select the number of words to be transferred • Poll Delay – (1/10th seconds)

Refer to Section 5.3 for more information on the Command List.

Page 21: Roscas Npt & Bsp

Module Configuration MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 21 of 118 November 9, 2004

3 Module Configuration This section contains the setup procedure, data, and ladder logic for successful application of the MVI46-DFNT module. Each step in the setup procedure is defined in order to simplify the use of the module.

3.1 Setting Up the Module MVI46-DFNT module setup only requires software configuration using the RSLogix 500 program and the DFNT.CFG file on the Compact Flash Disk in the module. The easiest method to implement the module is to start with the example provided with the module MVI46-DFNT.RSS and the default configuration file. If you are installing this module in an existing application, you can simply copy the elements required from the example ladder logic to your application. Note: This module can only be added to a project using the software in offline mode. The first step in setting up the module is to define the module to the system. Select the I/O Configuration option from the program screen. The system displays the following window:

Select the “Other” module from the list. This causes the system to display the following dialog box:

Page 22: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Module Configuration EtherNet/IP Interface Module

Page 22 of 118 ProSoft Technology, Inc. November 9, 2004

Enter the module I/O card ID number as 12835, then click OK. Double-click the mouse on the module just added to the rack. Fill in the dialog box as shown:

The next step in the module’s setup is to define the user-defined data areas to hold the status and read and write database areas. Edit the DFNT.CFG file now. Use any text editor to set the values in the file. Be certain to retain the file name DFNT.CFG. The last step in the module setup is to add the ladder logic. If the example ladder logic is used, adjust the ladder to fit the application. When the ladder example is not used, copy the example ladder logic to your application and alter as necessary. The module is now ready to be used with your application. Insert the module in the rack (with the power turned off) and attach the serial communication and network cables. Download the new DFNT.CFG file to the module using a terminal emulation program. Download the new application to the controller and place the processor in run mode. If all the configuration parameters are set correctly and the module is attached to a network, the module’s Application LED (APP LED) should remain off and the backplane activity LED (BP ACT) should blink very rapidly. Refer to the Diagnostics and Troubleshooting section if you encounter errors. Attach a terminal to the Debug/Configuration port on the module and check the status of the module using the resident debugger in the module.

3.2 Module Data All data related to the MVI46-DFNT module is stored in user defined data files and the module’s M1 file. Files should be defined for each data type to be used with the module. Additionally, a file should be defined to hold the module status data. The status data should be copied from the M1 file and placed in the assigned status file. Input (monitor) data should be copied from the user file to the M1 file and output (command) data should be copied from the user files to the M1 file.

Page 23: Roscas Npt & Bsp

Ladder Logic MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 23 of 118 November 9, 2004

4 Ladder Logic Ladder logic is required for application of the MVI46-DFNT module. Tasks that must be handled by the ladder logic are data transfer, special block handling, and status data request and receipt. This section discusses each aspect of the ladder logic as required by the module. Additionally, a power-up handler should be written to handle the initialization of the module’s data and to clear any processor fault conditions. Note: The sample ladder logic periodically copies the status data from the MVI46-DFNT to the SLC memory. If you don’t need to copy status data in this manner, you might consider not using specific rungs in the sample ladder.

4.1 Main Routine (U:2) The Main program file is used to call the data transfer and control subroutines. The following example shows the main routine.

4.2 Data Transfer (U:3) The data transfer routine is responsible for placing all the input data into the M1 file and for retrieving all the output data from the M1 file. The rung shown in the following diagram transfers the data between the M1 file and the user data files. The first branch is used to transfer input data from the user file to the M1 file. The second branch is used to transfer the output from the M1 file into the user data file.

4.3 Control Routine (U:4) The control routine is responsible for controlling the module or handling requests from the module using the control register (M1:1.4000).

Page 24: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Ladder Logic EtherNet/IP Interface Module

Page 24 of 118 ProSoft Technology, Inc. November 9, 2004

The following rung is used to request the cold boot operation for the module. Placing the value 9999 in the control register makes this request. When the module recognizes this value in the control register, it performs the cold boot operation. The B9 bits are unlatched as part of the logic to keep reading status data periodically. You don’t need this bit if you don’t intend to read status data from the module.

The next rung is used to periodically request the error/status data and command error list data from the module. Timer T4:0 is used to trigger the requests. The following rung is used to drive the timer:

When the timer expires, the following rung is executed:

Page 25: Roscas Npt & Bsp

Ladder Logic MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 25 of 118 November 9, 2004

This rung is used to request a status block 250 from the module. When the module finishes building the response block, the following rung is executed:

This rung copies the received status data into the user file and requests a status 251 block. After the module builds the response block, the following rung executes:

This rung copies the received status data into the user file and requests command error list data for the first 60 commands in the command list. After the module builds the data area, the following rung executes:

Page 26: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Ladder Logic EtherNet/IP Interface Module

Page 26 of 118 ProSoft Technology, Inc. November 9, 2004

This rung copies the 60 error status values into a user file and resets the request timer so it can trigger again. The following rung shows how to disable commands that are enabled in the command list using Block 3000. In this example, we use N40:0 to fill the block structure where: N40:0 = 1 (number of commands to be disabled) N40:1 = 0 (start command index)

The same logic can be used for Block 3001 (enable continuous commands) and 3002 (enable conditional commands). If the module is configured to receive the processor data set on startup, the following rung is required:

Page 27: Roscas Npt & Bsp

Ladder Logic MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 27 of 118 November 9, 2004

This feature initializes the output data in the module with the values currently held in the processor. This feature is employed to bring the output data to a known or last set state. This rung should be placed in a routine that will be called on every scan of the ladder logic to ensure that the restart condition is recognized. Important: During startup, the register M1:1.4000 contains the value 1001 after it is set by the ladder logic.

Page 28: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Ladder Logic EtherNet/IP Interface Module

Page 28 of 118 ProSoft Technology, Inc. November 9, 2004

Page 29: Roscas Npt & Bsp

Configuration File MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 29 of 118 November 9, 2004

5 Configuration File In order for the module to operate, a configuration file (DFNT.CFG) is required. This configuration file contains information to set the data transfer characteristics between the module and the processor, to configure the module’s client and command list, and to configure the pass-through features. Each parameter in the file must be set carefully in order for the application to be implemented successfully. Before editing the file, design your system using the forms located in the appendix of this document. Appendix B contains a configuration form to be used to construct the DFNT.CFG file. Appendix C contains an example listing of a DFNT.CFG file. The text file is separated into six sections with topic header names enclosed in the [ ] characters. The sections present in the file are as follows: [Section] Description [Module] General module configuration information [DFNT Client 0] Configuration for the DFNT client [DFNT Client 0 Commands] Command list for the DFNT client DF1 Pass-Through Server Port 1] Parameters for the pass-through port of the send port on the

module [DF1 Pass-Through Port] Parameters for the DF1 port emulated on the third port of the

module

After each section header, the file contains a set of parameters. Unique labels are used under each section to specify a parameter. Each label in the file must be entered exactly as shown in the file for the parameter to be identified by the program. If the module is not considering a parameter, check the label for the data item. Each parameter's value is separated from the label with the ':' character. This character is used by the program to delimit the position in the data record where to start reading data. All data for a parameter must be placed after the ':' character. For numeric parameter values any text located after the value will not be used. There must be at least one space character between the end of the parameter value and the following text. The following example shows a valid parameter entry: Baud Rate : 19200 #Sets port baud rate to 19200 The parameter label is "Baud Rate" and the parameter value is 19200. The characters after the parameter value are ignored and are used for internal documentation of the configuration file. Any record that begins with the '#' character is considered to be a comment record. These records can be placed anywhere in the file as long as the '#' character is found in the first column of the line. These lines are ignored in the file and can be used to provide documentation within the configuration file. Liberal use of comments within the file can ease the use and interpretation of the data in the file. The client command list and e-mail definition sections are formatted differently than the other sections. These sections contain lists of parameters to be used. Each list

Page 30: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Configuration File EtherNet/IP Interface Module

Page 30 of 118 ProSoft Technology, Inc. November 9, 2004

begins with the label START and when the END label is reached. When entering the records into the list, make certain that the first character in each line is left blank. The [DFNT CLIENT 0 COMMANDS] section is used to define the EtherNet/IP commands to be issued from the module to server devices on the network. These commands can be used for data collection and/or control of devices on the TCP/IP network.

5.1 Command List Overview In order to interface the module with EtherNet/IP Server devices, the user must construct a command list of up to 100 user-defined commands. The commands in the list specify the server device to be addressed, the function to be performed (read or write), the data area in the device to interface with, and the registers in the internal database to be associated with the device data. The command list is processed from top (command #0) to bottom. A poll interval parameter is associated with each command to specify a minimum delay time in tenths of a second between the issuance of a command. If the user specifies a value of 10 for the parameter, the command is executed no more frequently than every (1) second. Write commands have a special feature, as they can be set to execute only if the data in the write command changes. If the register data values in the command have not changed since the command was last issued, the command will not be executed. If the data in the command has changed since the command was last issued, the command is executed. Use of this feature can lighten the load on the network. In order to implement this feature; set the enable code for the command to a value of 2. The module supports numerous commands. This permits the module to interface with a wide variety of devices. This includes ControlLogix, PLC5, and SLC-5/05 processors.

5.2 Commands Supported by the Module The format of each command in the list is dependent on the function being executed. To simplify command construction, the module uses its own set of function codes to associate a command with a DF1 command/function type. The tables below list the functions supported by the module:

Basic Command Set Functions

DFNT Function Code Definition Command Function 1 Protected Write 0x00 N/A 2 Unprotected Read 0x01 N/A 3 Protected Bit Write 0x02 N/A 4 Unprotected Bit Write 0x05 N/A 5 Unprotected Write 0x08 N/A

Page 31: Roscas Npt & Bsp

Configuration File MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 31 of 118 November 9, 2004

PLC-5 Command Set Functions

DFNT Function Code

Definition Command Function

100 Word Range Write(Binary Address) 0x0F 0x00 101 Word Range Read(Binary Address) 0x0F 0x01 102 Read-Modify-Write(Binary Address) 0x0F 0x26 150 Word Range Write(ASCII Address) 0x0F 0x00 151 Word Range Read(ASCII Address) 0x0F 0x01 152 Read-Modify-Write(ASCII Address) 0x0F 0x26

SLC-500 Command Set Functions

DFNT Function Code

Definition Command Function

501 Protected Typed Logical Read w/ Two Address Fields

0x0F 0xA1

502 Protected Typed Logic Read w/ Three Address Fields

0x0F 0xA2

509 Protected Typed Logical Write w/ Two Address Fields

0x0F 0xA9

510 Protected Typed Logical Write w/ Three Address Fields

0x0F 0xAA

511 Protected Typed Logical Write w/ Mask (Three Address Fields)

0x0F 0xAB

Each command list record has the same general format. The first part of the record contains the information relating to the communication module and the second part contains information required to interface to the EtherNet/IP Server device.

5.3 Command Entry Formats Appendix Reference

The format of each command in the list is dependent on the function being executed. Refer to the Appendix for a complete discussion of the commands supported by the

module and of the structure and content of each command.

The following table shows the structure of the configuration data necessary for each of the supported commands:

Page 32: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Configuration File EtherNet/IP Interface Module

Page 32 of 118 ProSoft Technology, Inc. November 9, 2004

Module Information Data Device Information DataDFNT COMMAND STRUCTURE

Column # 1 2 3 4 5 6 7 8 9 10 11 12Function Enable Internal Poll Interval Swap IP Slot FunctionCode Code Address Time Count Code Address Number Code Function ParametersFC 1 Code Register 1/10 Secs Count Code Node Slot 1 Word AddressFC 2 Code Register 1/10 Secs Count Code Node Slot 2 Word AddressFC 3 Code Register 1/10 Secs Count 0 Node Slot 3 Word AddressFC 4 Code Register 1/10 Secs Count 0 Node Slot 4 Word AddressFC 5 Code Register 1/10 Secs Count Code Node Slot 5 Word AddressFC 100 Code Register 1/10 Secs Count Code Node Slot 100 File Number Element Sub-ElementFC 101 Code Register 1/10 Secs Count Code Node Slot 101 File Number Element Sub-ElementFC 102 Code Register 1/10 Secs Count 0 Node Slot 102 File Number Element Sub-ElementFC 150 Code Register 1/10 Secs Count Code Node Slot 150 File StringFC 151 Code Register 1/10 Secs Count Code Node Slot 151 File StringFC 152 Code Register 1/10 Secs Count 0 Node Slot 152 File StringFC 501 Code Register 1/10 Secs Count Code Node Slot 501 File Type File Number ElementFC 502 Code Register 1/10 Secs Count Code Node Slot 502 File Type File Number Element Sub-ElementFC 509 Code Register 1/10 Secs Count Code Node Slot 509 File Type File Number ElementFC 510 Code Register 1/10 Secs Count Code Node Slot 510 File Type File Number Element Sub-ElementFC 511 Code Register 1/10 Secs Count 0 Node Slot 511 File Type File Number Element Sub-Element

IP Address = IP address of processor to reachSlot Number = -1 for PLC5 & SLC, processor slot number of ControlLogix 5550

The first part of the record is the Module Information, which relates to the module. The second part contains information required to interface to the Server device. An example of a command list section of the configuration file is shown in the following figure: [DFNT Client 0 Commands] # # The file contains examples for a ControlLogix processor with the N7 file # configured. This example uses SLC and PLC5 commands. # # 1 2 3 4 5 6 7 8 9 10 11 12 # DB Poll Swap Func File File Elm Sub #Enab Addr Delay Count Code Node IP Address Slot Code Type # # Elm START 1 0 0 10 0 192.168.0.122 0 502 N 7 0 0 1 10 0 10 0 192.168.0.122 0 501 N 7 10 1 10 0 10 0 192.168.0.122 0 509 N 7 20 # # DB Poll Swap Func File Elm Sub #Enab Addr Delay Count Code Node IP Address Slot Code # # Elm 1 20 0 10 0 192.168.0.122 0 101 7 30 -1 1 20 0 10 0 192.168.0.122 0 100 7 40 -1 END

Page 33: Roscas Npt & Bsp

Configuration File MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 33 of 118 November 9, 2004

The following table describes each parameter: Command Parameter

Range Description

Enable 0, 1, 2 This field is used to define whether or not the command is to be executed and under what conditions.

Value Description 0 The command is disabled and will not be

executed in the normal polling sequence. 1 The command is executed each scan of the

command list if the Poll Interval Time is set to zero. If the Poll Interval time is set, the command is executed when the interval timer expires.

2 The command executes only if the internal data associated with the command changes. This value is valid for write commands only.

Internal Address

0 to 3999 This field specifies the database address in the module’s internal database to be associated with the command. If the command is a read function, the data received in the response message is placed at the specified location. If the command is write function, data used in the command is sourced from the specified data area.

Poll Delay 0 to 65535 This parameter specifies the minimum interval to execute continuous commands (Enable code of 1). The parameter is entered in 1/10th of a second. Therefore, if a value of 100 is entered for a command, the command executes no more frequently than every 10 seconds.

Count Command dependent. See Appendix for details

This parameter specifies the number of registers or digital points to be associated with the command.

Swap Code 0,1,2,3 This parameter is used to define if the data received from the Server is to be ordered differently than that received from the Server device. This parameter is helpful when dealing with floating-point or other multi-register values, as there is no standard method of storage of these data types in Server devices. This parameter can be set to order the register data received in an order useful by other applications. The following table defines the values and their associated operations:

Swap Code

Description

0 None – No Change is made in the byte ordering 1 Words – The words are swapped 2 Words & Bytes – The words are swapped then

the bytes in each word are swapped 3 Bytes – The bytes in each word are swapped

The words should be swapped only when using an even number of words.

Page 34: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Configuration File EtherNet/IP Interface Module

Page 34 of 118 ProSoft Technology, Inc. November 9, 2004

Command Parameter

Range Description

Node IP Address

xxx.xxx.xxx.xxx The IP address of the device being addressed by the command.

Slot Use a value of –1 when interfacing to an SLC 5/05 or a PLC5. These devices do not have a slot parameter. When addressing a ControlLogix processor, the slot number corresponds to the slot in the rack containing the controller being addressed. In the ControlLogix platform, the controller can be placed in any slot and the rack may contain multiple processors. This parameter uniquely selects a controller in the rack.

Function Code See Appendix These parameters specify the function to be executed by the command. The Appendix in this manual describes the meaning of these values for each of the available supported commands. Following is a complete list of the command supported by the Client driver. Function Code Listing Basic Command Set 1 Protected Write 2 Unprotected Read 3 Protected Bit Write 4 Unprotected Bit Write 5 Unprotected Write PLC-5 Command Set (0x0F) 100 Word Range Write (Binary Address) 101 Word Range Read (Binary Address) 102 Read-Modify-Write (Binary Address) 150 Word Range Write (ASCII Address) 151 Word Range Read (ASCII Address) 152 Read-Modify-Write (ASCII Address) SLC Command Set (0x0F) 501 Prot Typed Read w/ 2 addr fields 502 Prot Typed Read w/ 3 addr fields 509 Prot Typed Write w/ 2 addr fields 510 Prot Typed Write w/ 3 addr fields 511 Prot Type Write w/ Mask 3 addr fields

Function Parameters

See Appendix The number of auxiliary parameters required is dependent on the function code selected for the command. Refer to the appendix for a complete list of parameters and their definition required for each function.

Page 35: Roscas Npt & Bsp

Diagnostics and Troubleshooting MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 35 of 118 November 9, 2004

6 Diagnostics and Troubleshooting This section provides information on diagnostics and troubleshooting in three forms:

• Status data values are transferred from the module to the controller under ladder logic control using the command control data area in the M1 file.

• All data contained in the module can be viewed through the Configuration/Debug port attached to a terminal emulator.

• LED status indicators on the front of the module provide information on the modules status.

6.1 Reading Status Data From the Module The MVI46-DFNT module returns two status data blocks that can be used to determine the module’s operating status. This data is requested by the ladder logic and returned in the module’s M1 file. This data can also be viewed using the Configuration/Debug port with a terminal emulation program. The Configuration/Debug port provides the following functionality:

• Full view of the module's configuration data • View of the module's status data • Complete display of the module's internal database (registers 0 to 3999) • Version Information • Control over the module (warm boot, cold boot) • Facility to upload and download the module's configuration file

6.1.1 Required Hardware The hardware requirements to interface with the configuration/debugger port are not too stringent. A personal computer with a standard serial port should suffice. For optimal performance, the minimum is required:

• 80486 based processor (Pentium preferred) • 1 megabyte of memory • At least one serial communications port available

Additionally, a null-modem cable is required between your PC and the port. The module's port has a DB-9 male connector at the end of a RJ-45 to DB-9 pigtail. The RJ-45 end of the cable is to be placed in the MVI46-DFNT port 1 connector (top port). The cable required is displayed in the following diagram:

2

3

5

RxD

TxD

COM

MVI46-DFNT Configuration/Debug Port CableDB-9 Male

RxD

TxD

COM

RS-232 Host

Page 36: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Diagnostics and Troubleshooting EtherNet/IP Interface Module

Page 36 of 118 ProSoft Technology, Inc. November 9, 2004

6.1.2 Required Software The software required on your personal computer to interface with the configuration/debugger port is operating system dependent. Tested software includes the following: DOS ProComm, PS-Term and several other terminal emulation programs Windows 3.1 Terminal Windows 95/98 HyperTerminal and PS-Term Windows NT / 2000 / XP HyperTerminal Linux Minicom

Any ASCII terminal emulation software package provided with your operating system should work as long as it can be configured as follows: Baud Rate 57,600 Parity None Data Bits 8 Stop Bits 1 Software Handshaking XON/XOFF

6.1.3 Using the Port The following steps are required to interface with the configuration/debugger port:

1. Connect your computer to the module's port using a Null Modem cable. 2. Start the terminal emulation program on your computer and configure the

communication parameters. 3. Enter the "?" character on your computer. If the system is set up properly, the

port's menu is displayed. The DFNT Communication Module Menu appears and contains options that allow the viewing of various types of information.

6.1.4 Menu Options Features available through the use of the configuration/debug port on the MVI46-DFNT module are all accessed using single keystrokes on your computer. There is a single main menu and several sub-menus presented on the port. To view the current selections available, press the '?' key on your computer. If you are in main menu mode, the following menu appears:

Page 37: Roscas Npt & Bsp

Diagnostics and Troubleshooting MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 37 of 118 November 9, 2004

If this menu is not shown, press the 'M' key to display the main menu. All facilities offered by the configuration/debugger are shown on the main menu. Each option is discussed in the following sections.

6.1.4.1 B = Block Transfer Statistics This menu option displays the configuration and statistics of the backplane data transfer operations. After selecting this option, the following is displayed. Selecting this option at one-second intervals can be used to determine the number of blocks transferred each second.

6.1.4.2 C = Module Configuration This option displays the general module configuration information for the MVI46-DFNT module. After selecting the option, the following screen appears:

6.1.4.3 D = Database View This menu option places the program in database view menu mode. This mode of operation is used to display the module's internal database values. To view the menu options available in this mode, press the '?' key and the following menu appears:

Page 38: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Diagnostics and Troubleshooting EtherNet/IP Interface Module

Page 38 of 118 ProSoft Technology, Inc. November 9, 2004

All data contained in the module's database is available for viewing using the menu options. Each option available on the menu is discussed in the following sections. 0-3 = Register pages 0-3000 This menu option jumps to a specific set of registers in the database and displays the data. The keys perform the following functions: Key FUNCTION 0 Display registers 0 to 99 1 Display registers 1000 to 1099 2 Display registers 2000 to 2099 3 Display registers 3000 to 3099

S = Show Again This menu option displays the current page of 100 registers in the database. Example output of the database display is shown:

- = Back 5 Pages This menu option skips the previous 500 registers of data for viewing and displays the data. P = Previous Page This menu option selects and displays the previous 100 registers of data. + = Skip 5 Pages This menu option skips 500 registers of data and displays the new page of data. N = Next Page This menu option selects the next 100 registers of data for viewing and displays the data.

Page 39: Roscas Npt & Bsp

Diagnostics and Troubleshooting MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 39 of 118 November 9, 2004

D = Decimal Display This menu option displays the data on the current page in decimal format. H = Hexadecimal Display This menu option displays the data on the current page in hexadecimal format. F = Float Display This menu option displays the data on the current page in floating-point format. The program assumes that the values are aligned on even register boundaries. If floating-point values are not aligned as such, they are not displayed properly. A = ASCII Display This menu option displays the data on the current page in ASCII format. This is useful for regions of the database that contain ASCII data. M = Main Menu This menu option returns to the main menu mode.

6.1.4.4 E = Client 0 Command Errors This menu selection is used to view the error code associated with each command in the command list for the client. This mode of operation is used to display multiple pages of command list error/status data. To view the menu options available in this mode, press the '?' key and the following menu will be displayed:

Each menu option is discussed in the following sections. S = Show Again This option displays the current page of master command error/status data. After selecting the option, the following screen appears.

Each value shown on the screen corresponds to the error/status code for the associated master command list index. - = Back 2 Pages This option skips back 20 commands and displays the data. P = Previous Page This option displays the previous page of data. + = Skip 2 Pages This option skips past the next 20 commands and displays the data.

Page 40: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Diagnostics and Troubleshooting EtherNet/IP Interface Module

Page 40 of 118 ProSoft Technology, Inc. November 9, 2004

N = Next Page This option displays the next page of master command list error/status data. D = Decimal Display This option changes the display of the data to decimal format. H = Hexadecimal Display This option changes the display of error/status data to hexadecimal format. M = Main Menu This option returns the program to main menu mode.

6.1.4.5 I = Client 0 Command List This menu selection is used to view the commands for the client in the module. This mode of operation is used to display multiple pages of master command list data. To view the menu options available in this mode, press the '?' key and the following menu appears:

Each option on the menu is discussed in the following sections: S = Show Again This option displays the current page of master commands. Ten commands are displayed on each page as shown:

If an enabled command has an error, the EN field will contain a value of –1. This means that the command will be re-issued every 30 seconds. - = Back 5 Pages This menu option displays the master command list data after skipping the previous 50 commands. P = Previous Page This menu option displays the previous page of master command list data. + = Skip 5 Pages This menu option displays the master command list data after skipping the next 50 commands.

Page 41: Roscas Npt & Bsp

Diagnostics and Troubleshooting MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 41 of 118 November 9, 2004

N = Next Page This menu option displays the next page of master command list data. M = Main Menu This option returns to the main menu mode of operation.

6.1.4.6 R = Transfer Configuration from PC to MVI Unit This option receives the configuration file from a remote PC and places the file on the module’s Compact Flash Disk. The name of the file is fixed in the program – DFNT.CFG. All other file names are ignored by the program. After selecting the option, press the ‘Y’ key to confirm the action. Follow the instructions displayed on the terminal to complete the download process. After the file is successfully downloaded, the module restarts the program and uses the new configuration information. Examine the new configuration using menu options ‘C’, ‘I’, and the database options to ensure that the module is configured properly.

6.1.4.7 S = Transfer Configuration from MVI Unit to PC This option sends the configuration file contained in the module to a remote PC. After selecting the option, press the ‘Y’ key to confirm the action. Then, follow the instructions presented on the terminal. After the send operation is complete, the file will reside on your PC.

6.1.4.8 T = Display e-mail setup This option displays the e-mail set up information for the module. This information is used to generate the user specified e-mail messages based on changes in the module’s database. After selecting the option, the following screen appears:

6.1.4.9 U = Reset diagnostic data This option resets the block status data.

6.1.4.10 V = Version Information This option is used to view the current version of the software for the module and other important values. After selecting the option, the following appears:

Page 42: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Diagnostics and Troubleshooting EtherNet/IP Interface Module

Page 42 of 118 ProSoft Technology, Inc. November 9, 2004

This information may be requested when calling for technical support on the product. Values at the bottom of the display are important in determining module operation. The Program Scan Counter value is incremented each time a module's program cycle is complete. This value can be used to determine the frequency of program execution by pressing the 'V' key at one-second intervals.

6.1.4.11 W = Warm Boot Module This option is selected when a warm-boot operation is required of the module. In this version of the software, the module completely restarts the program on a warm-boot request.

6.1.4.12 1 = Network & Clients This option displays the statistics of the network and the DFNT client. After selecting the option, the following information appears:

6.1.4.13 2- 5 = DFNT Servers This option is used to view the status data for the DFNT servers. After selecting the “2” option, the following appears:

6.1.4.14 3 = DF1 Server This option is used to view the status data for the DFNT pass-through server. After selecting the option, the following information appears:

Page 43: Roscas Npt & Bsp

Diagnostics and Troubleshooting MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 43 of 118 November 9, 2004

6.1.4.15 5 = Client Configuration This option is used to view the client configuration data. After selecting the option, the following information appears:

6.1.4.16 6 = DF1 Server Configuration This option displays the configuration information for the DF1 pass-through server. After selecting the option, the following information appears:

6.1.4.17 0 = DF1 PT Port This option displays the configuration information for the DF1 pass-through port. After selecting the option, the following information appears:

6.1.4.18 @ = Network Menu This option is used to reach the network file transfer and viewing menu. Options on this menu interface with the WATTCP.CFG file that contains the IP, gateway, and other network specification information. After selecting the menu option, press the ‘?’ key to display the following menu:

Each menu option is discussed in the following sections. R = Receive WATTCP.CFG This option transfers a new WATTCP.CFG file from the remote PC to the module. This option is required in order to change any of the network configuration file information (i.e., module’s IP address). After selecting the option, follow the instructions given to transfer the file. S = Send WATTCP.CFG This option transfers the WATTCP.CFG file contained in the module to a remote PC. This facility is useful in order to retrieve the network configuration file of the module when the archive for the module is not available. After selecting the option, follow the instructions given to transfer the file.

Page 44: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Diagnostics and Troubleshooting EtherNet/IP Interface Module

Page 44 of 118 ProSoft Technology, Inc. November 9, 2004

V = View WATTCP.CFG This option displays the contents of the WATTCP.CFG file. After selecting the option, the following information appears:

M = Main Menu This option is used to return to the main program menu.

6.1.4.19 Esc = Exit Program This option exits the program and displays the operating system prompt. This option should only be selected if instructed by the ProSoft Technical Support Group. If you select the option, the module will cease operation. Data will no longer be transferred between on the Ethernet network and the module and between the SLC processor and the module. This might cause an upset to a currently running process.

6.2 LED Status Indicators The LED's indicate the module’s operating status as follows:

ProSoft Module

Color Status Indication

On Data is being transferred between the module and a remote terminal using the Configuration/Debug port.

P1 Green

Off No data is being transferred on the Configuration/Debug port. On Data is being transferred between the module and the

processors Channel 0 port. P2 Green

Off No data is being transferred on this port On Data is being transferred on this port and the remote device

connected to the port P3 Green

Off No data is being transferred on this port Off The MVI46-DFNT is working normally. APP Amber On The MVI46-DFNT module program has recognized an error. On The LED is on when the module is performing a write operation

on the backplane. BP ACT Amber

Off The LED is off when the module is performing a read operation on the backplane. Under normal operation, the LED should blink rapidly on and off.

OK Red/ Green

Off The card is not receiving any power and is not securely plugged into the rack.

Page 45: Roscas Npt & Bsp

Diagnostics and Troubleshooting MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 45 of 118 November 9, 2004

ProSoft Module

Color Status Indication

Green The module is operating normally. Red The program has detected an error or is being configured. If the

LED remains red for over 10 seconds, the program has probably halted. Remove the card from the rack and re-insert the card to restart the module's program.

Off The battery voltage is OK and functioning. BAT Red On The battery voltage is low or the battery is not present. Replace

the battery on the module.

If a configuration error is found for the client, the client configuration error word will have a value other than zero. The configuration error word bits have the following definitions:

Bit Description Value0 0x00011 0x00022 0x00043 0x00084 Invalid retry count (0 to 10) 0x00105 0x00206 0x00407 0x00808 0x01009 0x020010 0x040011 0x080012 0x100013 0x200014 0x400015 0x8000

If a configuration error is present for the pass-through server, the configuration error word contains a value other than zero. The configuration error word bits have the following definitions:

Bit Description Value0 Invalid enable code 0x00011 Invalid busy timeout setting (<100 mSec) 0x00022 0x00043 0x00084 0x00105 Invalid baud rate 0x00206 Invalid parity 0x00407 Invalid data bits 0x00808 Invalid stop bits 0x01009 0x020010 0x040011 0x080012 0x100013 0x200014 0x400015 0x8000

If a configuration error is present for the pass-through port, the configuration error word contains a value other than zero. The configuration error word bits have the following definitions:

Page 46: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Diagnostics and Troubleshooting EtherNet/IP Interface Module

Page 46 of 118 ProSoft Technology, Inc. November 9, 2004

Bit Description Value0 Invalid enable code 0x00011 Invalid local station ID 0x00022 Invalid protocol or termination type 0x00043 Invalid baud rate 0x00084 Invalid parity 0x00105 Invalid data bits 0x00206 Invalid stop bits 0x00407 0x00808 Invalid Use CTS Line selection 0x01009 Invalid retry count 0x020010 0x040011 0x080012 0x100013 0x200014 0x400015 0x8000

Correct any invalid data in the configuration for proper module operation. When the configuration contains a valid parameter set, all the bits in the configuration words are clear. This does not indicate that the configuration is valid for the user application. Make sure each parameter is set correctly for the specific application. If the APP, BP ACT and OK LED’s blink at a rate of every one-second, call ProSoft Technology, Inc. support. There is a serious problem with the module, and it will have to be sent back to ProSoft.

6.2.1 Clearing a Fault Condition Typically, if the OK LED on the front of the module becomes illuminated red for over ten seconds, a hardware problem has been detected in the module or the program has exited. To attempt to clear the condition:

1. Turn the power to the rack off 2. Remove the card from the rack 3. Make certain the Compact Flash is installed and all jumpers are set correctly 4. Re-insert the card in the rack and turn the power back on 5. Verify the configuration data being transferred to the module from the SLC

processor If the module’s OK LED does not turn green, make sure the module is inserted completely into the rack. If this does not cure the problem, contact the factory.

6.2.2 Troubleshooting In order to assist in the troubleshooting of the module, the following table has been put together to assist you. Please use the following to help in using the module, but if you have additional questions or problems, please do not hesitate to contact us. The entries in this section have been placed in the order in which the problems would most likely occur after powering up the module.

Page 47: Roscas Npt & Bsp

Diagnostics and Troubleshooting MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 47 of 118 November 9, 2004

Problem Description Steps to take Processor Fault

Be sure that the module is plugged into the slot that has been configured for the MVI46-DFNT module. Be sure the ladder logic has been set up correctly

BP ACT LED remains off or blinks slowly

This indicates that backplane transfer operations are failing. Use the Configuration/Debug port facility to check this. To establish backplane communications make sure of the following: The backplane driver is loaded in the module. The module is configured for read and write block data transfer. The ladder logic handles all read and write block situations. The module is configured in the processor.

ACT/FLT LED remains red The program has halted or a critical error has occurred. Connect to the Configuration/Debug port to see if the module is running.

Page 48: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Diagnostics and Troubleshooting EtherNet/IP Interface Module

Page 48 of 118 ProSoft Technology, Inc. November 9, 2004

Page 49: Roscas Npt & Bsp

Cable Connections MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 49 of 118 November 9, 2004

7 Cable Connections The MVI46-DFNT module has the following communication connections on the module:

• One Ethernet port (RJ45 connector) • One RS-232 Configuration/Debug port (RJ45 connector) • Two RS-232/485/422 ports for pass-through operation

Communication

P1 P2 P3

APP BP

ACT/ BATFLT

Module Configuration/Debug Port

Ethernet RJ-45 Application Port

Programming & Pass-through Port

Emulated Channel 0 Port

7.1 Ethernet Connection The MVI46-DFNT module has a single RJ45 plug located on the front of the module for use with the EtherNet/IP network. The module is connected to the Ethernet network using a cable between the module’s RJ45 connector and a hub or switch. Please ensure that the proper cable and hub are used with the module. Failure to ensure proper installation of the module may cause physical damage to the module. Check with your IT or network support group before installing the module on the network to ensure that the module has a valid IP address for the network.

7.2 Pass-Through Ports Two pass-through ports are provided on the module. Port 2 can be connected to the processor’s Channel 0 port and Port 3 can be connected to a remote DF1 master device. The cable configuration used on the ports is dependent on the RS-interface selected for the port using the jumpers located on the MVI circuit board. The following are port pin-outs for several configurations of the ports:

Page 50: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Cable Connections EtherNet/IP Interface Module

Page 50 of 118 ProSoft Technology, Inc. November 9, 2004

2

3

5

RxD

TxD

COM

MVI46-DFNT RS-232 Interface (No Handshaking)DB-9 Male

RxD

TxD

COM

RS-232 Host

2

3

5

MVI46-DFNT RS-232 Interface (Use CTS Line and Modem)DB-9 Male

TxD

RxD

COM

Modem

7 RTS

8 CTS

1

8

5

TxD/RxD+

TxD/RxD-

GND

MVI46-DFNT RS-485 InterfaceDB-9 Male

TxD/RxD-

TxD/RxD+

GND

RS-485 Device

1

8

5

TxD+

TxD-

COM

MVI46-DFNT RS-422 InterfaceDB-9 Male

RxD-

RxD+

COM

RS-422 Device

2RxD+ TxD+

6RxD- TxD-

7.3 RS-232 Configuration/Debug Port This port is physically an RJ-45 connection (An RJ-45 to DB-9 adapter cable is shipped with the module). This port permits a PC-based terminal emulation program to view configuration and status data in the module and to control the module. The cable for communications on this port is shown in the following diagram:

2

3

5

RxD

TxD

COM

MVI46-DFNT Configuration/Debug Port CableDB-9 Male

RxD

TxD

COM

RS-232 Host

Page 51: Roscas Npt & Bsp

Ethernet Port Configuration: wattcp.cfg MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 51 of 118 November 9, 2004

8 Ethernet Port Configuration: wattcp.cfg The wattcp.cfg file must be set up properly in order to use a TCP/IP network connection. You can view the current network configuration using an ASCII terminal by selecting “@” (Network Menu) and “V” (View) options when connected to the Debug port.

# ProLinx Communication Gateways, Inc. # Default private class 3 address my_ip=192.168.0.100 # Default class 3 network mask netmask=255.255.255.0 # name server 1 up to 9 may be included # nameserver=xxx.xxx.xxx.xxx # name server 2 # nameserver=xxx.xxx.xxx.xxx # The gateway I wish to use gateway=192.168.0.1 # some networks (class 2) require all three parameters # gateway,network,subnetmask # gateway 192.168.0.1,192.168.0.0,255.255.255.0 # The name of my network # domainslist="mynetwork.name"

Page 52: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Ethernet Port Configuration: wattcp.cfg EtherNet/IP Interface Module

Page 52 of 118 ProSoft Technology, Inc. November 9, 2004

Page 53: Roscas Npt & Bsp

Appendix A - MVI46-DFNT Status Data Definition MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 53 of 118 November 9, 2004

Appendix A - MVI46-DFNT Status Data Definition This appendix contains a description of the members present in the status data blocks returned to the SLC processor under ladder logic control. The two blocks, 250 and 251, are requested and returned in the module’s M1 file in the command control data area under ladder logic control. The data set returned to the processor in the M1 file for a 250 request has the following definition:

Offset Content Description4000 Done Flag This word contains a value of 0 to indicate the

status block is completely built4001 Status Code This word contains the value 2504002 Program Scan

CountThis value is incremented each time a complete program cycle occurs in the module.

4003-4004 Product Product Name (ASCII)

4005-4006 Rev Revision (ASCII)

4007-4008 Op Sys Operating System (ASCII)

4009-4010 Run Production Run Number (ASCII)

4011 Not Used Reserved4012 Not Used Reserved4013 Not Used Reserved4014 Number of

RequestsTotal number of http requests for the module

4015 Number of Responses

Total number of http response messages generated.

4016 Not Used Reserved4017 Not Used Reserved4018 Not Used Reserved4019 Not Used Reserved4020 Not Used Reserved

HTTP Port 80 Status

4021 Client Cmd Request

This value is incremented each time a command request is issued.

4022 Client Cmd Response

This value is incremented each time a command response is received.

4023 Client Cmd Error This value is incremented each time an error message is received from a remote unit or a local error is generted for a command.

4024 Client Request Count

This value is incremented each time a request message is issued.

4025 Client Response Count

This value is incremented each time a response message is received.

4026 Client Error Sent Count

This value is incremented each time an error is sent from the client.

4027 Client Error Received Count

This value is incremented each time an error is received from a remote unit.

4028 Client Cfg Error Word

This word contains a bit map that defines configuration errors in the configuration file for the client.

4029 Client Current Error Code

This value corresponds to the current error code for the client.

4030 Client Last Error Code

This value corresponnds to the last error code recorded for the client.

DFNT Client 0 Status

Page 54: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix A - MVI46-DFNT Status Data Definition EtherNet/IP Interface Module

Page 54 of 118 ProSoft Technology, Inc. November 9, 2004

4031 Read Block Count This field contains the total number of read blocks transferred from the module to the processor.

4032 Write Block Count This field contains the total number of write blocks transferred from the processor to the module.

4033 Parse Block Count This field contains the total number of blocks successfully parsed that were received from the processor.

4034 Command Event Block Count

This field contains the total number of command event blocks received from the processor.

4035 Command Block Count

This field contains the total number of command blocks received from the processor.

4036 Error Block Count This field contains the total number of block errors recognized by the module.

Block Status

4037 Socket State4038 Connection State4039 Open Count Total number of times the server has performed

an open operation.4040 Establish Count Total number of times a connection has been

established on the server.4041 Close Count Total number of times the server has performed a

close operation.4042 Read Total number of packets received by the server.

4043 Message Total number of message receive by the server.

4044 Write Total number of packets sent from the server to the client.

4045 Timeout Total number of times the server as reached a connection timeout condition.

4046 Host Port Service port on client connected to the server.4047-4048 Host IP Address IP address of the client connected to the server.

4049 PTP Cfg Error Word

Pass-through port configuration error word.

4050 PTS Cfg Error Word

Pass-through server configuration error word.

Pass-Through Server Status

The format of the client configuration error word is as follows:

Bit Description Value0 0x00011 0x00022 0x00043 0x00084 Invalid retry count (0 to 10) 0x00105 0x00206 0x00407 0x00808 0x01009 0x020010 0x040011 0x080012 0x100013 0x200014 0x400015 0x8000

Page 55: Roscas Npt & Bsp

Appendix A - MVI46-DFNT Status Data Definition MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 55 of 118 November 9, 2004

The format of the pass-through port configuration error word is as follows:

Bit Description Value0 Invalid enable code 0x00011 Invalid local station ID 0x00022 Invalid protocol or termination type 0x00043 Invalid baud rate 0x00084 Invalid parity 0x00105 Invalid data bits 0x00206 Invalid stop bits 0x00407 0x00808 Invalid Use CTS Line selection 0x01009 Invalid retry count 0x020010 0x040011 0x080012 0x100013 0x200014 0x400015 0x8000

The format of the pass-through server configuration error word is as follows:

Bit Description Value0 Invalid enable code 0x00011 Invalid busy timeout setting (<100 mSec) 0x00022 0x00043 0x00084 0x00105 Invalid baud rate 0x00206 Invalid parity 0x00407 Invalid data bits 0x00808 Invalid stop bits 0x01009 0x020010 0x040011 0x080012 0x100013 0x200014 0x400015 0x8000

The values for the pass-through server state parameter have the following definition:

State Definition-1 Listen function called to set up server0 Waiting for connection to be established on server1 Waiting and processing data received2 Waiting for pass-through port to be free3 Pass-through server owns port and processes all data

received and written.100 Closing server on program termination1000 Initiate a close on the server1001 Waiting for server to successfully close

The connection state for the pass-through server is not used at this time.

Page 56: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix A - MVI46-DFNT Status Data Definition EtherNet/IP Interface Module

Page 56 of 118 ProSoft Technology, Inc. November 9, 2004

The data set returned to the processor in the M1 file for a 251 request has the following definition:

Offset Content Description4000 Done Flag This word contains a value of 0 to indicate the

status block is completely built4001 Status Code This word contains the value 251

4002 Socket State4003 Connection State4004 Open Count Total number of times the server has performed

an open operation.4005 Establish Count Total number of times a connection has been

established on the server.4006 Close Count Total number of times the server has performed a

close operation.4007 Read Total number of packets received by the server.

4008 Message Total number of message receive by the server.

4009 Write Total number of packets sent from the server to the client.

4010 Timeout Total number of times the server as reached a connection timeout condition.

4011 Host Port Service port on client connected to the server.4012-4013 Host IP Address IP address of the client connected to the server.

DFNT Server 0 Status

4014 Socket State4015 Connection State4016 Open Count Total number of times the server has performed

an open operation.4017 Establish Count Total number of times a connection has been

established on the server.4018 Close Count Total number of times the server has performed a

close operation.4019 Read Total number of packets received by the server.

4020 Message Total number of message receive by the server.

4021 Write Total number of packets sent from the server to the client.

4022 Timeout Total number of times the server as reached a connection timeout condition.

4023 Host Port Service port on client connected to the server.4024-4025 Host IP Address IP address of the client connected to the server.

DFNT Server 1 Status

4026 Socket State4027 Connection State4028 Open Count Total number of times the server has performed

an open operation.4029 Establish Count Total number of times a connection has been

established on the server.4030 Close Count Total number of times the server has performed a

close operation.4031 Read Total number of packets received by the server.

4032 Message Total number of message receive by the server.

4033 Write Total number of packets sent from the server to the client.

4034 Timeout Total number of times the server as reached a connection timeout condition.

4035 Host Port Service port on client connected to the server.4036-4037 Host IP Address IP address of the client connected to the server.

DFNT Server 2 Status

Page 57: Roscas Npt & Bsp

Appendix A - MVI46-DFNT Status Data Definition MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 57 of 118 November 9, 2004

4038 Socket State4039 Connection State4040 Open Count Total number of times the server has performed

an open operation.4041 Establish Count Total number of times a connection has been

established on the server.4042 Close Count Total number of times the server has performed a

close operation.4043 Read Total number of packets received by the server.

4044 Message Total number of message receive by the server.

4045 Write Total number of packets sent from the server to the client.

4046 Timeout Total number of times the server as reached a connection timeout condition.

4047 Host Port Service port on client connected to the server.4048-4049 Host IP Address IP address of the client connected to the server.

DFNT Server 3 Status

4050 Socket State4051 Connection State4052 Open Count Total number of times the server has performed

an open operation.4053 Establish Count Total number of times a connection has been

established on the server.4054 Close Count Total number of times the server has performed a

close operation.4055 Read Total number of packets received by the server.

4056 Message Total number of message receive by the server.

4057 Write Total number of packets sent from the server to the client.

4058 Timeout Total number of times the server as reached a connection timeout condition.

4059 Host Port Service port on client connected to the server.4060-4061 Host IP Address IP address of the client connected to the server.

DFNT Server 4 Status

4062 Socket State4063 Connection State4064 Open Count Total number of times the server has performed

an open operation.4065 Establish Count Total number of times a connection has been

established on the server.4066 Close Count Total number of times the server has performed a

close operation.4067 Read Total number of packets received by the server. 4068 Message Total number of message receive by the server. 4069 Write Total number of packets sent from the server to

the client.4070 Timeout Total number of times the server as reached a

connection timeout condition.4071 Host Port Service port on client connected to the server.

4072-4073 Host IP Address IP address of the client connected to the server.

DFNT Server 5 Status

Page 58: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix A - MVI46-DFNT Status Data Definition EtherNet/IP Interface Module

Page 58 of 118 ProSoft Technology, Inc. November 9, 2004

4074 Socket State4075 Connection State4076 Open Count Total number of times the server has performed

an open operation.4077 Establish Count Total number of times a connection has been

established on the server.4078 Close Count Total number of times the server has performed a

close operation.4079 Read Total number of packets received by the server.

4080 Message Total number of message receive by the server.

4081 Write Total number of packets sent from the server to the client.

4082 Timeout Total number of times the server as reached a connection timeout condition.

4083 Host Port Service port on client connected to the server.4084-4085 Host IP Address IP address of the client connected to the server.

DFNT Server 6 Status

4086 Socket State4087 Connection State4088 Open Count Total number of times the server has performed

an open operation.4089 Establish Count Total number of times a connection has been

established on the server.4090 Close Count Total number of times the server has performed a

close operation.4091 Read Total number of packets received by the server.

4092 Message Total number of message receive by the server.

4093 Write Total number of packets sent from the server to the client.

4094 Timeout Total number of times the server as reached a connection timeout condition.

4095 Host Port Service port on client connected to the server.4096-4097 Host IP Address IP address of the client connected to the server.

DFNT Server 7 Status

4098 Socket State4099 Connection State4100 Open Count Total number of times the server has performed

an open operation.4101 Establish Count Total number of times a connection has been

established on the server.4102 Close Count Total number of times the server has performed a

close operation.4103 Read Total number of packets received by the server.

4104 Message Total number of message receive by the server.

4105 Write Total number of packets sent from the server to the client.

4106 Timeout Total number of times the server as reached a connection timeout condition.

4107 Host Port Service port on client connected to the server.4108-4109 Host IP Address IP address of the client connected to the server.

DFNT Server 8 Status

Page 59: Roscas Npt & Bsp

Appendix A - MVI46-DFNT Status Data Definition MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 59 of 118 November 9, 2004

4110 Socket State4111 Connection State4112 Open Count Total number of times the server has performed

an open operation.4113 Establish Count Total number of times a connection has been

established on the server.4114 Close Count Total number of times the server has performed a

close operation.4115 Read Total number of packets received by the server. 4116 Message Total number of message receive by the server. 4117 Write Total number of packets sent from the server to

the client.4118 Timeout Total number of times the server as reached a

connection timeout condition.4119 Host Port Service port on client connected to the server.

4120-4121 Host IP Address IP address of the client connected to the server.

DFNT Server 9 Status

4122 Socket State4123 Connection State4124 Open Count Total number of times the server has performed

an open operation.4125 Establish Count Total number of times a connection has been

established on the server.4126 Close Count Total number of times the server has performed a

close operation.4127 Read Total number of packets received by the server. 4128 Message Total number of message receive by the server. 4129 Write Total number of packets sent from the server to

the client.4130 Timeout Total number of times the server as reached a

connection timeout condition.4131 Host Port Service port on client connected to the server.

4132-4133 Host IP Address IP address of the client connected to the server.

DFNT Server 10 Status

4134 Socket State4135 Connection State4136 Open Count Total number of times the server has performed

an open operation.4137 Establish Count Total number of times a connection has been

established on the server.4138 Close Count Total number of times the server has performed a

close operation.4139 Read Total number of packets received by the server. 4140 Message Total number of message receive by the server. 4141 Write Total number of packets sent from the server to

the client.4142 Timeout Total number of times the server as reached a

connection timeout condition.4143 Host Port Service port on client connected to the server.

4144-4145 Host IP Address IP address of the client connected to the server.

DFNT Server 11 Status

Page 60: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix A - MVI46-DFNT Status Data Definition EtherNet/IP Interface Module

Page 60 of 118 ProSoft Technology, Inc. November 9, 2004

4146 Socket State4147 Connection State4148 Open Count Total number of times the server has performed

an open operation.4149 Establish Count Total number of times a connection has been

established on the server.4150 Close Count Total number of times the server has performed a

close operation.4151 Read Total number of packets received by the server.

4152 Message Total number of message receive by the server.

4153 Write Total number of packets sent from the server to the client.

4154 Timeout Total number of times the server as reached a connection timeout condition.

4155 Host Port Service port on client connected to the server.4156-4157 Host IP Address IP address of the client connected to the server.

DFNT Server 12 Status

4158 Socket State4159 Connection State4160 Open Count Total number of times the server has performed

an open operation.4161 Establish Count Total number of times a connection has been

established on the server.4162 Close Count Total number of times the server has performed a

close operation.4163 Read Total number of packets received by the server.

4164 Message Total number of message receive by the server.

4165 Write Total number of packets sent from the server to the client.

4166 Timeout Total number of times the server as reached a connection timeout condition.

4167 Host Port Service port on client connected to the server.4168-4169 Host IP Address IP address of the client connected to the server.

DFNT Server 13 Status

4170 Socket State4171 Connection State4172 Open Count Total number of times the server has performed

an open operation.4173 Establish Count Total number of times a connection has been

established on the server.4174 Close Count Total number of times the server has performed a

close operation.4175 Read Total number of packets received by the server.

4176 Message Total number of message receive by the server.

4177 Write Total number of packets sent from the server to the client.

4178 Timeout Total number of times the server as reached a connection timeout condition.

4179 Host Port Service port on client connected to the server.4180-4181 Host IP Address IP address of the client connected to the server.

DFNT Server 14 Status

Page 61: Roscas Npt & Bsp

Appendix A - MVI46-DFNT Status Data Definition MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 61 of 118 November 9, 2004

4182 Socket State4183 Connection State4184 Open Count Total number of times the server has performed

an open operation.4185 Establish Count Total number of times a connection has been

established on the server.4186 Close Count Total number of times the server has performed a

close operation.4187 Read Total number of packets received by the server. 4188 Message Total number of message receive by the server. 4189 Write Total number of packets sent from the server to

the client.4190 Timeout Total number of times the server as reached a

connection timeout condition.4191 Host Port Service port on client connected to the server.

4192-4193 Host IP Address IP address of the client connected to the server.

DFNT Server 15 Status

4194 Socket State4195 Connection State4196 Open Count Total number of times the server has performed

an open operation.4197 Establish Count Total number of times a connection has been

established on the server.4198 Close Count Total number of times the server has performed a

close operation.4199 Read Total number of packets received by the server. 4200 Message Total number of message receive by the server. 4201 Write Total number of packets sent from the server to

the client.4202 Timeout Total number of times the server as reached a

connection timeout condition.4203 Host Port Service port on client connected to the server.

4204-4205 Host IP Address IP address of the client connected to the server.

DFNT Server 16 Status

4206 Socket State4207 Connection State4208 Open Count Total number of times the server has performed

an open operation.4209 Establish Count Total number of times a connection has been

established on the server.4210 Close Count Total number of times the server has performed a

close operation.4211 Read Total number of packets received by the server. 4212 Message Total number of message receive by the server. 4213 Write Total number of packets sent from the server to

the client.4214 Timeout Total number of times the server as reached a

connection timeout condition.4215 Host Port Service port on client connected to the server.

4216-4217 Host IP Address IP address of the client connected to the server.

DFNT Server 17 Status

Page 62: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix A - MVI46-DFNT Status Data Definition EtherNet/IP Interface Module

Page 62 of 118 ProSoft Technology, Inc. November 9, 2004

4218 Socket State4219 Connection State4220 Open Count Total number of times the server has performed

an open operation.4221 Establish Count Total number of times a connection has been

established on the server.4222 Close Count Total number of times the server has performed a

close operation.4223 Read Total number of packets received by the server.

4224 Message Total number of message receive by the server.

4225 Write Total number of packets sent from the server to the client.

4226 Timeout Total number of times the server as reached a connection timeout condition.

4227 Host Port Service port on client connected to the server.4228-4229 Host IP Address IP address of the client connected to the server.

DFNT Server 18 Status

4230 Socket State4231 Connection State4232 Open Count Total number of times the server has performed

an open operation.4233 Establish Count Total number of times a connection has been

established on the server.4234 Close Count Total number of times the server has performed a

close operation.4235 Read Total number of packets received by the server.

4236 Message Total number of message receive by the server.

4237 Write Total number of packets sent from the server to the client.

4238 Timeout Total number of times the server as reached a connection timeout condition.

4239 Host Port Service port on client connected to the server.4240-4241 Host IP Address IP address of the client connected to the server.

DFNT Server 19 Status

The following table defines the values represented in the Socket State parameter:

State Definition-1 Listen function called to set up server0 Waiting for connection to be established on server1 Handle first request and build response for first part of multi-

request message.2 Handle more requests in packet received.

100 Closing server on program termination1000 Initiate a close on the server1001 Waiting for server to successfully close

The following table defines the values represented in the Connection State parameter:

State Definition0 No session exists on socket1 Session established but no connections2 Session established and connected

Page 63: Roscas Npt & Bsp

Appendix A - MVI46-DFNT Status Data Definition MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 63 of 118 November 9, 2004

The following tables list the command list error codes utilized by the module: COMMAND ERROR LIST VALUES LOCAL STS ERROR CODES

0x0000 Success, no error 0x0100 DST node is out of buffer space 0x0200 Cannot guarantee delivery (Link Layer) 0x0300 Duplicate token holder detected 0x0400 Local port is disconnected 0x0500 Application layer timed out waiting for response 0x0600 Duplicate node detected 0x0700 Station is offline 0x0800 Hardware fault

COMMAND ERROR LIST VALUES REMOTE STS ERROR CODES

0x0000 Success, no error 0x1000 Illegal command or format 0x2000 Host has a problem and will not communicate 0x3000 Remote node host is missing, disconnected or shut down 0x4000 Host could not complete function due to hardware fault 0x5000 Addressing problem or memory protect rungs 0x6000 Function not allowed due to command protection selection 0x7000 Processor is in Program mode 0x8000 Compatibility mode file missing or communication zone problem 0x9000 Remote node cannot buffer command 0xA000 Wait ACK (1775-KA buffer full) 0xB000 Remote node problem due to download 0xC000 Wait ACK (1775-KA buffer full) 0xD000 Not used 0xE000 Not used 0xF0nn Error code in the EXT STS byte (nn contains EXT error code)

COMMAND ERROR LIST VALUES ERRORS WHEN ETX STS IS PRESENT

0xF000 Not used 0xF001 A field has an illegal value 0xF002 Less levels specified in address than minimum for any address 0xF003 More levels specified in address than system supports 0xF004 Symbol not found

Page 64: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix A - MVI46-DFNT Status Data Definition EtherNet/IP Interface Module

Page 64 of 118 ProSoft Technology, Inc. November 9, 2004

COMMAND ERROR LIST VALUES ERRORS WHEN ETX STS IS PRESENT

0xF005 Symbol is of improper format 0xF006 Address does not point to something usable 0xF007 File is wrong size 0xF008 Cannot complete request 0xF009 Data or file is too large 0xF00A Transaction size plus word address is too large 0xF00B Access denied, improper privilege 0xF00C Condition cannot be generated - resource is not available 0xF00D Condition already exists - resource is already available 0xF00E Command cannot be executed 0xF00F Histogram overflow 0xF010 No access 0xF011 Illegal data type 0xF012 Invalid parameter or invalid data 0xF013 Address reference exists to deleted area 0xF014 Command execution failure for unknown reason 0xF015 Data conversion error 0xF016 Scanner not able to communicate with 1771 rack adapter 0xF017 Type mismatch 0xF018 1171 module response was not valid 0xF019 Duplicate label 0xF01A File is open; another node owns it 0xF01B Another node is the program owner 0xF01C Reserved 0xF01D Reserved 0xF01E Data table element protection violation 0xF01F Temporary internal problem

COMMAND ERROR LIST VALUES MODULE SPECIFIC ERROR (NOT DF1 COMPLIANT)

0xFFFF CTS modem control line not set before transmit 0xFFFE Timeout while transmitting message 0xFFF6 Timeout waiting for DLE-ACK after request 0xFFF5 Timeout waiting for response after request 0xFFEC DLE-NAK received after request 0xFFEB DLE-NAK sent after response

Page 65: Roscas Npt & Bsp

Appendix A - MVI46-DFNT Status Data Definition MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 65 of 118 November 9, 2004

TCP/IP INTERFACE ERRORS TIMEOUT ERRORS

0xFFDF Failed to connect to target 0xFFDE Failed to register session with target (timeout) 0xFFDD Failed forward open response timeout 0xFFDC PCCC command response timeout 0xFFDB NO TCP/IP connection error

TCP/IP INTERFACE ERRORS Register Session Response Errors

0xFFCF Invalid response length 0xFFCE Command field invalid 0xFFCD Invalid length field parameter 0xFFCC Status error reported 0xFFCB Context field not matched 0xFFCA Invalid version Forward Open Response Errors

0xFFBF Message Length received not valid 0xFFBE Command code returned not valid 0xFFBD Session handle field invalid 0xFFBC Status error reported 0xFFBB Context field not matched 0xFFBA CPF item count not correct 0xFFB9 CPF address field error 0xFFB8 CPF packet tag invalid 0xFFB7 CPF bad command code 0xFFB6 CPF invalid IOI 0xFFB5 CPF status error reported PCCC Response Errors

0xFFAF Message Length received not valid 0xFFAE Command code returned not valid 0xFFAD Session handle field invalid 0xFFAC Status error reported 0xFFAB Context field not matched 0xFFAA CPF item count not correct 0xFFA9 CPF address field error 0xFFA8 CPF packet tag invalid 0xFFA7 CPF bad command code 0xFFA6 CPF invalid IOI 0xFFA5 CPF status error reported

Page 66: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix A - MVI46-DFNT Status Data Definition EtherNet/IP Interface Module

Page 66 of 118 ProSoft Technology, Inc. November 9, 2004

TCP/IP INTERFACE ERRORS Register Session Response Errors

0xFFA4 0xFFA3 TSN in PCCC message not matched 0xFFA2 CPF not correct message number 0xFFA1 CPF incorrect connection ID value returned 0xFFA0 Incorrect session handle returned

Page 67: Roscas Npt & Bsp

Appendix B - MVI46-DFNT Configuration Data Definition MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 67 of 118 November 9, 2004

Appendix B - MVI46-DFNT Configuration Data Definition

This appendix contains a listing of the parameters and their definitions for the MVI46-DFNT module configuration file.

MVI46-DFNT COMMUNICATION MODULE CONFIGURATION

[Section]/Item Value Range Description [MODULE] Configuration header for general

module information Module Name: Up to 80

chars Name of the module for use on reports. Use this parameter to identify your module in your system.

Password: Up to 20 chars

This parameter is used to set the password for the module. If the parameter is not set, the module will not be password protected. The module interprets the password as a case-sensitive string. Do not include spaces or special characters in the password. Only alphanumeric characters should be used.

DFNT Server File Size 100 or 1000 Sets the maximum file size (100 or 1000) for the servers.

Float Write Start 0 to 3950 (multiple of 50)

Sets the beginning of the float area where all float data are copied to.

Float Write Count 0 to 4000 (multiple of 50)

Sets the size (words) of the float area where all float data are copied to.

Failure Flag Count: 0 to 65535 This parameter specifies the number of successive transfer errors that must occur before the communication ports are shut down. If the parameter is set to 0, the communication ports continue to operate under all conditions. If the value is set larger than 0 (1-65535), communications will cease if the specified number of failures occur.

Page 68: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix B - MVI46-DFNT Configuration Data Definition EtherNet/IP Interface Module

Page 68 of 118 ProSoft Technology, Inc. November 9, 2004

MVI46-DFNT COMMUNICATION MODULE CONFIGURATION

Initialize Output Data: 0 or 1 This parameter is used to determine if the output data for the module should be initialized with values from the processor. If the value is set to 0, the output data will be initialized to 0. If the value is set to 1, the data will be initialized with data from the processor. Use of this option requires associated ladder logic to pass the data from the processor to the module.

[Section]/Item Value Range Description [DFNT Client 0] Start header for Client 0 Minimum Command Delay:

0 to 65535 This parameter specifies the number of milliseconds to wait between the initial issuance of a command. This parameter can be used to delay all commands sent to slaves to avoid "flooding" commands on the network. This parameter does not affect retries of a command as they will be issued when failure is recognized.

Response Timeout: 0 to 65535 This parameter represents the message response timeout period in 1-ms increments. This is the time that a client waits before re-transmitting a command if no response is received from the addressed slave. The value is set depending upon the communication network used and the expected response time of the slowest device on the network.

Retry Count: 0 to 10 This parameter specifies the number of times a command is retried if it fails.

[Section]/Item Value Range Description [DF1 Pass-Through Server Port 1]

Start header for the pass-through server

Enabled: Y or N This parameter is used to determine if the pass-through server is used.

Server Port Number: 1 to 65535 Service port number to be associated with this server. The number assigned must match that used by the client software to establish the connection.

Busy Timeout: 100 to 65535 mSec

This parameter is used to set the number of milliseconds the server will wait for the pass-through port to become available. Valid data range for this parameter is 100 to 65535.

Page 69: Roscas Npt & Bsp

Appendix B - MVI46-DFNT Configuration Data Definition MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 69 of 118 November 9, 2004

MVI46-DFNT COMMUNICATION MODULE CONFIGURATION

Baud Rate: This is the baud rate to be used on the port. Enter the baud rate as a value. For example, to select 19K baud, enter 19200.

Parity: N, O, E This is the Parity code to be used for the port. The coded values are as follows: N=None, O=Odd, E=Even.

Data Bits: 5 to 8 This parameter sets the number of data bits for each word used by the protocol.

Stop Bits: 1 or 2 This parameter sets the number of stop bits to be used with each data value sent.

[Section]/Item Value Range Description [DF1 Pass-Through Port] Start header for the pass-through portEnabled: Y or N This parameter specifies if the pass-

through port will be used. This port should only be used if the DF1 pass-through server is enabled.

Local Station ID: 0 to 254 This parameter specifies the local station ID for all DF1 messages sent to this port. A value of 255 is not permitted as this is the broadcast address. The application only accepts messages with this node address.

Protocol: F or H F=full duplex, H=half-duplex. The value selected should match that set for the SLC processor.

Termination Type: B or C This parameter sets the termination message type for the DF1 protocol. The value selected should match that used in the SLC. Valid values are B for BCC and C for CRC.

Baud Rate: This is the baud rate to be used on the port. Enter the baud rate as a value. For example, to select 19K baud, enter 19200.

Parity: N, O, E This is the Parity code to be used for the port. The coded values are as follows: N=None, O=Odd, E=Even.

Data Bits: 5 to 8 This parameter sets the number of data bits for each word used by the protocol.

Stop Bits: 1 or 2 This parameter sets the number of stop bits to be used with each data value sent.

Page 70: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix B - MVI46-DFNT Configuration Data Definition EtherNet/IP Interface Module

Page 70 of 118 ProSoft Technology, Inc. November 9, 2004

MVI46-DFNT COMMUNICATION MODULE CONFIGURATION

RTS On: 0 to 65535 This parameter sets the number of milliseconds to delay after RTS is asserted before the data is transmitted.

RTS Off: 0 to 65535 This parameter sets the number of milliseconds to delay after the last byte of data is sent before the RTS modem signal will be set low.

Use CTS Line: Y or N This parameter specifies if the CTS modem control line is to be used. If the parameter is set to N, the CTS line will not be monitored. If the parameter is set to Y, the CTS line is monitored and must be high before the module sends data. Normally, this parameter is required when half-duplex modems are used for communication (2-wire).

Retry Count: 0 to 10 This parameter specifies the number of attempts for each response message. If a message fails, it is retried up to the count specified.

Request Timeout: 0 to 65535 This parameter specifies the number of milliseconds to wait for a complete request message. The timer is started after the DLE-STX character sequence is received for the full-duplex protocol or the DLE-SOH sequence for the half-duplex protocol. If the timer expires, the current request message is aborted.

Busy Timeout: 0 to 65535 This parameter specifies the number of milliseconds to wait for the pass-through port to become available.

ACK Timeout: 0 to 65535 This parameter specifies the number of milliseconds to wait for a DLE-ACK character sequence after a response is issued.

The command list for the client in the module is located in the [DFNT Client 0 Commands] section of the file. The following table displays the functions supported by the module and the format of each command:

Page 71: Roscas Npt & Bsp

Appendix B - MVI46-DFNT Configuration Data Definition MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 71 of 118 November 9, 2004

Module Information Data Device Information DataDFNT COMMAND STRUCTURE

Column # 1 2 3 4 5 6 7 8 9 10 11Function Enable Internal Poll Interval Swap IP Slot FunctionCode Code Address Time Count Code Address Number Code Function ParametersFC 1 Code Register Seconds Count Code Node Slot 1 Word AddressFC 2 Code Register Seconds Count Code Node Slot 2 Word AddressFC 3 Code Register Seconds Count 0 Node Slot 3 Word AddressFC 4 Code Register Seconds Count 0 Node Slot 4 Word AddressFC 5 Code Register Seconds Count Code Node Slot 5 Word AddressFC 100 Code Register Seconds Count Code Node Slot 100 File Number Element Sub-ElementFC 101 Code Register Seconds Count Code Node Slot 101 File Number Element Sub-ElementFC 102 Code Register Seconds Count 0 Node Slot 102 File Number Element Sub-ElementFC 150 Code Register Seconds Count Code Node Slot 150 File StringFC 151 Code Register Seconds Count Code Node Slot 151 File StringFC 152 Code Register Seconds Count 0 Node Slot 152 File StringFC 501 Code Register Seconds Count Code Node Slot 501 File Type File Number ElementFC 502 Code Register Seconds Count Code Node Slot 502 File Type File Number Element Sub-ElementFC 509 Code Register Seconds Count Code Node Slot 509 File Type File Number ElementFC 510 Code Register Seconds Count Code Node Slot 510 File Type File Number Element Sub-ElementFC 511 Code Register Seconds Count 0 Node Slot 511 File Type File Number Element Sub-Element

IP Address = IP address of processor to reachSlot Number = -1 for PLC5 & SLC, processor slot number of ControlLogix 5550

The following form can be used to design the application’s command list:

Module Information Data Device Information DataDFNT COMMAND LIST FORM

1 2 3 4 5 6 7 8 9 10 11 12Enable Internal Poll Interval Swap IP Slot FunctionCode Address Time Count Code Address Number Code Function Parameters

IP Address = IP address of processor to reachSlot Number = -1 for PLC5 & SLC, processor slot number of ControlLogix 5550

Page 72: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix B - MVI46-DFNT Configuration Data Definition EtherNet/IP Interface Module

Page 72 of 118 ProSoft Technology, Inc. November 9, 2004

Page 73: Roscas Npt & Bsp

Appendix C - Example DFNT.CFG File MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 73 of 118 November 9, 2004

Appendix C - Example DFNT.CFG File This appendix contains a listing of an example DFNT.CFG file for the MVI46-DFNT module.

# DFNT.CFG # # This file contains the configuration for the MVIxx-DFNT communication # module. # # LOCATION : # DATE : # CONFIGURED BY : # MODIFIED : # # This section is used to define the configuration for the Module level # data. # [Module] Module Name : Test Example of MVIxx-DFNT Communication Module #Password : PASSWORD Local Domain Name : psft.com Failure Flag Count : 0 # Initialize Output Data : No #Initialize the database file on startup # This section is used to define the DF1 pass-through server on Port 1 # (the second port) [DF1 Pass-Through Server Port 1] Enabled : Yes #Y=Use server, N=Do not use server Service Port Number : 15000 #TCP service port for this server Busy Timeout : 500 #Time to wait for not Busy (100-65535 mSec) Baud Rate : 19200 #Baud rate for port 110-115200 Parity : None #N=None,O=Odd,E=Even,M=Mark,S=Space Data Bits : 8 #5, 6, 7 or 8 Stop Bits : 1 #1 or 2 # This section is used to define the configuration for the DF1 pass-through # port on Port 2 (the third port) # [DF1 Pass-Through Port] Enabled : Yes #Y=Use port, N=Do not use port Local Station ID : 1 #DF1 node address Protocol : Full #F=Full-Duplex, H=Half-Duplex Termination Type : CRC #B=BCC, C=CRC Baud Rate : 576 #Baud rate for port 110-115200 Parity : None #N=None,O=Odd,E=Even,M=Mark,S=Space

Page 74: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix C - Example DFNT.CFG File EtherNet/IP Interface Module

Page 74 of 118 ProSoft Technology, Inc. November 9, 2004

Data Bits : 8 #5, 6, 7 or 8 Stop Bits : 1 #1 or 2 RTS On : 0 #0-65536 mSec before message RTS Off : 0 #0-65536 mSec after message Use CTS Line : No #Use CTS modem control line (Y/N) Retry Count : 3 #Response failure retry count Request Timeout : 1000 #Request message timeout (0-65535 mSec) Busy Timeout : 500 #Port Busy timeout (0-65535 mSec) ACK Timeout : 100 #DLE-ACK timeout (0-65535 mSec) # This section is used to define the configuration for the master device # simulated on network port # [DFNT Client 0] Minimum Command Delay : 0 #Minimum number of msec's between commands Response Timeout : 1000 #Response message timeout (0-65535 mSec) Retry Count : 3 #Response failure retry count [DFNT Client 0 Commands] # # The file contains examples for a ControlLogix processor with the N7 file # configured. This example uses SLC and PLC5 commands. # # LOCATION : # DATE : 04/05/2000 # CONFIGURED BY : RAR # MODIFIED : # # 1 2 3 4 5 6 7 8 9 10 11 12 # DB Poll Swap Func File File Elm Sub #Enab Addr Delay Count Code Node IP Address Slot Code Type # # Elm START 1 0 0 10 0 192.168.0.103 0 501 N 7 0 1 100 0 10 0 192.168.0.103 0 509 N 8 0 END

Page 75: Roscas Npt & Bsp

Appendix D: Command Function Codes MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 75 of 118 November 9, 2004

Appendix D: Command Function Codes In the following discussion, the Column values are described for the serial DFCM Command list (See Node Address parameter #6). In the DFNT module, the Node address has been replaced with two parameters; the IP Address and the Slot Number, causing the Function Code and Function Parameters to occupy positions 8-12 instead of 7-11. Aside from this difference, all other information is correct.

Module Information Data Device Information DataDF1 COMMAND LIST FORM

1 2 3 4 5 6 7 8 9 10 11Enable Internal Poll Interval Swap Node FunctionCode Address Time Count Code Address Code Function Parameters

Module Information Data Device Information DataDFNT COMMAND STRUCTURE

Column # 1 2 3 4 5 6 7 8 9 10 11 12Function Enable Internal Poll Interval Swap IP Slot FunctionCode Code Address Time Count Code Address Number Code Function Parameters

FUNCTION CODE #1Protected Write (Basic Command Set)

Column Command Parameter Description Parameter1 Enable/Type Word 0=Disabled, 1=Continuous and

2=Conditional.2 Virtual Database Address This parameter defines the database

address of the first data point to be associated with the command.

3 Poll Interval Minimum number of seconds to wait before polling with this command.

4 Count Number of data word values to be considered by the function.

5 Swap Type Code Swap type code for command: 0=None, 1=Swap words, 2=Swap words & bytes and 3=swap bytes in each word.

6 Node Address Address of unit to reach on the data highway.

7 Function Code = 1 Protected Write Function8 Word Address Word address where to start the write

operation.P1

9 to 11 Not Used These fields are not used by the command. Values entered in these columns will be ignored.

P2 to P4

Note: The Poll Interval command parameter values should be entered in 1/10th of a second. This function writes one or more words of data into a limited area of the slave device. This function should work on the following devices: 1774-PLC, PLC-2, PLC-3, PLC-5 and PLC-5/250.

Page 76: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix D: Command Function Codes EtherNet/IP Interface Module

Page 76 of 118 ProSoft Technology, Inc. November 9, 2004

FUNCTION CODE #2Unprotected Read (Basic Command Set)

Column Command Parameter Description Parameter1 Enable/Type Word 0=Disabled and 1=Continuous.2 Virtual Database Address This parameter defines the database

address of the first data point to be associated with the command.

3 Poll Interval Minimum number of seconds to wait before polling with this command.

4 Count Number of data word values to be considered by the function.

5 Swap Type Code Swap type code for command: 0=None, 1=Swap words, 2=Swap words & bytes and 3=swap bytes in each word.

6 Node Address Address of unit to reach on the data highway.

7 Function Code = 2 Unprotected Read Function8 Word Address Word address where to start the read

operation.P1

9 to 11 Not Used These fields are not used by the command. Values entered in these columns will be ignored.

P2 to P4

Note: The Poll Interval command parameter values should be entered in 1/10th of a second. This function reads one or more words of data from the PLC memory. This function should work on the following devices: 1774-PLC, PLC-2, PLC-3, PLC-5, SLC 500, SLC 5/03, SLC 5/04 and MicroLogix 1000.

FUNCTION CODE #3Protected Bit Write (Basic Command Set)

Column Command Parameter Description Parameter1 Enable/Type Word 0=Disabled, 1=Continuous and

2=Conditional.2 Virtual Database Address This parameter defines the database

address for the data to be associated with the command. The address defined represents a register address and not a bit address. This function will update one or more words of data as defined by the count parameter.

3 Poll Interval Minimum number of seconds to wait before polling with this command.

4 Count Number of data word values to be considered by the function.

5 Swap Type Code Swap type code for command: Always zero (0).

6 Node Address Address of unit to reach on the data highway.

7 Function Code = 3 Protected Bit Write Function8 Word Address Word address where to start the write

operation.P1

9 to 11 Not Used These fields are not used by the command. Values entered in these columns will be ignored.

P2 to P4

Note: The Poll Interval command parameter values should be entered in 1/10th of a second. This function sets or resets individual bits within a limited area of the PLC data table. This function should work on the following devices: 1774-PLC, PLC-2, PLC-3, PLC-5 and PLC-5/250.

Page 77: Roscas Npt & Bsp

Appendix D: Command Function Codes MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 77 of 118 November 9, 2004

FUNCTION CODE #4Unprotected Bit Write (Basic Command Set)

Column Command Parameter Description Parameter1 Enable/Type Word 0=Disabled, 1=Continuous and

2=Conditional.2 Virtual Database Address This parameter defines the database

address for the data to be associated with the command. The address defined represents a register address and not a bit address. This function will update one or more words of data as defined by the count parameter.

3 Poll Interval Minimum number of seconds to wait before polling with this command.

4 Count Number of data word values to be considered by the function.

5 Swap Type Code Swap type code for command: Always zero (0).

6 Node Address Address of unit to reach on the data highway.

7 Function Code = 4 Unprotected Bit Write Function8 Word Address Word address where to start the write

operation.P1

9 to 11 Not Used These fields are not used by the command. Values entered in these columns will be ignored.

P2 to P4

Note: The Poll Interval command parameter values should be entered in 1/10th of a second. This function sets or resets individual bits within a limited area of the PLC data table. This function should work on the following devices: 1774-PLC, PLC-2, PLC-3 and PLC-5.

FUNCTION CODE #5Unprotected Write (Basic Command Set)

Column Command Parameter Description Parameter1 Enable/Type Word 0=Disabled, 1=Continuous and

2=Conditional.2 Virtual Database Address This parameter defines the database

address of the first data point to be associated with the command.

3 Poll Interval Minimum number of seconds to wait before polling with this command.

4 Count Number of data word values to be considered by the function.

5 Swap Type Code Swap type code for command: 0=None, 1=Swap words, 2=Swap words & bytes and 3=swap bytes in each word.

6 Node Address Address of unit to reach on the data highway.

7 Function Code = 5 Unprotected Write Function8 Word Address Word address where to start the write

operation.P1

9 to 11 Not Used These fields are not used by the command. Values entered in these columns will be ignored.

P2 to P4

Note: The Poll Interval command parameter values should be entered in 1/10th of a second. This function writes one or more words of data to the PLC memory. This function should work on the following devices: 1774-PLC, PLC-2, PLC-3, PLC-5, SLC 500, SLC 5/03, SLC 5/04 and MicroLogix 1000.

Page 78: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix D: Command Function Codes EtherNet/IP Interface Module

Page 78 of 118 ProSoft Technology, Inc. November 9, 2004

FUNCTION CODE #100Word Range Write (PLC-5 Command)(Binary Address)

Column Command Parameter Description Parameter1 Enable/Type Word 0=Disabled, 1=Continuous and

2=Conditional.2 Virtual Database Address This parameter defines the database

address of the first data point to be associated with the command.

3 Poll Interval Minimum number of seconds to wait before polling with this command.

4 Count Number of data word values to be considered by the function.

5 Swap Type Code Swap type code for command: 0=None, 1=Swap words, 2=Swap words & bytes and 3=swap bytes in each word.

6 Node Address Address of unit to reach on the data highway.

7 Function Code = 100 Word Range Write Command.8 File Number PLC-5 file number to be associated

with the command. If a value of -1 is entered for the parameter, the field will not be used in the command, and the default file will be used.

P1

9 Element Number The parameter defines the element in the file where write operation will start. If a value of -1 is entered for the parameter, the field will not be used in the command, and the default element will be used.

P2

10 Sub-Element Number This parameter defines the sub-element to be used with the command. Refer to the AB documentation for a list of valid sub-element codes. If the value is set to -1, the default sub-element number will be used.

P3

11 Not Used This field is not used by the command. Values entered in this column will be ignored.

P4

Note: The Poll Interval command parameter values should be entered in 1/10th of a second. This function is used to write one or more words of data to a PLC data table. This function should work on the following devices: PLC-5.

Page 79: Roscas Npt & Bsp

Appendix D: Command Function Codes MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 79 of 118 November 9, 2004

FUNCTION CODE #101Word Range Read (PLC-5 Command)(Binary Address)

Column Command Parameter Description Parameter1 Enable/Type Word 0=Disabled and 1=Continuous.2 Virtual Database Address This parameter defines the database

address of the first data point to be associated with the command.

3 Poll Interval Minimum number of seconds to wait before polling with this command.

4 Count Number of data word values to be considered by the function.

5 Swap Type Code Swap type code for command: 0=None, 1=Swap words, 2=Swap words & bytes and 3=swap bytes in each word.

6 Node Address Address of unit to reach on the data highway.

7 Function Code = 101 Word Range Write Command.8 File Number PLC-5 file number to be associated

with the command. If a value of -1 is entered for the parameter, the field will not be used in the command, and the default file will be used.

P1

9 Element Number The parameter defines the element in the file where write operation will start. If a value of -1 is entered for the parameter, the field will not be used in the command, and the default element will be used.

P2

10 Sub-Element Number This parameter defines the sub-element to be used with the command. Refer to the AB documentation for a list of valid sub-element codes. If the value is set to -1, the default sub-element number will be used.

P3

11 Not Used This field is not used by the command. Values entered in this column will be ignored.

P4

Note: The Poll Interval command parameter values should be entered in 1/10th of a second. This function is used to read one or more words of data from a PLC data table. This function should work on the following devices: PLC-5.

Page 80: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix D: Command Function Codes EtherNet/IP Interface Module

Page 80 of 118 ProSoft Technology, Inc. November 9, 2004

FUNCTION CODE #102Read-Modify-Write (PLC-5 Command)(Binary Address)

Column Command Parameter Description Parameter1 Enable/Type Word 0=Disabled, 1=Continuous and

2=Conditional.2 Virtual Database Address This parameter defines the database

address for the data to be associated with the command.

3 Poll Interval Minimum number of seconds to wait before polling with this command.

4 Count Number of data word values to be considered by the function.

5 Swap Type Code Swap type code for command: Always zero (0).

6 Node Address Address of unit to reach on the data highway.

7 Function Code = 102 Read-Modify-Write Command.8 File Number PLC-5 file number to be associated

with the command. If a value of -1 is entered for the parameter, the field will not be used in the command, and the default file will be used.

P1

9 Element Number The parameter defines the element in the file where write operation will start. If a value of -1 is entered for the parameter, the field will not be used in the command, and the default element will be used.

P2

10 Sub-Element Number This parameter defines the sub-element to be used with the command. Refer to the AB documentation for a list of valid sub-element codes. If the value is set to -1, the default sub-element number will be used.

P3

11 Not Used This field is not used by the command. Values entered in this column will be ignored.

P4

Note: The Poll Interval command parameter values should be entered in 1/10th of a second. This function is used to write one or more words of data to a PLC data table. This function should work on the following devices: PLC-5. The command constructed contains an AND mask and an OR mask. Values in the AND mask have the following definitions: 0=Reset and 1=Leave the Same. Values in the OR mask have the following definitions: 0=Leave the Same and 1=Set. The module is responsible for setting the mask values to correctly construct the message from the virtual database values.

Page 81: Roscas Npt & Bsp

Appendix D: Command Function Codes MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 81 of 118 November 9, 2004

FUNCTION CODE #150Word Range Write (PLC-5 Command)(ASCII Address)

Column Command Parameter Description Parameter1 Enable/Type Word 0=Disabled, 1=Continuous and

2=Conditional.2 Virtual Database Address This parameter defines the database

address of the first data point to be associated with the command.

3 Poll Interval Minimum number of seconds to wait before polling with this command.

4 Count Number of data word values to be considered by the function.

5 Swap Type Code Swap type code for command: 0=None, 1=Swap words, 2=Swap words & bytes and 3=swap bytes in each word.

6 Node Address Address of unit to reach on the data highway.

7 Function Code = 150 Word Range Write Command.8 File String PLC-5 address as specified as an

ASCII string. For example, N10:300.P1

9 to 11 Not Used These fields are not used by the command. Values entered in these columns will be ignored.

P2 to P4

Note: The Poll Interval command parameter values should be entered in 1/10th of a second. This function is used to write one or more words of data to a PLC data table. This function should work on the following devices: PLC-5.

FUNCTION CODE #151Word Range Read (PLC-5 Command)(ASCII Address)

Column Command Parameter Description Parameter1 Enable/Type Word 0=Disabled and 1=Continuous.2 Virtual Database Address This parameter defines the database

address of the first data point to be associated with the command.

3 Poll Interval Minimum number of seconds to wait before polling with this command.

4 Count Number of data word values to be considered by the function.

5 Swap Type Code Swap type code for command: 0=None, 1=Swap words, 2=Swap words & bytes and 3=swap bytes in each word.

6 Node Address Address of unit to reach on the data highway.

7 Function Code = 151 Word Range Read Command.8 File String PLC-5 address as specified as an

ASCII string. For example, N10:300.P1

9 to 11 Not Used These fields are not used by the command. Values entered in these columns will be ignored.

P2 to P4

Note: The Poll Interval command parameter values should be entered in 1/10th of a second. This function is used to read one or more words of data from a PLC data table. This function should work on the following devices: PLC-5.

Page 82: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix D: Command Function Codes EtherNet/IP Interface Module

Page 82 of 118 ProSoft Technology, Inc. November 9, 2004

FUNCTION CODE #152Read-Modify-Write (PLC-5 Command)(ASCII Address)

Column Command Parameter Description Parameter1 Enable/Type Word 0=Disabled, 1=Continuous and

2=Conditional.2 Virtual Database Address This parameter defines the database

address for the data to be associated with the command. The first database register is used as the AND mask for the command, and the second is used for the OR mask. Values in the AND mask have the following definitions: 0=Reset and 1=Leave the Same. Values in the OR mask have the following definitions: 0=Leave the Same and 1=Set.

3 Poll Interval Minimum number of seconds to wait before polling with this command.

4 Count Number of data word values to be considered by the function.

5 Swap Type Code Swap type code for command: Always zero (0).

6 Node Address Address of unit to reach on the data highway.

7 Function Code = 152 Read-Modify-Write Command.8 File String PLC-5 address as specified as an

ASCII string. For example, N10:300.P1

9 to 11 Not Used These fields are not used by the command. Values entered in these columns will be ignored.

P2 to P4

Note: The Poll Interval command parameter values should be entered in 1/10th of a second. This function is used to write one or more words of data to a PLC data table. This function should work on the following devices: PLC-5. The command constructed contains an AND mask and an OR mask. Values in the AND mask have the following definitions: 0=Reset and 1=Leave the Same. Values in the OR mask have the following definitions: 0=Leave the Same and 1=Set. The module is responsible for setting the mask values to correctly construct the message from the virtual database values.

Page 83: Roscas Npt & Bsp

Appendix D: Command Function Codes MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 83 of 118 November 9, 2004

FUNCTION CODE #501Protected Typed Logical Read (Two Address Fields)

Column Command Parameter Description Parameter1 Enable/Type Word 0=Disabled and 1=Continuous.2 Virtual Database Address This parameter defines the database

address of the first data point to be associated with the command.

3 Poll Interval Minimum number of seconds to wait before polling with this command.

4 Count Number of data word values to be considered by the function.

5 Swap Type Code Swap type code for command: 0=None, 1=Swap words, 2=Swap words & bytes and 3=swap bytes in each word.

6 Node Address Address of unit to reach on the data highway.

7 Function Code = 501 Logical Read Command8 File Type SLC file type letter as used in file

name string. Valid values for the system are N, S, F, A, ….

P1

9 File Number SLC file number to be associated with the command.

P2

10 Element Number The parameter defines the element in the file where write operation will start.

P3

11 Not Used This field is not used by the command. Values entered in this column will be ignored.

P4

Note: The Poll Interval command parameter values should be entered in 1/10th of a second. This function is used to read one or more words of data from a PLC data table.

FUNCTION CODE #502Protected Typed Logical Read (Three Address Fields)

Column Command Parameter Description Parameter1 Enable/Type Word 0=Disabled and 1=Continuous.2 Virtual Database Address This parameter defines the database

address of the first data point to be associated with the command.

3 Poll Interval Minimum number of seconds to wait before polling with this command.

4 Count Number of data word values to be considered by the function.

5 Swap Type Code Swap type code for command: 0=None, 1=Swap words, 2=Swap words & bytes and 3=swap bytes in each word.

6 Node Address Address of unit to reach on the data highway.

7 Function Code = 502 Logical Read Command8 File Type SLC file type letter as used in file

name string. Valid values for the system are N, S, F, A, ….

P1

9 File Number SLC file number to be associated with the command.

P2

10 Element Number The parameter defines the element in the file where write operation will start.

P3

11 Sub-Element Number This parameter defines the sub-element to be used with the command. Refer to the AB documentation for a list of valid sub-element codes.

P4

Page 84: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix D: Command Function Codes EtherNet/IP Interface Module

Page 84 of 118 ProSoft Technology, Inc. November 9, 2004

Note: The Poll Interval command parameter values should be entered in 1/10th of a second. This function is used to read one or more words of data from a PLC data table. This function should work on the following devices: SLC 500, SLC 5/03 and SLC 5/04.

FUNCTION CODE #509Protected Typed Logical Write (Two Address Fields)

Column Command Parameter Description Parameter1 Enable/Type Word 0=Disabled, 1=Continuous and

2=Conditional.2 Virtual Database Address This parameter defines the database

address of the first data point to be associated with the command.

3 Poll Interval Minimum number of seconds to wait before polling with this command.

4 Count Number of data word values to be considered by the function.

5 Swap Type Code Swap type code for command: 0=None, 1=Swap words, 2=Swap words & bytes and 3=swap bytes in each word.

6 Node Address Address of unit to reach on the data highway.

7 Function Code = 509 Logical Write Command8 File Type SLC file type letter as used in file

name string. Valid values for the system are N, S, F, A, ….

P1

9 File Number SLC file number to be associated with the command.

P2

10 Element Number The parameter defines the element in the file where write operation will start.

P3

11 Not Used This field is not used by the command. Values entered in this column will be ignored.

P4

Note: The Poll Interval command parameter values should be entered in 1/10th of a second. This function is used to write one or more words of data to a PLC data table.

Page 85: Roscas Npt & Bsp

Appendix D: Command Function Codes MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 85 of 118 November 9, 2004

FUNCTION CODE #510Protected Typed Logical Write (Three Address Fields)

Column Command Parameter Description Parameter1 Enable/Type Word 0=Disabled, 1=Continuous and

2=Conditional.2 Virtual Database Address This parameter defines the database

address of the first data point to be associated with the command.

3 Poll Interval Minimum number of seconds to wait before polling with this command.

4 Count Number of data word values to be considered by the function.

5 Swap Type Code Swap type code for command: 0=None, 1=Swap words, 2=Swap words & bytes and 3=swap bytes in each word.

6 Node Address Address of unit to reach on the data highway.

7 Function Code = 510 Logical Write Command8 File Type SLC file type letter as used in file

name string. Valid values for the system are N, S, F, A, ….

P1

9 File Number SLC file number to be associated with the command.

P2

10 Element Number The parameter defines the element in the file where write operation will start.

P3

11 Sub-Element Number This parameter defines the sub-element to be used with the command. Refer to the AB documentation for a list of valid sub-element codes.

P4

Note: The Poll Interval command parameter values should be entered in 1/10th of a second. This function is used to write one or more words of data to a PLC data table. This function should work on the following devices: SLC 500, SLC 5/03 and SLC 5/04.

Page 86: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix D: Command Function Codes EtherNet/IP Interface Module

Page 86 of 118 ProSoft Technology, Inc. November 9, 2004

FUNCTION CODE #511Protected Typed Logical Write with Mask (Three Address Fields)

Column Command Parameter Description Parameter1 Enable/Type Word 0=Disabled, 1=Continuous and

2=Conditional.2 Virtual Database Address This parameter defines the database

address of the data to be associated with the command. The first word of data contains the bit mask and the second word contains the data.

3 Poll Interval Minimum number of seconds to wait before polling with this command.

4 Count Number of data word values to be considered by the function.

5 Swap Type Code Swap type code for command: Always zero (0).

6 Node Address Address of unit to reach on the data highway.

7 Function Code = 511 Logical Write with mask8 File Type SLC file type letter as used in file

name string. Valid values for the system are N, S, F, A, ….

P1

9 File Number SLC file number to be associated with the command.

P2

10 Element Number The parameter defines the element in the file where write operation will start.

P3

11 Sub-Element Number This parameter defines the sub-element to be used with the command. Refer to the AB documentation for a list of valid sub-element codes.

P4

Note: The Poll Interval command parameter values should be entered in 1/10th of a second. This function is used to write one or more words of data from a PLC data table controlling individual bits in the table. The bit mask used for the command is 0xFFFF. This provides direct manipulation of the data in the device with the internal data of the module. The function requires that all data associated with the command use the same mask.

Page 87: Roscas Npt & Bsp

Appendix E: Client Configurations for Server MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 87 of 118 November 9, 2004

Appendix E: Client Configurations for Server The DFNT module supports server functionality using the reserved ControlNet service port 0xAF12. Services supported in the module permit client applications (i.e., RSView, ControlLogix processors, and RSLinx) to read from and write to the module’s database. This section discusses the requirements for attaching to the module using several client applications.

RSLinx Software RSLinx is used by many personal computer based applications to interface with Allen-Bradley products. For example, RSView requires the use of RSLinx for communication to remote nodes on a network. To set up a connection to a DFNT module, a driver must first be added to RSLinx. Select the Configure Drivers… menu option from the Communications menu. After selecting the option, the following dialog box appears.

From the list of available drivers, select the Remote Devices via Linx or 1756-ENET Gateway option. Then, select the Add New… command button. This causes the program to present the following dialog box.

Enter the name for the driver or accept the default name provided, and then, select the OK command button. The program displays the following dialog box:

Page 88: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix E: Client Configurations for Server EtherNet/IP Interface Module

Page 88 of 118 ProSoft Technology, Inc. November 9, 2004

Enter the IP address for the DFNT module in the Server’s IP Address or hostname entry area. In the example shown, the module’s IP address is 192.168.0.75. The value entered should match the value configured in the module’s WATTCP.CFG file. Select the OK command button and the new driver should appear in the list as shown in the following dialog box:

The driver and the IP address of the DFNT module should be presented in the Configure Drivers dialog box. If the driver is not running, select the Start command button. Select the Close command button to exit the dialog box. The new driver should be displayed in the main program window as shown:

Page 89: Roscas Npt & Bsp

Appendix E: Client Configurations for Server MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 89 of 118 November 9, 2004

The module is now ready to use with any program requiring RSLinx for communication. This set of instructions can also be used to test if the DFNT module is functioning correctly without the use of processor or client application.

DDE Connection This section discusses setting up a DDE connection to the module in order to transfer data between the module and a DDE compliant application. Each DDE connection requires three basic elements: Application, Topic and Item. These three properties of a DDE link define the program providing the connection, the topic to connect to and the item in the topic that you wish to interface. All three are required for a connection. For this discussion, the Application will always be RSLinx. The Topic is defined in the RSLinx OEM release software and the Item is defined in the DDE client application where the data is required. The link between the DDE server and the DDE client can be established once these parameters are defined. The following diagram shows the relationship of these elements and the facilities used in the DDE link.

ClientServer

DFNT MODULE

DB

RSLinxDDE Client

RSLinx is the DDE Server: APPLICATION = RSLINX

And

RSLinx is used to define the TOPIC. This is the communication link to the ProLinx Communication Gateways, Inc. DFNT Module. In this example, a DDE TOPIC is defined PROLINX1 for the communication link to the DFNT module.

The DDE Client application specifies the DDE link by specifying the APPLICATION, TOPIC and ITEM elements. For example in Excel enter =RSLINX|PROLINX1!’RealData[0]’ into a cell.

The Prolinx Communication Gateways, Inc. DFNT Module is used to serve data to RSLinx using the EtherNet/IP driver with explicit messaging. Database is accessed using tag names (i.e., RealData[0]).

As discussed in the previous section, RSLinx must be used to define the Topic element for the DDE link definition. This is accomplished using the following procedure. It is assumed that the module can be seen in the RSLinx software. Refer to the RSLinx section of this manual to set up this connection. To define a new Topic, select the Topic Configuration… option on the DDE/OPC menu from the RSLinx Main Menu. This causes the following dialog box to appear:

Page 90: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix E: Client Configurations for Server EtherNet/IP Interface Module

Page 90 of 118 ProSoft Technology, Inc. November 9, 2004

Select the New command button to add a new Topic to the Topic List. This displays a default name. Edit the Topic name for the link to be formed. This name should reflect the unit or location to which the connection is being made. Do not press the Enter key. Instead, double-click the mouse on the DFNT device you want to connect to the entered Topic name. The dialog should now appear as follows:

Now select the Data Collection tab on the dialog. Fill in the form to define the characteristics of the DDE link. The following screen shows an example:

Page 91: Roscas Npt & Bsp

Appendix E: Client Configurations for Server MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 91 of 118 November 9, 2004

Be certain to set the Processor Type to Logix5000. Refer to the RSLinx on-line help for a discussion of each of the parameters on the form. Next select the Advanced Communication tab on the dialog box. The following is displayed after selecting the tab.

The Communication Driver should be set to the TCP driver and display the IP address of the DFNT module. Make sure the Remote option is selected in the Local or Remote Addressing section of the dialog. You should not have to alter any data on this tab, as RSLinx knows the communication path. Now select the Apply command button to implement the options and to establish the topic. You are now ready to use the DDE link in a DDE client application. Two examples follow: Excel

Page 92: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix E: Client Configurations for Server EtherNet/IP Interface Module

Page 92 of 118 ProSoft Technology, Inc. November 9, 2004

Spreadsheet and Visual Basic program. Any other Windows DDE client application could be used including SoftLogix and RSSql.

Defining a DDE link in Excel This is the simplest DDE link to define and should be used to make sure the Topic is defined correctly before using more advanced applications. Before attempting to make the link, be certain RSLinx is running and that the DFNT module is seen. To make a DDE link in Excel, you only need to enter the application, topic and item elements as a formula into a cell. The format for the formula is as follows: =APPLICATION|TOPIC!ITEM The ‘|’ character (piping symbol) is used to separate the application and topic fields and the ‘!’ (exclamation symbol) is used to separate the topic and item fields. For our example topic of ProLinx1, the entry into the cell is: =RSLinx|ProLinx1!’RealData[500]’ This causes the current value at the database double-word offset 500 (starting at word address 1000) in the DFNT module to be displayed in the cell as a floating-point value. This value updates at the frequency defined in the Topic configuration in RSLinx. It’s that easy. You can now place any database point in the DFNT module using the same procedure in your worksheet. Note that the tag array name is used for the item property and must be enclosed within the quote marks. This is because the tag array name item reference looks like an Excel worksheet reference. If you do not include the quotes, a formula error occurs. You can select any of the defined tag array names defined in the module on your spreadsheet. When the items are used for the topic, RSLinx displays the following after selecting the Active Topic/Items menu option on the DDE/OPC menu option:

Any DDE compliant program can be used in the same manner. For maximum utility Visual Basic applications can be used to interface with module’s database using DDE connectivity.

Page 93: Roscas Npt & Bsp

Appendix E: Client Configurations for Server MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 93 of 118 November 9, 2004

OPC Connection This section discusses setting up an OPC connection to the module in order to transfer data between the module and an OPC compliant client. Follow the instructions for setting up the DDE connection outlined in the previous section. This will define the connection required by the OPC server. RSLinx will now be configured to interface with an OPC client application. The example used in this section uses the OPC test client (opctest.exe) available from Allen-Bradley. First start the application and select the Connect… option from the Server Menu. In the dialog box shown, select the RSLinx OPC server. Next add a group using the Group menu option and fill in the Group Name using any name that is meaningful for the points to be monitored and controlled. The following dialog displays an example:

The next step is to add items to the client. The following shows an example dialog used to add a floating-point data item:

It is important to set the Access Path value to the Topic name assigned in RSLinx and to set the Item Name to a valid controller tag in the DFNT module. The Datatype parameter must be set to match that of the controller tag. In the example shown, the VT_R4 data type is selected for the floating-point tag. The Validate command button can be used to verify that the point is valid in the OPC server. After configuring the

Page 94: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix E: Client Configurations for Server EtherNet/IP Interface Module

Page 94 of 118 ProSoft Technology, Inc. November 9, 2004

new data item, select the OK command button to add the point. The new item should be displayed in the item and event windows as shown in the following display:

You have now connected an OPC client to data in the DFNT module. In order to change the value for the item, select the Sync Write option from the Item menu and enter a new value as shown in the following dialog box:

After selecting the Ok command button, the new value is transferred to the module and updated in the item data window as shown in the following example:

Page 95: Roscas Npt & Bsp

Appendix E: Client Configurations for Server MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 95 of 118 November 9, 2004

ControlLogix (CLX) Processor In order to exchange data between a ControlLogix processor and the module, the MSG instruction is used. There are two basic methods of data transfer supported by the module when using the MSG instruction: Encapsulated PCCC messages and CIP Data Table messages. Either method can be used, and the selection is left to the application developer.

Encapsulated PCCC Messages PLC5 and SLC5/05 processors containing an Ethernet interface use the encapsulated PCCC message method. The module simulates these devices and accepts both read and write commands. The following sections describe the support for the read and write operations.

Encapsulated PCCC Write Commands Write commands are used to transfer data from the ControlLogix processor to the module. The following encapsulated PCCC commands are supported from a ControlLogix Processor:

An example rung used to execute a write command is shown in the following diagram:

PLC2 Unprotected Write PLC5 Typed Write PLC5 Word Range Write

Page 96: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix E: Client Configurations for Server EtherNet/IP Interface Module

Page 96 of 118 ProSoft Technology, Inc. November 9, 2004

The Message Configuration dialog box must be completed to define the data set to be transferred from the processor to the module. An example of the dialog box follows:

Complete the dialog box for the data area to be transferred. For PLC5 and SLC messages, the Destination Element should be an element in a data file (i.e., N7:0). For the PLC2 Unprotected Write message, the Destination Element is the address in the module’s internal database and cannot be set to a value less than ten. This is not a limitation of the module but of the RSLogix software. Additionally, the Communication information must also be configured. The following is an example of the dialog box.

Be certain that the CIP radio-button is selected as the Communication Method. The Path is used to specify the message path from the ControlLogix processor to the module. In the example shown, the path is from the processor to the Enet module (1756-ENET module in slot 2), the 2 represents the Ethernet port on the 1756-ENET module and the last portion of the path is the IP address of the DFNT module to reach (192.168.0.75). More complex paths are possible if routing to other networks using multiple 1756-ENET modules and racks. Refer to the Allen-Bradley Knowledge Document 10803, Control Logix Gateway: Ethernet Communications for a full discussion of Ethernet routing and path definition.

Page 97: Roscas Npt & Bsp

Appendix E: Client Configurations for Server MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. November 9, 2004

Encapsulated PCCC Read Commands Read commands transfer data from the module to a ControlLogix processor. The following encapsulated PCCC commands are supported from a ControlLogix Processor:

An example rung used todiagram:

The Message Configurabe transferred to the procfollows:

Complete the dialog box fmessages, the Source Ethe PLC2 Unprotected Remodule’s internal databaslimitation of the module bCommunication informafollows:

PLC2 Unprotected Read PLC5 Typed Read PLC5 Word Range Read

Page 97 of 118

execute a read command is shown in the following

tion dialog box must be completed to define the data set to essor from the module. An example of the dialog box

or the data area to be transferred. For PLC5 and SLC lement should be an element in a data file (i.e., N7:0). For ad message, the Source Element is the address in the e and cannot be set to a value less than ten. This is not a

ut of the RSLogix software. Additionally, the tion must also be configured. An example of the dialog box

Page 98: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix E: Client Configurations for Server EtherNet/IP Interface Module

Page 98 of 118 ProSoft Technology, Inc. November 9, 2004

Be certain that the CIP radio-button is selected as the Communication Method. The Path is used to specify the message path from the ControlLogix processor to the module. In the example above, the path is from the processor to the Enet module (1756-ENET module in slot 2), the 2 represents the Ethernet port on the 1756-ENET module and the last portion of the path is the IP address of the DFNT module to reach (192.168.0.75). More complex paths are possible if routing to other networks using multiple 1756-ENET modules and racks. Refer to the Allen-Bradley Knowledge Document 10803, Control Logix Gateway: Ethernet Communications for a full discussion of Ethernet routing and path definition.

CIP Data Table Operations This method of data transfer uses CIP messages to transfer data between the ControlLogix processor and the module. Tag names are used to define the elements to be transferred. The following sections describe the support for the read and write operations.

CIP Data Table Write CIP data table write messages are used to transfer data from the ControlLogix processor to the DFNT module. An example rung used to execute a write command is shown in the following diagram:

The Message Configuration dialog box must be completed to define the data set to be transferred from the processor to the module. An example of the dialog box follows:

Page 99: Roscas Npt & Bsp

Appendix E: Client Configurations for Server MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 99 of 118 November 9, 2004

Complete the dialog box for the data area to be transferred. CIP Data Table messages require a tag database element for both the source and destination. The Source Tag is a tag defined in the ControlLogix Tag database. The Destination Element is the tag element in the DFNT module. The module simulates a tag database as an array of elements defined by the maximum register size for the module (user configuration parameter “Maximum Register” in the [Module] section) with the tag name int_data. In the previous example, the first element in the database is the starting location for the write operation of ten elements. Additionally, the Communication information must also be configured. An example of the dialog box follows:

Be certain that the CIP radio-button is selected as the Communication Method. The Path is used to specify the message path from the ControlLogix processor to the module. In the example above, the path is from the processor to the Enet module (1756-ENET module in slot 2), the 2 represents the Ethernet port on the 1756-ENET module and the last portion of the path is the IP address of the DFNT module to reach (192.168.0.75). More complex paths are possible if routing to other networks

Page 100: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix E: Client Configurations for Server EtherNet/IP Interface Module

Page 100 of 118 ProSoft Technology, Inc. November 9, 2004

using multiple 1756-ENET modules and racks. Refer to the Allen-Bradley Knowledge Document 10803, Control Logix Gateway: Ethernet Communications for a full discussion of Ethernet routing and path definition.

CIP Data Table Read CIP data table read messages transfer data to the ControlLogix processor from the DFNT module. An example rung used to execute a read command is shown:

The Message Configuration dialog box must be completed to define the data set to be transferred to the processor from the module. An example of the dialog box follows:

Complete the dialog box for the data area to be transferred. CIP Data Table messages require a tag database element for both the source and destination. The Destination Tag is a tag defined in the ControlLogix Tag database. The Source Element is the tag element in the DFNT module. The module simulates a tag database as an array of elements defined by the maximum register size for the module (user configuration parameter “Maximum Register” in the [Module] section) with the tag name int_data. In the example above, the first element in the database is the starting location for the read operation of ten elements. Additionally, the Communication information must also be configured. An example of the dialog box follows:

Page 101: Roscas Npt & Bsp

Appendix E: Client Configurations for Server MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 101 of 118 November 9, 2004

Be certain that the CIP radio-button is selected as the Communication Method. The Path is used to specify the message path from the ControlLogix processor to the module. In the example above, the path is from the processor to the Enet module (1756-ENET module in slot 2), the 2 represents the Ethernet port on the 1756-ENET module and the last portion of the path is the IP address of the DFNT module to reach (192.168.0.75). More complex paths are possible if routing to other networks using multiple 1756-ENET modules and racks. Refer to the Allen-Bradley Knowledge Document 10803, Control Logix Gateway: Ethernet Communications for a full discussion of Ethernet routing and path definition.

PLC5 Processor The module can be used to receive messages from a PLC5 containing an Ethernet interface. The module supports both read and write commands. A discussion of each operation is provided in the following sections:

PLC5 Write Commands Write commands are used to transfer data from the PLC5 processor to the DFNT module. An example rung used to execute a write command is shown in the following diagram:

In order to complete the configuration of the MSG instruction, select the Setup Screen area of the MSG object. This displays the following dialog box.

Page 102: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix E: Client Configurations for Server EtherNet/IP Interface Module

Page 102 of 118

Select the Communication Command to execute from the following list of supported commands:

The Target Device DataN11:0) for SLC and PLCthe address to the databThe MultiHop option mumust be completed as sh

The IP address corresponumber should be set to

PLC5 Read Commands Read commands transfeexample rung used to ex

PLC5 Type Write PLC2 Unprotected Write PLC5 Typed Write to SLC

ProSoft Technology, Inc. November 9, 2004

Table Address must be set to a valid file element (i.e., 5 messages. For the PLC2 Unprotected Write message, set ase index (i.e., 1000) to consider with the command. st be set to Yes. The MultiHop tab portion of the dialog box own in the following window:

nds to that set in the module’s WATTCP.CFG file. The slot zero.

r data to the PLC5 processor from the DFNT module. An ecute a read command is shown in the following diagram:

Page 103: Roscas Npt & Bsp

Appendix E: Client Configurations for Server MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. November 9, 2004

In order to complete the configuration of the MSG instruction, select the Setup Screen area of the MSG object. This displays the following dialog box.

Select the Communication Command to execute from the following list of supported commands:

The Target Device Data set to a valid file element (i.e., N11:0) for SLC and PLCthe address to the databThe MultiHop option mumust be completed as sh

Table Address must be

PLC5 Type Read PLC2 Unprotected Read

Page 103 of 118

5 messages. For the PLC2 Unprotected Read message, set ase index (i.e., 1000) to consider with the command. st be set to Yes. The MultiHop tab portion of the dialog box own in the following window:

Page 104: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix E: Client Configurations for Server EtherNet/IP Interface Module

Page 104 of 118 ProSoft Technology, Inc. November 9, 2004

The IP address corresponds to that set in the module’s WATTCP.CFG file. The slot number should be set to zero.

SLC 5/05 Processor The module can be used to receive messages from a SLC 5/05 containing an Ethernet interface. The module supports both read and write commands. A discussion of each operation is provided in the following sections.

SLC5/05 Write Commands Write commands transfer data from the SLC processor to the DFNT module. An example rung used to execute a write command is shown in the following diagram:

Set the Read/Write parameter to Write. The module supports a Target Device parameter value of 500CPU or PLC5. In order to complete the configuration of the MSG instruction, select the Setup Screen area of the MSG object. This displays the following dialog box.

The Target Device Data Table Address must be set to a valid file element (i.e., N11:0) for SLC and PLC5 messages. The MultiHop option must be set to Yes. The MultiHop tab portion of the dialog box must be completed as displayed in the following window:

Page 105: Roscas Npt & Bsp

Appendix E: Client Configurations for Server MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 105 of 118 November 9, 2004

The IP address corresponds to that set in the module’s WATTCP.CFG file. The slot number should be set to zero.

SLC5/05 Read Commands Read commands are used to transfer data to the SLC processor from the DFNT module. An example rung used to execute a read command is shown in the following diagram:

Set the Read/Write parameter to Read. The module supports a Target Device parameter value of 500CPU or PLC5. In order to complete the configuration of the MSG instruction, select the Setup Screen area of the MSG object. This displays the following dialog box.

Page 106: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix E: Client Configurations for Server EtherNet/IP Interface Module

Page 106 of 118 ProSoft Technology, Inc. November 9, 2004

The Target Device Data Table Address must be set to a valid file element (i.e., N11:0) for SLC and PLC5 messages. The MultiHop option must be set to Yes. The MultiHop tab portion of the dialog box must be completed as displayed in the following window:

The IP address corresponds to that set in the module’s WATTCP.CFG file. The slot number should be set to zero.

RSView Software RSView is a client application for building user interfaces to control systems. This tool requires RSLinx to be loaded and operational (see the RSLinx section of this document). In order to interface RSView to a DFNT module, the following steps are required: First select the Channel option from the Edit Mode tab as shown in the following window.

After selecting the option, the following dialog box is displayed:

Page 107: Roscas Npt & Bsp

Appendix E: Client Configurations for Server MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 107 of 118 November 9, 2004

Select the Network Type and Primary Communication Driver for the channel to be associated with the DFNT module. The Network Type should be TCP/IP and the Primary Communication Driver name should match that set up in RSLinx. Select the OK command button to save the information. Next select the Node option from the Edit Mode tab. After selecting the option, the following dialog box is displayed:

Enter a record in the dialog box for the DFNT module to be addressed. The Name field is used to identify the module to the RSView system. The Channel parameter should be that defined in the channel set up defined above. The Station parameter should be set to the IP address of the DFNT module. Select the Close command button after completing the node entry. If your version of the RSView supports ControlLogix controller tag read and write operations, select the device type consistent with the ControlLogix processor. This will permit direct access to the controller tags simulated in the module. Use of controller tags simplifies handling of

Page 108: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix E: Client Configurations for Server EtherNet/IP Interface Module

Page 108 of 118 ProSoft Technology, Inc. November 9, 2004

the data in RSView as the data will be passing in the correct data format (i.e., bit, word, float). Next select the Tag Database option from the Edit Mode tab. After selecting the option, the following dialog box is displayed:

Set up tags for each element to be transferred between RSView and the DFNT module. In the example above, Data1 is associated with the first element in the DFNT module’s database (N7:0). A tag should be setup for each register in the module’s database to be interfaced. If RSView is set in run mode, values for the tags should match those in the module’s database. Use the module controller tag names if using CIP data table read and write operations. Refer to the RSView documentation for a full discussion of database tags and reading and writing data between RSView and a processor.

Page 109: Roscas Npt & Bsp

Appendix F – Accessing an SLC 5/03 Processor via Ethernet Using MVI46-DFNTMVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 109 of 118 November 9, 2004

Appendix F – Accessing an SLC 5/03 Processor via Ethernet Using MVI46-DFNT

This section explains how to set up Ethernet access to an SLC 5/03 processor using the MVI46-DFNT module. Port 2 (middle port) should be connected to the SLC 5/03 RS-232 port using an RS-232 null modem cable. Optionally you can use Port 3 to emulate Channel 0 on the SLC. A Master DF1 device can be attached to Port 3 to monitor and control the SLC data files. The following network should be used:

Conversion software is required in order to convert serial data to TCP/IP format. The software will typically select a serial port that is not being used and direct to it to an IP address and port number (MVI46-DFNT Pass-Through Server). Perform the following steps to set up your network. Step 1- Configure the Pass-Through Server The MVI46-DFNT Pass-Through Server is used to connect a local computer serial port to the module’s Ethernet driver. Refer to the configuration file to configure the following section:

[DF1 Pass-Through Server Port 1] Enabled : Yes #Y=Use server, N=Do not use server Service Port Number : 15000 #TCP service port for this server Busy Timeout : 500 #Time to wait for not Busy (100-65535 mSec) Baud Rate : 19200 #Baud rate for port 110-115200 Parity : None #N=None,O=Odd,E=Even,M=Mark,S=Space

Page 110: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC PlatformAppendix F – Accessing an SLC 5/03 Processor via Ethernet Using MVI46-DFNT EtherNet/IP Interface Module

Page 110 of 118 ProSoft Technology, Inc. November 9, 2004

Data Bits : 8 #5, 6, 7 or 8 Stop Bits : 1 #1 or 2

Select Y (or Yes) for the Enabled parameter and then configure each communication parameter. Step 2- Configure the Serial/IP Converter Software Conversion software is required in order to convert serial data to TCP/IP format. The software will select a serial port that is not being used and direct to it to an IP address and port number (MVI46-DFNT Pass-Through Server). It is essential to select the MVI46-DFNT IP address and the port number configured on the previous step. The serial communication parameters should also match the parameters configured in the previous step. Step 3- Configure a RS-232 driver at RS-LINX Open the RS-LINX software and create a new RS-232 driver:

Select the COM Port (configured during the previous step) and click on Auto-Config.

Page 111: Roscas Npt & Bsp

Appendix F – Accessing an SLC 5/03 Processor via Ethernet Using MVI46-DFNTMVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 111 of 118 November 9, 2004

Step 4- Use the New Driver to Connect to the SLC You can now use the new driver created during the previous step to access the SLC processor. Open the RSLogix 500 and click on Comms > System Comms in order to view all configured drivers. Click on the newly created driver. The SLC 5/03 processor appears on the screen. Select the processor and click Online. You now have an Ethernet connection to an SLC 5/03 processor.

Step 5 – (Optional) Configure the Port 3 Pass-Through Once you configure the MVI46-DFNT pass-through server, you may configure Port 3 to receive DF1 commands in order to allow access from a DF1 Master to the SLC data file.

Page 112: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC PlatformAppendix F – Accessing an SLC 5/03 Processor via Ethernet Using MVI46-DFNT EtherNet/IP Interface Module

Page 112 of 118 ProSoft Technology, Inc. November 9, 2004

In order to accomplish this, refer to the DF1-Pass-Through Port Section at the MVI46-DFNT configuration file.

[DF1 Pass-Through Port] Enabled : Y #Y=Use port, N=Do not use port Local Station ID : 1 #DF1 node address Protocol : Full #F=Full-Duplex, H=Half-Duplex Termination Type : CRC #B=BCC, C=CRC Baud Rate : 19200 #Baud rate for port 110-115200 Parity : None #N=None,O=Odd,E=Even,M=Mark,S=Space Data Bits : 8 #5, 6, 7 or 8 Stop Bits : 1 #1 or 2 RTS On : 0 #0-65536 mSec before message RTS Off : 0 #0-65536 mSec after message Use CTS Line : No #Use CTS modem control line (Y/N) Retry Count : 3 #Response failure retry count Request Timeout : 1000 #Request messgage timeout (0-65535 mSec) Busy Timeout : 500 #Port Busy timeout (0-65535 mSec) ACK Timeout : 100 #DLE-ACK timeout (0-65535 mSec)

Troubleshooting If you are being unable to connect the software converter to the MVI46-DFNT you might have to configure the communication parameter used in the network. In order to achieve a functional communication between the local PC and the SLC processor, it is required that all communication parameters at each part of the network should match. This means that the communication parameters configured at the following parts of the network should be the same: - SLC processor Channel 0 (Use RSLogix500) - MVI46-DFNT configuration (DF1 Pass-Through Server Port 1) - Serial/IP Software Converter - RSLinx RS-232 driver (use the auto-config feature)

Page 113: Roscas Npt & Bsp

Appendix F – Accessing an SLC 5/03 Processor via Ethernet Using MVI46-DFNTMVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 113 of 118 November 9, 2004

Page 114: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC PlatformAppendix F – Accessing an SLC 5/03 Processor via Ethernet Using MVI46-DFNT EtherNet/IP Interface Module

Page 114 of 118 ProSoft Technology, Inc. November 9, 2004

Page 115: Roscas Npt & Bsp

Appendix G - Frequently Asked Questions MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 115 of 118 November 9, 2004

Appendix G - Frequently Asked Questions How do I set up the MVI46-DFNT? The module must be configured using RSLogix in order to be recognized by the software. You don’t have to worry about this step if you are using the sample ladder logic shipped with the module since the module is already configured in the I/O configuration. Check the User Manual for details about each parameter. Finally, you must copy the sample ladder logic to your ladder application. It is strongly suggested that the sample ladder logic is used. How does the MVI46-DFNT communicate with the SLC? The communication between the SLC and the MVI46-DFNT is performed through the backplane. The module’s internal database in constantly copied to the M1 file and vice versa. The SLC uses a simple COP instruction to write (or read) values to the module as described in the sample ladder logic. How do I monitor the MVI46-DFNT internal database? You can use the debug port interface by selecting the ‘D’ key (Database View). The database can be viewed in decimal, hexadecimal or ASCII format. You can also copy the M1 file (which is a copy of the MVI46-DFNT database) to the SLC memory. How do I set up the MVI46-DFNT IP address? Using an ASCII terminal to access the debug port, you can select the network menu by selecting ‘@’. You can then copy the current network configuration file to a PC (WATTCP.CFG). How can I send commands from the MVI46-DFNT? You must add commands to the current command list in the configuration file and upload the file to the MVI46-DFNT. Can I control the commands from ladder logic? Yes, using blocks 3000 to 3002, you can change the Enable field on commands that are already defined in the configuration file. You can disable or enable (continuously or conditional). How do I transfer files to the module? The configuration file can be transferred using the ASCII Terminal used to connect to the debug port. Selecting option ‘R’ will force the module to wait for a configuration file. The user should then send the file using the menu bar in the ASCII Terminal software. Should I use the sample ladder? Yes, the sample ladder shows how to use all module features and should be used as the source. It also shows the correct module configuration in RSLogix (I/O configuration).

Page 116: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix G - Frequently Asked Questions EtherNet/IP Interface Module

Page 116 of 118 ProSoft Technology, Inc. November 9, 2004

Page 117: Roscas Npt & Bsp

Appendix H - Support, Service, and Warranty MVI46-DFNT ♦ SLC Platform EtherNet/IP Interface Module

ProSoft Technology, Inc. Page 117 of 118 November 9, 2004

Appendix H - Support, Service, and Warranty Technical Support ProSoft Technology survives on its ability to provide meaningful support to its customers. Should any questions or problems arise, please feel free to contact us at:

Factory/Technical Support ProSoft Technology, Inc.

1675 Chester Avenue, Second Floor Bakersfield, CA 93301

(661) 716-5100 (661) 716-5101 (fax)

E-mail address: [email protected] Web Site: http://www.prosoft-technology.com

Before calling for support, please prepare yourself for the call. In order to provide the best and quickest support possible, we will most likely ask for the following information (you may wish to fax it to us prior to calling):

1. Product Version Number 2. System hierarchy 3. Module Operation

- Configuration/Debug status information - LED patterns

4. Information about the processor and user data as viewed through RSLogix 500 and LED patterns on the processor

5. Details about the TCP/IP network An after-hours answering system (on the Bakersfield number) allows pager access to one of our qualified technical and/or application support engineers at any time to answer the questions that are important to you. Module Service and Repair The MVI46-DFNT card is an electronic product, designed and manufactured to function under somewhat adverse conditions. As with any product, through age, misapplication, or any one of many possible problems the card may require repair. When purchased from ProSoft Technology, the module has a one-year parts and labor warranty according to the limits specified in the warranty. Replacement and/or returns should be directed to the distributor from whom the product was purchased. If you need to return the card for repair, obtain an RMA number from ProSoft Technology. Please call the factory for this number and display the number prominently on the outside of the shipping carton used to return the card. General Warranty Policy ProSoft Technology, Inc. (Hereinafter referred to as ProSoft) warrants that the Product shall conform to and perform in accordance with published technical specifications and the accompanying written materials, and shall be free of defects in

Page 118: Roscas Npt & Bsp

MVI46-DFNT ♦ SLC Platform Appendix H - Support, Service, and Warranty EtherNet/IP Interface Module

Page 118 of 118 ProSoft Technology, Inc. November 9, 2004

materials and workmanship, for the period of time herein indicated, such warranty period commencing upon receipt of the Product. This warranty is limited to the repair and/or replacement, at ProSoft's election, of defective or non-conforming Product, and ProSoft shall not be responsible for the failure of the Product to perform specified functions, or any other non-conformance caused by or attributable to: (a) any misapplication or misuse of the Product; (b) failure of Customer to adhere to any of ProSoft's specifications or instructions; (c) neglect of, abuse of, or accident to, the Product; or (d) any associated or complementary equipment or software not furnished by ProSoft. Limited warranty service may be obtained by delivering the Product to ProSoft and providing proof of purchase or receipt date. Customer agrees to insure the Product or assume the risk of loss or damage in transit, to prepay shipping charges to ProSoft, and to use the original shipping container or equivalent. Contact ProSoft Customer Service for further information. Limitation of Liability EXCEPT AS EXPRESSLY PROVIDED HEREIN, PROSOFT MAKES NO WARRANT OF ANY KIND, EXPRESSED OR IMPLIED, WITH RESPECT TO ANY EQUIPMENT, PARTS OR SERVICES PROVIDED PURSUANT TO THIS AGREEMENT, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANT ABILITY AND FITNESS FOR A PARTICULAR PURPOSE. NEITHER PROSOFT OR ITS DEALER SHALL BE LIABLE FOR ANY OTHER DAMAGES, INCLUDING BUT NOT LIMITED TO DIRECT, INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION IN CONTRACT OR TORT (INCLUDING NEGLIGENCE AND STRICT LIABILITY), SUCH AS, BUT NOT LIMITED TO, LOSS OF ANTICIPATED PROFITS OR BENEFITS RESULTING FROM, OR ARISING OUT OF, OR IN CONNECTION WITH THE USE OR FURNISHING OF EQUIPMENT, PARTS OR SERVICES HEREUNDER OR THE PERFORMANCE, USE OR INABILITY TO USE THE SAME, EVEN IF PROSOFT OR ITS DEALER'S TOTAL LIABILITY EXCEED THE PRICE PAID FOR THE PRODUCT. Where directed by State Law, some of the above exclusions or limitations may not be applicable in some states. This warranty provides specific legal rights; other rights that vary from state to state may also exist. This warranty shall not be applicable to the extent that any provisions of this warranty are prohibited by any Federal, State or Municipal Law that cannot be preempted. Hardware Product Warranty Details Warranty Period: ProSoft warranties hardware product for a period of one (1) year. Warranty Procedure: Upon return of the hardware Product ProSoft will, at its option, repair or replace Product at no additional charge, freight prepaid, except as set forth below. Repair parts and replacement Product will be furnished on an exchange basis and will be either reconditioned or new. All replaced Product and parts become the property of ProSoft. If ProSoft determines that the Product is not under warranty, it will, at the Customer's option, repair the Product using current ProSoft standard rates for parts and labor, and return the Product freight collect.

- - - - - - - - - - - - - - - - END OF MANUAL - - - - - - - - - - - - - - - - -