Comtrol DeviceMaster Up User manual

PROFINET CbA User Guide

Trademark Notices
Comtrol, DeviceMaster, and PortVision are registered trademarks of Comtrol Corporation.
PLC is a registered trademark of Allen-Bradley Company, Inc.
Ethernet is a registered trademark of Digital Equipment Corporation, Intel, and Xerox Corporation.
SIMATIC and Step7 are registered trademarks of Siemens AG.
Portions of SocketServer are copyrighted by GoAhead Software, Inc. Copyright © 2001. GoAhead Software,
Inc. All Rights Reserved.
Windows is a registered trademark of Microsoft Corporation in the United States and/or other countries.
Other product names mentioned herein may be trademarks and/or registered trademarks of their respective
owners.
Fourth Edition, September 6, 2008
Copyright © 2005-2008. Comtrol Corporation.
All Rights Reserved.
Comtrol Corporation makes no representations or warranties with regard to the contents of this document or
to the suitability of the Comtrol product for any particular purpose. Specifications subject to change without
notice. Some software or features may not be available at the time of publication. Contact your reseller for
current product information.
Document Number: 2000409 Rev D

Contents DeviceMaster UP PROFINET CbA User Guide: 2000409 Rev. D - iii
Contents
Chapter 1. Introduction ....................................................................................................... 5
1.1. Audience ...................................................................................................................................................5
1.2. Product Overview...................................................................................................................................5
1.3. Locating Updated Software and Documents ...................................................................................6
1.4. PROFINET CbA Application Setup ....................................................................................................6
Chapter 2. Programming Interface ................................................................................... 9
2.1. Overview ...................................................................................................................................................9
2.2. PROFINET CbA Communication Properties ...................................................................................9
2.2.1. What is PROFINET CbA? ............................................................................................................... 9
2.2.2. Transfer Modes .............................................................................................................................. 10
2.2.3. Quality of Service (QOS) ............................................................................................................... 10
2.3. Packet Identification ...........................................................................................................................11
2.4. Setting Baud Rate and Other Serial Parameters..........................................................................12
2.5. PROFINET CbA Component ..............................................................................................................12
2.5.1. What is SIMATIC iMap? ............................................................................................................... 12
2.5.2. Component Interface ..................................................................................................................... 12
2.5.3. Interconnections ............................................................................................................................12
2.5.4. SIMATIC iMap Variables.............................................................................................................. 13
2.5.4.1. SIMATIC iMap Variables for the 1-Port ........................................................................ 13
2.5.4.2. SIMATIC iMap Variables for the 4-Port ........................................................................ 13
2.5.4.3. Input Variables................................................................................................................ 14
2.5.4.4. Output Variables.............................................................................................................14
2.5.5. Programming Suggestions ............................................................................................................ 14
2.5.6. Maximum Length for a Serial Packet .......................................................................................... 15
2.5.6.1. DeviceMaster UP (1-Port)...............................................................................................15
2.5.6.2. DeviceMaster UP (4-Port)...............................................................................................15
2.6. How the DeviceMaster UP Transmits Data....................................................................................16
2.6.1. Receive Serial Packet Example..................................................................................................... 16
2.6.2. Send Serial Packet Example .........................................................................................................17
2.6.3. Send/Receive Serial Packet Example ........................................................................................... 17
2.7. Handshaking (Optional)......................................................................................................................18
2.7.1. General Serial Transfer Procedure: Handshaking Enabled ....................................................... 18
2.7.2. General Serial Transfer Procedure: Handshaking Disabled....................................................... 19
Chapter 3. Configuring the DeviceMaster UP .............................................................. 21
3.1. Accessing the Server Configuration Page ......................................................................................21
3.2. Server Configuration Page.................................................................................................................22
3.2.1. Main Page Fields and Areas ......................................................................................................... 23
3.2.2. Serial Counters .............................................................................................................................. 24
3.2.3. Status Area ....................................................................................................................................25
3.3. Edit Network Configuration Page....................................................................................................26
3.4. Edit Port Configuration ......................................................................................................................27
3.4.1. Edit Serial Configuration .............................................................................................................. 28
3.4.2. Packet ID Settings ......................................................................................................................... 29
3.4.3. Saving Port Options....................................................................................................................... 30
3.5. Configuration Updated .......................................................................................................................30

iv - DeviceMaster UP PROFINET CbA User Guide: 2000409 Rev. D Contents
Contents
Chapter 4. Commissioning the DeviceMaster UP........................................................ 31
4.1. Overview .................................................................................................................................................31
4.2. Importing the PROFINET CbA Component into a SIMATIC iMap Library ...........................32
4.3. Inserting the PROFINET CbA Component into a SIMATIC iMap Project .............................33
4.3.1. What is a Technological Function? ............................................................................................... 33
4.3.2. What is a PROFINET CbA Number? ...........................................................................................33
4.3.3. Procedure ....................................................................................................................................... 34
4.4. Enabling the Serial Port in SIMATIC iMap....................................................................................35
4.5. Interconnecting Technological Functions .....................................................................................35
4.5.1. What are Interconnections? .......................................................................................................... 35
4.5.2. Rules for Interconnection .............................................................................................................. 36
4.5.3. Requirements................................................................................................................................. 36
4.5.4. Procedure ....................................................................................................................................... 36
4.6. Setting a Project’s Transfer Properties...........................................................................................37
4.6.1. Defining Transfer Properties for the Interconnections of an Entire Project.............................. 37
4.6.2. Changing the Transfer Properties of an Interconnection............................................................ 38
4.7. Assigning Addresses.............................................................................................................................39
4.7.1. Procedure ....................................................................................................................................... 39
4.8. Using PortVision Plus to Change the PROFINET CbA Number ...............................................40
4.8.1. Procedure ....................................................................................................................................... 40
4.9. Downloading Interconnections from SIMATIC iMap ..................................................................41
4.10. Documenting and Printing a Project.............................................................................................41
4.10.1. Contents of Project Documentation ............................................................................................ 41
4.10.2. Procedure ..................................................................................................................................... 41
4.11. Changing the IP Address ..................................................................................................................42
4.11.1. Erasing Persistent Connections.................................................................................................. 42
4.11.2. Changing the IP Address ............................................................................................................ 43
4.11.3. Changing the IP Address in SIMATIC iMap ............................................................................. 43
4.11.4. Downloading Interconnections.................................................................................................... 44
Index...................................................................................................................................... 45

Chapter 1. Introduction DeviceMaster UP PROFINET CbA User Guide: 2000409 Rev. D - 5
Chapter 1. Introduction
The PROFINET CbA User Guide discusses the following topics:
•Chapter 2. Programming Interface on Page 11
•Chapter 3. Embedded Configuration Pages on Page 25
•Chapter 4. Embedded Diagnostic and Statistics Pages on Page 43
For information about connecting the hardware, programming the DeviceMaster UP IP address, or uploading
firmware, see the DeviceMaster UP Hardware Installation and Configuration Guide.
See the Quick Start for embedded web page configuration procedures if you have Read-only or read/write
devices, which provides procedures for your devices.
See 1.3. Locating Updated Software and Documents on Page 6 to locate the latest firmware, documentation,
and tools.
1.1. Audience
The primary audience of this document is the person responsible for installing and commissioning the
DeviceMaster UP. This guide assumes you are familiar with the following topics:
• Windows operating system
• PROFINET CbA
• Siemens S7 PLC (optional)
• SIMATIC iMap configuration program
1.2. Product Overview
The DeviceMaster UP is a PROFINET CbA (Component Based Automation) device server after you upload
the firmware over the default application. After uploading the firmware, the DeviceMaster UP provides an
PROFINET CbA interface to serial device or devices, so you can simply add serial devices to your facilities’
PLC®platform.
The DeviceMaster UP provides a PROFINET CbA interface for 1 and 4-port models, which may or may not
have the PROFINET CbA firmware loaded (depending on the model you purchased).
Note: Models that have PROFINET CbA loaded on the DeviceMaster UP are identified in PortVision Plus
and the DeviceMaster UP is labeled accordingly.
This document describes how to configure the DeviceMaster UP for the PROFINET CbA protocol after basic
DeviceMaster UP installation and configuration procedures.
You can easily configure and manage devices through the SIMATIC iMap configuration program.
The DeviceMaster UP supports a Soft Real-Time (SRT) of 10 ms.

6 - DeviceMaster UP PROFINET CbA User Guide: 2000409 Rev. D Chapter 1. Introduction
Locating Updated Software and Documents
1.3. Locating Updated Software and Documents
You can access the firmware software assembly, PortVision Plus, and the DeviceMaster UP documentation
from the CD shipped with the DeviceMaster UP or you can download the latest files using these internet
links.
Optionally, you can check for any updated files using this URL: http://support.comtrol.com/
download.asp?product=DMUP.
1.4. PROFINET CbA Application Setup
Before you can configure PROFINET CbA protocol on the DeviceMaster UP, you must have previously
performed the following steps:
• Install the hardware
•InstallPortVisionPlus
• If necessary, upload the PROFINET CbA firmware using PortVision Plus
Note: Models that have PROFINET CbA loaded on the DeviceMaster UP are identified in PortVision Plus
and the DeviceMaster UP is labeled accordingly.
• Configure the DeviceMaster UP IP address using PortVision Plus
Note: If necessary, refer to the DeviceMaster UP Hardware Installation and Configuration Guide for the
above procedures.
DeviceMaster UP
Hardware Installation and Configuration Guide contains hardware
installation, PortVision Plus installation, and if necessary, firmware
updating procedures.
PortVision Plus
PortVision Plus is the application that you use to configure network
settings and if necessary, upload the firmware.
PROFINET CbA Firmware
PROFINET CbA (.msi) contains the firmware and supporting files.
The firmware provides embedded configuration web pages.
PROFINET CbA Documentation
PROFINET CbA Quick Start is an outline of the installation and
configuration procedures with links to the appropriate documents.
PROFINET CbA User Guide contains protocol specific information
about configuring the DeviceMaster UP.

Chapter 1. Introduction DeviceMaster UP PROFINET CbA User Guide: 2000409 Rev. D - 7
PROFINET CbA Application Setup
Use the following steps to complete the DeviceMaster UP configuration for PROFINET CbA.
1. Change the DeviceMaster UP serial port settings using Chapter 3. Embedded Configuration Pages on
Page 25.
2. Commission the device. For more information, see the instructions in Chapter 4. Commissioning the
DeviceMaster UP on Page 31.
3. Connect your serial device or devices and make sure all Ethernet devices are attached to the same
Ethernet subnet. If necessary, refer to the DeviceMaster UP Hardware Installation and Configuration
Guide.

8 - DeviceMaster UP PROFINET CbA User Guide: 2000409 Rev. D Chapter 1. Introduction
PROFINET CbA Application Setup

Chapter 2. Programming Interface DeviceMaster UP PROFINET CbA User Guide: 2000409 Rev. D - 9
Chapter 2. Programming Interface
2.1. Overview
The DeviceMaster UP provides a PROFINET CbA interface for 1 to 4 serial ports. This section is intended for
the application programmer responsible for installing this product.
This section covers the following topics:
•2.2. PROFINET CbA Communication Properties
•2.3. Packet Identification
•2.4. Setting Baud Rate and Other Serial Parameters
•2.5. PROFINET CbA Component
•2.6. How the DeviceMaster UP Transmits Data
•2.7. Handshaking (Optional)
2.2. PROFINET CbA Communication Properties
When you install the PROFINET CbA firmware on the DeviceMaster UP, the DeviceMaster UP uses the
PROFINET CbA properties. You can set these communication property values through SIMATIC iMap. The
following subsections describe:
•2.2.1. What is PROFINET CbA?
•2.2.2. Transfer Modes
•2.2.3. Quality of Service (QOS)
For additional information, see 4.6. Setting a Project’s Transfer Properties on Page 37.
2.2.1. What is PROFINET CbA?
PROFINET CbA is the Ethernet-based automation standard issued by the PROFIBUS Nutzerorganisation
e.V. (PNO). The PROFINET CbA standard defines a cross-vendor communication, automation and
engineering model.
It has three objectives:
• Open, distributed automation
• Standardized communication through field bus and Ethernet
• Use of open IT standards.
PROFINET CbA specifies the functions for implementing an integrated automation package, from
installation of the network right through to web-based diagnostics. The modular structure means you can
easily upgrade PROFINET CbA with additional functions in the future.

10 - DeviceMaster UP PROFINET CbA User Guide: 2000409 Rev. D Chapter 2. Programming Interface
Transfer Modes
2.2.2. Transfer Modes
DeviceMaster UP supports the following transfer modes over Industrial Ethernet:
•Cyclical - Use this transfer mode for time-critical data.
•Acyclical - Use this transfer mode for engineering data and non time-critical data.
The transfer modes are selectable properties for the DeviceMaster UP. You can change these properties
through SIMATIC iMap. The following table displays the supported transfer properties for DeviceMaster UP.
For additional information, see 2.5.6. Maximum Length for a Serial Packet on Page 15.
2.2.3. Quality of Service (QOS)
Each transfer mode has a quality of service:
•Transfer frequency (cyclical) - The time after a data item is transferred again in cyclical transfer
mode (for example, every 10 ms). Use this transfer mode for Soft Real-Time (SRT).
•Scanning frequency (acyclical) - Determines how frequently the data is polled (for example, every 100
ms) in acyclical transfer mode. The scanning frequency is the maximum time that elapses before a change
in value is transferred.
You can set a transfer or scanning frequency to fast, medium, or low frequency. You can also change the
transfer value within the following ranges:
•Cyclical range - 10 ms to 1000 ms.
•Acyclical range - 100 to 1000 ms
For additional information, see 2.5.6. Maximum Length for a Serial Packet on Page 15 and 4.6. Setting a
Project’s Transfer Properties on Page 37.
Transfer Mode Frequency Value
Cyclical
Fast 10 ms
Medium 50 ms
Slow 100 ms
Acyclical
Fast 100 ms†
Medium 500 ms
Slow 1000 ms
†The DeviceMaster UP has a minimum value of 100 ms for
acyclical transfer mode. To change this value to 100 ms,
see the instructions in 4.6. Setting a Project’s Transfer
Properties on Page 37

Chapter 2. Programming Interface DeviceMaster UP PROFINET CbA User Guide: 2000409 Rev. D - 11
Packet Identification
2.3. Packet Identification
DeviceMaster UP polls the serial ports and gathers serial data into packets. The PROFINET CbA protocol
moves these serial packets to the Programmable Logic Controller (PLC). Note that this device does not act as
a gateway for serial streams of data. DeviceMaster UP gathers all serial data into packets.
Serial packets are identified by STX and ETX characters or the timeout feature.
•Start of Text (STX) - A delimiter that marks the beginning of a packet.
•End of Text (ETX) - A delimiter that marks the end of a packet.
•Timeout - Packets are identified by an absence of characters for a specified period of time.
The following tables show the available options.
As seen from the table, you must configure either an ETX or Timeout (or both).
When you enable STX, the DeviceMaster UP scans for STX and behaves accordingly:
• When the first byte is STX, the DeviceMaster UP collects the data. When the DeviceMaster UP finds an
ETX or Timeout, the DeviceMaster UP declares the data to be a packet and moves the packet into the
bstring output variable.
• If the first byte is not STX, the DeviceMaster UP discards the byte. The DeviceMaster UP continues to
discard bytes until it finds an STX.
When you enable ETX and/or timeout, DeviceMaster UP scans for ETX and/or waits for a Timeout and
behaves accordingly:
• When you enable ETX, the DeviceMaster UP scans the serial data for the ETX. When the DeviceMaster
UP finds an ETX, it stores the data as a packet.
• When you enable Timeout, and the time between characters exceeds the Timeout value, the DeviceMaster
UP stores the data as a packet.
Note: You can enable ETX and Timeout together.
The DeviceMaster UP polls the serial port for serial data. The collection of a packet may span multiple polling
periods. If a packet exceeds 128 bytes, DeviceMaster UP discards the packet.
When you enable Strip STX/ETX Characters, DeviceMaster UP strips the STX and ETX characters in packets
received from the serial port.
Note: Serial Packets sent from the PLC to the DeviceMaster UP (over Ethernet), and then sent out the serial
port, are not checked for STX/ETX. No STX/ETX character stripping occurs in these serial packets,
and framing/parity/overrun error checking does not apply.
You can modify the STX, ETX, and Timeout values through the web page for the DeviceMaster UP. For more
information, see the instructions in 3.1. Accessing the Server Configuration Page on Page 21. Additional
information on the web page is provided in Chapter 3. Configuring the DeviceMaster UP on Page 21.
STX ETX Timeout Result
No No No Invalid, no packet ID method
No No Yes Timeout used to detect end of packet
No Yes No ETX used to detect end of packet
No Yes Yes ETX or timeout used to detect end of packet
Yes No No Invalid, no packet ID method
Yes No Yes STX starts packet, timeout used to detect end
Yes Yes No STX-ETX used to detect start and end
Yes Yes Yes STX starts packet, ETX or timeout used to detect end

12 - DeviceMaster UP PROFINET CbA User Guide: 2000409 Rev. D Chapter 2. Programming Interface
Setting Baud Rate and Other Serial Parameters
2.4. Setting Baud Rate and Other Serial Parameters
You can modify the baud rate value and other serial port settings through the web page for the DeviceMaster
UP. See the following topics for instructions:
• See the DeviceMaster UP Hardware Installation Guide for information about using PortVision Plus to
configure network settings on the DeviceMaster UP
•3.1. Accessing the Server Configuration Page on Page 21
•4.8. Using PortVision Plus to Change the PROFINET CbA Number on Page 40
2.5. PROFINET CbA Component
The PROFINET CbA component is written in XML (Extended Markup Language) and is intended for use
with SIMATIC iMap. There are two XML files shipped on the CD for the DeviceMaster UP in the .MSI file.
They are also available for downloading from the Internet. These XML files are included in the .MSI file:
•deviceMaster_1Port.xml - for a DeviceMaster UP 1-port.
•deviceMaster_4Port.xml - for a DeviceMaster UP 4-port.
See 1.3. Locating Updated Software and Documents on Page 6 for information on locating these files.
2.5.1. What is SIMATIC iMap?
SIMATIC iMap is a device-independent engineering tool designed by Siemens for Component based
Automation (CBA). Use it to configure, commission and monitor modular, distributed automation systems
based on the PROFINET CbA standard. For more information, see Chapter 4. Commissioning the
DeviceMaster UP on Page 31.
2.5.2. Component Interface
The component interface defines the connectors (that is, the inputs and outputs) of the PROFINET CbA
component. The connectors represent the external communication interface that is accessed through
Ethernet and is visibly represented through SIMATIC iMap. Each connector has a direction (either input or
output). You can interconnect inputs and outputs that are visibly represented through SIMATIC iMap. For
more information on input and output variables, see 2.5.4. SIMATIC iMap Variables on Page 13.
2.5.3. Interconnections
In SIMATIC iMap. the interconnection is the connection between an output and an input. You can connect an
output to one or more inputs. When you download the interconnections to the device, the corresponding
communication links are automatically established between senders and receivers. For more information, see
4.5. Interconnecting Technological Functions on Page 35.

Chapter 2. Programming Interface DeviceMaster UP PROFINET CbA User Guide: 2000409 Rev. D - 13
SIMATIC iMap Variables
2.5.4. SIMATIC iMap Variables
The SIMATIC iMap variables for the DeviceMaster UP are contained in a PROFINET CbA component. When
you insert the PROFINET CbA component into a project (see 4.3. Inserting the PROFINET CbA Component
into a SIMATIC iMap Project on Page 33), you can view the SIMATIC iMap variables associated with the
device through the Plant view in SIMATIC iMap. The DeviceMaster UP presents the SIMATIC iMap
variables provided in the following SIMATIC iMap variable tables. These variables use the following
semantics:
•SEND – refers to sending serial data
•RECV – refers to receiving serial data
For more information on SIMATIC iMap, see the on-line help in SIMATIC iMap.
2.5.4.1. SIMATIC iMap Variables for the 1-Port
The following table displays SIMATIC iMap variables for a DeviceMaster UP 1-port. The input and output
variables in this table are described in 2.5.4.3. Input Variables on Page 14 and 2.5.4.4. Output Variables on
Page 14.
2.5.4.2. SIMATIC iMap Variables for the 4-Port
The following table displays SIMATIC iMap variables for a DeviceMaster UP 4-port. The input and output
variables in this table are described in 2.5.4.3. Input Variables on Page 14 and 2.5.4.4. Output Variables on
Page 14.
Input Data Type Output Data Type
P1_SEND_DATA BSTR[128] P1_RECV_DATA BSTR[128]
P1_SEND_HSK_ID unsigned short P1_RECV_HSK_ID unsigned short
P1_RECV_HSK_ACK unsigned short P1_SEND_HSK_ACK unsigned short
P1_ENABLE bool P1_ENABLED bool
P1_RESET bool P1_STATUS unsigned long
Input Data Type Output Data Type
P1_SEND_DATA BSTR[128] P1_RECV_DATA BSTR[128]
P1_SEND_HSK_ID unsigned short P1_RECV_HSK_ID unsigned short
P1_RECV_HSK_ACK unsigned short P1_SEND_HSK_ACK unsigned short
P1_ENABLE bool P1_ENABLED bool
P1_RESET bool P1_STATUS unsigned long
P2_SEND_DATA BSTR[64] P2_RECV_DATA BSTR[64]
P2_SEND_HSK_ID unsigned short P2_RECV_HSK_ID unsigned short
P2_RECV_HSK_ACK unsigned short P2_SEND_HSK_ACK unsigned short
P2_ENABLE bool P2_ENABLED bool
P2_RESET bool P2_STATUS unsigned long
P3_SEND_DATA BSTR[128] P3_RECV_DATA BSTR[128]
P3_SEND_HSK_ID unsigned short P3_RECV_HSK_ID unsigned short
P3_RECV_HSK_ACK unsigned short P3_SEND_HSK_ACK unsigned short
P3_ENABLE bool P3_ENABLED bool
P3_RESET bool P3_STATUS unsigned long
P4_SEND_DATA BSTR[64] P4_RECV_DATA BSTR[64]
P4_SEND_HSK_ID unsigned short P4_RECV_HSK_ID unsigned short
P4_RECV_HSK_ACK unsigned short P4_SEND_HSK_ACK unsigned short
P4_ENABLE bool P4_ENABLED bool
P4_RESET bool P4_STATUS unsigned long

14 - DeviceMaster UP PROFINET CbA User Guide: 2000409 Rev. D Chapter 2. Programming Interface
Input Variables
2.5.4.3. Input Variables
The following table describes the input variables.
2.5.4.4. Output Variables
The following table describes output variables.
2.5.5. Programming Suggestions
When you configure the PLC program, consider the following:
• You must enable the serial port (Px_ENABLE) in the PLC program before data can flow. Alternately, you
can tie this pin to True in SIMATIC iMap. See 4.4. Enabling the Serial Port in SIMATIC iMap on Page 35
for instructions.
• You must initialize the DeviceMaster UP inputs for the handshake variables to zero.
• You can use reset (Px_RESET) in the PLC program to break out of hang or error conditions. Toggling the
enable False-True will have the same effect.
Name Usage
Px_SEND_DATA This variable contains serial data that is sent out the serial port. The PLC
writes this variable.
Px_SEND_HSK_ID
This variable sends the handshake ID. The handshake ID acts as a sequence
number. When incremented, it indicates to the DeviceMaster UP that the
Px_SEND_DATA contains a new packet of serial data.
Px_RECV_HSK_ACK
This variable sends the receive handshake acknowledgement. When you enable
handshaking, DeviceMaster UP acknowledges that the packet in
Px_RECV_DATA has been consumed. When you disable handshaking, this value
is zero.
Px_ENABLE
This variable opens the serial port and allows serial data to flow. When you
enable the port, it also performs a port reset (flushes FIFOs, clears counters,
etc.).
Px_RESET This variable initializes the serial port, flushes FIFOs, clears counters, and
resets handshaking variables.
Name Usage
Px_RECV_DATA This variable contains a packet of serial data that was received by the
DeviceMaster UP.
Px_RECV_HSK_ID
This variable receives the handshake ID. The handshake ID acts as a sequence
number. When incremented, it indicates to the DeviceMaster UP that the
Px_RECV_DATA contains a new packet of serial data.
Px_SEND_HSK_ACK
This variable sends the handshake acknowledgement. When you enable
handshaking, DeviceMaster UP acknowledges that the packet in
Px_SEND_DATA has been consumed. When you disable handshaking, this value
is zero.
Px_ENABLE This variable indicates that the serial port is enabled (opened).
Px_STATUS This variable indicates device status and includes the results of the last send
and receive operations.

Chapter 2. Programming Interface DeviceMaster UP PROFINET CbA User Guide: 2000409 Rev. D - 15
Maximum Length for a Serial Packet
2.5.6. Maximum Length for a Serial Packet
When you make SIMATIC iMap connections, you need to consider maximum length and QOS for serial
packets. For more information on creating connections, see 4.6. Setting a Project’s Transfer Properties on Page
37.
2.5.6.1. DeviceMaster UP (1-Port)
If you have a DeviceMaster UP 1-port, you can configure the connections to a port for one of the following
QOS options:
•Cyclical
-Fast
-Medium
-Slow
•Acyclical
-Fast
-Medium
-Slow
The port allows a serial packet length of 128 bytes.
The following example shows the serial packet length and optimal QOS setting for a DeviceMaster UP 1-port.
Due to PROFINET CbA restrictions, the packet lengths are fixed as shown in the following table.
2.5.6.2. DeviceMaster UP (4-Port)
If you have a DeviceMaster UP 4-port, you can configure the connections for two ports to use one QOS setting
(for example, cyclical fast). The connections to the other two ports must be configured to another QOS setting
(for example, cyclical medium).
Note: You cannot configure the connections to all ports to the same QOS setting.
The following example shows the serial packet length and optimal QOS setting for each port on a
DeviceMaster UP 4-port. Due to PROFINET CbA restrictions, the serial packet lengths are fixed as shown in
the following table.
For more information, see 2.2. PROFINET CbA Communication Properties on Page 9.
Port Number Serial Packet Length Recommended QOS
0 128 Cyclical Fast
Port Number Serial Packet Length Recommended QOS
0 128 Cyclical Fast
164CyclicalFast
2 128 Cyclical Medium
3 64 Cyclical Medium

16 - DeviceMaster UP PROFINET CbA User Guide: 2000409 Rev. D Chapter 2. Programming Interface
How the DeviceMaster UP Transmits Data
2.6. How the DeviceMaster UP Transmits Data
The following information describes how the DeviceMaster UP sends and receives data.
2.6.1. Receive Serial Packet Example
The following diagram shows how data flows when using DeviceMaster UP to receive serial data.
The following example shows a SIMATIC iMap connection.
Serial
Device
DeviceMaster PLC
Serial Packet
Receive Serial Packet
Px_RECV_DATA
Px_RECV_HSK_ID
PX_RECV_HSK_ACK
Receive Serial Packet - iMap Connections
RECV_SERIAL_DATA
RECV_HSK_ID
RECV_HSK_ACK
Px_RECV_DATA
Px_RECV_HSK_ID
Px_ENABLE
Px_RECV_HSK_ACK
HIGH
(True)
PLC Component DeviceMaster

Chapter 2. Programming Interface DeviceMaster UP PROFINET CbA User Guide: 2000409 Rev. D - 17
Send Serial Packet Example
2.6.2. Send Serial Packet Example
The following diagram shows how data flows when using DeviceMaster UP to send serial data.
The following example shows a SIMATIC iMap connection.
2.6.3. Send/Receive Serial Packet Example
You can configure full-duplex serial traffic by using both the Send and Receive connections.
The following example shows a SIMATIC iMap connection.
Serial
Device
DeviceMaster PLC
Serial Packet
Send Serial Packet
Px_SEND_DATA
Px_SEND_HSK_ID
PX_SEND_HSK_ACK
Send Serial Packet - SIMATIC iMap Connections
SEND_SERIAL_DATA
SEND_HSK_ID
SEND_HSK_ACK
Px_SEND_DATA
Px_SEND_HSK_ID
Px_ENABLE
Px_SEND_HSK_ACK
HIGH
(True)
PLC Component DeviceMaster UP
Send/Receive Serial Packet - SIMATIC iMap Connections
RECV_SERIAL_DATA SEND_SERIAL_DATA
RECV_HSK_ID SEND_HSK_ID
SEND_HSK_ACK
RECV_HSK_ACK
Px_SEND_DATA Px_RECV_DATA
Px_SEND_HSK_ID Px_RECV_HSK_ID
Px_ENABLE
PX_RECV_HSK_ACK Px_SEND_HSK_ACK
HIGH
(True)
PLC Component DeviceMaster

18 - DeviceMaster UP PROFINET CbA User Guide: 2000409 Rev. D Chapter 2. Programming Interface
Handshaking (Optional)
2.7. Handshaking (Optional)
Handshaking between the DeviceMaster UP and the PLC assures the producer (for example, the PLC
component) that the consumer (for example, DeviceMaster UP) received the serial packet. The producer must
know this before it sends another packet. This avoids possible data loss that might occur due to dissimilar
polling periods or system busy conditions.
Handshaking is optional. When you disable handshaking, serial data transfer is simplified. You must ensure
that the duty cycle of the serial packets is low enough to prevent data loss.
2.7.1. General Serial Transfer Procedure: Handshaking Enabled
When you enable handshaking, the handshake variables HSK_ID and HSK_ACK act as flags to the serial
data producer and consumer. In the initial state, producer and consumer set the handshake variables
HSK_ID and HSK_ACK to zero and behave according to the following state machine:
Consumer Producer
1. Consumer loops reading HSK_ID.
2. Producer writes packet of
serial data to DATA variable.
3. Producer increments HSK_ID.
4. Producer loops reading
HSK_ACK.
5. Consumer observes incremented
HSK_ID, consumes DATA.
6. Consumer writes HSK_ACK to
equal HSK_ID.
7. Producer observes HSK_ACK
equals HSK_ID. Serial packet
has been consumed.
Repeat

Chapter 2. Programming Interface DeviceMaster UP PROFINET CbA User Guide: 2000409 Rev. D - 19
General Serial Transfer Procedure: Handshaking Disabled
2.7.2. General Serial Transfer Procedure: Handshaking Disabled
When you disable handshaking, only HSK_ID is used as a transfer flag between producer and consumer, and
producer and consumer behave according to the following state machine:
Consumer Producer
1. Consumer loops reading HSK_ID.
2. Producer writes packet of
serial data to DATA variable.
3. Producer increments HSK_ID.
4. Consumer observes incremented
HSK_ID, consumes DATA.
Repeat

20 - DeviceMaster UP PROFINET CbA User Guide: 2000409 Rev. D Chapter 2. Programming Interface
General Serial Transfer Procedure: Handshaking Disabled
Other manuals for DeviceMaster Up
1
Table of contents
Other Comtrol Network Hardware manuals
Popular Network Hardware manuals by other brands

Extreme Networks
Extreme Networks ExtremeCloud Appliance E2120 installation guide

E.F. Johnson Company
E.F. Johnson Company VR-CM50 installation guide

Inter-m
Inter-m NCIO-1000 Operation manual

Swann
Swann NVR-7072 instruction manual

Huawei
Huawei RT-FIC-1AE3 Specifications

ZyXEL Communications
ZyXEL Communications NSA-2400 quick start guide