HMS Industrial NetworksMailing address: Box 4126, 300 04 Halmstad, SwedenVisiting address: Stationsgatan 37, Halmstad, Sweden
Connecting Devices
TM
E-mail: info@hms-networks.com
Web: www.anybus.com
User Manual
Anybus® Communicator™
for PROFINET
Doc. Id. HMSI-27-309
Rev. 3.11
Important User Information
This document contains a general introduction as well as a description of the technical features provided by the Anybus Communicator, including the PC-based configuration software.
The reader of this document is expected to be familiar with PLC and software design, as well as communicationsystems in general. The reader is also expected to befamiliar with the Microsoft® Windows® operating system.
Liability
Every care has been taken in the preparation of this manual. Please inform HMS Industrial Networks AB of any inaccuracies or omissions. The data and illustrations found in this document are not binding. We, HMS Industrial Networks AB, reserve the right to modify our products in line with our policy of continuous product development. The information in this document is subject to change without notice and should not be considered as a commit-ment by HMS Industrial Networks AB. HMS Industrial Networks AB assumes no responsibility for any errors that may appear in this document.
There are many applications of this product. Those responsible forthe use of this device must ensure that all the necessary steps have been taken to verify that the applications meet all performance and safety requirements in-cluding any applicable laws, regulations, codes, and standards.
HMS Industrial Networks AB will under no circumstances assume liability or responsibility for any problems that may arise as a result from the use of undocumented features, timing, or functional side effects found outside the documented scopeofthis product. Theeffects caused by any direct or indirect use of such aspects of the product are undefined, and may include e.g. compatibility issues and stability issues.
The examples and illustrations in this document are included solely for illustrative purposes. Because of the many variables and requirements associated with any particular implementation, HMS Industrial Networks AB cannot assume responsibility for actual use based on these examples and illustrations.
Intellectual Property Rights
HMS Industrial Networks AB has intellectual propertyrights relating to technology embodied in the product de-scribed in this document. These intellectual property rights may include patents and pending patent applicationsin the US and other countries.
Trademark Acknowledgements
Anybus® is a registered trademark of HMS Industrial Networks AB. Microsoft® and Windows® are registeredtrademarks of Microsoft, Inc. All other trademarks are the property of their respective holders.
Warning:This is a class A product. in a domestic environment this product may cause radio interference in
ESD Note:This product contains ESD (Electrostatic Discharge) sensitive parts that may be damaged if ESD
which case the user may be required to take adequate measures.
control procedures are not followed. Static control precautions are required when handling the product. Failure to observe this may cause damage to the product.
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
P. About This Document
For more information, documentation etc., please visit theHMS websitewww.anybus.com.
P.1 Related Documents
Document nameAuthor
Anybus Communicator - PRT Installation SheetHMSDF1 Protocol and Command Set - Reference Manual, 1770-6.5.16, October 1996Allen-Bradley
P.2 Document History
Summary ofRecentChanges (3.01... 3.10)
ChangePage(s)
Screenshots and descriptions of ABC Tool updated for Anybus Configuration ManagerMultipleChanged “ABC” to “Communicator RS232/422/485”MultipleAmended description of “Update time” parameter31,32Added description for Consume/Response to “Object Delimiter” parameter39Changed “Maximum Data Length” limit 39Removed obsolete “Start Bits” parameter48Removed obsolete “ABCC ExtLink Wizard” entry64Replaced “Sales and Support” info with link to website8Added parameters to checksum object description40Added info about Modbus registers23Minor text edits, typo correctionsMultiple
Preface
Summary ofRecentChanges (3.10... 3.11)
RevisionChangePage(s)
3.11Added compliance info79
Revision List
RevisionDateAuthorChapterDescription
1.002005-06-07PePAll1st release
2.002006-03-27PePAll2nd major release
2.012006-12-22PeP-Misc. minor corrections & updates
2.022008-10-14HeS-Misc. minor corrections & updates
2.032009-04-24KeLAllMisc. minor corrections and updates
3.002011-01-19KaDAllMisc. minor corrections, new template and DF1 functionality
3.012011-09-30KaDAllMisc corrections and updates, new Anybus ConfigurationManager name
3.10February 2015ThNAllMisc. corrections and updates, new Doc ID
3.11March 2015ThNBAdded compliance info
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
P.3 Conventions & Terminology
The following conventions are used throughout this document:
•Numbered lists provide sequential steps
•Bulleted lists provide information, not procedural steps
•The term“user” refers to the person or persons responsible for installing the Anybus Commu-nicator in a network.
•The term “ABC” refers to the AnybusCommunicator.
•Hexadecimal values are written in theformat 0xNNNN, where NNNN isthe hexadecimalvalue.
•Decimal values arerepresentedas NNNN where NNNNis the decimal value
•As in all communication systems, the terms “input” and “output” can be ambiguous, because their meaning depend on whichend of the link is being referenced. The convention in this doc-umentisthat “input” and “output” are always being referenced to the master/scanner end of the link.
P.3.1 Glossary
TermMeaning
ABC
PRTPROFINET-IOACMAnybus Configuration ManagerBroadcasterAprotocol specific node in the subnetwork scan- that hold transactions destined to all nodes.CommandA protocol specific transaction. ConfigurationList of configured nodes with transactions on the subnetwork.FieldbusThe network to which the communicator is connected.Fieldbus Control SystemFieldbusmasterFrameHigher level series of bytes forming a complete telegram on the subnetworkMonitorAtool for debugging the ABC and the network connections.NodeA device in the configuration that defines the communication with a node on the subnetworkScan listList of configured slaves with transactions on the subnetwork.
Subnetwork
Transaction
IO Controller
IO Supervisor
IO DeviceField device assigned to anIO Controller. In this case the ABC.Module (or I/O module)Hardware or logical component of a PROFINET network device.Higher Level NetworkIn this case, PROFINETNetworkFieldbus
®
Anybus
Communicator™
The network that logically is located on a subsidiary level with respect to the fieldbus and towhich the ABC acts as a gateway.
A generic building block that is used in the subnetwork scan-list and defines the data that issent and received on the subnetwork.
PROFINET device which acts as a clientfor several IO devices, usually a PLC.(Comparable to a PROFIBUS-DP class 1 master).
PROFINET programming device with commissioning and diagnosticfunctions (Comparable to a PROFIBUS-DP class 2 master).
About ThisDocument 9
P.4 Support
For general contact information and support, pleaserefer to the contact and support pages at
www.anybus.com
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
1. About the Anybus Communicator for
PC configurationand monitoring
Serial communication devices
Multi-drop up to 31 nodes
Multi-Node Serial Sub NetworkSingle-Node Serial Sub Network
PC configurationand monitoring
PROFINET IO Controller(e.g a PLC)
PROFINET IO Controller(e.g a PLC)
Serial communicationdevice
INVERTER
HMI
(Ethernet)
(Ethernet)
PC/web/SCADA
C/eb/SC
PC/web/SCADA
C/eb/SC
PROFINET
1.1 General
The Anybus Communicatormodule for PROFINETactsasa gateway between virtually any serial ap-plication protocol and a PROFINET IO-based network. Integration of industrial devices is enabled without loss of functionality, control andreliability, both when retro-fitting to existing equipment as wellas when setting up new installations.
Chapter 1
Subnetwork
The Anybus Communicator can address up to 31 nodes, and supports the following physical standards:
•RS-232
•RS-422
•RS-485
Ethernet Interface
Ethernet connectivity is provided through the patented Anybustechnology; a proven industrial commu-nication solution used all over the world by leading manufacturers of industrial automation products.
•PROFINET IO
•Modbus-TCP server (read only)
•Security framework with per user access rights andIP access control
•Server Side Include (SSI) functionality
•Web server and Email client capability
•Easy file management via FTP
•10/100 Mbit/s, twisted pair
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
About the Anybus Communicator for PROFINET11
F
A
B
C
D
E
1.2 External View
For wiring and pin assignments, see “Connector Pin Assignments” on page 98.
A:PROFINET Connector (Ethernet)
This connector is used to connect the module to the net-work.
See also...
-“PROFINET Connector (Ethernet)” on page 98
B:Status LEDs
See also...
-“Status LEDs” on page 12
C:PC-connector
This connector is used toconnect the module to a PC for configuration and monitoring purposes.
See also...
-“PC Connector” on page 99
D:Subnetwork Connector
This connector is used to connect the module to the serial subnetwork.
See also...
-“Subnetwork Interface” on page 100
E:Power Connector
This connector is used to apply power to the module.
See also...
-“Power Connector” on page 98
-“Technical Specification” on page 128
F:DIN-rail Connector
The DIN-railmechanism connects the module to PE (Protective Earth).
See also...
- “Hardware Installation” on page 13
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
1.3 Status LEDs
1
3
5
2
4
6
#StateStatus
1 - Comm. StatusOffOff line
GreenOn line,Run
Green, flashingOn line, STOP
2 -Module StatusOffNo power or not initialized
GreenInitialized, no errorGreen, 1 flashDiagnostic data availableGreen, 2 flashesBlink. Used by engineering tools for identification.Red, 1 flashConfiguration Error
Red, 3 flashesNo Station Name or no IP address assignedRed, 4 flashesInternal error
3 - Link/ActivityOffNo link or power off
GreenLink establishedGreen, flashingReceiving/transmitting data
4 - (not used)
5 - Subnet Status
6 - Device StatusOffPower off
a.ThisLED turnsgreen when all transactions havebeen activeat least once. This includes
any transactions using “change of state” or “change of state on trigger”. If a timeout occurs on a transaction, this LED will turn red.
b.The gateway is in bootloader mode, and firmware must be restored in order for it to work
properly. Start upthe Anybus Configuration Manager and connect to theAnybus Commu-nicator. Choose Tools/Options/Module. Click “Factory Restore” to restore firmware. See “Tools” on page 61.
--
a
OffPower offGreen, flashingRunning correctly, but one or more transaction
GreenRunningRedTransaction error/timeout or subnet stopped
Alternating Red/GreenInvalid or missing configurationGreenInitializingGreen, flashingRunningRed
Red, flashingIf the Device Status LED is flashing in a sequence
About the Anybus Communicator for PROFINET12
-No connection with IO Controller
-Connection with IO Controller established
-IO Controller is in RUN state
-Connection with IO Controller established
-IO Controller in STOP state
-Too many modules/submodules
-I/O size or Configuration mismatch
error(s) have occurred
Bootloader mode
b
starting with one or more red flashes, please notethe sequence pattern andcontact theHMS support department
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
About the Anybus Communicator for PROFINET13
1
2
1
2
1.4 Hardware Installation
Perform the following steps when physicallyinstalling the Anybus Communicator module:
1.Snap the module on to the DIN-rail.
TheDIN-railmechanism works as follows:
To snap themoduleon,first press itdownwards (1) to compress the spring in the DIN-railmechanism, then push it against the DIN-rail as to make it snap on (2)
To snap the module off, push it downwards (1) and pull it out from the DIN-rail (2), as to makeit snap off from the DIN-rail
2.Connect the module to the PROFINET (Ethernet) network
3.Connect the module to the serial subnetwork
4.Connect the module to the PC via the configuration cable
5.Connect the power cable and apply power
6.Start the Anybus Configuration Manager program on the PC
(The AnybusConfiguration Manager software attempts to detect the serial port automatically. If not successful, select the correct port manually in the “Port”-menu)
7.Configure the Anybus Communicatorusing the Anybus Configuration Manager and download the configuration
8.Set up the PROFINETcommunication in accordance with the module configuration
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
1.5 Software Installation
1.5.1 Anybus Configuration Manager
System requirements
•Pentium 133 MHzor higher
•650 MB of free space on the hard drive
•32 MBRAM
•Screen resolution 800 x 600 (16 bit color) or higher
•Microsoft Windows® 2000 / XP / Vista / 7 (32- or 64-bit)
•Internet Explorer 4.01 SP1 or newer (or any equivalent browser)
Installation
•Anybus Communicator resource CD
-Insert the CD and follow the on-screen instructions.
-If the installation does not start automatically: right-click on theCD driveicon and select “Explore” to show the contents of the CD. Locate theinstallation executable and double-click on it to start theinstallation, then follow the on-screen instructions.
About the Anybus Communicator for PROFINET14
•From HMS website
-Download the latest version of Anybus Configuration Manager from www.anybus.com.
-Unzip the archive on your computer and double-click on the installation executable.
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
2. Basic Operation
2.1 General
The Anybus Communicator gateway is designedto exchange data between a serial sub-network and a higher level network. Unlike most other gateway devices of similar kind, it does not have a fixed protocol for the sub-network, and can be configured to handle almost any form of serial communication.
Thegateway can issue serial telegrams cyclically, on change of state, or based on trigger events issued bythe control system of the higher level network (i.e. the fieldbus master or PLC). It can also monitor certain aspects of the sub-network communication and notify the higher level network when data has changed.
An essential part of the Anybus Communicator package is Anybus Configuration Manager (ACM), a Windows®-based application used to supply the gateway with a description of the sub-network proto-col. No programming skills are required; instead, a visual protocol description-system isused to specify the different parts of the serial communication.
Chapter 2
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
2.2 Data Exchange Model
General Data
ABC Internal Memory
Input Data
(512 bytes)
Subnetwork
Output Data
(512 bytes)
Higher Level Network
Input Data Output Data General Data
Subnetwork:Fieldbus:E-mail Client:SSI:
Subnetwork:Fieldbus:E-mail Client:SSI:
Subnetwork:Fieldbus:E-mail Client:SSI:
Read/Write Read Only Read Only Read Only
Read Only Read/Write Read Only Read/Write
Read/Write
-
-
-
0x000 0x200
0x1FF 0x3FF
0x400
0x???
Internally, the data exchanged on the subnetwork, and the data exchanged on the higher level network, resideinthe same memory.
This means that in order toexchange datawith thesub-network, the higher level network simply reads and writesdata to memory locations specified using the An-ybus Configuration Manager. The very same memory locations can then be exchanged on the subnetwork.
The internal memory buffer is divided into three areasbased on their function:
•Input Data (512 bytes)
Thisarea can be readby the higher level net-work, the web server and the e-mailclient.
(Howthis data is represented on the higher level network will be described later in this chapter).
•Output Data (512 bytes)
Thisarea can be readfrom/written to by the higher level network, the web server and the e-mail client.
(Howthis data is represented on the higher level network will be described later in this chapter).
Basic Operation 16
•General Data (Up to 1024 bytes)
This area cannot be accessed from the higher level network, but can be used for transfers be-tween individual nodes on the subnetwork, or asa general “scratch pad”for data. The actual size of this area depends on the amount of data that is exchanged on the subnetwork. The Anybus Communicator canhandle up to 1024 bytes of general data.
2.2.1 Memory Map
When building the subnetwork configuration using the Anybus Configuration Manager, the different ar-eas described above are mapped to the memory locations (addresses) specified below.
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
Basic Operation 17
The Temperature Regulator has two registers, holding the Setpoint Temperature and the Actual Temperature respectively.
The PLC exchange data between the internal PLC memory and the slaves (in this case the ABC) on the PROFINET network.
The ABC copies the Output Register of the Temperature Regulator to the Input- Data area.
The ABC copies the Temperature-
Setpoint from the Output Data area to
the Input Register in the Temperature-
Regulator.
The PLC Memory associated with
the ABC is exchanged;
Data from the Input Data area is copied to
PLC Input Memory, and PLC Output
Memory is copied to the Output Data
area.
Input Data
ABC
Serial Device - Temperature Regulator
PLC (PROFINET IO Controller)
Output Data General Data
0x000 0x200
0x1FF 0x3FF
0x400
0x???
Output Register Input Register
Temperature Setpoint
Temperature Setpoint
Actual Temperature
Actual Temperature
PLC Memory (Inputs) PLC Memory (Outputs)
Temperature Setpoint
Actual Temperature
(not used in this example)
PROFINETSubnetwork
2.2.2 Data Exchange Example
In the following example, a temperature regulator on the subnetworkexchanges information with a PLC on the higher level network, via the internal memorybuffers in themodule.
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
Basic Operation 18
2.3 Subnetwork Protocol
2.3.1 Protocol Modes
The Anybus Communicator features three distinct modes of operation regarding the subnetwork com-munication, called “Master Mode”, “Generic Data Mode” and “DF1 Master Mode”.Notethat the pro-tocol modeonly specifies the basic communication model, not theactual subnetwork protocol.
•Master Mode
In this mode, the module acts as a master on the subnetwork, and the serial communication takesplace in a query-response fashion. The nodes on the network are not permitted to issue messagesunless they have been addressed by the module first.
See also “Master Mode” on page 19.
•Generic Data Mode
In this mode, there is no master-slaverelationship between the subnetwork nodes and the mod-ule; any node on the subnetwork, including the Anybus Communicator, may spontaneously pro-duce or consume messages.
See also “Generic Data Mode” on page 20.
•DF1 Master Mode
In this mode, the module acts as a master on the subnetwork, using the DF1 protocol. The serial communication takes place in a query-response fashion.
See also “DF1 Protocol Mode” on page 76.
2.3.2 Protocol Building Blocks
The following building blocks are used in Anybus Configuration Manager todescribe the subnetwork communication. Howtheseblocks apply to the threeprotocol modes will be described later in this doc-ument.
•Node
A node represents a single device on the subnetwork. Each node can be associated with a num-ber of transactions, see below.
•Transaction
A “transaction” represents a completeserial telegram, and consistsof a number of frame objects (below).Each transaction isassociatedwith a set of parameters controlling how and when to use it on the subnetwork.
•Commands
A “command” is simply a predefined transaction stored in a list in the Anybus Configuration Manager. This simplifies common operations by allowing transactionsto be stored and reused.
•Frame Object
“Frame objects” are low level entities used to compose a transaction (see above). A frame object can represent a fixedvalue (a constant), a range of values (limit objects), a block of data or a cal-culated checksum.
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
Basic Operation 19
Subnetwork Devices
Gateway
Control System
2.3.3 Master Mode
In this mode, the communication is based on a query-response scheme; when the Anybus Communica-tor issues a query on the subnetwork, the addressed node is expectedto issue a response to thatquery. Nodes are not permitted to issue responses spontaneously, i.e. without first receiving a query.
There is one exception to this rule; the broadcaster. Most protocols offer some way of broadcasting mes-sages to all nodes on the network,without expecting them to respond to the broadcasted message. Thisis also reflected in the Anybus Communicator, which features a dedicated broadcaster node.
In Master Mode,AnybusConfiguration Manager comes preloaded with mostcommonly used Modbus RTU commands, which can conveniently be reached by right-clicking on a node in the Anybus Config-uration Manager and selecting “Insert NewCommand”. Note however that this does not in any way prevent other protocols based on the same query-response message-scheme to be implemented.
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
Basic Operation 20
Subnetwork Devices
Control System
Gateway
2.3.4 Generic Data Mode
In this mode, there is no master-slave relationship between the nodes on the subnetwork and the Any-bus Communicator. Any node, including the module, may spontaneously produce or consume a mes-sage. Nodes do not have to respond to messages, nor dothey have to wait for a query in order tosend one.
In the figure above, the Anybus Communicator “consumes” data that is “produced” by a node on the subnetwork. This “consumed” data canthen be accessed from the higher level network. This also works the other way around; the data received from the higher level network is used to “produce” a messageon the subnetwork to be “consumed” by a node.
2.3.5 DF1 Master Mode
Please refer to “DF1Protocol Mode” on page 76.
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
Basic Operation 21
2.4 PROFINET IO
2.4.1 General
The PROFINET IO interface provides PROFINET IO Soft Real-Time Communication. PROFINET is the open Industrial Ethernet standard for Automation from PROFIBUS International.
Supported Features
•Soft Real-Time (RT) communication
•Cyclic data exchange(10 ms cycletime)
•Acyclic Dataexchange (Record Data Requests)
•Up to 64 slots / 1 subslot
•Up to 512 bytes of I/O in each direction
•TCP/IP Configuration via DCP (Discovery and Configuration Protocol)
2.4.2 I/O Configuration
PROFINET makes a distinction between fastcyclical data,a.k.a. “IO data”, and acyclical data, called“Record Data”. By default, all data in the input and outputdataareas are exchanged as IO data. It ishowever possible to specify how much data to exchangeas IO data, and how much data to exchangeusing acyclic Record Dataread/write requests.
On PROFINET, the IO data is built up by I/O modules. In the case of theABC, theactualI/O moduleconfiguration is adopted from the I/O controller/supervisor, provided that the total I/O sizes specified by the IO controller does not exceed the sizes specified in theAnybus Configuration Manager.
For information about how the IO and Record Data relates to the input and output data areas, see “Da-ta Representation (IO Data & Record Data)” on page 22.
2.4.3 GSDML File
On PROFINET, all devices are associated with a GSDML file. The GSDML file is theequivalent of the PROFIBUS GSD file, and is basedon the EXtensibleMarkup Language(XML).
This file holds information about the device(in this case the Anybus Communicator), its features, and possible I/O configurations. The latest version ofthe GSDML file for the Anybus Communicator can be downloaded from the HMS website, “www.anybus.com
”.
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
Basic Operation 22
Input DataOutput Data
16 Input0x000 ... 0x00F
0x0A0
16 Input/Output0x010 ... 0x01F
0x09F
0x0DF
0x1FF
0x020
16 Input/Output0x200 ... 0x20F
128 Input
128 Output
(unused)
32 Input0x0E0 ... 0x0FF
64 Input/Output
64 Output
64 Input/Output
Record Data Index 1000h
Record Data Index 10FFh
Record Data Index 2000h
Record Data Index 206Fh
IO Size In(256 bytes)
IO Size Out(400 bytes)
0x30F
0x3FF
0x290
0x38F
0x310
0x210
0x24F
0x100
0x250
0x28F
0x390
2.4.4 Data Representation (IO Data & Record Data)
Asmentioned previously, the actual I/O configuration is determined by the IO Controller. The modules are mapped to the input and output data areas in the order of their slot number.
Example:
In this example, theI/O Sizes forthe ABC has been set to the following values:
Note the “unused” part of the output data area.The reason for this is that only 272 bytes (128+64+64+16) are actually used in the I/O module configuration, althoughIO Size Out is set to 400 bytes.
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
Basic Operation 23
2.5 Modbus-TCP (Read-Only)
2.5.1 General
The Modbus-TCP protocol is an implementation of the standard Modbus protocol running on top of TCP/IP. The same function codes and addressing model are used. The built in Modbus-TCP serverpro-vides read-only access to the input and output dataareas via a subset of the functions defined in the Modbus-TCP specification.
All Modbus-TCP messages are received/transmittedon TCP port no. 502. For detailed information re-garding the Modbus-TCP protocol, consult the Open Modbus Specification.
2.5.2 Data Representation (Modbus-TCP Register Map)
The following function codes are implemented:
Modbus FunctionFunction CodeAssociated withNo. of I/O:s or data points per command
Read Input Registers4Input Data area
(0x000....0x1FF)
Read Multiple Registers3OutputData area
(0x200...0x3FF)
1 - 125 registers
1 - 125 registers
The Input & Output Data areasare mapped to Modbus registers as follows:.
0x00000x000...0x001Input Data area(Status Register)0x00010x002...0x003-0x00020x004...0x005-0x00030x006...0x007-
......-
0x00FF0x1FE...0x1FF-0x00000x200...0x201Output Data area(Control Register)0x00010x202...0x203-0x00020x204...0x205-0x00030x206...0x207-
......-
0x00FF0x3FE...0x3FF-
Note:If enabled, the control andstatus registers occupies input register 0x0000 and output register0x0000.
2.5.3 Supported Exception codes
CodeNameDescription
0x01Illegal functionThe function code in the query is not supported0x02Illegal data addressThe data address received in the query is outside the initialized memory area0x03Illegal data valueThe data in the request is illegal
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
3. File System
3.1 General
General
TheAnybus Communicator featuresa built-in filesystem, which is used to store information such as web files, network communication settings, e-mailmessages etc.
Storage Areas
The file system consists of the different storage areas:
•Non-volatile area (approx. 2 Mb)
This section is intended for static files such as web files,configuration files etc.
•Volatile area (approx. 1 Mb)
This area is intended for temporary storage; data placed here will be lost in case of power loss or
reset.
Chapter 3
Important Note:
The non-volatile storage is located in FLASH memory. Each FLASH segment can only be erased ap-proximately 100000 times due to the nature of this type of memory.
The following operations will erase one or more FLASH segments:
•Deleting, moving or renaming a file or directory
•Writing or appending data to an existing file
•Formatting the file system
Conventions
•\ (backslash) is used as a path separator
•Filepaths originate from the system root, and assuch must begin with \
•File pathsmust not end with \
•Names may contain spaces but must not begin or end with one
•Names must not contain one of the followingcharacters: \ / : * ? “ < > |
•Names cannot be longer than 48 characters (plus null termination)
•File paths cannot be longer than 256 characters (filename included)
•The maximum number of simultaneously open files is 40
•The maximum number of simultaneously open directories is 40
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
3.2 File System Overview
user
pswd
email
pswd
email
sys_pswd.cfg
ad_pswd.cfg
ethcfg.cfg
pniocfg.cfg
email_1.cfg
email_10.cfg
...
...
email_1.cfg
email_10.cfg
RAM
http.cfg
ssi_str.cfg
(admin root)
(user root)
(volatile, optional)
(protected)
(protected)
ip_accs.cfg
File System25
3.3 System Files
The file system containsaset of filesused for systemconfiguration. These files, known as “system files”, are regular ASCII files which can be altered using a standardtext editor. Notethat some of these files may also be altered by the Anybus Communicator itself, e.g. when using SSI(see “ServerSide Include (SSI)” on page 35).
The format ofthe system files are based on the concept of “keys”, where each “key” can be assigned a value,see example below.
Example:
Theexact format of each system file is described later in this document.
The contents of the above files can be redirected:
[Key1]value of key1
[Key2]value of key2
Example:
In this example, the contents will be loaded fromthe file“here.cfg”.
[File path]\i\put\it\over\here.cfg
Note: Any directory in the file system can be protected from web access by placing the file web_accs.cfgin the directory, see “Authorization” on page 33.
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
4. Basic Network Configuration
4.1 General Information
The Anybus Communicator offers two modes of operation regarding the network settings (see below). Which mode to use is determined by the “TCP/IPSettings” parameter in Anybus Configuration Man-ager, see “Fieldbus Settings” on page 54.
•TCP/IP Settings: Enabled
When operating in this mode, the contents of the system file“ethcfg.cfg” will be ignoredcom-pletely, causing the following behavior:
-DNS services will not be available
-Domain and Host name cannot be set
-E-mail serviceswill not be available
-Settings received from the network (i.e. via HICPor DCP) will be lost in the event of a power loss or reset.
•TCP/IP Settings: Disabled
When operating in thismode, the Anybus Communicator module will use the settings stored in the systemfile “ethcfg.cfg”. If this file is missing, the module will attempt to retrieve its settings via DHCP or HICP for 30 seconds. If no configuration has been received within this period, the module will halt and indicate an error on its status LEDs.
Chapter 4
DCP (Discovery and Basic Configuration)
The Anybus Communicator fully supports the DCP protocol, which allows an IO Controller/Supervi-sor to change theTCP/IP settingsduringruntime.
DHCP/BootP
The Anybus Communicatorcan retrieve theTCP/IP settings from a DHCP or BootP server. If no DHCP server is found, the module will fall back on its current settings (i.e. thesettings currently storedin “\ethcfg.cfg”).
If no current settings are available (i.e. “ethcfg.cfg” is missing, or contains invalid settings), the module will halt and indicate an error on the onboard status LEDs. The network configuration may however still be accessed viaHICP, see “Anybus IPconfig (HICP)” on page 29.
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
Basic Network Configuration27
File Format:
[IP address]
xxx.xxx.xxx.xxx
[Subnet mask]
xxx.xxx.xxx.xxx
[Gateway address}
xxx.xxx.xxx.xxx
[DHCP/BOOTP]
ON or OFF
[SMTP address]
xxx.xxx.xxx.xxx
[SMTP username]
username
[SMTP password]
password
[DNS1 address]
xxx.xxx.xxx.xxx
[DNS2 address]
xxx.xxx.xxx.xxx
[Domain name]
domain
[Host name]
anybus
[HICP password]password
•IP address
•Subnet mask
•Gateway address
•DHCP/BootP
ON - EnabledOFF - Disabled
•SMTP server/login settings
Username and Password is only necessary if required by the server.
•Primary and Secondary DNS
Needed to beableto resolve host names
•Default domain name for not fully qualified host names
•Host name
•HICP password
4.2 Ethernet Configuration File (“ethcfg.cfg”)
4.2.1 General
To be able to participate on the network, the Anybus Communicator needs avalid TCP/IP configura-tion.These settings are storedin thesystem file“\ethcfg.cfg”.
The settings in this filemay also be affected by...
See also...
•DCP (See “DCP (Discoveryand Basic Configuration)” on page 26).
•HICP (See “Anybus IPconfig (HICP)” on page 29)
•SSI (See “Server Side Include (SSI)” on page 35)
•DHCP/BootP (See “DHCP/BootP” on page 26)
•Mailbox Commands (See “Mailbox Editor” on page 97)
•“FTP Server” on page 30
• “Fieldbus Settings” on page 54
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
Basic Network Configuration28
Example:
[Station Name]Nice Device
[Station Type]ABS-PRT
[Vendor ID]0x010C
[Device ID]0x0001
•Station Name
Station name as ASCII string, maximum 64 characters.
•Station Type
Station type as ASCII string, maximum 64 characters.
•Vendor ID
16 bithexadecimalvalue, with the prefix 0x. Assignedby the PNO.
•Device ID
16 bithexadecimalvalue, with the prefix 0x. Assignedby vendor.
File Format:
[Web]xxx.xxx.xxx.xxx
[FTP]xxx.xxx.xxx.xxx
[Modbus-TCP]xxx.xxx.xxx.xxx
[All]xxx.xxx.xxx.xxx
•Nodes listed here may access the web server
•Nodes listed here may access the FTP server
•Nodes listed here may access the modulevia Modbus-TCP
•Fallback setting,used by the module when one or several of the keys above are omitted
4.3 PROFINET Settings
The file “\pnio.cfg” holds various PROFINET-related settings. The fileis read once during startup, i.e. the Anybus Communicator must be restarted in order for any changes to have effect (unlessits contents has been changed byan IO Controller/Supervisor via the DCP protocol. In such case, the settings will have effect immediately).
4.4 IP Access Control
It is possible to specify which IP addresses that are permitted to connect to the Anybus Communicator. This information is storedinthe system file “\ip_accs.cfg”.
Note: * (asterisk) may be used as a wildcard to select IP series.
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
Basic Network Configuration29
4.5 Anybus IPconfig (HICP)
The Anybus Communicator supports the HICP protocol used by the Anybus IPconfig utility fromHMS, which can be downloaded free of charge from the HMS website. This utility may be used to con-figure the network settings of any Anybus product connected to the network. Note that if successful, thiswill replace the settings currently stored in the configuration file(“ethcfg.cfg”).
Upon starting the program, the network is scanned for Anybus products. The net-work can be rescanned at any time by clicking “Scan”. In the list of detected de-vices, the Anybus Communicator will ap-pear as “ABC-PRT”.To alter its network settings, double-click on its entry in thelist.
A window will appear, containing the IP configuration and password settings. Validate the new settings by clicking “Set”, or click “Cancel” to abort.
Optionally, the configuration may be protected from unauthorized access by a password. To enter a password, click on the “Change password” checkbox, and enter the password under “New password”.When protected, any changes in the configuration requires that the user supplies a valid password.
Whendone, click “Set”. The new IP configuration will now be storedin the configuration file (“eth-cfg.cfg”).
Note thatif “TCP/IP Settings” has been enabled in the Anybus Configuration Manager, any settingsreceivedvia HICP will be lost in the event of a power loss or reset.
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
5. FTP Server
5.1 General
The built-in FTP server provides a way to access the filesystem using a standard FTP client.
The following port numbers are used for FTP communication:
•TCP port 20 (FTP data port)
•TCP port 21 (FTP command port)
Security Levels
The FTPserver featurestwo security levels; admin and normal.
•Normal-level users
The root directorywill be “\user”.
•Admin-level users
The root directorywill be “\”, i.e. theuser has unrestrictedaccess to the file system.
Chapter 5
User Accounts
Theuser accounts are stored in two files, which are protected from web access:
•“\user\pswd\sys_pswd.cfg”
This file holds the useraccounts for normal-level users.
•“\pswd\ad_pswd.cfg”
This file holds the useraccounts for admin-level users.
Note: If no valid user accounts have been defined, the Anybus Communicator will grant admin-level access to all users. In such case, the FTP accepts any username/password combination, and the rootdirectory will be “\”.
Doc: HMSI-27-309, Rev. 3.11Anybus Communicator PROFINET User Manual
Loading...
+ 78 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.