5.10.10External inputs and faults in the data exchange ....................................... 49
1.1Preface
B
1 Introduction
Please read this manual before starting up the interface. Keep the manual in a
place which is accessible to all users at all times.
Please assist us to improve this manual.
Your suggestions will be welcome.
If any difficulties should arise during commissioning, you are asked
H
E
not to carry out any unauthorized manipulations. You could endanger your rights under the instrument warranty!
Please contact the nearest subsidiary or the main factory in such a
case.
When returning chassis, modules or components, the regulations
of EN 100 015 “Protection of electrostatically sensitive components” must be observed. Use only the appropriate ESD packaging for transport.
Please note that we cannot accept any liability for damage caused
by ESD (electrostatic discharge).
5
1 Introduction
1.2Typographical conventions
1.2.1 Warnings
The signs for Danger and Caution are used in this manual under the following
conditions:
Danger
This symbol is used where there may be danger to personnel if the instruc-
V
A
E
tions are disregarded or not followed accurately!
Caution
This symbol is used where there may be damage to equipment or data if the
instructions are disregarded or not followed accurately!
Caution
This symbol is used if precautions must be taken when handling electrostati-
cally sensitive components.
1.2.2 Note signs
H
v
1
abc
h
Note
This symbol is used to draw your special attention to a remark.
Reference
This symbol refers to additional information in other manuals, chapters or
sections.
Footnote
Footnotes are notes which refer to certain points in the text.
Footnotes consist of two parts:
Marking in the text and the footnote text.
The marking in the text is arranged as continuous superscript numbers.
Handling instructions
This symbol marks the description of a required action.
The individual steps are indicated by an asterisk, e. g.
h Press the
h key
h Confirm with
6
E
PROFIBUS is a manufacturer-independent, open fieldbus standard for a wide
range of applications in manufacturing, process and building automation.
Manufacturer independence and openness are ensured by the international
standard EN 50 170.
Using PROFIBUS, devices from different manufacturers can communicate
without any special interface adjustments. PROFIBUS can be employed for
both high-speed time-critical data transmission and extensive, complex communication tasks. The PROFIBUS family consists of three versions.
2.1Profibus types
2 Profibus description
The PROFIBUS family
PROFIBUS DPThis PROFIBUS version, which is optimized for high speed and low connec-
tion costs, has been especially designed for communication between automation control systems (PLC) and distributed field devices (typical access
time: < 10msec). PROFIBUS DP can be used to replace conventional, parallel
signal transmission with 24V or 0/4—20mA.
DPV0:cyclic data transfer:
--> is supported by the recorder.
DPV1:cyclic and acyclic data transfer:
--> is not supported by the recorder.
DPV2:slave-to-slave communication takes place in addition to cyclic and
acyclic data transfer:
--> is not supported by the recorder.
PROFIBUS-PAPROFIBUS-PA has been specifically designed for process engineering. It per-
mits the linking of sensors and actuators to a common bus cable, even in hazardous areas. PROFIBUS-PA enables the data communication and energy
supply for devices in two-wire technology according to the international IEC
1158-2 standard.
PROFIBUS-FMSThis is the universal solution for communication tasks at cell level (typical ac-
cess time: approx. 100msec). The powerful FMS services open up a wide
range of applications and provide a high degree of flexibility. FMS is also suitable for extensive communication tasks.
7
2 Profibus description
2.2RS485 transmission technology
Transmission takes place according to the RS485 standard. It covers all areas
in which a high transmission speed and simple, cost-effective installation are
required. A shielded twisted copper cable with one conductor pair is used.
The bus structure permits addition and removal of stations or step-by-step
commissioning of the system without affecting the other stations. Later expansions have no influence on the stations which are already in operation.
Transmission speeds between 9.6 kbit/sec and 12 Mbit/sec are available. One
uniform transmission speed is selected for all devices on the bus when the
system is commissioned.
Network topologylinear bus, active bus termination at both ends,
stub cables are only permissible for baud rates
≤1.5 Mbit/sec.
Mediumshielded twisted-pair cable
Number of stations32 stations in each segment without repeater (line amplifier).
With repeaters, this can be expanded to 126.
Installation
tips
Connectorpreferably 9-pin sub-D connector
Basic features of the RS485 transmission technology
All devices are connected in a bus structure (line). Up to 32 stations (master or
slaves) can be linked up in one segment.
The bus is terminated by an active bus terminator at the start and end of each
segment. Both bus terminators must always be powered, to ensure fault-free
operation.
If there are more than 32 users, repeaters must be used to link up the individual bus segments.
8
2 Profibus description
Cable lengthThe maximum cable length depends on the transmission speed. The cable
length specified can be extended by using repeaters. It is recommended not
to connect more than 3 repeaters in series.
Baud rate
(kbit/s)
Range/segment1200 m 1200 m 1200 m 1000 m400 m200 m100 m
Range based on transmission speed
Cable dataThese cable length specifications refer to the cable type described below:
Characteristic impedance:135 — 165 Ω
Capacitance per unit length:< 30 pf/m
Loop resistance:110 Ω/km
Core dia.:0.64 mm
Core cross-section:> 0.34 mm²
It is preferable to use a 9-pin sub-D connector for PROFIBUS networks incorporating RS485 transmission technology. The pin assignment at the connector
and the wiring are shown at the end of this chapter.
PROFIBUS cables and connectors are supplied by several manufacturers.
Please refer to the PROFIBUS product catalog (www.profibus.com) for types
and addresses of suppliers.
When connecting up the devices, make sure that the data lines are not reversed. It is absolutely essential to use shielded data lines. The braided shield
and the screen foil underneath (if present) should be connected to the protective earth on both sides, and with good conductivity. Furthermore, the data
lines should be routed separately from all high-voltage cables, as far as this is
possible.
9.619.293.75187.5500150012000
As a suitable cable we recommend the following type from Siemens:
Simatic Net Profibus 6XV1
Order No. 830-0AH10
* (UL) CMX 75 °C (Shielded) AWG 22 *
9
2 Profibus description
Data rateFor installation, the use of stub cables must be avoided for data rates above
1.5 Mbit/sec.
Wiring and
bus termination
H
For important tips on installation, please refer to the Installation
Guidelines PROFIBUS DP, Order No. 2.111 by the PNO (Profibus
User Organization).
Recommendation:
Please follow the installation recommendations
made by the PNO, especially for the simultaneous use
of frequency inverters.
10
2.3PROFIBUS DP
PROFIBUS DP is designed for high-speed data exchange at the field level.
The central control devices, PLC/PC for instance, communicate through a fast
serial connection with distributed field devices such as I/O, paperless
recorders and controllers. Data exchange with these distributed devices is
mainly cyclic. The communication functions required for this are defined by
the basic PROFIBUS DP functions in accordance with EN 50 170.
2 Profibus description
Basic
functions
The central controller (master) reads the input information cyclically from the
slaves and writes the output information cyclically to the slaves. The bus cycle
time must be shorter than the program cycle time of the central PLC. In addition to cyclic user data transmission, PROFIBUS DP provides powerful functions for diagnostics and commissioning.
Transmission technology:
• RS485 twisted pair
• Baud rates from 9.6 kbit/sec up to 12 Mbit/sec
Bus access:
• Master and slave devices, max. 126 users on one bus
Communication:
• Peer-to-peer (user data communication)
• Cyclic master-slave user data communication
Operating states:
• Operate:Cyclic transmission of input and output data
• Clear:Inputs are read, outputs remain in secure state
• Stop:Only master-master data transfer is possible
Synchronization:
• Sync mode: not supported by the recorder
• Freeze mode: not supported by the recorder
Functionality:
• Cyclic user data transfer between DP master and DP slave(s)
• Dynamic activation or deactivation of individual DP slaves
• Checking the configuration of the DP slaves
• Address assignment for the DP slaves via the bus
• Configuration of the DP master via the bus
• maximum of 246 bytes input/output data for each DP slave
Protective functions:
• Address monitoring for the DP slaves
• Access protection for inputs/outputs of the DP slaves
• Monitoring of user data communication with adjustable monitoring timer
in the master
Device types:
• DP master Class 2, e. g. programming/project design devices
• DP master Class 1, e. g. central automation devices such as PLC, PC…
• DP slave e. g. devices with binary or analog inputs/outputs, controllers,
recorders...
11
2 Profibus description
Cyclic
data
transmission
The data transmission between the master and the DP slaves is carried out by
the master in a defined, recurring order. When configuring the bus system, the
user defines the assignment of a DP slave to the master. It is also defined
which DP slaves are to be included in, or excluded from, the cyclic user data
communication.
Data transmission between the master and the DP slaves is divided into three
phases: parameterization, configuration and data transfer. Before a DP slave
enters the data transfer phase, the master checks in the parameterization and
configuration phase whether the planned configuration matches the actual device configuration. In the course of this check, the device type, format and
length information, as well as the number of inputs and outputs must agree.
These checks provide the user with reliable protection against parameterization errors. In addition to the user data transfer, which is performed automatically by the master, new parameterization data can be sent to the DP slaves at
the request of the user.
User data transmission in PROFIBUS DP
12
3.1GSD files
3 Configuring a PROFIBUS system
Device base data (GSD) enable open project design.
PROFIBUS devices have different features. They differ with respect to the
available functionality (e. g. number of I/O signals, diagnostic messages) or
possible bus parameters, such as baud rate and time monitoring. These parameters vary individually for each device type and manufacturer. In order to
obtain simple Plug & Play configuration for PROFIBUS, the characteristic device features are defined in an electronic device data sheet (Device Data Base
File, GSD file). The standardized GSD files expand open communication up to
the operator level. By means of the project design tool, which is based on the
GSD files, devices from different manufacturers can be integrated into a bus
system, simply and user-friendly. The GSD files provide a clear and comprehensive description of a device type in a precisely defined format. GSD files
are prepared according to the application. The defined data format permits the
project design system to simply read in the GSD files of any PROFIBUS DP
device and automatically use this information when configuring the bus system. Already during the project design phase, the project design system can
automatically perform checks for input errors and the consistency of data entered in relation to the entire system.
The GSD files are divided into three sections.
• General specifications
This section contains information on manufacturer and device names,
hardware and software release states, baud rates supported and the
possible time intervals for monitoring times.
• DP master-related specifications
This section contains all the parameters related to DP-master devices only,
such as the maximum number of DP slaves that can be connected, or
upload and download options. This section is not available for slave
devices.
• DP-slave related specifications
This section contains all slave-related specifications, such as the number
and type of the I/O channels, specification of diagnostic texts and
information on the consistency of I/O data.
The GSD format is designed for flexibility. It contains lists, such as the baud
rates supported by the device, as well as the possibility of describing the modules available in a modular device.
13
3 Configuring a PROFIBUS system
3.2Configuration procedure
Plug & PlayTo simplify the configuration of the PROFIBUS system, the master (PLC) is
configured using the PROFIBUS configurator and the GSD files, or in the PLC
through the hardware configurator.
Configuration steps:
- Create GSD file by using the GSD generator
- Load GSD files of the PROFIBUS slaves into the PROFIBUS network
configuration software
- Perform configuration
- Load configuration into the system (e.g. PLC)
The GSD fileThe characteristic device features of a PROFIBUS slave are specified by the
manufacturer, clearly and comprehensively in a precisely defined format, in the
GSD file (Device Data Base File).
The PROFIBUS
configurator /
hardware
configurator
(PLC)
This software can read in the GSD files for PROFIBUS DP devices of any manufacturer and integrate them for the configuration of the bus system.
Already in the project design phase, the PROFIBUS configurator automatically
checks the files that have been entered for errors in system consistency.
The result of the configuration is read into the master (PLC).
14
3.3The GSD generator
3.3.1 General
GSD files for recorders with a PROFIBUS interface are generated by the user
with the aid of the GSD generator.
The recorders with a PROFIBUS interface can send or receive a large variety
of variables (parameters). Since, however, in most applications, only a portion
of these variables will be sent via PROFIBUS, the GSD generator makes a selection of these variables.
After selection of the device, all available variables are shown in the “Parameters“ window. Only after these have been copied to the “Input” or “Output”
window will they later be contained in the GSD file for processing or preprocessing by the master (PLC).
3.3.2 Operation
3 Configuring a PROFIBUS system
File menu
Window with available
parameters
Input window
(referred to the master)
Output window
(referred to the master)
Status line
Delete entry from input window
Delete entry from output window
Exit program
15
3 Configuring a PROFIBUS system
File menuThe file menu can be called up using the Alt-D combination or the left mouse
button. It provides the following options:
NewAfter calling up the function which creates a new
GSD file, the available devices are selected. After selection of the required device, all available parameters are shown in the parameter window.
OpenThis function opens an existing GSD file.
Save/
Save as
Diagnosis Using this function, the GSD file can be tested in
Print preview
Print
Standard
settings
Exitexits the program.
1.
H
The report contains additions information for the PLC programmer
(e.g. data type of the selected parameters).
v Chapter 3.3.3 “Example report”
This function is available for saving the generated or
altered GSD file.
conjunction with a PROFIBUS DP adapter from B+W.
shows the preview of a report
prints a report
The language to be used at the next restart of the
program can be selected here.
1
.
1
that can be printed.
16
3.3.3 Example report
I/O report
Device: RECORDER
Length of inputs (byte): 7
Length of outputs (byte): 4
[ 0]ext. analog inputs 16Bit\Int_In01INTEGER
[ 2]ext. analog inputs 16Bit\Int_In02INTEGER
17
3 Configuring a PROFIBUS system
Select
parameter
If an existing file has been opened, or a new one created, all available parameters are shown in the parameter window.
Remove
parameter
Device name (editable).
The name is shown in the PLC program
(hardware catalog).
A click with the left mouse button on the “+” () symbol
or “-” () will extend the parameter list or reduce it.
Click on the parameter with the left mouse button, and, keeping it pressed,
copy it to the input or output window by Drag & Drop.
Parameters are deleted from the input or output window using the corresponding button.
H
The parameter “Interface status” will automatically appear in the input
window and cannot be deleted. It is used for diagnosis of the internal
data transmission in the device and can be requested by the PLC:
0 : internal communication in device is OK
unequal 0: faulty communication in device
18
3.4Connection example
The example below shows the path for the connection of a recorder to a S7
from Siemens.
3.4.1 RECORDER
h Connect the device to the PLC.
h Set the device address.
The device (instrument) address can be selected via the instrument keys or
through the setup program.
3.4.2 GSD generator
h Start up the GSD generator (Example: Start Î Programs Î
OEM devices Î Profibus Î GSD generator).
h Select the recorder.
3 Configuring a PROFIBUS system
h Select the variables that are transmitted to the master.
19
3 Configuring a PROFIBUS system
h Save the GSD file in any folder.
3.4.3 PLC configuration
h Start the PLC software.
h Call up the hardware configuration and execute menu command
“Install new GSE”.
20
PLC with its
components
The new GSD file is read in and processed, and the recorder is inserted in
the hardware catalog.
Bus
3 Configuring a PROFIBUS system
h Open the hardware catalog and place the new device in the working area.
The recorder is placed on the bus using the left mouse button. After releasing the mouse button, the recorder address has to be assigned.
The baud rate is determined automatically.
h Finally, you have to load the configuration into the PLC (PLC Î Download
to module)
21
3 Configuring a PROFIBUS system
22
4 Data format of the recorder
When using recorders in a PROFIBUS DP system, please take note of their
data format.
Integer valuesInteger values are transmitted in the following format:
-first the high byte,
- then the low byte.
Float values/
real values
The float/real values of the cyclic data for the paperless recorder are transmitted using the IEEE-754 standard format (32bits).
The float/real values for the acyclic data of the paperless recorder are transmitted in the MODbus format.
The IEEE-754 standard format and the MODbus format differ in the transmission sequence of the individual bytes. In the MODbus format bytes 1 and 2 are
swapped with bytes 3 and 4 (first the high byte, then the low byte).
Single-float format (32bits) as per IEEE 754 standard
SEEEEEEEEMMMMMMMMMMMMMMMMMMMMMMM
byte 1byte 2byte 3byte 4
S - sign bit (bit31)
E - exponent in complement to base 2 (bit23 — bit30)
M - 23bit normalized mantissa (bit0 — bit22)
Example:
calculation of the real number from sign, exponent and mantissa.
· (1 + 0.5 + 0.25 + 0.125 + 0)
Value = 1 · 4 · 1.875
Value = 7.5
· (1 + M
·2-1 + M
b22
·2-2 + M
b21
· (1 + 1·2-1 + 1·2-2 + 1·2-3 + 0·2-4)
·2-3 + M
b20
b19
·2-4 +
23
4 Data format of the recorder
MODbus float format
Address xAddress x+1
MMMMMMMMMMMMMMMMSEEEEEEEEMMMMMMM
byte 3byte 4byte 1byte 2
After/before the transmission from/to the device, the bytes of the float value
have to be swapped accordingly.
Many compilers (e.g. Microsoft C++, Turbo C++, Turbo Pascal, Keil C51) store
the float values in the following order (Intel compatibility):
float value
Storage
address x
MMMMMMMMMMMMMMMMEMMMMMMMSEEEEEEE
byte 4byte 3byte 2byte 1
Storage
address x+1
Storage
address x+2
Storage
address x+3
Please check how float values are stored in your application. If necessary, the
bytes have to be swapped accordingly.
24
5 Device-specific data
This chapter describes the connection of the
- paperless recorder LOGOSCREEN, or the
- paperless recorder LOGOSCREEN es
to the PROFIBUS DP.
H
All the devices described can be used exclusively as DP slaves.
25
5 Device-specific data
5.1Paperless recorder LOGOSCREEN
The paperless recorder can be used to record and display, amongst other inputs, up to 36 analog channels from a PLC.
5.2System requirements
The following requirments must be met when connecting a paperless recorder
to the PROFIBUS DP:
- Fit the PROFIBUS DP interface to the paperless recorder
- Program version from 100.03.02
The program version can be requested from the paperless recorder menus
via Device (Instrument) info Î Version number.
5.3Connection diagram
Rear view of
paperless
recorder
Interface
Connections
26
Connector 21
PROFIBUS DP
Sub-DSignalDesignation
3RxD/TxD-PReceive/Transmit Data-P, B-cable
5DGNDData transmission ground potential
6VPSupply voltage-P, (P5V)
8RxD/TxD-NReceive/Transmit data-N, A-cable
When making the connection to the PROFIBUS DP it is important
H
to ensure that the connectors 20 and 21 are not swapped. Connector 20 is reserved for the serial interface. The serial interface is
used to read out instrument and process data from the paperless
recorder. The connection and function of the serial interface are described in the Interface Description.
5.4Setting the slave address
The slave address is set via the paperless recorder or the setup program.
SettingMeaning
1 — 124Slave address, as selected
125The setting of the slave address can be predefined by the bus
master
The baud rate is determined automatically (max. 12Mbps).
If a new device address is selected, the device has to be reset (switch off/on)
for the new address to be accepted.
5 Device-specific data
5.5Diagnostic and status messages
If errors occur during communication with the device, a message appears in
the header ( ) and in the “Instrument info” menu.
Please check the wiring and the master (PLC). It may be necessary to restart
the system.
5.6Acyclic data
You can read and write different measurement and process data of the paperless recorder with “acyclic data” (from program version 100.03.03).
The acyclic data, too, can be transmitted through the
Protocol
structure
H
In order to establish the communication with the paperless recorder (device), it
must receive 3 info bytes and a maximum of 10 bytes of actual data.
Byte No.1234—13
cyclic data transfer.
contentscontrol bytefunctionaddressactual data
27
5 Device-specific data
Control byteThe control byte (byte No. 1) is organized as follows:
bit 0 — 3:length of actual data (in words)
bit 4 — 5:"toggle flag"
The two bits have their state changed (toggled) with every new
job that is sent to the device so that it can recognize the new
command. The bits may only be transmitted after the transmit
buffer has been fully prepared for the new command.
Example:
Bit 5Bit 4
00no job present
01bit 4 is set, job 1 is being processed
10bit 5 is set, job 2 is being processed
01bit 4 is set, job 3 is being processed
Response faulty: bit 6 = 1 and bit 7 = 0
Bits 6 and 7 are a signal to the PLC that the command has been
processed by the device and the next command to the device
can be generated and transmitted by the PLC.
Bit 7Bit 6Bit 5Bit 4
0001bits 4 and 5 are returned unchanged by the
device as a “job is being processed” info
0010bits 4 and 5 are returned unchanged by the
device as a “job is being processed” info
1001fault-free processing of job with bit 4 = 1
0101processing of job with bit 4 = 1 was not fault-
free
0010bits 4 and 5 are returned unchanged by the
device as a “job is being processed” info
1010fault-free processing of job with bit 5 = 1
0110processing of job with bit 5 = 1 was not fault-
AddressThe addresses below can be read and written. The list corresponds to a por-
tion of the addresses that are contained in the interface description of the paperless recorder.
The address that is defined in the protocol is calculated as follows:
address = base address + address of variable
Example: address for the measurement of analog input 6:
0x1AR/Orealnot used
0x1CR/Orealnot used
0x1ER/Orealnot used
0x20R/OrealCounter value 1
0x22R/OrealCounter value 2
0x24R/OrealExternal counter value 1
(from external I/O modules)
0x26R/OrealExternal counter value 2
(from external I/O modules)
0x28R/WrealExternal analog input 1
(from external I/O modules
or via MODbus)
0x2AR/WrealExternal analog input 2
0x2CR/WrealExternal analog input 3
0x2ER/WrealExternal analog input 4
0x30R/WrealExternal analog input 5
0x32R/WrealExternal analog input 6
0x34R/WrealExternal analog input 7
0x36R/WrealExternal analog input 8
29
5 Device-specific data
0x38R/WrealExternal analog input 9
0x3AR/WrealExternal analog input 10
0x3CR/WrealExternal analog input 11
0x3ER/WrealExternal analog input 12
0x40R/WrealExternal analog input 13
0x42R/WrealExternal analog input 14
0x44R/WrealExternal analog input 15
0x46R/WrealExternal analog input 16
0x48R/WrealExternal analog input 17
0x4AR/WrealExternal analog input 18
0x4CR/WrealExternal analog input 19
0x4ER/WrealExternal analog input 20
0x50R/WrealExternal analog input 21
0x52R/WrealExternal analog input 22
0x54R/WrealExternal analog input 23
0x56R/WrealExternal analog input 24
0x58R/WrealExternal analog input 25
0x5AR/WrealExternal analog input 26
0x5CR/WrealExternal analog input 27
0x5ER/WrealExternal analog input 28
0x60R/WrealExternal analog input 29
0x62R/WrealExternal analog input 30
0x64R/WrealExternal analog input 31
0x66R/WrealExternal analog input 32
0x68R/WrealExternal analog input 33
0x6AR/WrealExternal analog input 34
0x6CR/WrealExternal analog input 35
0x6ER/WrealExternal analog input 36
30
Base address: 0xA6
5 Device-specific data
Address
of variable
0x00R/Wchar 21Text 1 for batch report
0x0BR/Wchar 21Text 2 for batch report
0x16R/Wchar 21Text 3 for batch report
0x21R/Wchar 21Text 4 for batch report
H
Actual dataA maximum of 10 bytes actual data may be defined. The number of the actual
data being used (in words) is stored in bits 4 — 13.
Command
sequence
• PLC sends job 1
- PLC sets bit 4 in the control byte
- PLC receives the answer “job OK” or “job faulty”
• PLC sends job 2
- PLC resets bit 4 in the control byte and sets bit 5
- PLC receives the answer “job OK” or “job faulty”
AccessData type Signal designation
Addresses are defined as bytes in the report,
addressing of data word by word.
Example
(write):
• PLC sends job 3
- PLC resets bit 5 in the control byte and sets bit 4
- PLC receives the answer “job OK” or “job faulty”
•and so on.
Text 1 for the batch report has to be written. Since a batch text may consist of
up to 20 characters, it is transmitted in 2 parts with 10 characters each. Character 21 (0x) can be dispensed with.
The following bytes have to be transmitted to the recorder:
When sending the first 10 characters, the start address is 0xA6.
H
Since addressing is done word by word, the second 10 characters
have to be sent with the address from 0xAB (0xA6 + 5).
31
5 Device-specific data
5.7PLC data in 16-bit format
The functions described below can only be implemented on paperless recorders from program version 100.03.05.
Internal
measurement
inputs of the
paperless
recorder
From program version 100.03.05, the internal measurement inputs (1 — 6 or
1 — 12) can not only be sent to the PROFIBUS master (PLC) in “Real” format
(4 bytes), but also in “Integer” format (2 bytes).
Using the setup program for the paperless recorder, four values for measurement standardization have to be entered for all internal channels (not for
each individually).
- range start
-range end
- value at underrange
- value at overrange
The internal measurements are converted from “Real” format to “Integer” for-
mat. In order to enable a uniform conversion, these four parameters have been
inserted.
The parameters are entered in the field “Interface 21”.
The dialog can be called up by a double click on the working area, or through
the menu Edit
Î
Interface 21 (PROFIBUS DP).
External
measurement
inputs of the
paperless
recorder
32
The external measurement inputs (1 — 36) can also be sent to the paperless
recorder, either in “Real” format (4 bytes), or “Integer” format (2 bytes). Which
data format is to be used, can also be decided with the help of the GSD generator.
With the “Integer” format, the parameters Range start and Range end are used
to carry out standardization to 16 bits. This can be done through the setup
program, or from the instrument keys.
Example
5 Device-specific data
The analog input of the PLC provides a 16-bit measurement in the range from
-27648 to +27648; the ranges depend on the input sensor that was selected
or the input card being used.
Input
meas. range
of PLC
Range start-10V-27648-27648-10
Range end+10V+27648+27648+10
Standardiza-
tion range
of PLC
Range
paperless
recorder
Scaling
paperless
recorder
First of all, the “Edit” button
has to be activated for the external
measurement inputs, ...
... then the exernal input can
be activated and ...
... finally, standardization can
be carried out.
33
5 Device-specific data
5.8Bit-by-bit coding of binary signals
The signals described below are available for paperless recorders with program version 100.03.05 or above and can be addressed using the GSD generator.
5.9External inputs and faults in the data exchange
As long as there is no data exchange between the PLC and the recorder, the
external analog inputs of the recorder are treated as “invalid” (display --------).
Thus it is possible to detect, during the evaluation of the measurement data,
that there were no valid values present for this period. This only applies to the
external measurement inputs.
All other data (binary signals, batch texts, ...) will be frozen and remain at their
current values.
35
5 Device-specific data
2
1
3
4
5
6
7
8
9
5.10 Paperless recorders LOGOSCREEN es and cf
A paperless recorder can be used to record and display, amongst other inputs,
up to 36 analog channels from a PLC.
5.10.1 System requirements
The following conditions must be fulfilled in order to connect a paperless recorder to the PROFIBUS DP interface:
- Paperless recorder with a PROFIBUS DP interface
H
If a plug-in card for PROFIBUS DP is fitted, then PROFIBUS DP appears as an entry in the Device Info menu for Interface 2.
5.10.2 Connections for LOGOSCREEN es and cf
Rear view of
the paperless
recorder
Interface
Connections
36
Connector 21
PROFIBUS DP
Sub-DSignalDesignation
3RxD/TxD-PReceive/Transmit Data-P, B-cable
5DGNDData transmission ground potential
6VPSupply voltage-P, (P5V)
8RxD/TxD-NReceive/Transmit data-N, A-cable
When making the connection to the PROFIBUS DP it is important to
H
ensure that the connectors 20 and 21 are not swapped. Connector
20 is reserved for the serial interface. The serial interface is used to
read out device and process data from the paperless recorder. The
connection and function of the serial interface are described in the
Interface Description B 70.6560.2.0.
5.10.3 Setting the slave address
The slave address is set with the help of the paperless recorder or the setup
program.
SettingMeaning
1 — 124Slave address, as set
125The setting for the slave address can be predefined by the bus
master.
The baud rate is determined automatically (max. 12Mbps).
5 Device-specific data
5.10.4 Diagnosis and status messages
If errors occur during communication with the device, the ( ) symbol in the
header line will blink, and an error message appears in the Device info menu.
The measurements are labeled as invalid (200003).
The screen of the Logoscreen displays "-------".
Please check the wiring and the master (PLC).
It may be necessary to restart the system.
SuppressionThe error messages in the Device info menu and the ( ) in the header can be
suppressed by setting the slave address to 125.
5.10.5 Acyclic data transmission
You can use the acyclic data function to read and write various measurement
and process data of the paperless recorder
Acyclic data can also be transmitted by means of cyclic data
H
In order to establish communication with the paperless recorder (the device), it
must receive 3 info bytes and a maximum of 10 bytes of actual data.
transfer.
Protocol
structure
Byte No.1234…13
contentscontrol bytefunctionaddressactual data
37
5 Device-specific data
Control byteThe control byte (byte No. 1) is organized as follows:
bit 0 — 3:length of actual data (in words)
bit 4 — 5:"toggle flag"
Boths bits must change state (toggle) with every new job that is
sent to the device, so that it can recognize the new command.
The bits must only be set after the transmit buffer has been fully
prepared for the new command.
Example:
Bit 5Bit 4
00no job present
01bit 4 is set, job 1 is being processed
10bit 5 is set, job 2 is being processed
01bit 4 is set, job 3 is being processed
Response faulty: bit 6 = 1 and bit 7 = 0
Bit 6 and bit 7 are a signal for the PLC that the command has
been processed by the device, and the next command for the
device can be generated and transmitted by the PLC.
Bit 7 Bit 6 Bit 5 Bit 4
0001bits 4 and 5 are returned unchanged by the device
as a “job is being processed” info
0010bits 4 and 5 are returned unchanged by the device
as a “job is being processed” info
1001fault-free processing of job with bit 4 = 1
0101processing of job with bit 4 = 1 was not fault-free
0010bits 4 and 5 are returned unchanged by the device
as a “job is being processed” info
1010fault-free processing of job with bit 5 = 1
0110processing of job with bit 5 = 1 was not fault-free
5.10.6 Extension of the address range for LOGOSCREEN es and cf
The (previously) unused bits 7, 6 and 5 from the function byte are used to form
an 11-bit wide Modbus address.
38
5 Device-specific data
Function byte
Address byte
Highest
address
AddressThe following addresses can be read and written. The list corresponds to a
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
1110000 1010 read or 0000 0011 write
Bit10Bit9Bit8Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
1 11 11111111
7FF
portion of the addresses which are contained in the interface description of the
paperless recorder.
The address that is defined in the protocol is derived from:
address = base address + address of variable
Example: the address for the measurement of analog input 6 is:
address = 0x35 + 0x0A = 0x3F
5.10.7 Process data
Base address: 0x002F
AddressAccessData typeSignal designation
0x0000R/OintGroup alarm and logic input settings
R/Obit0Alarm group 1
0 = no alarm
1 = at least 1 limit infringement
in the group
R/Obit1Alarm group 2
R/Obit2Alarm group 3
R/Obit3Alarm group 4
R/Obit4Alarm group 5
R/Obit5Alarm group 6
R/Obit6-7not used
R/Obit8Logic input 1
0=open / 1=closed
R/Obit9Logic input 2
R/Obit10Logic input 3
39
5 Device-specific data
AddressAccessData typeSignal designation
R/Obit11Logic input 4
R/Obit12Logic input 5
R/Obit13Logic input 6
R/Obit14Logic input 7
R/Obit15not used
0x0001R/OintLogic signals
R/Obit0CompactFlash card is in the slot
R/Obit1CF card has been stolen
R/Obit2Memory alarm: insufficent free internal
(0 = no, 1 = yes)
(0 = no, 1 = card was removed
while no user was logged in)
memory available. Data must be fetched
on a CF card!
R/Obit3Memory alarm: insufficent free internal
memory available. Data must be fetched
via the serial interface!
R/Obit4Memory alarm: insufficent free memory
available on the CompactFlash card!
R/Obit5Login status:
0 = no user logged in
1 = a user is logged in
R/Obit6not used
R/Obit7not used
R/Obit8Combination alarm
0 = no alarm
1 = at least 1 limit infringed in the device
External logic inputs (R/W), external counters (R/O) and ex-
H
H
User dataA maximum of 10 bytes of user data can be presented. The quantity of user
data is given (in words) by bits 4 — 13.
Command
sequence
• PLC sends 1st job
- PLC sets bit 4 in the control byte
- PLC receives response “job OK” or “job faulty”
• PLC sends 2nd job
- PLC resets bit 4 in the control byte and sets bit 5
- PLC receives response “job OK” or “job faulty”
ternal analog inputs (R/W) can be programmed via the serial
interface or connected to the paperless recorder in the form
of modules of the JUMO mTRON automation system. For additional information, please refer to the Operating Instructions
70.6560.2.1 (LON interface).
The address is given byte-wise in the protocol.
The data are addressed word-wise.
44
• PLC sends 3rd job
- PLC resets bit 5 in the control byte and sets bit 4
- PLC receives response “job OK” or “job faulty”
• and so on ...
5 Device-specific data
Example
(write):
Text 1 for the batch report has to be written- Since a batch text can have a maximum of 20 characters, it will be transmitted in 2 sections, each consisting of
10 characters. The 21st character (0x) can be left out.
The following bytes must be transmitted to the recorder:
The starting address for transmitting the first 10 characters is
H
0xA6. Since addressing is carried out word-wise, the second 10
characters must be addressed from 0xAB (0xA6 + 5) onwards for
transmission.
45
5 Device-specific data
5.10.8 PLC data in 16-bit format
The functions described below are only available for paperless recorders with
a program version 100.03.05 or above.
Internal
measurement
inputs to the
paperless
recorder
From program version 100.03.05 on, the internal measurement inputs (1 — 6
or 1 — 12) can be transmitted to the PROFIBUS master (the PLC) not only in
real format ( 4 bytes) but also in integer format (2 bytes).
It is necessary to use the setup program of the recorder to enter four values for
the nomalization of the measurements for all the internal channels (i.e. not
separtely for each channel):
- Measurement range start
- Measurement range end
- Value for underrange
- Value for overrange
The internal measurement values are converted from the real format into the
integer format. These four parameters have been introduced in order to enable
a uniform conversion calculation for all channels.
The parameters are entered in the section Interface 21.
Call up the dialog by a double-click inside the working area, or through the
menu Edit
Î
Interface 21 (PROFIBUS DP)
External
measurement
inputs to the
paperless
recorder
46
The external measurement inputs (1 — 36) can also be transmitted to the recorder in real format (4 bytes) as well as in integer format (2 bytes). The decision as to which data form should be used is also made with the aid of the GSD
generator.
When using the integer format, the parameters Measurement range start and
Measurement range end must be set for 16-bit normalization. This can be
done either through the setup program, or using the keypad on the recorder.
Example:
5 Device-specific data
The analog input of the PLC provides a 16-bit measurement signal within the
range from -27648 to +27648, whereby the measurement ranges depend on
the type of input sensor that is selected and the input card that is used.
Input range
of the
PLC
Range start-10V-27648-27648-10
Range end+10V+27648+27648+10
Normalization
range of the
PLC
Range of the
paperless
recorder
Scaling
of the
recorder
For the external measurement inputs, first
press the Edit button ...
... then you can activate the
external input, and ...
... finally, set up the
normalization.
47
5 Device-specific data
5.10.9 Bit-wise coded binary logic signals
The signals described below are available for paperless recorders that have a
program version 100.03.05 or above, and can be accessed through the GSD
generator.
5.10.10External inputs and faults in the data exchange
As long as there is no data exchange between the PLC and the recorder, the
external analog inputs of the recorder are treated as “invalid” (display --------).
Thus it is possible to detect, during the evaluation of the measurement data,
that there were no valid values present for this period. This only applies to the
external measurement inputs.
All other data (binary signals, batch texts, ...) will be frozen and remain at their
current values.