User Guide 710e PROFINET IO Iss7
User Guide 710e PROFINET IO Iss7
PROFINET IO
Industrial Communication Protocol
In IR Gauges
www.ndcinfrared.com
Blank Page
Contents
Page 2
1. Ethernet Connectivity Introduction
NDC’s IR Gauges have the option of communicating via the Ethernet network.
This document contains the details of the network settings.
The Gauge User’s Guide contains information regarding the physical
installation and operation of the Gauge and its peripherals such as the OWS.
The GaugeToolsXL User’s Guide details the installation and operation of the
GaugeToolsXL software package.
This User’s Guide and any other files relating to the Protocol may be found on
the GaugeToolsXL CD supplied with the Gauge (in the appropriate folder).
NDC
IR Gauge NDC
NDC GaugeToolsXL
OWS optional
Other Devices…
Page 3
Multiple TCP/IP communications protocols may be used concurrently over the
Ethernet network; and it is possible to configure the settings and parameters
of the IR Gauge using the NDC GaugeToolsXL software.
Similarly, the NDC OWS may still be used to display output values from the
Gauge, while using various protocols to communicate with the host system.
The NDC OWS (or HMI or User Port) appears transparent to the protocols
used over the network.
3.1 GaugeToolsXL
The IR Gauge may be configured using the GaugeToolsXL software. To
change the settings of the IR Gauge, the GaugeToolsXL host computer
should be on the same subnet as the IR Gauge. This may be achieved by
temporarily changing the computer’s IP address to match the subnet of the IR
Gauge.
Make a note of the computer settings before changing them !
The IR Gauge default IP Address settings are detailed on the System
Configuration sheet supplied with each order.
3.2 OWS
The OWS is pre-configured by NDC to either a fixed IP address, or to
automatic IP address assignment (APIPA: DHCP or link-local 169.254.0.0/16).
The OWS IP settings are detailed on the System Configuration sheet supplied
with each order.
To change this setting, please contact NDC.
Page 4
3.3 IR Gauge
Start GaugeToolsXL and drag the Gauge node to the “Gauge Utility” icon.
Page 5
3.4 Device Name
PROFINET identifies the devices by name. It is important that the device
name set in the host system matches that as set in the gauge itself otherwise
communication will not be established.
IMPORTANT: Gauge firmware version prior to 1v3v8 must ensure that the
station name length is EVEN.
For example:
Bmm1234 will not work because the length is an ODD number of characters.
There are two ways of setting the device name for the gauge depending on
the firmware version. The firmware version can be found under the gauge
diagnostics from GTXL.
Page 6
3.4.1 Gauge firmware earlier than version 1v3v1.
The device name is set as the general name of the gauge using GTXL as
follows:
Note that this name must also be used as the Device name in the PLC.
Page 7
3.4.2 Gauge firmware version 1v3v1 and later.
The device name is set for ProfiNet communications (separate from the
general gauge name) using GTXL as follows:
Note that the version of GTXL must be version 2.3.2 or later to support this
function.
Note that this name must also be used as the Device name in the PLC.
Page 8
4. PROFINET IO Introduction
NDC’s IR Gauges have the option of communicating via the PROFINET IO
protocol. PROFINET IO utilizes the regular Ethernet network.
This document uses the terminology as defined in the PROFINET standard,
see PROFINET International – www.profinet.com for a complete reference.
The I/O data offered by the Gauge can be configured using the
GaugeToolsXL Protocol Parameter Selector tool (GTXL – PPS).
5. PROFINET IO Definitions
AR Application Relation
CR Connection Relation
DCP Discovery and basic Configuration Protocol
DHCP Dynamic Host Configuration Protocol
PI PROFINET International
RPC Remote Procedure Call
Page 9
6. PROFINET IO Implementation in IR Gauges
The Gauge implements a PROFINET IO Device with the following capabilities:
Cyclic (RT Class 1)
1 AR
1 Input CR
1 Output CR
1 Alarm CR
Cycle Time (interval between two parameter value updates):
New measurement data from hardware: 200 ms
Recommended for Pre 1v3v8 Firmware: 512ms
Recommended for 1v3v8 Firmware or higher: 256ms
Acyclic
Connected Mode: Read & Write record
Non-connected mode: Read record
General:
Processing DCP requests
Processing RPC requests
DHCP supported
PROFINET specification V2.1
Page 10
7. PROFINET IO Data Layout
The Data byte ordering is little endian by default – in accordance with the
protocol specification.
The GTXL – PPS tool provides a summary of the layout under
[ViewPROFINET Configuration]:
NOTE: The PROFINET cyclic I/O data size is variable depending on firmware
and GSDML configuration. If 252 bytes configuration is used and fewer
parameters are required, the data located in the unused area will be ignored.
The GSDML file section contains a complete reference of the I/O data format.
Page 11
8. PROFINET IO GSDML file
The GSDML is applicable to all types of IR Gauges, as it is not reliant on the
physical Gauge configuration.
Example GSDML file name: GSDML-V2.1-NDC-710e-20101220.xml, where
the last tag indicates the date of the creation.
Although the GSDML file doesn’t change too often, whenever the firmware is
updated in the gauge, check if there’s a newer GSDML file too.
Page 12
Initially, a dialog with an empty list will appear:
Page 13
9.3 Parameter Selection
The parameters of interest may be selected using the checkboxes in the
‘Select’ tab as shown below.
The selected parameters represent the input and output data of the gauge
through different protocols.
Page 14
9.3.1 Parameter List
The list in the tree shows all of the parameters available to the selected
Protocol.
Note that four channels are always displayed, regardless of how many
measurement channels are used in the connected Gauge. If the Gauge has
fewer than four channels, then the parameters for the missing channels will be
ignored by the Gauge and excluded from the I/O data communication.
If the Gauge has never had a configuration uploaded, it will use the following
parameters by default: (not an actual screen)
Page 15
9.3.2 Parameter Types
The symbol before the name indicates the parameter type.
If the symbol is shown in a red box, then the parameter is read-only. i.e. it is
an output from the Gauge, but not an nput. Both intput and output data sizes
will be identical, but any ‘read-only’ parameters in the input data will have no
effect on the Gauge.
The letter in the symbol indicates the native data type:
F – Floating Point Number
I – Integer
B – Boolean
S – String
Each numeric parameter (Float, Integer and Boolean) occupies 4 bytes in the
I/O data stream.
A String is 64 bytes long.
9.3.2.2 Integers
Integers are converted to 32-bit unsigned value (even if the parameter is a
two byte signed value).
Example (bytes on the network, little endian):
0x15 0xCD 0x5B 0x07 = 123456789
9.3.2.3 Booleans
Boolean values use 32-bits where zero (all bits) represents ‘FALSE’ and non-
zero (any bit) represents ‘TRUE’.
Example (bytes on the network, little endian):
0x00 0x00 0x00 0x00 = FALSE
0x01 0x00 0x00 0x00 = TRUE
Page 16
9.3.2.4 Strings
Strings consist of a series of wide (2-byte) characters, with the first two bytes
indicating the length of the string (in characters) if Length Indication In First
Two Bytes has been selected in the Settings tab of the Protocol Parameter
selector.
The maximum length of a string is 31 characters when Max.Size (Bytes) has
been set to 64. Any data after the indicated length is ignored.
Page 17
When configuring any device that includes strings, please make sure that the
string length and the total size of the data block does not exceed the Module
Size selected in the semantic S7 Hardware setup.
To reduce the parameter size of a string, change the Max. Size (Bytes):
number box to a smaller value.
Page 18
9.5 Other Settings
Page 19
9.6 View menu
The View menu shows a summary of the Configuration for the selected
protocol.
NOTE: This refers to the current offline settings, not necessarily what is in the
Gauge.
Page 20
10. Parameter List Introduction
This section briefly describes the main parameters available in the IR Gauge.
The parameters are displayed by GaugeToolsXL (GTXL) or the GTBrowser
software, and may be selected for communication over the chosen Ethernet
Protocol in the GTXL Protocol Parameter Selector (PPS) tool.
11.1 Abbreviations
HMI Operator Interface (Human – Machine Interface)
ADC Analogue to Digital Converter
<meas> Measurement Units (application defined)
A Amps
V Volts
s Seconds
ºC Degrees Celsius
rpm Revs per minute
Hz Hertz
kB/s Kilobytes per second
Page 21
12. Parameter List
12.1.2 Enabled
TRUE when the measurement is running.
It may be set to FALSE to disable the measurement.
12.1.5 Span
Multiplier factor for the Output: Output = (Span * X) + Trim
(Where X is the raw measurement value)
12.1.6 Trim
Offset for the output: Output = (Span * X) + Trim
(Where X is the raw measurement value)
Page 22
6: Window Contamination Warning
7: Cooler Fault
8: RX Head Fault
9: Internal Temperature High Error
10: Internal Temperature High Warning
11: Internal Temperature Low Warning
12: Signal High
13: Signal Low
14: Self-Test Error
12.2.2 HW Gate 0
Indicates the state of the hardware ‘Gate Input 0’ to the microprocessor
(Normally used for photocells) TRUE = No product detected.
12.2.3 HW Gate 1
A second Input similar to HW Gate 0.
Page 23
12.2.10 Temperature External [oC]
The product (target material) temperature
This is only available on Gauges fitted with an external temperature sensor.
Page 24
12.2.21 Height Product Signals Valid
TRUE if the Product height detectors are working within their valid range
(where the Internal Gating option is fitted).
Page 25
IMPORTANT: The Indexes are Integers, and as such will be converted to 32
bits (unsigned) as are all other Integer parameters.
Page 26
12.5.2 Batch Last SD
The Standard Deviation of the last complete batch to be sampled
Page 27
Control
The Control bit field has four values associated with batch control.
Suspend
The Suspend bit stops measurement data from being added to the batch
Mean and SD while it is set to ‘1’. When it is reset to ‘0’, the batch is resumed.
It is possible to start a batch with the Suspend bit set to ‘1’. This resets the
Active Mean and SD to zero, but disallows updates until the Suspend bit is
reset to ‘0’
Applying a hardware Gate input to the Gauge has the same effect as
suspending the batch. When the Gate signal is removed, the batch resumes.
(The suspend bit does not reflect the state of the Gate input)
Page 28
12.6 Other Output Options
Page 29
13. Simatic Step 7
This chapter describes how to add NDC IR gauge to a PROFINET project.
The starting point is an existing S7 project, which is set up for PROFINET
network and contains at least one configured PLC.
Open the project and go to HW Configuration, the following screen shot is has
been configured with a CPU 315-2 PN/DP and has had a PRONET IO system
inserted. Use a correct configuration for your hardware.
Page 30
13.1 PROFINET Device Name
IMPORTANT: PROFINET uses lowercase names! Always use a name that
comprises lowercase alpha/numeric characters and ensure that the length is
EVEN as per the screen shot below if using firmware previous to 1v3v8
Page 31
Page 32
13.3 Add Gauge
In the right panel browse for the device “NDCPRT” described in the previously
installed GSDML file.
Drag and drop to the black-white line representing the PROFINET network.
It creates an object for the gauge instance.
Page 33
13.3.2 Gauge firmware with version 1v3v8 or above.
Drag the Firmware Version 1v3v8 or Above to the PROFINET IO System.
Drag a module from NDC Modules section to slot one, making sure that
input/output module size is greater than the size of data selected in the
GaugeToolsXL protocol parameter selector.
Page 34
13.4 Gauge Properties
Select Object Properties… in the right-click menu of NDCPRT object.
Change the default name to the same device name as can be seen in GTXL.
IMPORTANT: PROFINET uses lowercase names! Always use a name that
matches that set in the gauge and comprises lowercase alpha/numeric
characters and ensure that the length is EVEN if using firmware previous to
1v3v8.
Specify also the same IP address as configured in GTXL.
Note that PROFINET will change the IP of the gauge to this IP even if
configured differently in GTXL. However it is recommended to use the same
IP in GTXL and in S7 configuration to avoid confusion.
Check if the version of GSDML is the same as the one installed previously.
Page 35
Switch to [IO Cycle] tab page
The Mode will default to automatic. Depending on the Firmware version of
your device, the update time (ms) will either default to 256 ms or 512 ms.
Now the project is configured for NDC IR gauge! Don’t forget to Save and
Compile… and Download to the PLC.
Page 36
14. S7 Diagnostic
Choose Station Open ONLINE in HW Configuration application.
Get Module Information by right-clicking on the IR Gauge device.
Page 37
15. Troubleshooting
Page 38
15.2 SF Led remains Red
If the following diagnostic errors can be seen and the SF Led remains Red, it
is most likely that the size of the IO data selected in the Protocol Parameter
Selector is larger than the Module size dragged onto slot 1.
To resolve refer to section 9 and section 13.3.2
Page 39