13Order data ..........................................................................................................177
13.1 Hardware modules and accessories................................................................................... 177
13.2 Modules for contact expansion ........................................................................................... 178
Leuze electronicMSI 4005
Page 6
1About this manual
Please read this section carefully before you work with these operating instructions and the MSI 400 gateways.
1.1Function of this document
There are three manuals for the MSI 400 system with clearly delineated areas of application as well as installation instructions and brief instructions for each module.
• This gateway manual describes all MSI 400 gateways and their functions in detail. It instructs the technical staff of the machine manufacturer or machine operator in the safe installation, configuration, electrical installation, commissioning, operation and maintenance of the MSI 400 gateways.
This manual does not provide operating instructions for the machine, which incorporates modular MSI
400 safety controls and a MSI 400 gateway. Information in this regard is provided in the operating instructions for each machine.
This manual is only valid in combination with the other MSI 400 manuals (see Scope of validity and ap-plicable documents [chapter 1.2]).
• The software manual describes the software-supported configuration and parameterization of the MSI
400 safety control. In addition, the software manual contains a description of the important diagnostic
functions for operation and detailed information for identifying and eliminating errors. Use the software
manual mainly when configuring, commissioning and operating MSI 400 safety controls.
• The Hardware manual describes all of the modules and their functions in detail. Use the hardware
manual mainly for designing devices.
• Each module contains the installation instructions/brief instructions. These instructions provide information on the fundamental technical specifications of the modules and contain simple installation instructions. Use the installation instructions/brief instructions when installing the MSI 400 safety control.
This manual contains original operating instructions in accordance with the Machinery Directive.
About this manual
1.2Scope of validity and applicable documents
This manual applies to the following gateway modules:
This manual is aimed at the planners, developers and operators of systems that incorporate modular
MSI 400 safety controls and that want to exchange data with a field bus (controls) via a gateway.
Leuze electronicMSI 4006
Page 7
It is also aimed at persons commissioning a MSI 400 gateway system for the first time or maintaining such
a system.
1.4Information depth
This manual contains information about the following topics related to MSI 400 gateways:
• Installation
• Integration into the network
• Configuration with the MSI.designer software
• Data transmission to and from the network
• State information, projection and associated mapping
• Item numbers
Important information
WARNING
Observing safety information and protective measures
Observe the safety information and protective measures for the MSI 400 gateways described in
this manual.
About this manual
Downloads are provided on the Internet
Also consult our website on the Internet. At the following link http://www.leuze.com, you will find:
• the MSI.designer software
• The MSI 400 manuals available for display and printing in various languages:
• This gateway manual (50134715)
• The hardware manual (50134711)
• The software manual (50134713)
• The GSD file of the MSI-FB-PROFIBUS for PROFIBUS-DP
• The EDS file of the MSI-FB-CANOPEN for CANopen
1.5Abbreviations and Definitions
TermExplanation
{ }An element array or an element structure
0bThe following are specified in binary format
0xThe following are specified in hexadecimal format
Procedure errorA procedure error occurs if, in redundant input circuits, the two input signals
are not equal. Monitoring of inequality is frequently carried out within a tolerated time window.
ACDAddress Collision Detection
ANSIAmerican National Standards Institute, specified character coding
AOIAdd On Instruction
AOPAdd On Profile
APIActual Packet Interval
ARApplication Relation, unique communication relationship in PROFINET IO
between the PLC and the device
AttributeCharacteristic or property of an object
BitData unit with a value of 0 or 1
BOOLData type specified for CIP devices; stands for a value of 1 byte, in which
each of the 8 bits is viewed individually
Leuze electronicMSI 4007
Page 8
About this manual
TermExplanation
Byte, BYTEData unit, representing a sequence of 8 bits; without a plus/minus sign, if not
specified
CIPCommon Industrial Protocol
Controller moduleController from the MSI 400 product family
CRCCyclic Redundancy Check, a type or the result of a hash function for reveal-
ing errors in the area of data storage or transmission
Data blockA data block contains 2-12 bytes of the relevant data set (depending on the
gateway used).
Data setDescribes a quantity of associated data, e.g. logic values or system state
data. A data set can consist of several data blocks.
I/OInput/output
EPATHEncoded Path, especially for CIP applications
EtherNet/IPIndustrially-used Ethernet network, combines standard Ethernet technologies
with CIP
GatewayConnection module for industrially-used networks, such as EtherNet/IP,
PROFIBUS DB, CANopen, Modbus TCP, etc.
IDAn identifier or an identity
InstanceThe physical representation of an object within a class. It stands for one of
several objects within the same object class. (Reference: CIP specification,
version 3.18)
IPInternet protocol
ClassA series of objects representing a similar system component. A class is a
generalization of the object, a template for defining variables and methods.
All the objects within a class are identical with regard to function and behavior. However, they may have differing attribute values. (Reference: CIP specification, version 3.18)
LSBLow Significant Byte
MPIMeasured Packet Interval; shows the API at the time of measurement
MSBMost Significant Byte
O→TOriginator to Target (sender to target device)
ODVAOpen Device Vendor Association
PCPersonal Computer
PCCCProgrammable Controller Communication Command
PLCProgrammable Logic Controller
RPIRequested Packet Interval
RXReceive
S/NSerial number
MSI.designerConfiguration software for controller modules of type MSI 4xx. The software
can be run on a PC and communicates with the controller modules.
ServiceService to be performed
Examples: GetAttributeSingle, SetAttributeSingle
SHORT_STRINGData type specified for CIP devices; stands for a character string (1 byte per
character, 1 byte length code)
SINTShort integer = 1 byte
Leuze electronicMSI 4008
Page 9
About this manual
i
TermExplanation
MSI 4xxSafety controller consisting of a controller module of the MSI 400 product
family, as well as optionally connectable expansion gateways and I/O modules.
MSI 430Controller module, which is equipped with safety inputs and outputs and
gateway functions, amongst other things
PLCProgrammable Logic Controller
( PLC)
Stuck-at highStuck-at high is an error in which the input or output signal gets stuck at On.
The causes for a Stuck-at high can be short-circuits to other input and output
lines, often called cross-references, or defective switching elements. Stuck-at
high errors are discovered through plausibility tests, such as sequence errors
in two-channel input circuits or using test pulses in input and output circuits.
Stuck-at lowStuck-at low is an error in which the input or output signal gets stuck at Off.
The causes of a stuck-at low can be line interruptions in input circuits or defect switching elements. Stuck-at low errors are discovered through plausibility tests and usually do not require immediate error recognition.
T→OTarget to Originator
TCPTransmission Control Protocol, Internet standard protocol for the transport
layer specified in RFC 793
Test pulses or scan gapsTest pulses or scan gaps are brief switch-offs / interruptions in input and out-
put circuits, which are generated in a targeted manner to detect stuck-at high
errors quickly. Test pulses check the switch-off ability of switching elements
during operation on an almost continuous basis.
Test pulse errorTest pulse errors are undetected test pulses, which lead to a negative test
result and thus switch-off of the affected safety circuits.
TXTransmit / Send
UCMMUnconnected Message Manager
UDINTUnsigned double integer = 4 Bytes = 2 Words
Data type specified for CIP applications
UDPUser Datagram Protocol, Internet standard protocol for the transport layer
specified in RFC 793
UDTUser Defined Type
UINTUnsigned double integer = 2 Bytes = 1 Word
Data type specified for CIP applications
USINTData type specified for CIP applications, which stands for 1 byte without a
plus/minus symbol
1.6Symbols/icons and writing style/spelling standard used
NOTICE
These are notes that provide you with information regarding particularities of a device or a software function.
Leuze electronicMSI 4009
Page 10
WARNING
Warning!
A warning lets you know about specific or potential hazards. It is intended to protect you from
accidents and help prevent damage to devices and systems.
Ä Please read and follow the warnings carefully!
Failure to do so may negatively impact the safety functions and cause a hazardous state to
occur.
Menus and commands
The names of software menus, submenus, options, and commands, selection fields, and windows are written in bold font. Example: Click on Edit in the File menu.
1.7Copyright and right to make changes
Copyright
This document is copyright-protected. The rights derived from this copyright are reserved for Leuze electronic. Reproduction of this document or parts of this document is only permissible within the limits of the
statutory provision of the Copyright Act. Any modification or abridgment of the document is prohibited
without the express written agreement of Leuze electronic.
Allen-Bradley, CompactBlock Guard I/O, CompactLogix, ControlFLASH, ControlLogix, DH+, FactoryTalk,
FLEX, GuardLogix, Kinetix, Logix5000, MicroLogix, PanelBuilder, PanelView, PhaseManager, PLC-2,
PLC-3, PLC-5, POINT I/O, POINT Guard I/O, Rockwell Automation, Rockwell Software, RSBizWare,
RSFieldbus, RSLinx, RSLogix 5000, RSNetWorx, RSView, SLC, SoftLogix, Stratix, Stratix 2000, Stratix
5700, Stratix 6000, Stratix 8000, Stratix 8300, Studio 5000, Studio 5000 Logix Designer, SynchLink, and
Ultra are registered trademarks of Rockwell Automation, Inc.
ControlNet, DeviceNet, and EtherNet/IP are registered trademarks of ODVA, Inc.
TwinCAT is a registered trademark of Beckhoff Automation GmbH.
EtherCAT is a registered trademark and a patented technology licensed by Beckhoff Automation GmbH.
Microsoft, Windows 98, Windows NT, Windows 2000, Windows XP, Windows 7, Windows 8, Windows 8.1,
Windows 10 and .NET Framework are registered trademarks of the Microsoft Corporation.
Any other product or trade names listed in this manual are the trademarks or registered trademarks of the
respective owners.
About this manual
Subject to change.
Subject to technical changes for reasons of continued development.
Leuze electronicMSI 40010
Page 11
2Safety
i
This section is intended to support your safety and the safety of the system users.
Ä Please read this section carefully before you work with a MSI 400 system.
2.1Qualified persons
A safety controller with MSI 400 gateways may only be installed, commissioned, and maintained by qualified persons.
Qualified persons are those who
• have suitable technical training and
• have been trained by the machine operator in the operation and applicable safety guidelines and
• have access to the MSI 400 system operating instructions and have read them and duly noted their
contents.
2.2Proper use
The MSI 400 gateways can only be operated in conjunction with a MSI 400 safety controller. The firmware
version of the connected controller modules must be at least V1.0.0 and the version of the MSI.designer
configuration software must be at least 1.0.0.
The MSI 400 gateways do not have their own power supply.
Safety
Specifications for use
WARNING
Do not operate a MSI 400 gateway on a safety field bus!
The gateway modules are not suitable for operation with a safety field bus!
They do not only generate safety-related field bus data (state bytes) for control and diagnostic
purposes. They do not support any safety mechanisms that would be required for communication within a safety network.
WARNING
Do not use data from a MSI 400 gateway for safety-related applications!
The MSI 400 gateways can be used to integrate non-safety-related data into the logic editor in
such a way that the safety function of the MSI 400 system may be adversely affected.
Ä Never integrate a gateway into a MSI 400 system without having this source or risk checked
by a safety specialist.
NOTICE
Requirements for domestic use
If you wish to use the MSI 400 system for domestic purposes, you need to take additional steps
to prevent the emission of radio frequency interference in limit class B according to EN 55011.
Here are some steps you might take:
Ä The use of interference suppressor filters in the supply circuit
Ä Installation in grounded switch cabinets or boxes
Specifications for installation
These modules may only be operated by qualified staff and may only be used on a machine on which they
have been installed and commissioned for the first time by a qualified person in accordance with this
manual.
WARNING
The safety instructions and precautions for use of MSI 400 gateways must be adhered to!
In the event of any other use or any changes to the device – including within the scope of installation – this shall nullify any warranty claim with respect to Leuze electronic GmbH.
Leuze electronicMSI 40011
Page 12
NOTICE
i
i
Ä Please follow the standards and guidelines valid in your country when installing and operat-
ing the MSI 400 gateways.
Ä The national/international legal regulations apply to the installation and use of the modular
MSI 400 safety controls as well as for the commissioning and repeated technical testing,
particularly the following:
– EMC Directive 2014/30/EU,
– the Use of Work Equipment Directive 2009/104/EC,
– the accident prevention/safety regulations.
Ä The manual must be provided to the operator of the machine on which the MSI 400- system
is to be used. The machine operator must be trained by qualified persons and is required to
read this manual.
2.3Environmentally friendly behavior
The modular MSI 400 safety control and the corresponding modules are designed such that they stress the
environment as little as possible. They use only a minimum of power and resources.
Ä Make sure that you also carry out work while always considering the environment.
2.3.1Disposal
The disposal of unusable or irreparable devices should always be done in accordance with the respectively
valid country-specific waste-elimination guidelines (e.g. European Waste Code 16 02 14).
Safety
NOTICE
We will be happy to help you in disposing of these devices.
Simply contact us.
2.3.2Sorting of materials
WARNING
Important information
Ä The sorting of materials may only be carried out by qualified persons!
Ä Care must be used when disassembling the devices. There is a risk of injuries during this
process.
Before you can route the devices to the environmentally-friendly recycling process, it is necessary to sort
the various materials of the MSI 400 devices.
Ä Separate the housing from the rest of the components (particularly from the PC board).
Ä Place the separated components into the corresponding recycling containers (see the following table).
Tab.2.1: Overview of disposal according to components
ComponentsDisposal
Product
Housing
PC boards, cables, connectors, and
electric connecting pieces
Plastic recycling
Electronics recycling
Packaging
Cardboard, paperPaper/cardboard recycling
Leuze electronicMSI 40012
Page 13
3Product description
i
MSI 400 gateways allow a MSI 400 system to transmit non-safety-related data for control and diagnostic
purposes to the external field bus system and to receive them.
Important safety information
WARNING
Do not operate a MSI 400 gateway on a safety field bus!
The gateway modules are not suitable for operation with a safety field bus!
They do not only generate safety-related field bus data (state bytes) for control and diagnostic
purposes. They do not support any safety mechanisms that would be required for communication within a safety network.
Information on the function, configuration and designations
NOTICE
Where not otherwise indicated, this manual always considers the data exchanged between the
MSI 400 system and the relevant network from the point of view of the network master (PLC).
Thus data sent to the network from the MSI 400 system is termed input data, while data received from the network is termed output data.
Product description
Configuration of MSI 400 gateways takes place via the MSI.designer configuration software, using a PC or
Notebook connected to the MSI 4xx main module via the USB interface or RJ45 Ethernet interface.
The safety-related logic of the MSI 400 system works independently of the gateway. However, if the system
has been configured in such a way that non-safety-related information from the field bus can be integrated
into the logic editor, switching off the gateway may result in availability problems.
A MSI 400 gateway can only be operated on a MSI 400 system. It does not have its own power supply. A
maximum of two MSI 400 gateways can be operated simultaneously for each system.
The gateway for Modbus TCP, PROFINET IO or EtherNet/IP is integrated into the MSI 430 controller module, while the gateways for Profibus-DP, CANopen or EtherCAT are housed in a 22.5 mm wide installation
housing for 35 mm hat rails in accordance with EN60715.
Order information: Order data [chapter 13]
3.1Version, compatibility, and features
There are various module versions and function packages for the MSI400 product family that enable various functions. This section will give you an overview as to which module version you will need to be able to
use a certain function or a certain device.
Tab.3.1: Versions of the gateway modules
GatewayModule nameVersion
EtherCATMSI-FB-ETHERCATA-02
PROFIBUS DPMSI-FB-PROFIBUSA-03
CANopenMSI-FB-CANOPENA-02
Info
• You can find the module version on the type plate of the modules.
• You will find the MSI.designer software version in the main menu.
• The latest software version is available in the Internet at the following address http://www.leuze.com.
• Newer modules are backwards-compatible, which means that each module can be replaced with a
module having a higher module version.
• You can find the date of manufacture for a device on the type plate in the S/N field in the format
<Product no.>yywwnnnnn (yy = year, ww = calendar week).
Leuze electronicMSI 40013
Page 14
3.2Equipment variants
i
There are three MSI 400 gateways for various network types.
The Modbus TCP / PROFINET IO and EtherNet/IP gateway of the MSI 430 controller module or the external MSI-FB-ETHERCAT gateway are suitable for Ethernet networks. The MSI-FB-PROFIBUS gateway
and the MSI-FB-CANOPEN gateway are external field bus gateways without an Ethernet function.
WARNING
Restrictions for Ethernet connections
Ä The Ethernet connection can only be linked to autonomous networks or demilitarized zones
(DMZ).
Ä The device must never be connected directly to the Internet.
Ä Always use secure data tunnels (VPN) to exchange data via the Internet.
Tab.3.2: Equipment variants and their main characteristics
GatewayNetwork typeEthernet IP socket interface
Product description
MSI-EN-MODModbus TCP with master and
slave operation
MSI-EN-PNPROFINET IO deviceUDP ports 34964, 49152
MSI-EN-IPEtherNet/IP deviceTCP port 44818, UDP port 2222
MSI-FB-PROFIBUSPROFIBUS DP slave- -
MSI-FB-CANOPENCANopen slave- -
MSI-FB-ETHERCATEtherCAT slave- -
NOTICE
You will find the manufacturing date of a device on the type label in the S/N field in the format
yywwnnnn (yy = year, ww = calendar week, nnnn = sequential serial number within a calendar
week).
3.3Data transferred to the network (network input data sets)
Available data
The MSI 400 gateways can provide the following data:
• Operating data
• Logic results from the MSI 400 safety controller (see Routing table [chapter 5.1.3])
• Input values (HIGH/LOW) for all MSI 400 input expansion modules in the system
• Output values (HIGH/LOW) for all MSI 400 input/output expansion modules (see Module state / in-put and output values [chapter 3.3.1])
• Output data from another network, i.e. data received from a second gateway in the MSI 400 system (see Transmission of data from a second network [chapter 3.3.3])
• Diagnostics
• Test values (CRCs): (see Configuration test values (CRCs) [chapter 3.3.4])
• Error and state information: Error and state information for the modules [chapter 3.3.5]
Client/Server on TCP Port 502
Data sets
The physical modules are not presented as typical hardware modules in the network. Instead, the data
provided by the MSI 400 system has been arranged in four input data sets.
• Data set1 (max. 50 bytes) contains the operating data. It can be compiled with the aid of MSI.designer. In the form in which it is delivered, the content of data set 1 is preconfigured; it can be freely
modified.
Details: see table "Overview of input data sets" [chapter 3.3]
Leuze electronicMSI 40014
Page 15
Product description
For the MSI-FB-PROFIBUS gateway, data set 1 was divided into five input data blocks, with data
blocks 1–4 each containing 12 bytes and data block 5 two bytes.
For the MSI-FB-CANOPEN gateway, data set 1 was divided into four blocks, each with 8 bytes.
You will find more detailed information in the corresponding section for each gateway.
• Data set 2 (32 bytes) contains the test values (CRCs) for the system configuration.
See table "Overview of input data sets 1-3 (basic settings for Modbus TCP)" below
• Data set 3 (60 bytes) contains the state and diagnostic data for the various modules, with four (4) bytes
per module, with the controller module comprising 3 x 4 bytes. Details: see table "Meaning of module
state bits" [chapter 3.3.5]
• Data set 4 (60 bytes) is currently filled with reserved values.
The following table provides an overview of which data sets are provided by which gateway.
The MSI-FB-CANOPEN is used to provide diagnostic data via CANopen SDO (service data objects).
More information about how to provide state and diagnostic data with the aid of the CANopen gateway
may be found here: CANopen gateway [chapter 10]
2)
Readable with instance 2 of class 120
3)
Readable with instance 3 of class 120 and byte 52 to 111 of assembly 167
Tab.3.4: Overview of input data sets 1–3 (basic setting for Modbus TCP)
Data set 1Data set 2Data set 3Data set 4
Byte 0Input values for Module 0
Project CRCModule state MSI 4xxReserved
(I1..I8)
Byte 1Input values for Module 0
Module state MSI 4xx
(I9..I16)
Byte 2Input values for Module 0
(IQ1..IQ4)
Byte 3Output values for Module 0
(Q1..Q4, IQ1..IQ4)
Byte 4Direct data (Off) 0System CRC
(PROFIBUS
Byte 5Direct data (Off) 1State of two-channel controller
DP and EtherCAT)
Test pulse comparison, controller module inputs
Test pulse comparison, controller module inputs
Test pulse comparison, controller module inputs
module inputs
Byte 6Direct data (Off) 2State of two-channel controller
module inputs
Byte 7Direct data (Off) 3Reserved
Leuze electronicMSI 40015
Page 16
Product description
Data set 1Data set 2Data set 3Data set 4
Byte 8Direct data (Off) 4ReservedStuck-at error at controller mod-
ule outputs
Byte 9Direct data (Off) 5Stuck-at error at controller mod-
ule outputs
Byte10Direct data (Off) 6Reserved
Byte11Direct data (Off) 7Reserved
Byte12Input values for Module 1State of Module 1
Byte13Input values for Module 2State of Module 1
Byte14Input values for Module 3State of Module 1
Byte15Input values for Module 4State of Module 1
Byte16Input values for Module 5State of Module 2
Byte17Input values for Module 6State of Module 2
Reserved
Byte18Input values for Module 7State of Module 2
Byte19Input values for Module 8State of Module 2
Byte20Input values for Module 9ReservedState of Module 3Reserved
Byte21Input values for Module 10State of Module 3
Byte22Input values for Module 11State of Module 3
Byte23Input values for Module 12State of Module 3
Byte24Output values for Module 1State of Module 4
Byte25Output values for Module 2State of Module 4
Byte26Output values for Module 3State of Module 4
Byte27Output values for Module 4State of Module 4
Byte28Output values for Module 5State of Module 5
Byte29Output values for Module 6State of Module 5
Byte30Output values for Module 7State of Module 5
Byte31Output values for Module 8State of Module 5
Leuze electronicMSI 40016
Page 17
Product description
i
i
Data set 1Data set 2Data set 3Data set 4
Byte32Output values for Module 9Not available State of Module 6Reserved
Byte33Output values for Module 10State of Module 6
Byte34Output values for Module 11State of Module 6
Byte35Output values for Module 12State of Module 6
Byte
36 …
Byte
47
Byte
48
Byte
49
Byte50Not availableState of Module 10
Byte
51
Byte
52 …
Byte
55
Byte
56
Byte
57
Byte
58
Not allocatedState of Module 7
…
Status of Module 9
State of Module 10
State of Module 10
State of Module 10
State of Module 11
…
Status of Module 11
State of Module 12
State of Module 12
State of Module 12
Byte
59
Length 50 bytes32 bytes60 bytes60 bytes
NOTICE
When two-channel input or output elements have been configured for an I/O module, only the
lowest bit constitutes the input or output state (on/off) for the corresponding element. It is represented by the tag name of the element. The highest bit represents the state of this input/output.
NOTICE
The input values in data set 1 do not represent the physical state at the input terminals, but the
pre-processed input values that are used for logic processing.
3.3.1Direct gateway output values
It is possible to write values directly from the Logic view to a gateway. Four bytes have been reserved for
this purpose in the basic settings for data set 1; however, up to the total number of 50 bytes of data set 1
may be configured as direct gateway output values. You can obtain additional information at: Direct gate-way output values [chapter 5.3].
State of Module 12
Leuze electronicMSI 40017
Page 18
3.3.2Module state / input and output values
The MSI 400 gateways can transmit the input and output states of all modules connected to the MSI 400
system to the network. Data set 3 contains a non-modifiable configuration. Moreover, data set 1 can be adapted to contain up to 4 bytes of collective state information. Only the input and output values for data set 1
have been predefined and these can be freely adapted. You will find more detailed information in the section on the relevant gateway, as well as in the following section: Configuration of gateways with MSI.de-
signer [chapter 5]
Module state
The MSI 400 gateways can transfer the state of the linked modules to the network. A total of 4 bytes are
available for this purpose.
Tab.3.5: Module state
Module stateSizeMeaningAssignment
Product description
Input data state2 bytesOne sum bit per module for the state of
the module inputs
0 = error 1 = no error
Output data state2 bytesOne sum bit per module for the state of
the module outputs
0 = error 1 = no error
Bit 0 = MSI 4xx
Bit 1 = 1.
Extension module
Bit 2 = 2.
Expansion module … Bit
13 = 1.
Gateway Bit 14 = 2. Gateway Bit 15 = reserved
You will find information about the meaning of the state bits at: software manual, Internal inputs for controller modules
Input and output values for the modules
• Input values for I/O modules
1 byte for data set 1 is available for every expansion module. The input values show the state of the
preliminary evaluation of the I/O module. This corresponds to the state of the element in the controller
module logic. The level at the associated terminal cannot be clearly detected from this, as the data may
be set to low, irrespectively of the level at the input terminal, by means of the cross-connection detection or two-channel evaluation (e.g. I1-18).
When two-channel input elements have been configured for an I/O module, only the lower-value bit
represents the pre-evaluation state of the corresponding element (e.g. bit 0 for I1 and I2, bit 2 for I3 and
I4, bit 4 for I5 and I6, bit 6 for I7 and I8). The higher-value bit (bit 1, 3, 5 and 7) is used as follows in this
case:
0 = error 1 = no error
• Output values for I/O modules
1 byte for data set 1 is available for every module with outputs. The output values indicate the state of
the control information from the logic of the controller module for the relevant element of the I/O module. The level of the associated terminals cannot be clearly detected from this, as the output may be
switched off via the cross-connection detection or the overload connection function.
When two-channel output elements have been configured for an I/O module, only the lower-value bit
represents the control information (e.g. bit 0 for Q1 and Q2, bit 2 for Q3 and Q4, bit 4 for Q5 and Q6, bit
6 for Q7 and Q8). The higher-value bit (bit 1, 3, 5 and 7) is not used as follows in this case (low):
3.3.3Transmission of data from a second network
If your MSI 400 system contains two gateways, it is possible to forward information which the first gateway
receives from a network (e.g. from a Modbus PLC) via the second gateway to a second network (e.g. to a
PROFIBUS master) and vice versa.
3.3.4Configuration test values (CRCs)
Data set 2 contains the following configuration check values of the MSI 400 system:
• Project CRC of the project file created with MSI.designer
• System-CRC, uniquely assigned to a module version, consisting of internal software and hardware version
Leuze electronicMSI 40018
Page 19
The CRCs are each 4 bytes in length. Data set 2 can be read only.
i
The project CRC with Modbus/TCP is transmitted in Big Endian format.
The system CRC is available from module version B-01.01 for PROFIBUS DP and EtherCAT.
3.3.5Error and state information for the modules
Data set 3 and 4 contain the state information for the modules that will be transferred to the network.
Ten bytes are transmitted for MSI 4xx controller module. For each MSI-EM-I8 and MSI-EM-IO84 I/O module, four bytes are transmitted in the Little Endian format, e.g. as a 32-bit word, with the first byte being
placed into the least significant byte of the whole number (extreme left) and the fourth byte into the most
significant byte of the whole number (extreme right).
Data sets 3 and 4 cannot be adapted.
Module status bits of the controller module MSI 4xx
The module state bits have the following meaning, if not otherwise indicated:
0 = error
1 = no error
Reserved bits have the value 1
NOTICE
Product description
You can find an explanation of the technical terms used below here: Abbreviations and Definitions [chapter 1.5]
Tab.3.6: Meaning of module state bits of controller module MSI 4xx (only for Modbus)
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Byte 0B2 statusCollective
error fast
shut-off
Byte 1Module
state output data
Byte 2I8 vs.
T2/4 test
pulse
comparison
Module
state of
input data
I7 vs.
T1/3 test
pulse
comparison
B1 statusConfigura
tion state
Reserved Reserved IQ3+IQ4
I6 vs.
T2/4 test
pulse
comparison
I5 vs.
T1/3 test
pulse
comparison
A1 statusExternal
power requirement
0: Overcurrent
1: no
overcurrent
I4 vs.
T2/4 test
pulse
comparison
module
state
IQ1+IQ2
power requirement
0: Overcurrent
1: no
overcurrent
I3 vs.
T1/3 test
pulse
comparison
Internal
module
state
Q3+Q4
power requirement
0: Overcurrent
1: no
overcurrent
I2 vs.
T2/4 test
pulse
comparison
Reserved
Q1+Q2
power requirement
0: Overcurrent
1: no
overcurrent
I1 vs.
T1/3 test
pulse
comparison
Byte 3I16 vs.
T2/4 test
pulse
comparison or
HW limit
frequency
I16
Byte 40: Cable
break at
I16
1: OK or
not used
Leuze electronicMSI 40019
I15 vs.
T1/3 test
pulse
comparison or
HW limit
frequency
I15
0: Cable
break at
I15
1: OK or
not used
I14 vs.
T2/4 test
pulse
comparison or
HW limit
frequency
I14
0: Cable
break at
I14
1: OK or
not used
I13 vs.
T1/3 test
pulse
comparison or
HW limit
frequency
I13
0: Cable
break at
I13
1: OK or
not used
I12 vs.
T2/4 test
pulse
comparison
IQ4 vs.
T2/4 test
pulse
comparison
I11 vs.
T1/3 test
pulse
comparison
IQ3 vs.
T1/3 test
pulse
comparison
I10 vs.
T2/4 test
pulse
comparison
IQ2 vs.
T2/4 test
pulse
comparison
I9 vs.
T1/3 test
pulse
comparison
IQ1 vs.
T1/3 test
pulse
comparison
Page 20
Product description
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Byte 5I15/I16
dualchannel
state
0: Error
1: ok or
not used
Byte 60: Inver-
sion error
I14 vs. I16
1: OK or
not used
Byte 70: I16
Stuck at
low
1: OK or
not used
Byte 8Q4
Stuck at
low
Byte 9IQ4 (Out-
put)
Stuck at
low
I13/I14
dualchannel
state
0: Error
1: ok or
not used
0: Inversion error
I13 vs. I15
1: OK or
not used
0: I16
Stuck at
high
1: OK or
not used
Q4
Stuck at
high
IQ4 (Output)
Stuck at
high
I11/I12
dualchannel
state
0: Error
1: ok or
not used
0: Frequency
difference
I14 vs. I16
1: OK or
not used
0: I15
Stuck at
low
1: OK or
not used
Q3
Stuck at
low
IQ3 (Output)
Stuck at
low
I9/I10
dualchannel
state
0: Error
1: ok or
not used
0: Frequency
difference
I13 vs. I15
1: OK or
not used
0: I15
Stuck at
high
1: OK or
not used
Q3
Stuck at
high
IQ3 (Output)
Stuck at
high
I7/I8
dualchannel
state
0: Error
1: ok or
not used
0: Phase
difference
I14 vs. I16
too low
1: OK or
not used
0: I14
Stuck at
low
1: OK or
not used
Q2
Stuck at
low
IQ2 (Output)
Stuck at
low
I5/I6
dualchannel
state
0: Error
1: ok or
not used
0: Phase
difference
I13 vs. I15
too low
1: OK or
not used
0: I14
Stuck at
high
1: OK or
not used
Q2
Stuck at
high
IQ2 (Output)
Stuck at
high
I3/I4
dualchannel
state
0: Error
1: ok or
not used
IQ3/IQ4
dualchannel
state
0: Error
1: ok or
not used
0: I13
Stuck at
low
1: OK or
not used
Q1
Stuck at
low
IQ1 (Output)
Stuck at
low
I1/I2
dualchannel
state
0: Error
1: ok or
not used
IQ1/IQ2
dualchannel
state
0: Error
1: ok or
not used
0: I13
Stuck at
high
1: OK or
not used
Q1
Stuck at
high
IQ1 (Output)
Stuck at
high
Module state bits of the I/O modules MSI-EM-I8 and MSI-EM-IO84
The module state bits have the following meaning, if not otherwise indicated:
0 = error
1 = no error
Tab.3.7: Meaning of the module state bits of the safe I/O modules MSI-EM-I8 and MSI-EM-IO84
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Byte 0 Reserved Collective
error fast
shut-off
Power
supply for
Q1 .. Q4
Configuration of
this mod-
Not used
(error history flag)
External
module
state
Internal
module
state
ule is
valid.
Byte 1 Module
state of
output
data
Byte 2 Test im-
pulse
comparison I8 vs.
X2
Module
state of
input data
Test impulse
comparison I7 vs.
X1
Reserved Reserved Two-
channel
evaluation
of input
I7–I8
Test impulse
comparison I6 vs.
X2
Test impulse
comparison I5 vs.
X1
Test impulse
comparison I4 vs.
X2
Twochannel
evaluation
of input
I5–I6
Test impulse
comparison I3 vs.
X1
Two-
channel
evaluation
of input
I3–I4
Test im-
pulse
compar-
ison I2 vs.
X2
Not used
("executing state")
Twochannel
evaluation
of input
I1–I2
Test impulse
comparison I1 vs.
X1
Leuze electronicMSI 40020
Page 21
Product description
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Byte 3 Q4 Stuck-
at low
0: Stuckat error
1: no
stuck-at
Q4 Stuckat high
0: Stuckat error
1: no
stuck-at
Q3 Stuckat low
0: Stuckat error
1: no
stuck-at
Q3 Stuckat high
0: Stuckat error
1: no
stuck-at
Q2 Stuckat low
0: Stuckat error
1: no
stuck-at
Q2 Stuckat high
0: Stuckat error
1: no
stuck-at
Q1 Stuck-
at low
0: Stuck-
at error
1: no
stuck-at
Q1 Stuckat high
0: Stuckat error
1: no
stuck-at
Module state bits of the MSI-EM-IO84NP I/O module
The module state bits have the following meaning if not otherwise indicated; normally only the first byte of
the total state is transmitted:
0 = error
1 = no error or reserved
Tab.3.8: Meaning of the module state bits of the MSI-EM-IO84NP expansion module
The module state bits have the following meaning if not otherwise indicated; normally only the first byte of
the total state is transmitted:
0 = error
1 = no error
Tab.3.9: Meaning of gateway module state bits
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Byte 0 Reserved Module
state output data
Module
state input data
Configuration
state
Not used
(error history flag)
Reserved Internal
module
state
Not used
("executing
state")
Byte 1Reserved
Byte 2 Reserved
Byte 3 Reserved
Example
Module 2 (MSI-EM-IO84) has a short-circuit after high (24 V) at output 3. The following module state is
transmitted to the network (only the first 20 of 60 bytes are shown):
The first relevant byte for the module 2 error described above is module state byte 0 for module 2. This is
byte 11 with the hexadecimal value FB (1111 1011):
Bit #76543210
Value 11111011
This corresponds to the error message "Summary of bits 0.5 to 0.7 (external error)", byte 0, bit 2 in the following table: "Meaning of module state bits of the secure I/O modules" [chapter 3.3.5]
The second relevant byte is the module state byte 3 for module 2. This is byte 08 with the hexadecimal
value EF (1110 1111):
Bit #76543210
Value 11101111
This corresponds to the error message "Short circuit monitoring of output 3, short circuit after high", byte 3,
bit 4 in the following table: "Meaning of module state bits of the secure I/O modules" [chapter 3.3.5]
NOTICE
Ä Reserved (for future use) = static 1 (no state change)
Ä Not used (can be 0 or 1 ), both values occur.
Ä If there is no module, all values - including the reserved values - are set to logical 1.
Status of module 1 (MSIEM-IO84)
State of module 2 (MSIEM-IO84)
FFFFFB
EF
…
…
Leuze electronicMSI 40022
Page 23
3.4Data received from the network (network output data sets)
i
The data from data set 1 (max. 50 bytes) received from the network may be differently arranged, depending on the protocol. For the Modbus TCP, this data set was divided into five data blocks, each with 10
bytes. In the MSI-FB-PROFIBUS gateway, output data blocks 1-4 each contain 12 bytes, while output data
block 5 contains 2 bytes. CANopen only defines 4 data blocks, each with 8 bytes.
Tab.3.10: Output data block 1–5 of the various gateways
Size of output data block
GatewayBlock 1Block 2Block 3Block 4Block 5
Product description
MSI-FB-PROFIBUS /
PROFINET IO
MSI-FB-CANOPEN8 bytes8 bytes8 bytes8 bytes–
MSI-FB-ETHERCAT /
Modbus TCP /
EtherNet/IP
The content of the output data blocks can be used in the logic editor, as well as made available for another
network via a second gateway within the MSI 400 system.
NOTICE
Ä In order to use network data in the logic editor or as input for another network, you must as-
sign a tag name for each bit to be used.
Ä Bits without specific tag names will not be available in the logic editor or for routing via a
second gateway. Detailed information about how to assign tag names for the data received
may be found in the corresponding sections of the chapters on the various gateways.
Ä You can monitor current communication with the network with the aid of input data state bits
for receiving data from the network and the output data state bit for transmitting data to the
network in the logic editor. When the gateway detects a communication error, both the content of the data sets and the associated state bit are set to zero (logical 0).
Ä When all communication fails, the data of the output data sets and the input data state bit
are set to zero (logical 0).
Ä When a connection is closed while others remain available, the LED MS or LED state will
flash red/green for a total of 10 seconds and an entry will be made in the error log. In this
case the state bits are not affected.
12 bytes12 bytes12 bytes12 bytes2 bytes
10 bytes10 bytes10 bytes10 bytes10 bytes
WARNING
Do not use the same output data block number for two different PLC connections or TCP/
IP sockets!
The output data block of the Ethernet gateways can be described in parallel via all communication interfaces or TCP/IP sockets (e.g. Modbus TCP/IP and Ethernet TCP/IP) if they make use
of the same output data block number. In this case the last message will always overwrite the
data received earlier.
Leuze electronicMSI 40023
Page 24
4Installation and basic configuration
4.1Installing/removing
4.1.1Installing modules on hat rail
WARNING
This is only for switch boxes with protection class IP 54 or higher!
The MSI 400 system is only suitable for installations in a switchbox having at least protection
class IP 54.
Notes
• Basic safety
Gateways and extension modules may not be removed or added when the operating voltage is
switched on.
• Grounding
The hat rail must be conductively connected to the protective conductor (PE).
• ESD protection measures
Note the suitable ESD protection measures during installation.
Failure to do so could result in damage to the internal safety bus.
• Protect connector openings
Undertake suitable measures so that no foreign bodies can penetrate connector openings, particularly
those for the program removable storage.
• Module width:
The modules are placed in a mounting box that is 22.5 mm or 45 mm wide depending on type.
• Quality of hat rail
The mounting boxes are suitable for 35 mm hat rails as per EN60715.
• Sequence of modules:
The MSI 400 system has the controller module on the far left. The two optional gateways follow directly
to the right next to the controller module. The expansion modules only follow thereafter.
• Save space for subsequent model replacement
The modules are connected via the plug connection integrated into the housing. Note that the MSI 400
modules must be pulled about 10 mm apart before a module replacement so that the corresponding
module can be removed from the hat rail.
• Standards to be considered
Installation according to EN50274
Installation and basic configuration
Step 1: Installing a controller module
Ä Using a screwdriver, pull the snap-on foot outward.
Ä Hang the module on the hat rail.
Important! Make sure that the shielding spring fits correctly.
The shielding spring of the module must be placed onto the hat rail so that it is secure and has good
electrical contact.
Leuze electronicMSI 40024
Page 25
Ä Fold the module onto the hat rail.
Installation and basic configuration
Ä Using a screwdriver, move the snap-on foot against the hat rail until the snap-on foot latches into posi-
tion with an audible click.
Ä Make sure that the module is securely seated on the hat rail.
Attempt to pull the module from the hat rail using slight pressure. If the module stays connected to the
hat rail during this test, then the installation is correct.
Step 2: Installation of gateways or expansion modules
Ä Using a screwdriver, pull the snap-on foot outward.
Ä Hang the module on the hat rail.
Important! Make sure that the shielding spring fits correctly.
The shielding spring of the module must be placed onto the hat rail so that it is secure and has good
electrical contact.
Leuze electronicMSI 40025
Page 26
Ä Fold the module onto the hat rail.
Installation and basic configuration
Ä Using a screwdriver, move the snap-on foot against the hat rail until the snap-on foot latches into posi-
tion with an audible click.
Ä Make sure that the module is securely seated on the hat rail.
Attempt to pull the module from the hat rail using slight pressure. If the module stays connected to the
hat rail during this test, then the installation is correct.
Ä If you are installing multiple modules:
Push the individual modules together in the direction of the arrow until the lateral plug connection
between the modules audibly latches into position.
Ä Install an end terminal into the module furthest to the left and another end terminal into the module fur-
thest to the right.
After installation
Once you have installed the modules, the following steps are required:
Leuze electronicMSI 40026
Page 27
• Connect the modules electrically.
• Configure modules (see: software manual).
• Check the installation before first commissioning.
Installation and basic configuration
Leuze electronicMSI 40027
Page 28
4.1.2Removing modules from the hat rail
End terminal
End terminal
Plug-in terminal
Step 1: Removing a controller module
Ä Deenergize the MSI 400 system.
Ä Remove plug-in terminals with wiring and remove the end terminal.
Installation and basic configuration
Ä If expansion modules or gateways are used:
Slide the controller module in the direction of the arrow until the lateral plug connection is disconnected.
Ä Unlock the module.
To do this, pull the snap-on foot of the module outward using a screwdriver.
Ä Fold the module away from the hat rail and remove it from the rail.
Step 2: Removing gateways and expansion modules
Ä Deenergize the MSI 400 system.
Ä Remove any plug-in terminals with wiring and remove the end terminals.
Leuze electronicMSI 40028
Page 29
Installation and basic configuration
End terminalEnd terminal
Plug-in terminal
Ä Pull the modules apart from one another individually in the direction of the arrow until the lateral plug
connection is disconnected.
Ä Unlock the module.
To do this, pull the snap-on foot of the module outward using a screwdriver.
Ä Fold the module away from the hat rail and remove it from the rail.
4.2Electrical installation
Switch off the power supply to the system!
It is possible for the system to be unexpectedly started while you are connecting the devices.
WARNING
Leuze electronicMSI 40029
Page 30
Installation and basic configuration
i
NOTICE
Ä MSI 400 gateways meet EMC conditions as set out in the EN 61000-6-2 specification for
use in an industrial environment.
Ä In order to ensure complete EMC safety, the hat rail must be connected to functional earth
(FE).
Ä The switch box or installation housing for the MSI 400 system must meet at least the re-
quirements of protection class IP 54.
Ä Installation according to EN 50274.
Ä Electrical installation as per EN 60204-1.
Ä The external power supply of the devices must be able to bridge a short-term power outage
of 20 ms in accordance with EN 60204-1.
Ä The power supply must meet the regulations for low-voltage with safe disconnection (SELV,
PELV) in accordance with EN60664 and EN50178 (equipping high-voltage systems with
electronic equipment).
Ä Ensure that all modules of the MSI 400 system, the connected protective devices and the
power supplies are connected to the same ground connection. The ground of the RS‑232 interface is internally connected to the ground of the power supply for the controller module
(A2).
Ä Connect the shielding of all field bus and Ethernet cables to functional earth (FE) just before
they lead into the switch box.
4.3Initial configuration steps
How do you configure gateways? This chapter provides some brief guidelines.
Tab.4.1: Guidelines for gateway configuration
StepDescription
1Establishing a link between the gateway and PC
See here for more detailed information:
Software manual, chapter "Connecting to the safety controller"
2Configure gateway
You will find detailed information in this regard at the following points in the gateway
manual:
• Modbus TCP gateway [chapter 6]
• PROFINET IO-Gateway [chapter 7]
• EtherNet/IP gateway [chapter 8]
• PROFIBUS DP gateway [chapter 9]
• CANopen gateway [chapter 10]
• EtherCAT Gateway [chapter 11]
3Transmitting and verifying the configuration
See here for more detailed information:
Software manual, chapter "Transferring the system configuration"
Leuze electronicMSI 40030
Page 31
5Configuration of gateways with MSI.designer
i
This chapter gives you an overview of how to configure gateways in MSI.designer. It explains
• how the graphical user interface is laid out for the gateway configuration inMSI.designer,
• how you can carry out typical configuration tasks connected to gateways in MSI.designer.
NOTICE
You will find more detailed information about the graphical user interface of MSI.designer in the
Software manual.
5.1The graphical user interface
You can edit the configuration for gateways in the graphical user interface of MSI.designer in the following
windows:
WindowBrief explanation
Gateway viewDepending on module configuration, shows two or three tabs
with the routing tables and additional gateway functionalities.
Details: Layout and content of the tabs [chapter 5.1.3]
Configuration of gateways with MSI.designer
Gateway docking windowShow inputs and outputs available for the gateway configura-
5.1.1Activating gateway functionality
The Gateway view is only available in MSI.designer when you actively use the gateway functionality. Basically you can set up the gateway functionality in two ways:
Scenario 1: You are using a gateway module
You implement the gateway functionality via a supplementary module, as indicated in the following example. Here the MSI-FB-CANOPEN module is used:
tion as a hierarchical tree structure.
Details: "Gateway” and “Properties” docking windows
[chapter 5.1.4]
Fig.5.1: Module configuration with gateway module
Leuze electronicMSI 40031
Page 32
Configuration of gateways with MSI.designer
Scenario 2: You are using the gateway function on the module MSI 430
You implement the gateway functionality via the controller module. In this case you must use the MSI 430
module as the controller module for the controller and explicitly set the gateway functionality there.
How to activate the gateway function on the MSI 430 module:
Ä Open the Modules docking window.
Ä Select the MSI 430 module.
Ä Open the Properties docking window.
Ä Select the desired gateway function from the Gateway selection list.
Fig.5.2: MSI 430 module with activated gateway function
5.1.2"Gateway" view
If you have activated the gateway functionality in MSI.designer automatically the Gateway view is active.
There you can edit the gateway configuration.
Setup
Depending on module configuration, in the Gateway view, you will see two or three tabs:
Module configurationSetup
You use a gateway module for
gateway configuration
In the Gateway view you see two tabs with the routing tables for the input and output values.
Example: MSI-FB-ETHERCAT module
Leuze electronicMSI 40032
Page 33
Module configurationSetup
Configuration of gateways with MSI.designer
You are using the gateway
function of the MSI 430 module
In the Gateway view you see an additional third tab Gateway configura-tion.
It contains the basic settings for the gateway function of the MSI 430
module:
Visualization
• If you are using several gateways
The Gateway view always only shows one gateway configuration. If you are using several gateways,
you can toggle between the configurations by making use of the Select data set view menu:
• When the program window is very small
If the window in which you have opened MSI.designer is very small, not all tabs may be shown.
In this case an arrow symbol will appear, allowing you to toggle between the tabs:
Commands
Via the command bar of the Gateway view, you have access to the following view-specific features:
Tab.5.1: Key
ElementDescription
Only with a connection to the controller:
Stops the controller.
Only with a connection to the controller:
Starts a stopped controller.
Zoom
This determines the size of the display in the Gateway view work area.
Undo
This renders the last action undone.
Redo
This makes an action that has been undone redone.
Standard
This resets the configuration of the gateways to the basic settings.
Also see: Basic settings for the process data [chapter 5.2.2]
Leuze electronicMSI 40033
Page 34
ElementDescription
Data set view selection
When you are using several gateways: Changes between the gateway configurations.
Importing/exporting
Allows for the import/export of the configuration defined in the Gateway
view.
Notes:
• Caution: When you import a configuration, all changes made before that
have not been saved will be lost. You cannot undo this command.
• Available storage formats: SPG, XML, CSV
You can use the import/export function to import the tag names used for
a project into a PLC program, or to export them from a PLC program into
MSI.designer.
Delete
This deletes the currently selected element.
Configuration of gateways with MSI.designer
Also see about this
2 Basic settings for the process data [}37]
5.1.3Layout and content of the tabs
The tabs of the Gateway view contain the following data and features:
Tab 1: Routing table with output values (data bytes)
Transmission direction: MSI 400 -> Network/field bus
The mapping is shown in tabular form. Bits which have been used appear on a dark blue background. In
online mode, the input data of the relevant gateway is displayed (byte display 0x00 at the start of the relevant line).
Fig.5.3: Routing table with output values
Tab 2: Routing table with input values (data bytes)
Transmission direction: Network/field bus -> MSI.designer
Visualization: as per Tab 1
Leuze electronicMSI 40034
Page 35
Configuration of gateways with MSI.designer
i
Fig.5.4: Routing table with input values
Tab 3: "Gateway configuration"
Tab 3 only appears if you have activated MSI-EN-MOD or MSI-EN-IP.
Fig.5.5: "Gateway configuration" tab for MSI-EN-MOD
NOTICE
Allocation of input and output data
The output and input data listed here refer directly to the data blocks in tab 1 and tab 2.
Ä Output data group (to the PLC):
Only data set 1 can be configured. This refers directly to Output data block 1 in tab 1.
Ä Input data (from PLC) group:
Data set 1 to data set 5 refer directly to input data block 1 to input data block 5 in tab 2.
5.1.4"Gateway” and “Properties” docking windows
In addition to the Gateway view, in the gateway configuration in MSI.designer you work with the following
windows:
"Gateway” docking window
From the Gateway docking window you can drag hardware data bytes into empty cells in the routing table
(Gateway view).
Leuze electronicMSI 40035
Page 36
Configuration of gateways with MSI.designer
i
Fig.5.6: Drag data bytes into the routing table using drag & drop
NOTICE
You can make use of the same data byte several times in the routing table.
"Properties” docking window
In the Properties docking window, the configuration dialog appears for the data byte which you have selected in the Gateway view.
Depending on the data byte, you can configure individual parameters. You can also allocate tag names
here.
Fig.5.7: Configuration dialog in the “Properties” docking window
5.2Function and basic settings
5.2.1Routing
The process diagram, transferred to the network from the MSI 400 gateway, comprises the operating data
(e.g. logic results, state of inputs and outputs) and the diagnostic data (e.g. module status, CRCs). This
data have been arranged in 4 data sets.
Tab.5.2: Content of data sets 1–4
Data setContentSizeConfigurable
1Process data50 bytesYes
2CRCs32 bytesNo
3State and diagnosis60 bytesNo
4Reserved60 bytesNo
Leuze electronicMSI 40036
Page 37
The process data in Data Set 1 may consist of up to 50 bytes, irrespective of the network protocol used.
These 50 bytes have been divided into one or several data blocks, depending on the network protocol. Detailed information about the modularization of the data sent to the network may be found in the section on
the relevant gateway and in the following table: "Preset configuration for process data transmitted in the
network" [chapter 5.2.2]
The content of data set 1 has been pre-configured with the addition of a gateway module or a gateway
function, but can be freely configured with a granularity of 1 byte (see Basic settings for process data[chapter 5.2.2] and Configuring the gateway output values (tab 1) [chapter 5.3]).
The diagnostic data in data sets 2-4 depends on the network protocol used and is described in the chapter
on the relevant gateway.
5.2.2Basic settings for the process data
After the addition of the gateway, the process data is pre-configured. Depending on the gateway used, this
data is divided into several data blocks.
The following table provides an overview of which bytes have been allocated to the preset configuration
and how the data at the various gateways are modularized.
Tab.5.3: Preset configuration for the process data transmitted in the network
Modbus TCPPROFIBUS DP
Configuration of gateways with MSI.designer
BytePreset allocationInitial data
Preset allocationInitial data
set
0Input values for Module 0
(I1..I8)
1Input values for Module 0
(I9..I16)
2Input values for Module 0
(IQ1..IQ4)
3Output values for Module 0
(Q1..Q4,IQ1-IQ4)
#1
(50 bytes)
Input values for Module 0
(I1..I8)
Input values for Module 0
(I9..I16)
Input values for Module 0
(IQ1..IQ4)
Output values for Module 0
(Q1..Q4,IQ1-IQ4)
4Direct data (Off) 0Direct data (Off) 0
5Direct data (Off) 1Direct data (Off) 1
6Direct data (Off) 2Direct data (Off) 2
7Direct data (Off) 3Direct data (Off) 3
8Direct data (Off) 4Direct data (Off) 4
9Direct data (Off) 5Direct data (Off) 5
10Direct data (Off) 6Direct data (Off) 6
11Direct data (Off) 7Direct data (Off) 7
block
#1
(12 bytes)
Leuze electronicMSI 40037
Page 38
Configuration of gateways with MSI.designer
Modbus TCPPROFIBUS DP
BytePreset allocationInitial data
Preset allocationInitial data
set
12Inputs for Module 1Continued
13Inputs for Module 2Inputs for Module 2
#1
Inputs for Module 1#2
(50 bytes)
14Inputs for Module 3Inputs for Module 3
15Inputs for Module 4Inputs for Module 4
16Inputs for Module 5Inputs for Module 5
17Inputs for Module 6Inputs for Module 6
18Inputs for Module 7Inputs for Module 7
19Inputs for Module 8Inputs for Module 8
20Inputs for Module 9Inputs for Module 9
21Inputs for Module 10Inputs for Module 10
22Inputs for Module 11Inputs for Module 11
23Inputs for Module 12Inputs for Module 12
24Outputs for Module 1Continued
25Outputs for Module 2Outputs for Module 2
#1
Outputs for Module 1#3
(50 bytes)
26Outputs for Module 3Outputs for Module 3
block
(12 bytes)
(12 bytes)
27Outputs for Module 4Outputs for Module 4
28Outputs for Module 5Outputs for Module 5
29Outputs for Module 6Outputs for Module 6
30Outputs for Module 7Outputs for Module 7
31Outputs for Module 8Outputs for Module 8
32Outputs for Module 9Outputs for Module 9
33Outputs for Module 10Outputs for Module 10
34Outputs for Module 11Outputs for Module 11
35Outputs for Module 12Outputs for Module 12
36-47Not allocatedContinued
#1
48-49Not allocatedNot allocated#5
(50 bytes)
The preset allocation of the bytes can be freely configured, as shown in the following section.
5.3Configuring the gateway output values (tab 1)
You can use the following settings for the output values of a gateway in tab 1:
Basic setting
Depending on the gateway function selected, you will find four or eight bytes in tab 1, which are reserved
as direct gateway output values. You can also see these bytes in the Logic docking window.
Example: MSI-FB-CANOPEN module with eight predefined outputs for gateways:
Not allocated#4
(12 bytes)
(2 bytes)
"Logic” docking window"Gateway" view
In the Logic docking window you see
In the Gateway view these four outputs appear in the first tab:
these four bytes Outputs:
Leuze electronicMSI 40038
Page 39
"Logic” docking window"Gateway" view
Configuration of gateways with MSI.designer
Change tag names of a predefined output value
Tag names have already been pre-assigned to the predefined output values (bytes). You can change these
tag names:
Ä In the Gateway view click on the byte, whose tag name you want to change.
Ä Open the Properties docking window.
Ä If you wish to change the tag name of the byte:
Overwrite the pre-allocated tag name of the byte with the desired new value in the configuration dialog.
Ä If you also want to change the tag names of individual bits:
Overwrite the pre-allocated values with the desired new value under Parameters in the configuration
dialog.
In the Logic view, these bits will appear with the corresponding tag names.
Leuze electronicMSI 40039
Page 40
Configuration of gateways with MSI.designer
Configuring additional direct gateway output values
You can add new output values (bytes) in addition to the pre-allocated output values in the Gateway view.
Ä Click on an empty byte in the Gateway view.
Ä Open the Properties docking window and assign a tag name for the byte in the configuration dialog.
ð Tag names for all bits are automatically pre-allocated under Parameters.
Ä If you also want to change the tag names of individual bits:
Overwrite the pre-allocated values with the desired new value under Parameters in the configuration
dialog.
In the Logic view, these bits will appear with the corresponding tag names.
5.4Editing the gateway input values (tab 2)
You can use the following settings for the output values of a gateway in tab 2:
Basic setting
Depending on the gateway function selected, you will find four or eight bytes in tab 2, which are reserved
as direct gateway input values. You can also see these bytes in the Logic docking window.
Example: MSI-FB-CANOPEN module with four predefined inputs for gateways:
"Logic” docking window"Gateway" view
In the Logic docking window you see
these four bytes under Inputs:
In the Gateway view, these four inputs appear in tab 2:
Leuze electronicMSI 40040
Page 41
Configuration of gateways with MSI.designer
"Logic” docking window"Gateway" view
Change tag names of a predefined input value
Tag names have already been pre-assigned to the predefined input values (bytes). You can change these
tag names:
Ä In the Gateway view click on the byte, whose tag name you want to change.
Ä Open the Properties docking window.
Ä If you wish to change the tag name of the byte:
Overwrite the pre-allocated tag name of the byte with the desired new value in the configuration dialog.
Ä If you also want to change the tag names of individual bits:
Overwrite the pre-allocated values with the desired new value under Parameters in the configuration
dialog.
In the Logic view, these bits will appear with the corresponding tag names.
Configuring additional gateway input values
You can add new output values (bytes) in addition to the pre-allocated output values in the Gateway view.
Ä Click on an empty byte in the Gateway view.
Leuze electronicMSI 40041
Page 42
Configuration of gateways with MSI.designer
i
Ä Open the Properties docking window and assign a tag name for the byte.
ð Tag names for all bits are automatically pre-allocated under Parameters.
Ä If you also want to change the tag names of individual bits:
Overwrite the pre-allocated values with the desired new value under Parameters.
In the Logic view, these bits will appear with the corresponding tag names.
5.5Monitoring process data
You can monitor your gateway configuration directly in MSI.designer. This can be done in simulation mode
(limited monitoring option) or by means of an active link to a MSI 400 system.
NOTICE
The MSI 400 gateways always show the actual physical state of the inputs and outputs of the
connected modules and equipment. This means that even when the force mode is active and inputs that are physically Low are forced to High (or vice versa), the actual physical state of these
inputs is transmitted to the PLC and not the (virtual) forced state. However, if one or several outputs change their state as a result of one or several inputs being forced, the changed state of
these outputs will also be transmitted to the PLC, as the actual physical state of the equipment
outputs has changed.
Simulation mode (offline mode)
You can test a gateway configuration offline in simulation mode. Use the logic analyzer for this purpose and
manually set the desired inputs to High or Low.
Leuze electronicMSI 40042
Page 43
Configuration of gateways with MSI.designer
i
Read here how to work with the simulation mode and logic analyzer: Software manual, chapter "Simulating
logic programming"
Monitoring with an active connection (online mode)
You can also test a gateway configuration online by establishing a link between MSI.designer and a MSI
400 system.
Read here how to activate the online mode and what you need to take into account: Software manual,
chapter "Connecting to the safety controller"
NOTICE
LED behavior for active connections
If you are linked to a MSI 400 installation, the status LEDs in the Modules view of MSI.designer
will light up in the same way as for the connected system.
Further information about the status LEDs may be found in the documentation for the relevant
module:
The controller module MSI 430 can be used for Modbus TCP. The internal MSI-EN-MOD (Modbus TCP
Gateway) is a component of the MSI 430 device and is activated by the gateway configuration:
Fig.6.1: Activation of Modbus TCP on the MSI 430 module
The Modbus TCP gateway supports the following:
• Modbus TCP with master and slave operation
• Ethernet TCP/IP socket interface, polling and auto-update function
6.1Interfaces and operation
The MSI 430 is equipped with a RJ-45 socket.
Modbus TCP gateway
Fig.6.2: Interfaces and display elements
Further information
• Here in this manual:
Diagnostics and troubleshooting [chapter 6.4]
• In the hardware manual:
Device state and LED displays in the controller modules
6.2Basic configuration – allocation of an IP address
The MSI 430 module is configured with the help of the MSI.designer configuration software.
Step 1: Insert module MSI 430
Ä Start MSI.designer and open the Modules docking window.
Ä Add the controller module MSI 430.
Ä Switch to the Project structure docking window.
Ä Click on the top element, which represents the controller.
Leuze electronicMSI 40044
Page 45
Ä Open the Properties docking window.
ð You will see the controller configuration dialog.
Modbus TCP gateway
Step 3: Store configuration
Ä Enter the following values under Control configuration:
- valid IP address
- subnet mask
- if required: valid IP address for a default gateway
OR:
Alternatively activate DHCP.
Ä Ensure that MSI.designer is connected to the MSI 400 system.
The MSI 400 system must not be in Run (Execute) mode. The Start/Stop button in the command bar
of the Modules view must be set to Start.
More detailed information on the link to the controls: Software manual, chapter "Connecting to the
safety controller"
Ä Click Send in the Properties docking window to transfer the configuration to the MSI 400 system.
6.3Configuration of the Modbus-TCP interface to the PLC - how the data are transferred
Application characteristics for Modbus TCP
• Support of standard addressing conventions for Modbus TCP
• Master and slave operation
Requirements for the PLC for Modbus TCP
• The PLC must support the Modbus TCP protocol.
• The PLC must either support the Read Holding Registers and Write Multiple Registers commands or
the Read/Write Multiple Registers command.
The configuration steps in this section determine how the data are to be transmitted to the higher-level
PLC.
There are two different methods of transmission for each transmission direction, i.e. MSI 400 to network
and network to MSI 400:
• Receiving method Polling/PLC requests (gateway as slave)
This method allows the PLC regularly to request data using polling.
Leuze electronicMSI 40045
Page 46
Modbus TCP gateway
i
When this method is used, the data are returned in the response to the data request. The PLC requests
data by accessing the receiving data address of the MSI 430 module via a read-holding-register telegram.
• The master receiving method gateway writes to the PLC (auto-update, gateway as master)
When the MSI-EN-MOD module sends data to the PLC, these are immediately written to a memory location in the PLC.
• Slave transmission method - PLC writes (gateway as slave)
With this method, the PLC sends telegrams to the MSI 430 module to write to the output data sets. For
this purpose, the PLC writes data into defined addresses.
• The master transmission method gateway reads from the PLC (auto-update, gateway as master)
With the master transmission method, the MSI 430 module polls the PLC for the output data sets.
NOTICE
The configuration is regarded as faulty when the IP address of the PLC is zero and the read
transfer mode and/or write transfer mode has been set for the master.
The number of possible connections to the PLC depends on whether the MSI 430 module is operated as a
master or as a slave. Depending on the setting, up to 6 PLCs can simultaneously address the MSI 430
module.
Tab.6.1: Maximum number of possible Modbus TCP connections for the individual operating modes
Operating mode of the MSI 430 moduleMaximum number of connections
Output data (to PLC): Gateway writes
Input data (from PLC): Gateway reads
Output data (to PLC): Gateway writes
Input data (from PLC): PLC writes
Output data (to PLC): PLC reads
Input data (from PLC): Gateway reads
Output data (to PLC): PLC reads
Input data (from PLC): PLC writes
The following table describes the configuration, depending on the transmission method:
Gateway is master
Tab.6.2: Configuration directive – gateway as master
Essential settings in the gateway configuration
(via MSI 430)
Choose Gateway writes to tag/file and/or Gateway reads from register to configure the gateway
as a master.
1 outgoing connection
1 incoming connection
1 outgoing connection
6 incoming connections
6 outgoing connections
1 incoming connection
6 outgoing connections
6 incoming connections
Settings required for the PLC program and/or in
the Modbus TCP configuration tool
–
Select which data are to be written to the PLC or
read from it.
Define where the selected data in the PLC memory
are to be written to: Enter the register address(es).
Example: "40001" and/or you can determine from
which location in the PLC memory the selected data
are to be read: Enter the register addresses.
Choose how often these data are to be transmitted. –
Leuze electronicMSI 40046
–
Ensure that the addresses allocated in the MSI 400
are available and that they contain the data intended for the MSI 400- system.
Page 47
Modbus TCP gateway
i
Essential settings in the gateway configuration
(via MSI 430)
Define from and to where the data in the ModbusTCP network are to be read and written: Enter the
IP address and the slot number of the PLC controller.
Gateway as slave
Tab.6.3: Configuration directive – gateway as slave
Essential settings in the gateway configuration
(via MSI 430)
Select PLC requests and PLC writes in the gateway configuration dialog.
–Select which data are to be written to the gateway
NOTICE
Settings required for the PLC program and/or in
the Modbus TCP configuration tool
–
Settings required for the PLC program and/or in
the Modbus TCP configuration tool
–
or read from it.
Ensure that the PLC program writes the data into
the addresses allocated to the gateway (see Table
"Data addressing for the MSI 430 as recipient[chapter 6.3]").
The address settings for the Modbus TCP gateway are 1-based. Please subtract 1 from the register address set in MSI.designer for a 0-based address setting.
Example: Register 1100 corresponds to the Modbus address 1099.
Master mode: MSI 430 reads from/writes to the PLC
Carry out the following steps to configure the gateway as a master:
Ä Change to the Gateway view and click on the Gateway configuration tab.
Ä Select the MSI 400 is Master/Client option at the very bottom of the Modbus mode section.
ð The settings required for master mode are activated automatically in the Output data (to PLC) and In-
put data (from PLC) sections.
Quick reference
You can make the following additional settings:
“Output data (to PLC)” section
Area highlighted in gray
Leuze electronicMSI 40047
Page 48
Modbus TCP gateway
“Output data (to PLC)” section
Selection listSet automatically: Determines the transmission method.
Value required for master mode:
Gateway writes to tag/file
All data sets in one tagOptional
Defines that all data sets are to be written to a single address in
the PLC memory.
In this case the register address defined for Data Set 1 will be
used.
Note:
The following two settings can be activated simultaneously. They
determine the frequency of data transmission.
Activating updates following
changes
Recommended
Determines that the MSI 430 module immediately updates the
data in the PLC as soon as changes are made to the data sets.
Activate heartbeat intervalRecommended
Use the heartbeat intervals which you defined in the Heartbeat
interval column to activate the update of the selected data sets.
Columns highlighted white
Data setDetermines which data are to be written to the PLC or read from
it.
Select the checkboxes for the desired data sets.
You will find a detailed description of the data sets here: Data
transferred to the network (network input data sets) [chapter 3.2]
RegisterDefine from and to where in the PLC memory the selected data
should be read and written.
Heartbeat interval (ms)Defines how often the data sets are to be updated.
Requirement: You have selected the option Activate heartbeat
interval (see above).
Register rangeShows the registers in the PLC to which the process data is writ-
ten.
“Input data (from PLC)” section
Selection list 1Set automatically: Determines the transmission method.
Value required for master mode:
Gateway reads from register
Selection list 2Defines which of the two modbus commands is used:
• Read holding registers:
Activates the Read holding registers command (see "Module commands" table below).
• Read input registers:
Activates the Read input registers command (see "Module
commands" table below).
Data set columnDetermines which data are to be written to the PLC or read from
it.
Mark the control boxes for the desired data sets for this purpose.
You will find a detailed description of the data sets here: Data
transferred to the network (network input data sets) [chapter 3.2]
Register columnDefine from and to where in the PLC memory the selected data
should be read and written.
Leuze electronicMSI 40048
Page 49
Modbus TCP gateway
i
i
“Input data (from PLC)” section
Column heartbeat intervalDefines how often the data sets are to be updated.
"Modbus mode” section
PLC IP address
Device ID
Maximum refresh time for PLCDefine the maximum rate (or the minimum time interval) for trans-
Ä Combine MSI.designer with the MSI 400 system and transmit the configuration.
More detailed information on the link to the controls: Software manual, chapter "Connecting to the
safety controller"
Write to the PLC
NOTICE
The following restrictions apply when the gateway operates as a master and writes the input
data sets to the PLC:
• The address of the input data sets (preset in MSI.designer) must be the same as defined in the PLC.
• The PLC variable that is to incorporate the data must meet the following conditions:
• in the address range 40xxxx (for Schneider Modicon PLC),
• an array of 16-bit words,
• long enough to contain the defined input data set array.
• All input data sets are transmitted to the PLC in 16-bit word format, with the first byte having the lowest
value, i.e. on the far right of the integer, while the second byte has the highest value, i.e. on the very left
of the integer.
The parameters define from and to where the data in the Modbus-TCP network are to be read and written:
mitting the data sets to the PLC. This setting depends on the processing speed of the PLC. Minimum = 10 ms, maximum = 65535
ms. The basic setting of 40 ms is suitable for most PLC
Note: When these values are greater than the heartbeat interval,
the heartbeat interval will be slowed down to this value.
Reading from the PLC
NOTICE
The following restrictions apply when the gateway operates as a master and reads the output
data sets from the PLC:
• The address of the output data sets must be the same as defined in the PLC.
Please note: The value of the Modbus addresses must be 1 lower than the register data. See also:
"Figure 8" in "MODBUS Application Protocol V1.1b3"
• The PLC variable from which the data are requested must meet the following conditions:
• They fall into the address range 40xxxx (for Schneider Modicon PLCs).
• There is an array of 16-bit words for the output data sets that is long enough to accommodate the
entire output data set.
• All output data sets are transmitted to the PLC in 16-bit word format, with the first byte having to be
placed as the lowest value, i.e. on the far right of the integer, while the second byte will have the
highest value, i.e. on the very left of the integer.
Slave/server mode - PLC reads from / writes to MSI 430
In this operating mode, the MSI 430 module provides the data as a slave at the request of the PLC. If this
operating mode is desired:
Ä Launch MSI.designer.
Ä Change to the Gateway view and click on the Gateway configuration tab.
Leuze electronicMSI 40049
Page 50
Modbus TCP gateway
i
i
Ä Select the MSI 400 is Slave/Server option at the very bottom of the Modbus mode section.
ð The minimum settings required for slave mode are activated automatically in the Output data (to PLC)
and Input data (from PLC) sections.
ð Unavailable options are grayed out.
You can make the following additional settings:
Tab.6.4: "Output data (to PLC)" and "Input data (from PLC)” sections
SettingDescription/procedure
Data set columnDetermines which data can be written to the PLC or read from it.
Mark the control boxes for the desired data sets for this purpose.
You will find a detailed description of the data sets here: Data
transferred to the network (network input data sets) [chapter 3.2]
Size (bytes) columnExact number of bytes to be read out or written. The number of
16-bit data types usual for TCP modbus is exactly half.
Register range columnRegisters to be addressed in MSI 430
Ä Combine MSI.designer with the MSI 400 system and transmit the configuration.
More detailed information on the link to the controls: Software manual, chapter "Connecting to the
safety controller"
PLC writes output data sets
The following restrictions apply when the PLC writes the output data sets:
• The equipment index must not be equal to zero.
• The telegram must be sent in Word format.
• All output data sets are transmitted to the PLC in 16-bit word format, with the first byte having to be
placed as the lowest value, i.e. on the far right of the integer, while the second byte will have the
highest value, i.e. on the very left of the integer.
PLC polls the input data sets
• The following restrictions apply:
• The equipment index must not be equal to zero.
• The PLC variable that is to incorporate the data must meet the following conditions:
• It falls into the address range 40xxxx (for Schneider Modicon PLCs).
• There is an array of 16-bit words that is long enough to accommodate the entire output data set.
• All input data sets are transmitted to the PLC in 16-bit word format, with the first byte having the lowest
value, i.e. on the far right of the integer, while the second byte has the highest value, i.e. on the very left
of the integer.
NOTICE
Configure the PLC data polling in such a way that a data telegram is exchanged at least every
minute between MSI 430 and the PLC. The TCP connection will otherwise be interpreted as not
used and terminated.
NOTICE
The data from the PLC to the MSI 430 module assumes the value zero in the MSI.designer logic
program if the Modbus TCP connection is terminated by the PLC itself or by a timeout.
Leuze electronicMSI 40050
Page 51
MSI 430 as slave – data addressing
The following table lists the addresses for reading out the data sets.
Unit ID 1
Tab.6.5: Data addressing for the MSI 430 as recipient
Modbus TCP gateway
Register
DescriptionAccessScope (words)
(Base 1)
1000Request data for all activated input data setsReading1..101
1)
1100Request data from input data block 1-5Reading1..25
1200Request CRC dataReading1..16
1300Request diagnostic dataReading1..30
1400ReservedReading1..30
2000Write all activated output data setsRead, write1..25
2)
2100Write data from output data set 1Read, write1..5
2200Write data from output data set 2Read, write1..5
2300Write data from output data set 3Read, write1..5
2400Write data from output data set 4Read, write1..5
2500Write data from output data set 5Read, write1..5
1)
Corresponds to all activated input data sets.
2)
Must correspond to all activated output data sets. Example: If only output data sets 1 and 2 have been
activated, 10 words (20 bytes) must be written. If all output data sets have been activated, 25 words (50
bytes) must be written.
Modbus commands and error messages
The MSI 430 module supports the following Modbus commands and error messages:
Tab.6.6: Modbus commands
Modbus commandValue
Read holding registers3
Read input1) registers4
Write single register6
Write multiple registers16 (10hex)
Read/write multiple registers23 (17hex)
1)
starting with module version A-03
Tab.6.7: Modbus error messages
Modbus error responseDescription
1 Function not permittedThe requested function is not supported
2 Data address not permittedUndefined data address received
3 Data value not permittedRequest with prohibited data values, e.g. insufficient
4 server errorsAn error occurred during execution of the server.
6.4Diagnosis and troubleshooting
You can find information on diagnosis of the MSI 400 system in the software manual.
data requested for a data set
Leuze electronicMSI 40051
Page 52
Tab.6.8: Troubleshooting on the MSI 430
ErrorPossible causePossible remedy
Key: LED off / LED flashes / LED lights up
Modbus TCP gateway
MSI.designer cannot set up
a connection to the MSI 400
gateway.
The MSI 430 module does
not provide any data.
LED PWR/
Green
EC
LED LINK
Green
LED ACT
Orange
• The MSI 430 module
has no power supply.
• The MSI 430 module is
not in the same physical
network as the PC.
• A different subnet mask
has been set in the
TCP/IP settings for the
PC.
• The module was been
preconfigured and has a
permanently set IP address or an IP address
allocated to a DHCP
server that has not been
allocated.
• The MSI 430 module
has been configured for
data transmission to the
PLC, but no Ethernet
communication has
been established or the
communication is faulty.
• Duplicate IP address
detected. Another network device has the
same IP address.
• Switch on the power
supply. Check the Ethernet wiring and the network settings of the P
and correct them where
necessary.
• Set the PC to a network
address 192.168.1.0
(The delivery state of
the MSI 430 module has
the address
192.168.1.4, which may
not be used for the PC).
• Alternatively activate
DHCP on the PC and
link the MSI 430 module
and the PC to a network, using an active
DHCP server.
• Check the communication settings in MSI.designer.
At least one Ethernet link
must be established.
• Set up the Ethernet link
on the PC, check the
Ethernet wiring, check
the Ethernet settings in
the PLC and in MSI.designer.
• If no Ethernet communication is required, deactivate the Ethernet
connections / PLC interfaces on the MSI 430.
• Correct the IP address
and switch the system
off and on again.
The MSI 430 module does
not provide any data.
LED PWR/
Green
EC
LED LINK
Green
LED ACT
Orange
• Configuration required.
• The configuration has
not yet been fully transmitted.
• The module version of
the controller module
does not support the
gateway function.
• Configure the MSI 430
module and transfer the
configuration to the system.
• Wait until the configuration has been fully transferred.
• Use the controller module with the required
module version.
MS LED
Red
(1 Hz)
Leuze electronicMSI 40052
Page 53
ErrorPossible causePossible remedy
Modbus TCP gateway
The MSI 430 module does
not provide any data.
LED PWR/
Green
EC
LED LINK
Green
LED ACT
Orange
MS LED
Green
The MSI 430 module does
not provide any data.
LED PWR/
Green
EC
MS LED
Green
(1 Hz)
The MSI 430 module functioned correctly after configuration but suddenly
provides no more data.
LED PWR/
Green
EC
LED LINK
Green
LED ACT
Orange
MS LED
Green
• No data set was activated.
• No Ethernet communication interface was activated.
The MSI 430 module is in
the “Stop” state.
• The MSI 430 module is
operated in slave mode,
the IP address is allocated by a DHCP server.
• Following a restart of
the MSI 430 module or
the DHCP server, another address was allocated to the MSI 430
module, which is unknown to the PLC.
• Activate at least one
data set.
The controller module is
stopped.
• Start the controller module (switch to Run
mode).
• Allocate a fixed IP address to the MSI 430
module.
or
• Reserve a fixed IP address for the MSI 430
module in the DHCP
server (manual assignment using the MAC address of the MSI 430
module).
The MSI 430 / the MSI 400
system is in the “Critical error” state.
LED PWR/
EC
LED LINK
LED ACT
MS LED
6.5State bits
The Modbus TCP Gateway MSI-EN-MOD sets status bits, which are available in the logic editor of MSI.designer for processing.
Tab.6.9: Meaning of the state bits MSI-EN-MOD[0] in the logic editor
Name of the state bitsSet to 1, if ...Reset to 0 ...
Output status... At least one output data byte was
Red
Green
Orange
Red
• The MSI 430 module is
not properly connected
to the other modules.
• The module connection
plug is dirty or damaged.
• Another module in the
MSI 400 system has an
internal critical error.
• The voltage supply for
the MSI 430 module is
or was outside the specifications.
sent without error.
• Plug the MSI 430 module in correctly.
• Clean the connection
plug and socket.
• Switch on the power
supply again.
• Check the power supply.
• Check the other modules of the MSI 400 system.
... If there is a missing Modbus
TCP connection to the PLC.
Input status... At least one input data byte was
sent without error.
Leuze electronicMSI 40053
... If there is a missing Modbus
TCP connection to the PLC.
Page 54
Name of the state bitsSet to 1, if ...Reset to 0 ...
Modbus TCP gateway
Internal state… The Modbus function in MSI 430
is ready for communication
From module version E-01.01:
If the Modbus function in MSI 430 is
ready for communication or if at
least one input or output byte was
downloaded or transmitted without
errors.
... If an error has occurred in the
Modbus function.
Leuze electronicMSI 40054
Page 55
7PROFINET IO-Gateway
i
The MSI 430 module can be used for PROFINET IO.
You will find the GSDM file and the equipment symbol for integration in a PLC of the product website of the
MSI 430 module on the Internet (http://www.leuze.com).
The internal MSI-EN-PN (PROFINET IO Gateway) module is part of the device MSI 430. You can activate
it in the configuration dialog of the MSI 430 module in the Properties docking window:
PROFINET IO-Gateway
Supported features
The MSI 430 module supports:
• PROFINET IO Conformance Class A
• Cyclical EA communication (RT)
• LLDP
• DCP
Currently not supported:
• SNMP
• Shared Input, Shared Device
• FSU
The number of PROFINET controllers (PLCs) which can simultaneous connect to a MSI 430 device via
PROFINET is limited to one.
• Auto MDI
• Auto negotiation
• I&M 1-4
• Equipment diagnostics, alarms
• MIB II
• Port statistics
7.1Interfaces and operation
Interfaces and operation are identical to that of the Modbus TCP Gateway.
Read the following section: Interfaces and operation [chapter 6.1]
7.2Basic configuration - Assigning a device name and an IP address
Configuration and diagnostics of the MSI 430 is possible both with the help of the MSI.designer configuration software and the PROFINET IO network programming tool (e.g. SIEMENS TIA Portal).
Configuration using PROFINET IO
In the delivery state, a MAC address is stored in every PROFINET IO field device such as the MSI 430
module. The symbolic name (NameOfStation) Test station is stored on the SD card in the delivery state.
NOTICE
Ä In accordance with IEC 61158-6-10 no capital letters are permitted for the symbolic name
(NameOfStation).
Ä This NameOfStation is used by the I/O controller (e.g. the PLC) to assign an IP address to
the field device.
Ä If the IP address is also used for other communication via Ethernet, such as TCP/IP or for
the configuration via Ethernet, please note that the PLC changes the IP address and can
thus interrupt the other communication.
Leuze electronicMSI 40055
Page 56
PROFINET IO-Gateway
i
The IP address is assigned in two steps.
Ä Assign a unique system-specific name to the Gateway, using either the network configuration tool such
as SIEMENS TIA Portal, or using the MSI.designer software. In MSI.designer this is the Connectionname.
Where do you edit the connection name in MSI.designer? Open the Project structure docking window
and there click on the Controller entry right at the top. Additionally open the Properties docking window and enter the desired value there in the configuration dialog under Connection name.
Ä A (unique) system-specific name can be used by the I/O-Controller (i.e. the PLC) to assign the IP ad-
dress to the gateway now before the system is booted.
NOTICE
The MAC address of the MSI 430 module is printed on the device's nameplate (Example:
00:07:17:02:03:05).
Using the Siemens TIA Portal to assign device names
In the Online accesses area, select the network card connected to the network which can be used to access the MSI 430 device. In the Assign name function area, edit the PROFINET device name field and
then select Assign name.
This will permanently assign the new device name to the MSI 430 device.
Fig.7.10: Assigning device names with the TIA portal
Assign device name via the software
Ä Launch MSI.designer and connect to the controller module MSI 430.
Ä Press the Stop button in the Modules view to stop the application.
Ä In the Modules view click on the blue background and open the Properties docking window.
ð You will see the controller configuration dialog.
Ä Edit the connection name and click the Send button.
Fig.7.1: Configuration dialog for the IP data and the device name
Leuze electronicMSI 40056
Page 57
PROFINET IO-Gateway
i
NOTICE
Ä The format of the device name must correspond to the specification of the PROFINET
standard.
Ä Ensure that the address for the default gateway matches the address set by the PLC for the
gateway. If no router is used, then Siemens Step 7 uses the same IP address for the default
gateway as for the MSI 430 module.
Ä If a project file with an active PROFINET IO is provided on the MSI 430 module, then only
one device in MSI.designer can be found by USB. If you would like to use the Ethernet to
connect with the MSI 430 module then select Edit in the Connect dialog, where you then
set the IP address of the MSI 430 module.
Set the IP address using the software
The IP address is typically assigned by the PROFINET IO controller (e.g. PLC). The MSI 430 module, however, also allows the configuration of the entire MSI 400 system via Ethernet TCP/IP. It can be necessary in
this case to already assign an IP address to the MSI 430 before the PROFINET IO network is set up. This
can also be done in the configuration dialog shown above.
Leuze electronicMSI 40057
Page 58
7.3PROFINET configuration of the gateway - how the data are transferred
i
The following steps are required to configure the communication between the PLC and the gateway.
NOTICE
This documentation does not address the installation of the PROFINET IO network or the other
components of the automation system project in the network configuration tool. It is assumed
that the PROFINET project in the configuration program, e.g. the SIEMENS TIA Portal, has
already been set up. The examples presented are based on configurations created with the help
of the SIEMENS TIA Portal.
Step 1: Install the device master file (GDSML file)
Before the MSI 430 module can be used for the first time as part of the network configuration tool, e.g. the
SIEMENS TIA Portal, the device master file (GSDML file) of the gateway must first be installed in the hardware catalog of the tool.
Ä Download the GSDML file and the equipment symbol from the product site of the MSI 430 module
(http://www.leuze.com).
Ä Follow the instructions for the installation of GSD files in the online help section or in the user manual
for the PROFINET network configuration tool.
If you are using SIEMENS TIA Portal, then the MSI 430 module appears in the following location in the
hardware catalog:
PROFINET IO-Gateway
Step 2: Add the gateway to the project
To make the system of the MSI 400 system available in the process diagram of the PLC, the gateway must
first be added to the hardware configuration. The procedure to be used depends on the hardware configuration software of the PLC used. Please also read the documentation for the corresponding software in this
regard.
The example below shows how the gateway is added to a SIEMENS TIA Portal project.
Ä Use Drag & Drop in the Network view to drag the device to the Ethernet PROFINET IO network.
Example:
Leuze electronicMSI 40058
Page 59
PROFINET IO-Gateway
Step 3: Configure the gateway properties
Ä Double-click the hardware symbol of the MSI 430 module.
Ä Configure the IP address, the device name, and the update interval of the cyclical I/O data exchange.
Select the Properties tab for this.
Leuze electronicMSI 40059
Page 60
PROFINET IO-Gateway
i
NOTICE
The PLC can only communicate with the MSI 430 module if the PLC software and the gateway
use the same gateway name.
In accordance with IEC 61158-6-10 no capital letters are permitted for the symbolic name
(NameOfStation).
Leuze electronicMSI 40060
Page 61
7.4PROFINET configuration of the gateway - which data are transferred
i
Cyclical data
The physical I/O modules are not presented in the PROFINET IO hardware catalog as typical hardware
modules in the network. Instead, the data provided by the MSI 400 system has been arranged in various
data blocks. Every data block represents a module in the PROFINET IO hardware catalog. The GSDML
supports 13 Slots in which the modules can be placed. This makes is possible to use each data set one
time (see illustration "Configuration" [chapter 7.4]).
Process data from module to PLC
The MSI 430 module provides 5 input data blocks (virtual device modules) which contain the process image. These can be exclusively placed in each corresponding slot 16 to 20.
NOTICE
Input data blocks 1 to 4 each contain 12 bytes, while input data block 5 contains 2 bytes.
The content of the input data blocks can be freely selected. The data assignment in MSI.designer is preconfigured in accordance with the following:
Tab.7.1: Predefined content of input data block 1 to 5 of the MSI 430 module
Input dataInput dataInput dataInput dataInput data
MSI 430
MSI 430
MSI 430
MSI 430
ues
ues
ues
ues
ues
I/O module 1
input values
I/O module 2
input values
I/O module 3
input values
I/O module 4
input values
I/O module 5
input values
I/O module 6
input values
I/O module 7
input values
I/O module 8
input values
I/O module 9
input values
I/O module 1
output values
I/O module 2
output values
I/O module 3
output values
I/O module 4
output values
I/O module 5
output values
I/O module 6
output values
I/O module 7
output values
I/O module 8
output values
I/O module 9
output values
Not allocatedNot allocated
Not allocatedNot allocated
Not allocatedNot available
Not allocated
Not allocated
Not allocated
Not allocated
Not allocated
Not allocated
Byte 9Logic data val-
ues
Byte 10Logic data val-
ues
Byte 11Logic data val-
ues
Length12 bytes12 bytes12 bytes12 bytes2 bytes
Byte offset012243648
Leuze electronicMSI 40061
I/O module 10
input values
I/O module 11
input values
I/O module 12
input values
I/O module 10
output values
I/O module 11
output values
I/O module 12
output values
Not allocated
Not allocated
Not allocated
Page 62
PROFINET IO-Gateway
i
i
1 byte for data set 1 is available for every expansion module. The input values show the state of the preliminary evaluation of the I/O module. This corresponds to the state of the element in the controller module logic. The level at the associated terminal cannot be clearly detected from this, as the data may be set to low,
irrespectively of the level at the input terminal, by means of the cross-connection detection or two-channel
evaluation (e.g. I1-18).
When two-channel input elements have been configured for an I/O module, only the lower-value bit represents the pre-evaluation state of the corresponding element (e.g. bit 0 for I1 and I2, bit 2 for I3 and I4, bit 4
for I5 and I6, bit 6 for I7 and I8).
The higher-value bit (bit 1, 3, 5 and 7) is used as follows in this case:
0 = error, 1 = no error
Further information
You will find information about how to configure the process diagram in the description of the (The graph-ical user interface [chapter 5.1]) user interface.
Data from the PLC to the MSI 430 module
There are 5 output data blocks having 10 bytes each. These can be exclusively placed in each corresponding slot 21 to 25.
The content of these data blocks can be used as input in the MSI.designer logic editor or forwarded to another network by a second gateway. Every bit to be used must be assigned a tag name in order to provide
the desired bits in the logic editor or for forwarding. Bits without tag names are not available.
Detailed information about how you can assign and adapt the tag names of the input and output data can
be found here:
Software manual, chapter "Adapting display names of project components"
NOTICE
The standard value of the gateway data bit is zero following activation of the MSI 430 device.
If the connection to PLC is terminated, then all of the gateway data bits in the MSI.designer logic
editor assume the value zero.
NOTICE
For output data with IOPS=Bad, all of the gateway data bits in the MSI.designer logic editor assume the value zero. This is the case, for example, if the PLC is stopped.
Settings in the PROFINET IO network configuration tool
Ä Only drag the required data blocks from the hardware catalog of the SIEMENS TIA Portal to the corres-
ponding slots of the MSI 430 module within the configuration table.
Leuze electronicMSI 40062
Page 63
PROFINET IO-Gateway
i
i
Fig.7.12: Configuration of the MSI 430 module
NOTICE
The input and output addresses indicate the location of the cyclical data in the memory. These
can be addressed via the absolute addresses %I and %Q in the SIEMENS TIA portal.
Acyclical data and alarms
Read out data
The PLC can read out the diagnostic data of the MSI 400 system. The diagnostic information is provided in
three data sets, data sets 2, 3, and 4:
Data set 2 comprises 32 bytes and contains the project file's CRC 32. This can only be placed in slot 32.
Data set 3 comprises 60 bytes and contains the status of MSI 430 module and the individual I/O modules.
This can only be placed in slot 33. See the following to interpret the status bits in data set 3: Table "Mean-
ing of the module status bits of the controller module" [chapter 3.3.5] and Table "Meaning of the module
status bits of the I/O modules" [chapter 3.3.5]
Data set 4 (auxiliary data) comprises 60 bytes and is currently filled with reserved values. This can only be
placed in slot 34.
NOTICE
Type and source of danger
Data set 4 in Slot 34 does not function with all versions of the SIEMENS TIA portal.
Information & Management
The MSI 430 module supports the I&M information defined in the PROFINET IO specification. The following I&M information can be read out:
Leuze electronicMSI 40063
Page 64
PROFINET IO-Gateway
i
Tab.7.2: Readable I&M information
NameSizeValue rangeI&MStorage loca-
tion
MANUFACTURER_ID
(Vendor ID)
ORDER_ID (Order ID)64 bytes"50132988 + 51 blank spaces and
Alarms can be acyclically read using the PROFINET IO alarm infrastructure. When an error in the MSI 400
system occurs, the PROFINET IO gateway sends a corresponding diagnostics alarm to the network. The
details of the diagnostics alarm (text and help) are then available through the SIMATIC PLC interface. The
RALRM (SFB54) function block in OB82 (diagnostics interrupt) allows you to make the details of the sent
alarm directly available in the PLC program.
NOTICE
All alarms are output to module 0.
The cause of the alarm is displayed by an error message from the GSDML file.
The possible causes of an alarm can be found in the software manual, Section "List of all error
messages".
2 bytes10 (= 0b1010)0MSI 430
16 bytes2SD card
54 bytes54 Byte à 0x00..0xFF3SD card
1)
7.5Diagnostics and troubleshooting
Information on the diagnosis of the MSI 400 system can be found in the software manual, Section "List of
all error messages".
Leuze electronicMSI 40064
Page 65
Tab.7.3: Troubleshooting on the MSI 430 module
ErrorPossible causePossible remedy
Key: LED off / LED flashes / LED lights up
PROFINET IO-Gateway
The MSI 430 module
does not provide any
data.
LED PWR/
Green
EC
LED LINK
Green
LED /ACT
Yellow
MS LED
Green
The MSI 430 module
does not provide any
data.
LED PWR/
Green
EC
LED LINK
Green
LED /ACT
Yellow
• The MSI 430 has been
configured for data
transmission to the PLC,
but no Ethernet communication has been established or the communication is faulty.
• Duplicate IP address
detected. Another network device has the
same IP address.
• Incorrectly formatted
PROFINET device
name
• Configuration required.
• The configuration has
not yet been fully transmitted.
• The module version
does not support any
PROFINET IO.
• PROFINET IO must be activated in the project file. At
least one Ethernet link must
be established. Check the
Ethernet wiring, check the
Ethernet settings in the
PLC and in MSI.designer.
• Correct the IP address and
switch the system off and
on again.
• Compare the device name
between the PROFINET
master and the MSI 430
module.
• Configure the MSI 430
module with a project file in
which PROFINET IO is activated and transfer the
configuration to MSI 430
module.
• Use an MSI 430 device
starting with module version B-xx.
MS LED
/
Red/green
The MSI 430 module
does not provide any
data.
LED PWR
LED LINK
Green
Green
LED /ACT
Yellow
MS LED
Green (1
Hz)
The MSI 430 module
does not provide any
data.
LED PWR/
Green
EC
LED LINK
Green
LED /ACT
Yellow
MS LED
Green
• The MSI 400 system is
in the stop state.
• The IP address for the
MSI 430 module is assigned by a DHCP
server. Following a restart of the MSI 430
module or the DHCP
server, another address
was allocated to the MSI
430 module, which is
unknown to the PLC.
• Start the controller module
(switch to Run mode).
• Either assign the MSI 430
module a permanent IP address or reserve a permanent IP address for the MSI
430 module in the DHCP
server (manual assignment
using the MAC address of
the MSI 430 module).
Leuze electronicMSI 40065
Page 66
ErrorPossible causePossible remedy
PROFINET IO-Gateway
The MSI 430 / the MSI
400 system is in the
“Critical error” state.
LED PWR
LED LINK
LED /ACT
MS LED
Green
Green
Yellow
Red
• The MSI 430 module is
not properly connected
to the MSI 400 modules.
• The module connection
plug is dirty or damaged.
• Another MSI 400 module has an internal critical error.
7.6Deactivation of the PROFINET IO function
If the MSI 430 device is started with an activated PROFINET IO function, then this function remains active
until the device is switched off.
For this reason, switch the device off after sending a project without PROFINET IO function. This is required, for example, if you convert the gateway function in the MSI 400 project from PROFINET IO to Modbus TCP.
7.7State bits
The PROFINET IO gateway MSI-EN-PN sets state bits, which are available in the logic editor of MSI.designer for processing.
Tab.7.4: Meaning of the state bits MSI-EN-PN[0] in the logic editor
• Insert the I/O module correctly. Clean the connection
plug and socket.
• Switch on the power supply
again.
• Check the other MSI 400
modules.
Name of the state bitsSet to 1, if ...Reset to 0 ...
Output state… Data from slot 16, 17, 18, 19, 20,
Input state… Data from slot 21, 22, 23, 24 or
Internal state… An AR (Application Relation) is
An Application Relation (AR) is a clear communication relationship between two communication partners,
for example a PLC and a device. The AR is initialized during PLC start-up. Cyclical input and output data,
acyclical data using read/write services and alarms are exchanged bidirectionally between the PLC and the
device within this AR.
7.8Optimizing performance
Only use the data blocks from the hardware catalog of the module that you actually need for your application.
Sequence the process data in the routing tables within a data block without gaps (see Layout and contentof the tabs [chapter 5.1.3]). Then check whether this will enable you to do without the use of individual data
blocks from the hardware catalog. This helps to reduce the number of data bytes periodically exchanged in
the network.
32 or 33 was transmitted without error.
25 was downloaded from a PLC
without error.
active.
… No AR (Application Relation)
exists.
… No AR (Application Relation)
exists.
... No AR exists.
Leuze electronicMSI 40066
Page 67
8EtherNet/IP gateway
i
This chapter describes the "EtherNet/IP-Gateway" function of the MSI 430 module.
The EtherNet/IP protocol is not described in this chapter. If you have little or no experience with this, please
refer to the ODVA documentation for more information. Some content can be found in the glossary (see
Abbreviations and Definitions [chapter 1.5]).
NOTICE
Use of the term “Device” in this chapter
This chapter uses the term “Device” as a synonym for the controller module MSI 430.
8.1Interfaces and operation
Interfaces and operation are identical to that of the Modbus TCP Gateway.
Read the following section: Interfaces and operation [chapter 6.1]
8.2Datasheet
The MSI 430 module supports EtherNet/IP from product version D-01.01. The following functions are integrated:
• Implicit message transmission (transport class 1)
• Explicit message transmission (transport class 3, connected)
• Device profile: Discrete universal I/O device
• UCMM Message Server (no connection)
• Supported objects: Message router, connection manager, port, identity, Ethernet link, TCP/IP, I/O point
and group (discrete), vendor class 0x78, assembly
• Up to five simultaneous encapsulation sessions (input and output)
• Assemblies of a variable size
• Supported addressing: Class/instance/attribute and symbol tag
• Agreement with CIP (Common Industrial Protocol) specification and with EtherNet/IP CIP specification,
according to table Module versions and referenced specification versions for EtherNet/IP [chapter 8.2]
• Details EDC file with ODVA conformity test
• Supported PCCC commands: Read and write word range, read and write input, read and write protected logic input with two and three address fields for connection to PLC 3, PLC 5, PLC 5/250, PLC 5/
VME, SLC 500, SLC 5/03, SLC 5/04 and MicroLogix-1000
• Automatic configuration of semi and full duplex connections as well as of connections with 10 and 100
Mbit/s.
• MS (module state) and NET (network) LED
EtherNet/IP gateway
Tab.8.1: Module versions and referenced specification versions for EtherNet/IP
Module versionCIP (Common Industrial Pro-
tocol) specification
up to D-01Version 3.18Version 1.19
from D-03Version 3.21Version 1.22
EtherNet/IP CIP specification
8.3Basic setup
8.3.1Basic configuration of PLC
This chapter briefly describes the basic configuration of the PLC.
Firstly, install the current EDS file for the MSI 430 module in your PLC configuration program. You can find
the current EDS file on the Internet at http://www.leuze.com. The following diagram shows you how you
can make the setting using the Logix Designer.
Leuze electronicMSI 40067
Page 68
EtherNet/IP gateway
Fig.8.13: Register the EDS file using the ESD Wizard in the Logix Designer
The article number is "50132988,50132989,50134315,50134316" and can be filtered according to the
vendor name "Leuze electronic" or a part of this name.
Fig.8.14: Selection of the module type in the Logix Designer
In the Internet Protocol tab in the Logix Designer, select Manually configure IP settings. Select the required IPv4 address and the appropriate network mask.
Leuze electronicMSI 40068
Page 69
EtherNet/IP gateway
Fig.8.15: IPv4 setting for the device in the Logix Designer
The MSI 430 module is a General Purpose Discrete I/O Device. For quick installation, use the connection
Logic Output (1 to 400) and Logic/Physical Input, if your PLC supports implicit message transmission.
The following figure shows the appropriate dialog in the Logix Designer.
Leuze electronicMSI 40069
Page 70
EtherNet/IP gateway
Fig.8.16: Basic connection selected in the Logix Designer
This connection comprises up to 50bytes for data transmission from the PLC to the MSI 430 module (assembly instance 37). This connection comprises up to 67bytes for data transmission from the MSI 430
module to the PLC (assembly instance 57). The following table offers an overview of these data bytes.
Tab.8.2: Data of the class 1 connection “Logic output (1 to 400) and logic/physical input”
Instance ByteAccessData type DescriptionSizeData range
370to49Write,
read
BYTE[50] Output bytes, configuration
via Input data block 1 to 5
1 to 50 Bytes 0 to 0xff
in MSI.designer
(More [chapter 8.5.2.1])
570to49ReadBYTE[50] Input bytes, configuration
1 to 50 Bytes 0 to 0xff
via Output data block 1 in
MSI.designer
(More [chapter 8.5.3.1])
50to65ReadBYTE[16] Bits of the input terminals
1 to 16 Bytes 0 to 0xff
(instance 401 to 528 of attribute 3 class 8, currently
not listed in MSI.designer)
(More [chapter 8.5.3.1])
66ReadBYTEBit7: Input state
Bit6: Output state
1 byte0x00, 0x40,
0x80, 0xc0
(currently not listed in
MSI.designer)
Other connections supported by the MSI 430 module are listed in the following table. You can find information on these assembly instances in the table "Overview of assembly databytes [chapter 8.5.1]".
Leuze electronicMSI 40070
Page 71
Tab.8.3: Class 1 connections supported by the MSI 430 module
EtherNet/IP gateway
Name of the connectionAssembly for data
from the PLC to MSI
4xx (O→T)
Assembly for data
from MSI 4xx to the
PLC (T→O)
Logic output (1 to 400) and logic/physical input3757
Logic output (1 to 400) and logic/state/system mode as-
37167
sembly
Logic output (81 to 400) and logic/physical input13857
Logic output (81 to 400) and logic/state/system mode
138167
assembly
Logic output (161 to 400) and logic/physical input13957
Logic output (161 to 400) and logic/state/system mode
139167
assembly
Logic output (241 to 400) and logic/physical input14057
Logic output (241 to 400) and logic/state/system mode
140167
assembly
Logic output (321 to 400) and logic/physical input14157
Logic output (321 to 400) and logic/state/system mode
Connection point 199(=0xc7) is used for Listen Only and connection point 198(=0xc6) for Input Only.
Both possess a data size of zero. This means that the PLC does not make any data available for the MSI
430 module.
If the PLC only requires process data from the MSI 4xx module, the user is recommended to use a connection with Input Only.
8.3.2Basic configuration of the controller module
The integrated gateway MSI-EN-IP (EtherNet/IP gateway) is a constituent part of the MSI 430 module.
Activating the gateway
You can activate the integrated gateway in the configuration dialog of the MSI 430 module in the Properties docking window:
Fig.8.1: Activation of EtherNet/IP in MSI.designer
Leuze electronicMSI 40071
Page 72
EtherNet/IP gateway
i
NOTICE
Selection of the MSI-EN-IP gateway is possible for modules of type MSI 430 from version
D-01.01.
Adapting the IPv4 data
The IPv4 data of the MSI 430 module can be adapted to the PLC settings in MSI.designer.
Requirement
During transmission of the IPv4 data, the device must not be in Run(Execute) mode. The command bar
must be displayed on the left above the Start command, as shown in the following illustrations. If this is not
the case, stop the device via the Stop button.
Required window layout
Fig.8.2: Setting of the IPv4 device data in MSI.designer
8.3.3Configuring the data to PLC
The data transferred to the PLC and thus from the target device to the sender (Target to Originator, T→O)
can be adapted in the "MSI 400 →MSI-EN-IP[0]" tab of the gateway configuration in MSI.designer. By default, the first three bytes contain data for the input terminals I1 to I16 (and IQ1 to IQ4 in the appropriate
configuration as an input). Byte 4 comprises data of the output terminals Q1 to A4 (and IQ1 to IQ4 in the
appropriate configuration as an output).
Bytes 12 to 23 comprise data for the input terminals I1 to I8 of the input/output expansion modules. Bytes
24 to 35 comprise data for the output terminals Q1 to Q4 of the expansion modules MSI-EM-IO84 or MSIEM-IO84NP. Bytes 4 to 11 comprise data of the logic editor and are called Direct Off.
This standard configuration can be adapted as shown here using drag & drop from the Gateway docking
window in the tabs for the gateway configuration:
Fig.8.19: Adding of bytes to the gateway process image (T→O) using drag-and-drop in MSI.designer
In addition, the tag names of all the bytes in MSI.designer can be added or edited, in order to be able to
use them in the Logic view of MSI.designer. User-defined names improve program legibility and
troubleshooting. Tag names can be configured in the Parameters section of the Properties docking window.
Leuze electronicMSI 40072
Page 73
Fig.8.20: Adding new data bytes (T→O) for use in the "Logic" view by configuring tag names
8.3.4Configuring the usage of data from PLC
Data transmitted by the PLC and thus by the sender to the target device (Originator to Target, O→T) can
be named in the "MSI-EN-IP [0]→MSI 400" tab for the gateway configuration in MSI.designer. By default,
the logic values Direct On0 to Direct On3 are assigned to the four first bytes. The names Data bit 0 to
Data bit 7 are assigned to each bit as standard. Each bit can be used in the Logic view of MSI.designer as
an unsafe input element, such as a Restart button or as a signal lamp.
Additional input elements for gateway data can be added as necessary by the configuration of additional
tag names.
EtherNet/IP gateway
Fig.8.21: Adding of a new data byte (T→O) for use in the logic editor by configuring the tag name.
Fig.8.3: Adding gateway data elements to the logic editor in MSI.designer via drag & drop
8.4Supported CIP Objects
8.4.1Identity Object
The identity object is required for all EtherNet/IP-based products. Instance 1, attribute 1 stands for the
Vendor ID. Leuze electronic GmbH is listed by the ODVA using the value 524.
Leuze electronicMSI 40073
Page 74
EtherNet/IP gateway
Instance 1, attribute 2 stands for the device types. The Open Type Code 0x07 stands for a discrete universal I/O device.
Instance 1, attribute 3 stands for the product code. It is of the type UNIT and thus comprises 2 bytes.
Instance 1, attribute 4 stands for the revision, that means the main and supplementary firmware version of
the MSI 430 module, which you can find in the MSI.designer software as the Diagnostics version. You
can see both details in the Properties docking window, if you select the controller module in the Modules
docking window after you have connected to the station.
Fig.8.4: Display of diagnostic version and hardware version in configuration dialog of the controller module
Instance 1, attribute 5 standard for the current state of the overall device. The data range is listed in the
Device state values table in class 1, instance 1, attribute 5 [chapter 8.4.1].
Instance 1, attribute 6 stands for the serial number of the device, which can be found under the hardware
configuration in MSI.designer. Instance 1, attribute 7 stands for the product name MSI 430.
Tab.8.4: Overview of the identity class (0x01) supported by the MSI 430 module
Class InstanceAttributeAccess Data typeDescriptionData range
10 = Class1ReadUINTRevision1
10 = Class2ReadUINTMax. instance1
10 = Class3ReadUINTNumber of instances1
10 = Class6ReadUINTMax. class attribute ID7
10 = Class7ReadUINTMax. instance attribute ID7
111ReadUINTVendor ID524 = 0x20c
112ReadUINTDevice type0x07
113ReadUINTProduct code [chapter
05001
8.4.8.3]
114ReadUSINT[2]Revision, software version
{1, 1} to {99,99}
The “left” byte is the main
section and is transmitted
first
115ReadWORDDevice stateSee next table
116ReadUDINTSerial number16010001 to
99539999
117ReadSHORT_
Product nameMSI 430
STRING
Leuze electronicMSI 40074
Page 75
EtherNet/IP gateway
Tab.8.5: Device state values of the MSI 430 module in class 1, instance 1, attribute 5
State valueDescriptionPossible system mode
0b0000 xxxx xxxx 0x01There is at least one EtherNet/IP connection
All the data of the Class 1 connections are also provided by the Assembly object. The following table offers
an overview of this assembly object.
Further information:
• Table Overview of assembly databytes of the MSI 430 module [chapter 8.5.1]
• Figure Data flow with usage of Assembly Instances [chapter 8.6.2]
(Shows the data flow in front of the PLC to the module MSI 430 and back from the point of view of the
individual assemblies.)
to a PLC (owner of the connection)
4 = Idle
5 = Run
7 = Critical error
21 = Force mode
Tab.8.6: Overview of the assembly class (0x04) supported by the MSI 430 module
Class Instance Attribute AccessData typeDescriptionData range
40 = Class 1ReadUINTRevision of the class2
40 = Class 2ReadUINTMax. instance167
40 = Class 3ReadUINTNumber of instances7
40 = Class 6ReadUINTMax. class attribute ID7
40 = Class 7ReadUINTMax. instance attribute ID4
4371ReadUINTNumber of members0
4373Read,
write
BYTE[50]Bits of the logic outputs [chapter
8.5.2] (Instance 1 to 400 of Class
See
1)
9)
4374ReadUINTNumber of data bytes50
4571ReadUINTNumber of members0
4573ReadBYTE[67]Input bits (Instance 1 to 528 of
See
1)
Class 8)
4574ReadUINTNumber of data bytes67
41381ReadUINTNumber of members0
Leuze electronicMSI 40075
Page 76
EtherNet/IP gateway
Class Instance Attribute AccessData typeDescriptionData range
41383Read,
write
BYTE[40]Bits of the logic outputs [chapter
8.5.2] (Instance 81 to 400 of
See
1)
Class 9)
41384ReadUINTNumber of data bytes40
41391ReadUINTNumber of members0
41393Read,
write
BYTE[30]Bits of the logic outputs [chapter
8.5.2] (Instance 161 to 400 of
See
1)
Class 9)
41394ReadUINTNumber of data bytes30
41401ReadUINTNumber of members0
41403Read,
write
BYTE[20]Bits of the logic outputs [chapter
8.5.2] (Instance 241 to 400 of
See
1)
Class 9)
41404ReadUINTNumber of data bytes20
41411ReadUINTNumber of members0
41413Read,
write
BYTE[10]Bits of the logic outputs [chapter
8.5.2] (Instance 321 to 400 of
See
1)
Class 9)
41414ReadUINTNumber of data bytes10
41671ReadUINTNumber of members0
41673ReadBYTE[112] Bits of the logic inputs, mode and
41674ReadUINTNumber of data bytes112
1)
See: Table Overview of assembly databytes of the MSI 430 module [chapter 8.5.1]
8.4.3Discrete Input Point Object
The discrete input point objects are part of the device profile Discrete universal I/O device.
If an error occurs at the terminal input of a specific instance between 401 and 528 and the MSI 430 module
is in Run mode, the value of the instance attribute 4 equals 1. In all other cases, the value equals 0.
Tab.8.7: Overview of the discrete input point objects (0x08) supported by the MSI 430 module
Class InstanceAttrib-
ute
80 = Class1ReadUINTRevision of the class2
80 = Class2ReadUINTMax. instance584
80 = Class3ReadUINTNumber of instances400 + 128 +
1)
See
state bytes
(More [chapter 8.5.3.2])
Access Data typeDescriptionData range
56
Logic + input
+ output
80 = Class6ReadUINTMax. class attribute ID7
80 = Class7ReadUINTMax. instance attribute ID4
81 to 400
1ReadUSINTNumber of attributes3
and 529 to
584
8401 to 528 1ReadUSINTNumber of attributes4
81 to 5282ReadUSINT[4]List of support attributes{1, 2, 3, 4}
Leuze electronicMSI 40076
Page 77
EtherNet/IP gateway
Class InstanceAttrib-
Access Data typeDescriptionData range
ute
8529 to 584 2ReadUSINT[3]List of support attributes{1, 2, 3}
81 to 4003ReadBOOLThe value of the input bit, con-
figured by the output data set1 in
0 = Off,
1 = On
MSI.designer, stands for the data
transferred by the logic of the controller module to the PLC.
81 to 4004ReadBOOLState of output data set 10 = OK
8401 to 416 3ReadBOOLValue of terminals I1 to I16 of the
0, 1
MSI 430 module
8401 to 416 4ReadBOOLState of terminals I1 to I16 of the
0, 1
MSI 430 module
8417 to 420 3ReadBOOLValue of terminals IQ1 to IQ4 of the
0, 1
MSI 430 module when configured
as an input
8417 to 420 4ReadBOOLState of terminals IQ1 to IQ4 of the
0, 1
MSI 430 module when configured
as an input
8421 to 430 3ReadBOOLReserved0
84313ReadBOOLValue of B1Voltage is...
0 = Outside
the tolerance
1 = Within
the tolerance
84323ReadBOOLValue of B2Voltage is...
0 = Outside
the tolerance
1 = Within
the tolerance
8421 to 432 4ReadBOOLReserved0
8425 + 8xn
to
432 + 8xn
3ReadBOOLValue of terminals I1 to I8 of the
MSI-EM-I8[n] / MSI-EM-IO84[n]
module,
0, 1
with n = 1 to 12
8425 + 8xn
to
432 + 8xn
= 528
8529 to 532 3ReadBOOLValue of terminals Q1 to Q4 of the
4ReadBOOLState of terminals I1 to I8 of the
MSI-EM-I8[n] / MSI-EM-IO84[n]
module,
where n = 1 to 12
0, 1
0, 1
MSI 430 module
8533 to 536 3ReadBOOLValue of terminals IQ1 to IQ4 of the
0, 1
MSI 430 module when configured
as an output
8533 + 4xn
to
536 + 4xn
3ReadBOOLValue of terminals Q1 to Q4 of the
MSI-EM-IO84[n] module,
where n = 1 to 12
0, 1
= 584
8.4.4Discrete Output Point Object
The discrete output point objects are part of the device profile Discrete universal I/O device.
Leuze electronicMSI 40077
Page 78
EtherNet/IP gateway
The MSI 400 system does not permit direct influencing of the security-oriented output terminals. Instead, up
to 400 databits can be specified. In this way, it is possible to use the input data blocks1 to5 in MSI.designer for bit-wise access. The simplest way to control output terminals with a PLC is by connecting the appropriate gateway bit to an output in the logic editor of MSI.designer. The following figure shows an example:
Fig.8.5: Direct connection of a gateway input bit to an output terminal of the MSI 430 module
WARNING
Check your application thoroughly for correctness!
Because the MSI.designer only checks for logic-internal connection errors, you have to check
the following aspects systematically yourself:
Ä Does your application agree with the results from the risk analysis and the avoidance
strategy?
Ä Have all of the applicable standards and guidelines been complied with?
If not, you are placing the machine's operator in danger.
Note that the output terminal is set to Off as standard and thus stands for the value “0”. This value is always used when the controller module is not in Run mode or it the output is not configured via the logic editor in MSI.designer.
The standard value of gateway output bits can be configured using attributes 5 and 6.
If there is a loss of connection between the PLC and the controller module, instance attribute 5 controls
whether the gateway data bit is set or not. The specified value is controlled by instance attribute 6.
A write request to attribute 3 of instances 1 to 400 is refused if the Assembly instance 37 [chapter 8.5.2.1]
is already linked to an active connection to a PLC.
A write request to attribute 3 of instances 81 to 400 is refused if the Assembly instance 138 [chapter 8.5.2]
is already linked to an active connection to a PLC.
A write request to attribute 3 of instances 161 to 400 is refused if the Assembly instance 139 [chapter 8.5.2]
is already linked to an active connection to a PLC.
A write request to attribute 3 of instances 241 to 400 is refused if the Assembly instance 140 [chapter 8.5.2]
is already linked to an active connection to a PLC.
A write request to attribute 3 of instances 321 to 400 is refused if the Assembly instance 141 [chapter 8.5.2]
is already linked to an active connection to a PLC.
Tab.8.8: Overview of the discrete output point objects (0x09) supported by the MSI 430 module
Class Instance Attribute Access Data typeDescriptionData range
90 = Class 1ReadUINTRevision of the class1
90 = Class 2ReadUINTMax. instance400
90 = Class 3ReadUINTNumber of instances400
90 = Class 6ReadUINTMax. class attribute ID7
90 = Class 7ReadUINTMax. instance attribute ID6
91 to 4001ReadUSINTNumber of attributes5
91 to 4002ReadUSINT[5]List of support attributes{1, 2, 3, 5, 6}
91 to 4003Write,
read
BOOLThe value of the logic output bit,
which is configured by the intput
0 = Off,
1 = On
data blocks 1 to 5 in MSI.designer, stands for the data transferred by the PLC to the logic of
the controller module.
Leuze electronicMSI 40078
Page 79
EtherNet/IP gateway
Class Instance Attribute Access Data typeDescriptionData range
91 to 4005Write,
91 to 4006Write,
8.4.5Discrete Input Group Object
The discrete input group objects are part of the device profile Discrete universal I/O device.
The object of class 29 plays a role with regard to the alarm bit. It collects the process alarms of all the input
terminals of the MSI 430 module as well as the safe input/output expansion modules in one bit. If an error
occurs at at least one input terminal and the MSI 430 module is in Run mode, the value of the attribute 5 of
instance 1 equals 1. In all other cases, the value equals 0.
Tab.8.9: Overview of the discrete input group object (0x1D) supported by the MSI 430 module
Class InstanceAttribute Access Data typeDescriptionData range
290 = Class 1ReadUINTRevision of the class1
290 = Class 2ReadUINTMax. instance1
290 = Class 3ReadUINTNumber of instances1
290 = Class 6ReadUINTMax. class attribute ID7
read
read
BOOLError action (specified value on
loss of connection to the PLC)
0 = Interfer-
ence value,
1 = Last
state
BOOLInterference value0 = Off, 1 =
On
290 = Class 7ReadUINTMax. instance attribute ID5
2911ReadUSINTNumber of attributes5
2912ReadUSINT[5]List of support attributes{1, 2, 3, 4, 5}
2915ReadBOOLGroup state of all input terminals
8.4.6Discrete Output Group Object
The discrete output group objects are part of the device profile Discrete universal I/O device.
The object of class 30 plays a role with regard to the alarm bit. It collects the process alarms of all the output terminals of a MSI 430 or MSI-EM-IO84 module in one bit. If an error occurs at at least one output terminal and the MSI 430 module is in Run mode, the value of the attribute 5 of instance 1 equals 1. If the
MSI 430 module is in Critical error mode, the attribute value is also 1. In all other cases, the value equals
0.
Tab.8.10: Overview of the discrete output group object (0x1D) supported by the MSI 430 module
Class InstanceAttribute Access Data typeDescriptionData range
300 = Class 1ReadUINTRevision of the class1
300 = Class 2ReadUINTMax. instance1
300 = Class 3ReadUINTNumber of instances1
(state of instances 401 to 420 of
class 8)
0 = No error,
1 = Error
300 = Class 6ReadUINTMax. class attribute ID7
300 = Class 7ReadUINTMax. instance attribute ID6
3011ReadUSINTNumber of attributes6
3012ReadUSINT[6]List of support attributes{1, 2, 3, 4, 5,
6}
3013ReadUSINTNumber of bound instances56
3014ReadUINT[56]Bound instances{1, ..., 56}
Leuze electronicMSI 40079
Page 80
EtherNet/IP gateway
Class InstanceAttribute Access Data typeDescriptionData range
3015ReadBOOLGroup state of all output termin-
8.4.7PCCC Object
PCCC (pronounced “P C Cube”) is used in several PLCs from Rockwell Automation/Allen Bradley, which
still continue to be used. It was developed before CIP and EtherNet/IP were defined. PCCC telegrams are
either:
a) Encapsulated in CIP packages (e.g. via EtherNet/IP)
b) The encapsulation of CIP packages.
The MSI 430 module supports the encapsulation of PCCC data in CIP packages, as described above under b). For this, the class ID 0x67 = 103 was specified.
The PCCC commands listed in the following table are supported by the MSI 430 module.
All PCCC-related data with a size of 16 bits (word) are available in the “Little Endian” format. This means
that the byte with the lowest value is executed first.
Tab.8.11: PCCC commands supported by the MSI 430 module
TypeCMDFNC DescriptionCommand supported by
PLC-5 0x0f0x00 Word Range Write [chapter 8.4.7.2]PLC‑3, PLC‑5, PLC‑5/250
PLC-5 0x0f0x01 Word Range Read [chapter 8.4.7.3]PLC‑3, PLC‑5, PLC‑5/250
SLC0x0f0xa9 Protected Typed Logical Write with 2 Address
Fields [chapter 8.4.7.7]
SLC0x0f0xaa Protected Typed Logical Write with 3 Address
Fields [chapter 8.4.7.9]
MicroLogix-1000, SLC500,
SLC5/03, SLC5/04
8.4.7.1PCCC Telegram Structure
Each request telegram comprises 7+5 header bytes.
Tab.8.12: PCCC request header
NameData typeDescriptionSizeData range
LengthUSINTHeader size1 byte7
VendorUINTVendor ID of the requester2 byte
S/NUDINTSerial number of the requester4 byte0 to 232-1
CMDUSINTCommand1 byte0x0f
STSUSINTState1 byte0
TNSWUINTTransport sequence number2 byte1 to 65535
FNCUSINTFunction code1 byte0x67, 0x68,
0xa2, 0xaa
Each answer telegram comprises 7+4 header bytes or 7+4+1 header bytes, if the state byte is 0xf0.
Leuze electronicMSI 40080
Page 81
EtherNet/IP gateway
Tab.8.13: PCCC reply header
NameData typeMeaningSizeData range
LengthUSINTHeader size1 Byte7
VendorUINTVendor ID of requester2 Byte
S/NUDINTSerial number of requester4 Byte0 to 232-1
CMDUSINTCommand of requester plus Bit 6 set1 Byte0x4f
STSUSINTStatus1 Byte0x00, 0x10,
0xf0
TNSWUINTTransport sequence number2 Byte1 to 65535
EXT STS USINTExtended Status, only present if STS=0xf00 to 1
Byte
8.4.7.2Word Range Write
The MSI 430 module supports “Write PLC-5 word range” according to the following table:
Tab.8.14: Data structure of PLC-5 Word Range Write
NameData typeMeaningData range
Packet offsetUINTOffset in number of elements
Total TransactionUINTnumber of elements in transaction
AddressBYTE[m]PLC-5 system address, m >= 2
PayloadUINT[n]2xn = Data byte count0 to 65535
The answer of the MSI 430 module does not contain any data, only a state.
8.4.7.3Word Range Read
The MSI 430 module supports “Read PLC-5 word range” according to the following table:
Tab.8.15: Read request data structure of PLC-5 word range
NameData typeDescriptionData range
Packet offsetUINTOffset as number of elements
Total TransactionUINTNumber of elements in the transaction0 to value dependent
on the assembly size
AddressBYTE[m]PLC-5 system address, m >= 2“0” to “:”, “A” to “Z”,
“a” to “z”
SizeUINTNumber of elements to be returned
Tab.8.16: Feedback to the MSI 430 module of Read PLC-5 word range
NameData typeDescriptionData range
PayloadUINT[n]2•n = number of data bytes (up to 244 bytes)0to65535
8.4.7.4Typed Write
The MSI 430 module supports “Write PLC-5 input” according to the following table:
Tab.8.17: Write data structure of PLC-5 input
NameData typeDescriptionData range
Packet offsetUINTOffset as number of elements
Leuze electronicMSI 40081
Page 82
EtherNet/IP gateway
NameData typeDescriptionData range
Total TransactionUINTNumber of elements in the transaction
AddressBYTE[m]PLC-5 system address, m >= 2See next table
Type IDBYTE[n]Data type and size, n >= 1
The answer of the MSI 430 module does not contain any data, only a state, see table PCCC reply header[chapter 8.4.7.1]. The UINT data format corresponds to writing the format of the word range.
Tab.8.18: Write address structure of PLC-5 input
AddressData typeNumber of
DescriptionData range
elements
$N37:xUINT[n]nOutput assembly of the device profile Discrete
0to65535
universal I/O device, x = 0 to 24, n = 25 - x
$N138:xUINT[n]nOutput assembly of the logic output, con-
0to65535
figured via the input data block 2 to 5 in
MSI.designer,
x = 0 to 19, n = 20 – x
$N139:xUINT[n]nOutput assembly of the logic output, con-
0to65535
figured via the input data block 3 to 5 in
MSI.designer,
x = 0 to 14, n = 15 – x
$N140:xUINT[n]nOutput assembly of the logic output, con-
0to65535
figured via the input data block 4 to 5 in
MSI.designer,
x = 0 to 9, n = 10 – x
$N141:xUINT[n]nOutput assembly of the logic output, con-
0to65535
figured via the input data block 4 to 5 in
MSI.designer,
x = 0 to 4, n = 5 – x
The data range of the number of elements is relative to the assembly sizes. See the table Overview of as-
sembly databytes of the MSI 430 module [chapter 8.5.1]
8.4.7.5Typed Read
The MSI 430 module supports “Read PLC-5 input” according to the following table:
Tab.8.19: Read request data structure of PLC-5 word range
NameData typeDescriptionData range
Packet offsetUINTOffset in number of elements
Total TransactionUINTNumber of elements in the transaction0 to value dependent on the
assembly size
AddressBYTE[m]PLC-5 system address, m >= 2“0” to “:”, “A” to “Z”, “a” to “z”
SizeUINTNumber of elements to be returned
The answer of the MSI 430 module is listed in the following table. The first byte of the type ID is 0x9a =
0b1001 1010, meaning that the data type is given in the following byte and the data size in the byte after
that. The fourth byte of the type ID is 0x42 = 0b01000010, standing for an integer data type of size 2.
Leuze electronicMSI 40082
Page 83
EtherNet/IP gateway
Tab.8.20: Feedback to the MSI 430 module for reading the data structure of the PLC-5 input
NameData typeDescriptionData range
Type IDBYTEData type and sizeBit0 to 3: 10 = Size specific-
ation in the next but one byte
Bit4 to 7: 9 = Type in the
next byte
Type IDBYTEData type9 = Field of the same ele-
ments
Type IDBYTENumber of following bytes1ton+1
Type IDBYTEData type and sizeBit0 to 3: 2 = UINT
Bit4 to 7: 4 = Integer
PayloadUINT[n]2⋅n = Number of data bytes0to65535
The command data of all assembly instances can be recorded using “Read input”.
In contrast to native addressing of EtherNet/IP assembly instances, the PLC-5 system address contains an
element offset which can be used.
The MSI 430 module supports fields (arrays) of UINT as PCCC data types. Due to the odd size of the assembly instance 57, the firmware contained in the MSI 430 module assigns an additional byte, to provide
an even number of bytes.
The address scheme supported by the MSI 430 module for Read PLC-5 input is shown in the following
table:
Tab.8.21: Read address structure of PLC-5 input
AddressData typeNumber
DescriptionData range
of elements
$N57:xUINT[n]nInput assembly of the device profile Dis-
crete I/O device ,
x = 0 to 33, n = 34 - x
$N167:xUINT[n]nInput assembly of:
Logic input bits
(n = 1-x to 25-x, x = 0 to 24)
System state and system mode
(n = 26-x, x = 0 to 25)
State bytes of the controller module
(n = 27-x to 56-x, x = 26 to 55)
Element 1 to 33:
0to65535
Element 34 Bit 0 to 7
(LSB): 0x00, 0x40, 0x80,
0xc0
Element 34 Bit 8 to 15
(MSB): 0
0to65535
Bit 0 to 7 (LSB):
System mode (1, 2, 3, 4,
5, 7, 21)
Bit 8 to 15 (MSB): System state (0x00, 0x40,
0x80, 0xc0)
0to65535
Example: “$N57:10” and “Total Transaction = 24” address elements 11 to 34 correspond to bytes 20 to 66
of assembly instance 57.
Note: Byte 67, which is not specified in assembly instance57, is also transferred.
Note: The position of the word data with system state and system mode are dependent on the requested
amount of data “x”.
8.4.7.6Protected Typed Logical Read with 2 Address Fields
The MSI 430 module supports “Read SLC-protected logic input” according to the following table:
Leuze electronicMSI 40083
Page 84
Tab.8.22: Request data structure for Read SLC-protected logic input with two address fields
NameData typeDescriptionData range
EtherNet/IP gateway
Byte sizeUSINTNumber of data bytes to be
read
Assembly instance 37: 0to50
Assembly instance 57: 0to67
Assembly instance 167: 0to112
File numberUSINTAssembly instance ID37, 57, 167
File typeUSINTData type0x89 = Integer data
Element numberUSINTOffset = ID of the first ele-
ment of the answer
Assembly instance 37: 0 to 24 – Size/2
Assembly instance 57: 0 to 33 – Size/2
Assembly instance 167: 0 to 55 – Size/2
Tab.8.23: Feedback to the MSI 430 module for Read SLC-protected logic input with two address fields
NameData typeDescriptionData range
PayloadUINT[n]2⋅n = Number of data bytes 0to65535
8.4.7.7Protected Typed Logical Write with 2 Address Fields
The MSI 430 module supports “Write SLC-protected logic input” according to the following table:
No support is required for assembly instances 138 to 141. The offset, i.e. the first byte, is instead specified
by the element number.
Tab.8.24: Request data structure for Write SLC-protected logic input with two address fields
NameData typeDescriptionData range
Byte sizeUSINTNumber of data bytes to be written0to50
File numberUSINTAssembly instance ID37
File typeUSINTData type0x89 = Integer data
Element numberUSINTOffset = ID of the first element to be sent back0 to 24 – Size/2
PayloadUINT[n]n = Size/20to65535
8.4.7.8Protected Typed Logical Read with 3 Address Fields
The MSI 430 module supports “Read SLC-protected logic input” according to the following table:
Tab.8.25: Request data structure for Read SLC-protected logic input with three address fields
NameData typeDescriptionData range
SizeUSINTNumber of data bytes to be
read
Assembly instance 37: 0to50
Assembly instance 57: 0to67
Assembly instance 167: 0to112
File numberUSINTAssembly instance ID37, 57, 167
File typeUSINTData type0x89 = Integer data
Element numberUSINTOffset = ID of the first ele-
ment of the answer
Assembly instance 37: 0 to 24 – Size/2
Assembly instance 57: 0 to 33 – Size/2
Assembly instance 167: 0 to 55 – Size/2
SubelementUSINTDoesn’t matter0 to 254 (for number of bytes 1)
8.4.7.9Protected Typed Logical Write with 3 Address Fields
The MSI 430 module supports “Write SLC-protected logic input” according to the following table:
Leuze electronicMSI 40084
Page 85
EtherNet/IP gateway
Tab.8.26: Request data structure for Write SLC-protected logic input with three address fields
NameData typeDescriptionData range
SizeUSINTNumber of data bytes to be written0to50
File numberUSINTAssembly instance ID37
File typeUSINTData type0x89 = Integer data
Element numberUSINTOffset = ID of the first element of the an-
SubelementUSINTDoesn’t matter0 to 254 (for number of
PayloadUINT[n]n = Size/20to65535
8.4.8Vendor Object
The Vendor Object with class ID = 0x78 provides CRC, status and diagnostic data which are not covered
by device profile General Purpose Discrete I/O Device. Furthermore it supplies an interface to input and
output data in a compressed and therefore network traffic saving format.
Note that several instances have different attribute types and numbers. Packing several data together into
this vendor object class is made for legacy reasons.
8.4.8.1Instance 1
Instance 1, attributes 1 to 50, supply input bytes configured by the output data set1 in MSI.designer. This
is data transferred by the logic of the controller module to the PLC.
8.4.8.2Instance 2
Instance 2, attribute 1, supplies the CRC of the active project file created by MSI.designer. Instance 2, attributes 2 to 8 are reserved for future applications.
0 to 25 – Size/2
swer
bytes 1)
8.4.8.3Instance 3
Instance 3, attributes 1 to 60 make state bytes available. The descriptions for each bit are listed in the table
State bytes of the controller module MSI 420/430 [chapter 8.4.8.7]. This data corresponds to data set 3,
which is described at various points in this document.
A value = 1 for bits in instance 3, attributes 1 to 60, stands for “OK”/”Not used”/”Reserved”. A value = 0
stands for “Fault” or “Error” or “Outside the limit”. “Doesn’t matter” means that the value can be equal to 0
or 1.
"EA module at Pos. n" with n = 1 .. 12 stands for the first to twelfth safe or unsafe expansion module.
8.4.8.4Instance 4
The instance 4, attributes 1 to 60 are reserved for future use. Values are zero and changes are reserved.
8.4.8.5Instance 5
Attribute 1 of instance 5 makes the system state/mode of the controller module available. The values are
listed in the following table:
Tab.8.27: System state/modes of the MSI 430 module
System state/modeValue
Supply voltage A1/2 available0
Initialization1
Configuration / project file required2
Configuration running / project file being downloaded3
Idle4
Leuze electronicMSI 40085
Page 86
EtherNet/IP gateway
i
System state/modeValue
Run5
Critical error7
Force mode21
8.4.8.6Instance 6
Attribute 1 of instance 6 makes the error code of the most recent error of the controller module available. A
value = 0 means that no error has occurred. Attribute 2 supplies the error code of the previous error, etc.,
up to and including attribute 5.
8.4.8.7Instance 7
Attributes 1 to 50 of instance 7 represent the input data blocks 1 to 5 in MSI.designer. They represent the
data transferred by the PLC to the logic of the controller module.
Attributes 1 to 50 of instance 7 possess the same data as assembly instance 37, byte 0 to 49.
NOTICE
You can find an explanation of the technical terms used below here: Abbreviations and Definitions [chapter 1.5]
Tab.8.28: Overview of th vendor-specific object (Leuze electronic, 0x78), supported by the MSI 430 module
Class InstanceAttributeAccess Data typeDescriptionData range
1200 = Class 1ReadUINTRevision of the class1
1200 = Class 2ReadUINTMax. instance4
1200 = Class 3ReadUINTNumber of instances4
1200 = Class 5ReadUINT[3]List of optional services{2, 0x4c, 0x4d}
1200 = Class 6ReadUINTMax. class attribute ID7
1200 = Class 7ReadUINTMax. instance attribute ID60
1201n+1ReadUSINTThe input byte “n”, con-
figured by the output dataset1 in MSI.designer,
stands for the data transferred by the logic of the
controller module to the
PLC.
n = 0 to 49.
12021ReadUDINTProject file CRC (data set 2) 0 to 232-1
12022to8ReadUDINTReserved (data set 2)0
1203n+1ReadBYTEState byte“n” of the control-
ler module,
for which n = 0 to 59
0to255
0to255
1204n+1ReadBYTEAdditional byte“n” of the
controller module,
for which n = 0 to 59
12051ReadUSINTMSI 430 System mode
(See [chapter 8.4.8.5])
Leuze electronicMSI 40086
0
1, 2, 3, 4, 5, 7,
21
Page 87
EtherNet/IP gateway
Class InstanceAttributeAccess Data typeDescriptionData range
1206nReadUDINTError code in the controller
0 to 232-1
module,
with n=1 for the most recently occurred error, n=2
for the previous error, etc.,
with n = 1 to 5
12061WriteUDINTClear error list in instance 60
1207n+1Write,
read
BYTEOutput bit “n”, which is con-
figured by the input data
0to255
blocks 1 to 5 in MSI.designer, stands for the data
transferred by the PLC to the
logic of the controller module. n = 0 to 49.
Tab.8.29: State bytes of the controller module MSI 420/430
ByteBit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
0Control-
ler module
State,
voltage
Controller
module
Collective
error fast
shut-off
Controller
module
State,
voltage B1
Controller
module
Configuration state
Controller
module
State,
voltage
A1/2
Controller
module
External
module
state
Controller
module
Internal
module
state
Reserved
B2
1Control-
ler module
Output
data
state
2Control-
ler module I8
Test
pulse error
3Control-
ler module I16
Test
pulse error or
HW limit
frequency
I16
4Cable
break at
I16
Controller
module
Input data
state
Controller
module I7
Test pulse
error
Controller
module
I15
Test pulse
error or
HW limit
frequency
I15
Cable
break at
I15
ReservedReservedController
module
IQ3+IQ4
overcurrent
Controller
module I6
Test pulse
error
Controller
module
I14
Test pulse
error or
HW limit
frequency
I14
Cable
break at
I14
Controller
module I5
Test pulse
error
Controller
module
I13
Test pulse
error or
HW limit
frequency
I13
Cable
break at
I13
Controller
module I4
Test pulse
error
Controller
module
I12
Test pulse
error
Controller
module
IQ4 (input)
Test pulse
error
Controller
module
IQ1+IQ2
overcurrent
Controller
module I3
Test pulse
error
Controller
module
I11
Test pulse
error
Controller
module
IQ3 (input)
Test pulse
error
Controller
module
Q3+Q4
overcurrent
Controller
module I2
Test pulse
error
Controller
module
I10
Test pulse
error
Controller
module
IQ2 (input)
Test pulse
error
Controller
module
Q1+Q2
overcurrent
Controller
module I1
Test pulse
error
Controller
module I9
Test pulse
error
Controller
module
IQ1 (input)
Test pulse
error
Leuze electronicMSI 40087
Page 88
EtherNet/IP gateway
ByteBit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
5Control-
ler module I15/
I16
Dual
channel
state
6Inversion
error I14
vs. I16
7I16 Stuck
at low
8Control-
ler module Q4
Stuck at
low
9Control-
ler module IQ4
(output)
Stuck at
low
Controller
module
I13/I14
Dual
channel
state
Inversion
error I13
vs. I15
I16 Stuck
at high
Controller
module
Q4
Stuck at
high
Controller
module
IQ4 (output)
Stuck at
high
Controller
module
I11/I12
Dual
channel
state
Frequency
difference
I14 vs. I16
I15 Stuck
at low
Controller
module
Q3
Stuck at
low
Controller
module
IQ3 (output)
Stuck at
low
Controller
module I9/
I10
Dual
channel
state
Frequency
difference
I13 vs. I15
I15 Stuck
at high
Controller
module
Q3
Stuck at
high
Controller
module
IQ3 (output)
Stuck at
high
Controller
module I7/
I8
Dual
channel
state
Phase difference
I14 vs. I16
too low
I14 Stuck
at low
Controller
module
Q2
Stuck at
low
Controller
module
IQ2 (output)
Stuck at
low
Controller
module I5/
I6
Dual
channel
state
Phase difference
I13 vs. I15
too low
I14 Stuck
at high
Controller
module
Q2
Stuck at
high
Controller
module
IQ2 (output)
Stuck at
high
Controller
module I3/
I4
Dual
channel
state
Controller
module
IQ3/IQ4
Dual
channel
state
I13 Stuck
at low
Controller
module
Q1
Stuck at
low
Controller
module
IQ1 (output)
Stuck at
low
Controller
module I1/
I2
Dual
channel
state
Controller
module
IQ1/IQ2
Dual
channel
state
I13 Stuck
at high
Controller
module
Q1
Stuck at
high
Controller
module
IQ1 (output)
Stuck at
high
10Re-
served
11Re-
served
8 +
4⋅n
9 +
4⋅n
Reserved
IO module at
pos. n
Output
data
state
1. Gateway module
Output
data state
2. Gateway module
Output
data state
IO module
at pos. n
Collective
error fast
shut-off
IO module
at pos. n
Input data
state
1. Gateway module
Input data
state
2. Gateway module
Input data
state
IO module
at pos. n
State,
voltage
1. Gateway module
Configuration state
2. Gateway module
Configuration state
IO module
at pos. n
Configuration state
Doesn’t
matter
Doesn’t
matter
Doesn’t
matter
A1/2
(power
supply for
Q1 to Q4)
ReservedReservedIO module
at pos. n
I7/I8
Dual
channel
state
Reserved1. Gate-
way module
Internal
module
state
Reserved2. Gate-
way module
Internal
module
state
IO module
at pos. n
External
module
state
IO module
at pos. n
I5/I6
Dual
channel
state
IO module
at pos. n
Internal
module
state
IO module
at pos. n
I3/I4
Dual
channel
state
Doesn’t
matter
Doesn’t
matter
Doesn’t
matter
IO module
at pos. n
I2/I1
Dual
channel
state
Leuze electronicMSI 40088
Page 89
EtherNet/IP gateway
ByteBit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
10 +
4⋅n
IO module at
pos. n
I8 test
pulse er-
IO module
at pos. n
I7 test
pulse error
ror
11 +
4⋅n
IO module at
pos. n
Q4
Stuck-at
IO module
at pos. n
Q4
Stuck-at
high
low
8.5Supported Assembly data
Assemblies are collections of data attributes and are optimized for high performance and a low telegram
overhead. The MSI 430 module supports a series of predefined, static assembly instances for input and
output data. Access is possible via various instances of the CIP assembly object. In addition, access is
possible both via the implicit and explicit message transmission. The assembly size is variable. It is thus
possible to request parts of an assembly. The following table (Overview of assembly databytes of the MSI430 module [chapter 8.5.1]) offers an overview of the supported assembly instances and the meaning of
the transmitted data.
8.5.1List of Assembly data
IO module
at pos. n
I6 test
pulse error
IO module
at pos. n
Q3
Stuck-at
low
IO module
at pos. n
I5 test
pulse error
IO module
at pos. n
Q3
Stuck-at
high
IO module
at pos. n
I4 test
pulse error
IO module
at pos. n
Q2
Stuck-at
low
IO module
at pos. n
I3 test
pulse error
IO module
at pos. n
Q2
Stuck-at
high
IO module
at pos. n
I2 test
pulse error
IO module
at pos. n
Q1
Stuck-at
low
IO module
at pos. n
I1 test
pulse error
IO module
at pos. n
Q1
Stuck-at
high
Tab.8.30: Overview of assembly databytes of the MSI 430 module
Instance ByteAccess Data typeDescriptionSizeData range
52to111 ReadBYTE[60]State bytes of the controller
60 byte0 to 0xff
module (Instance 3 of class 120
[chapter 8.4.8.3]), output data
set 3 (siehe [chapter 8.5.3])
The data type of supported assemblies is BYTE which means strings of 8 bits each. The naming in Logix
Designer is SINT, which has the same size of 8 bits each.
If PLC requires a configuration assembly, any value or blank can be used for assembly instance. Size of
the configuration assembly shall be zero.
Please use assembly instances from Table "Overview of Assembly data bytes [chapter 8.5.1]" for Input
and Output. These settings can be used in generic EtherNet module configuration in Logix Designer which
can be seen in the illustration below.
Fig.8.25: Generic Ethernet module configuration
Leuze electronicMSI 40090
Page 91
8.5.2Assembly Instances for Logic Output Bytes
8.5.2.1Assembly Instance 37 = 0x25
Assembly instance 37 belongs to the device profile discrete universal I/O device. It contains output data
(O→T) with a scope of up to 50 bytes.
Assembly instance 37 corresponds to input data block1 to 5 of the logic data of the MSI 430 module with
a total scope of 50 bytes.
8.5.2.2Assembly Instances 138 = 0x8a to 141 = 0x8d
Assembly instances 138 to 141 are provided to make more than one output data connection available. In
Class 1 connections, output data from the PLC to the controller module can only be sent using “Exclusive
Owner” rights. If, for example, a PLC “possesses” the assembly instance 138, then it “possesses” the output bytes 10 to 49. By contrast, output bytes 0 to 9 are freely available and can be used by another PLC
(O→T).
In a further example, the first PLC “possesses” 10 output bytes of the assembly instance 37, whilst the
second PLC “possesses” 10 output bytes of assembly instance 138 and the third assembly instance 139
with 30 output bytes. Here, three PLCs possess “Exclusive Owner” connections with output data. In total,
up to five PLCs can share the output data range, each with 10 bytes.
Assembly instance 138 comprises data with a scope of up to 40 bytes, assembly instance 139 comprises
data with a scope of up to 30 bytes, assembly instance 140 comprises data with a scope of up to 20 bytes
and assembly instance 141 comprises data with a scope of up to 10 bytes.
The first byte of assembly instance 138 is the eleventh byte of the logic data of the MSI 430 module. In
MSI.designer, it has the designation input data block2. The first byte of assembly instance 139 is 21.
Byte of the logic data of module MSI 430. In MSI.designer, it has the designation input data block3. The
first byte of assembly instance 140 is 31. Byte of the logic data of module MSI 430. In MSI.designer, it has
the designation input data block4. The first byte of assembly instance 141 is 41. Byte of the logic data of
module MSI 430. In MSI.designer, it has the designation input data block5.
Write requests are refused if the assembly is already used by an active I/O connection.
EtherNet/IP gateway
8.5.3Assembly Instances for Logic Input Bytes
8.5.3.1Assembly Instance 57 = 0x39
Assembly instance 57 belongs to the device profile discrete universal I/O device. It contains output data
(T→O) with a scope of up to 67 bytes.
The first 50 bytes of assembly instance 57 correspond to the output data set1 of the logic data of the MSI
430 module. The following table explains the meaning of bytes 50 to 66. Data of the class 1 connection
“Logic output (1 to 400) and logic/physical input” [chapter 8.3.1]
Leuze electronicMSI 40091
Page 92
EtherNet/IP gateway
Fig.8.26: Example of the display of assembly instance 57 in the Logix Designer
8.5.3.2Assembly Instances 167 = 0xa7
Assembly instance 167 possesses a different data structure to instance 57. Instance 167 makes the data
available in the MSI 400 system in more detail.
Assembly instance 167 in the MSI 400 system comprises data (T→O) with a scope of up to 112 bytes.
8.5.3.2.1Byte 0 to 49
Assembly instance 167 corresponds to output data block1 to 5 of the logic data of the MSI 430 module
with a total scope of 50 bytes.
Here, attributes 1 to 50 are represented as with instance 57.
8.5.3.2.2Byte 50
Bit 7 of byte 50 of assembly instance 167 has the same value as the class 29 instance 1 attribute5, which
represents the group status of all physical inputs.
Bit 6 of byte 50 of assembly instance 167 has the same value as the class 30 instance 1 attribute5, which
represents the group status of all physical outputs.
Bit 5 of byte 50 of assembly instance 167, if set, indicates that an error code in class120 instance6 attribute1 is non-zero.
Bits 0 to 4 of byte 50 of assembly instance 167 byte are reserved for future use.
8.5.3.2.3Byte 51
Byte 51 of assembly instance 167 supplies the system mode of the controller modules. It shows the same
value as attribute 1 of instance 5 in class 120.
8.5.3.2.4Byte 52 to 111
Bytes 52 to 111 of assembly instance 167 make the corresponding state bytes of the controller mode available. They show the same value as attributes 1 to 60 of instance 3 in class 120.
Leuze electronicMSI 40092
Page 93
8.6Accessing to CIP objects
8.6.1Explicit Messaging
Explicit message transmission uses the TCP/IP protocol as well as an EtherNet/IP-specific encapsulation
layer. Explicit message transmission can be connection-free (UCMM) and connected, e.g. session-based.
The latter is termed Class 3 Messaging. Both UCMM and Class 3 use an EPATH to address the required
data. An EPATH is made up of the service, class, instance and attribute ID.
With explicit message transmission, each attribute of the following objects can be accessed:
• Identity class (0x01) [chapter 8.4.1]
• Assembly class (0x04) [chapter 8.4.2]
• Discrete input point object (0x08) [chapter 8.4.3]
• Discrete output point object [chapter 8.4.4]
• Discrete einput group object (0x1D) [chapter 8.4.5]
• Discrete output group object (0x1D) [chapter 8.4.6]
• Vendor-specific object (0x78) [chapter 8.4.8.7]
Each request must possess a valid EPATH referring to the required object/attribute. The appropriate attribute can be read using the GetAttributeSingle service, if it is labeled as Read in these tables. The appropriate attribute can be written using the SetAttributeSingle service, if it is labeled as Write in these tables.
EtherNet/IP gateway
8.6.2Implicit Messaging
Implicit message transmission uses EtherNet/IP, the UDP/IP protocol as well as an EtherNet/IP-specific encapsulation layer. Implicit message transmission is also termed Transport Class 1. The PLC can set up a
Class 1 connection with the MSI 430 module, by placing the service request Forward_Open with it. This
configures connection information for the exchange of input/output data, e.g. the RPI unicast or multicast
connections, amongst other things. Class 1 connections only support assemblies for the exchange of input/
output data or “wild cards” to signal data-free heartbeat connections. Configuration assemblies are accepted as part of the Forward_Open-Service, with the exception of TCP/IP objects (Class 0xF5), although are
not processed by the MSI 430 module.
As the configuration details of the connection are only sent once in the Forward_Open-Frame, implicit message transmission is aligned to performance and has a lower telegram overhead than explicit message
transmission. Assembly instances possess predefined attributes in a specific order. Nonetheless, the
sender, i.e. the PLC; specifies the data size in Forward_Open during the setup of the Class 1 connection.
This means that only data byte from the beginning of the instance up to the specified size are exchanged.
The MSI 430 module supports seven static assembly instances. These are listed in the table Overview ofthe assembly class (0x04) supported by the MSI 430 module [chapter 8.4.2]. All data members of the instance has fixed coding. Dynamic assembly instances are not currently supported by the MSI 430 module.
An I/O assembly contains either input or output data, but not both at the same time. The following figure
shows the data flow when multiple assembly instances are used. Predefined assemblies are interconnected by blue lines, vendor-specific assemblies by black lines. The controller module is shown as a hatched
rectangle.
Leuze electronicMSI 40093
Page 94
EtherNet/IP gateway
Assembly instance 138
Assembly instance 37
Assembly instance 139
Assembly instance 140
Assembly instance 141
Assembly instance 57
Assembly instance 167
Input terminals
Input
state
Logic inputs
System mode
System state bits
Logic outputs
Output
state
Output terminals
External sensors
External actuators
Fig.8.27: Data flow when using assembly instances of the MSI 430 module
8.6.3Symbolic Addressing
In addition to the addressing of assembly instances, symbolic addressing by name is also possible by selecting connections.
In MSI.designer, tag names can be changed in the Gateway configuration tab.
Leuze electronicMSI 40094
Page 95
EtherNet/IP gateway
i
Fig.8.28: Configuration of symbolic names for assemblies in MSI.designer
NOTICE
The functions of the UCMM Message Client (unconnected), which can also be configured in
MSI.designer, are not available in the module version D-01.01.
8.7Adjust Performance
A configuration of the number of process data bytes exactly matching the application helps to reduce the
volume of periodically exchanged data bytes.
The PLC specifies the number of output bytes in the form of specific Forward_Open Service data as Con-nection Size for O→T. The PLC should set the Fixed/Variable bit to 1, meaning variable.
The PLC also specifies the number of input bytes. The controller module cyclically transfers data in the
scope of the connection size for T→O through RPI in the value specified in Forward_Service. If the fixed/
variable bit is set by the PLC, meaning variable, then not all the assembly bytes must be transmitted.
8.8Connection with more than one PLC
The EtherNet/IP function of the MSI 430 module allows access by more than one PLC. Up to five encapsulation sessions with input and output data can be set up simultaneously.
If only reading of the process data of the MSI 430 module is required, “Input only” or “Listen only” connections can also be used. Note that a “Listen only” connection is closed automatically by the MSI 430 module
when the owner, who has set up the “Exclusive” or “Input Only” connection, terminates the connection.
If process data from multiple PLCs are to be transmitted to the MSI 430 module, the other PLCs can access the assembly instances 138 to 141 for Class 1 connections. Class 3 connections can be set up in parallel, provided that there is no conflict with regard to the owner. Please see the following for more information: List of Assembly data [chapter 8.5.1]
Leuze electronicMSI 40095
Page 96
8.9Diagnostics and troubleshooting
8.9.1Notifications via network
8.9.1.1Explicit Message Connection
Device Status is available by reading Class 1, instance 1, attribute 5. Vendor specific interface for alarms
and diagnostic for Explicit Message Connections is defined as follows:
Presence of process alarm can be detected by reading class 29, instance 1, attribute 5 and class 30, instance 1, attribute 5. The module mode (Run or another state) has to be checked, because the alarm bit is
set to 0 = OK every time the module is not in Run mode.
The module mode can be detected by reading class 120 Instance 5 Attribute 1.
The presence of module diagnostic events can be detected by reading class 120 Instance 6 Attribute 1.
Detailed reasons for process alarms and system diagnostic events can be found out by reading all 60 attributes of Class 120 Instance 3 which contains the dedicated system status bytes.
8.9.1.2Implicit Message Connection
If assembly instance 57 is used, Bit 6 and 7 of Byte 66 signal a process alarm when set.
If assembly instance 167 is used, Bit 6 and 7 of Byte 66 signal a process alarm when set. Bit 5 signals diagnostic events or process alarms when set.
Event details can be queried by Explicit Message requests as described here: Explicit Messaging [chapter
8.6.1]
EtherNet/IP gateway
8.9.2LED States
8.9.2.1MS (Module Status)
The MSI 430 module possesses a two-color (red/green) LED with the designation MS. This is the Module
Status Indicator.
The Module Status Indicator is dark, if no power supply is connected. It flashes green if the device has not
been configured. It turns green if the device is running correctly. It flashes green/red if the device is performing a switch-on test.
The Module Status Indicator flashes red if EtherNet/IP is activated and the device has detected a serious,
eliminable error. A faulty project file or one which does not match the hardware is classified as a serious,
eliminable error. The display turns red if EtherNet/IP is activated and the device has detected a serious,
non-eliminable error and there is a Critical Fault.
Tab.8.31: MS-LED state (Selection)
Project fileSystem modeExt. ErrorMS-LED state
Doesn’t matterSwitch onDoesn’t matterGreen -> Red
DeletedInitDoesn’t matterFlashing green
InvalidInitDoesn’t matterFlashing red
ValidIdle modeDoesn’t matterFlashing green
ValidRunNoTurns green
ValidRunYesTurns green/red or flashes red
ValidCritical errorDoesn’t matterTurns red
8.9.2.2NET (Network Status)
The MSI 430 module possesses a two-color (red/green) LED with the designation NET. This is the Network Status Indicator.
Leuze electronicMSI 40096
Page 97
Tab.8.32: Meaning of the NET LED (used as EtherNet/IP gateway)
NET LEDMeaning / reason
EtherNet/IP gateway
LED off
• Power supply not connected.
or
• Power supply connected but IP address not configured.
EtherNet/IP has been activated and an IP address has been configured but
Green (1
there is no CIP connection and an “Exclusive Owner” connection has not
yet shown a time-out.
Hz)
Green
An IP address has been configured, there is at least one CIP connection
(of any transport class) and an “Exclusive Owner” connection has not yet
shown a time-out.
During power-on test
/
Red/green
EtherNet/IP has been activated, an IP address has been configured and an
Red
“Exclusive Owner” connection, for which the device is the target device,
has shown a time-out.
The Network Status Indicator is dark if no power supply is connected or a power supply is connected but no
IP address is configured (interface configuration attribute of the TCP/IP interface object). It flashes green if
EtherNet/IP is activated and an IP address has been configured but no CIP connection is available and an
“Exclusive Owner” connection has not yet shown a time-out. It turns green if an IP address has been configured, there is at least one CIP connection (of any transport class) and an “Exclusive Owner” connection
has not yet shown a time-out. It flashes green/red if the device is performing a switch-on test.
The Network Status Indicator flashes red if EtherNet/IP is activated, an IP address has been configured
and an “Exclusive Owner” connection, for which the device is the target device, has shown a time-out. The
Network Status Indicator only turns green again when all the expired “Exclusive Owner” connections have
been restored. The Network Status Indicator switches from flashing red to being lit in green if all the connections of the previously expired O->T connection points have been restored. Time-outs in other connections than the "Exclusive Owner” connections do not result in the indicator flashing red. The “flashing red”
state only applies to connections with the target device. PLCs and CIP routers do not instigate a transition
to this state if a created or routed connection shows a time-out.
Tab.8.33: Troubleshooting on the MSI 430 module (use as EtherNet/IP gateway)
ErrorPossible causePossible remedy
Key: LED off / LED flashes / LED lights up
The MSI 430 module
does not provide any
data.
LED PWR/
Green
EC
LED LINK
Green
LED /ACT
Yellow
MS LED
Green
• The MSI 430 has been
configured for data
transmission to the PLC,
but no Ethernet communication has been established or the communication is faulty.
• Duplicate IP address
detected. Another network device has the
same IP address.
• Incorrectly formatted
PROFINET device
name
• PROFINET IO must be activated in the project file. At
least one Ethernet link must
be established. Check the
Ethernet wiring, check the
Ethernet settings in the
PLC and in MSI.designer.
• Correct the IP address and
switch the system off and
on again.
• Compare the device name
between the PROFINET
master and the MSI 430
module.
Leuze electronicMSI 40097
Page 98
ErrorPossible causePossible remedy
EtherNet/IP gateway
The MSI 430 module
does not provide any
data.
LED PWR/
Green
EC
LED LINK
Green
LED /ACT
Yellow
MS LED
/
Red/green
The MSI 430 module
does not provide any
data.
LED PWR
LED LINK
Green
Green
LED /ACT
Yellow
MS LED
Green (1
Hz)
• Configuration required.
• The configuration has
not yet been fully transmitted.
• The module version
does not support any
PROFINET IO.
• The MSI 400 system is
in the stop state.
• Configure the MSI 430
module with a project file in
which PROFINET IO is activated and transfer the
configuration to the MSI
430 module.
• Use an MSI 430 device
starting with module version B-xx.
• Start the controller module
(switch to Run mode).
The MSI 430 module
does not provide any
data.
LED PWR/
Green
EC
LED LINK
Green
LED /ACT
Yellow
MS LED
Green
The MSI 430 / the MSI
400 system is in the
“Critical error” state.
• The IP address for the
MSI 430 module is assigned by a DHCP
server. Following a restart of the MSI 430
module or the DHCP
server, another address
was allocated to the MSI
430 module, which is
unknown to the PLC.
• The MSI 430 module is
not properly connected
to the MSI 400 modules.
• The module connection
plug is dirty or damaged.
• Another MSI 400 mod-
• Either assign the MSI 430
module a permanent IP address or reserve a permanent IP address for the MSI
430 module in the DHCP
server (manual assignment
using the MAC address of
the MSI 430 module).
• Insert the I/O module correctly. Clean the connection
plug and socket.
• Switch on the power supply
again.
• Check the other MSI 400
modules.
ule has an internal critical error.
8.9.2.3LINK
The MSI 430 module possesses a green LED with the designation LINK. If there is no Ethernet connection,
it stays dark. If there is a connection, it switches on.
8.9.2.4ACT (Activity Status)
The MSI 430 module possesses a green LED with the designation ACT. If no port activity can be detected,
it stays dark. If port activity is detected, it switches on.
Leuze electronicMSI 40098
Page 99
8.9.3Diagnostic functions in the configuration software
i
Additional diagnostic functions are available on the SD card using a log file with the name history.csv. In
addition, the last entries are available in MSI.designer in the Diagnostics view. The timestamp in the Local
time column provides information about how long the device has been switched on in total.
Synchronize time
With the safety controller connected you can synchronize the time on the safety controller with the time on
the connected diagnostics computer. Even if you disconnect the connection to the controller, the Dia-gnostics view remains active, as long as the associated MSI.designer project is open.
NOTICE
Instructions in software manual
You can find step-by-step instructions on how to synchronize the time here:
Software manual, chapter "Synchronize time for diagnostic purposes"
EtherNet/IP gateway
8.10State bits
The EtherNet/IP gateway MSI-EN-IP sets state bits, which are available in the logic editor of MSI.designer
for processing.
Tab.8.34: Meaning of the state bits MSI-EN-IP[0] in the logic editor
Name of the state bitsSet to 1, if ...Reset to 0 ...
Output state... a GetAttribute command was
Input state... a SetAttribute command was
Internal state... the EtherNet/IP function of the
processed successfully,
or
... data of transport class 1 were
sent to a PLC without errors.
processed successfully,
or
... data of transport class 1 received
without error (consumed), whereby
heartbeat data of connection point
198 from the PLC does not count
module is ready for communication.
... if a connection of transport
class 1 (implicit connection) was
terminated and no further connection exists.
... a connection of transport class
1 (implicit connection) was terminated for one of the connection
points 57, 138, 139, 140 or 141
and no further connection exists to
these connection points.
... the EtherNet/IP function of the
module is not ready for communication.
Leuze electronicMSI 40099
Page 100
9PROFIBUS DP gateway
LED BF (red)
LED MS (red/green)
LED PWR (red/green)
Address switch 1
PROFIBUS connection
Address switch 2
The following MSI 400 gateway can be used for PROFIBUS DP:
• MSI-FB-PROFIBUS
9.1Interfaces and operation
Operating and display elements
PROFIBUS DP gateway
Fig.9.1: Operating and display elements of the MSI-FB-PROFIBUS module
Tab.9.1: Meaning of the state LEDs on the MSI-FB-PROFIBUS module
LEDMeaning
Key: LED off / LED flashes / LED lights up
BF
Off
Red
Connection to the DP master established
No bus connection: Field bus cabling interrupted, address error or the master is no longer transmitting to
the bus
MS
Off
Green
Green
Power supply switched on, waiting for bus-off
Run
Stop
Run, but the gateway has a fault
/
Red / green
1 Hz: Configuration required or is taking place right
Red
now
2 Hz: Critical error on the gateway
Leuze electronicMSI 400100
Red
Critical error on another module
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.