Documente Academic
Documente Profesional
Documente Cultură
3.1
Diagnostic Interfaces and Designations .......................... 108
3.2
Standard Function Registers ........................................... 111
3.2.1 Addresses of Standard Registers in the MPM ............. 112
3.2.2 Diagnostic Status Register........................................... 113
3.2.3 Diagnostic Parameter Register .................................... 114
3.2.4 Extended Diagnostic Parameter Register .................... 114
3.2.5 Diagnostic Registers in the Diagnostic Display ............ 115
3.2.6 Standard Function Start Register................................. 116
3.2.7 Standard Function Status Register .............................. 116
3.2.8 Standard Function Parameter Register........................ 117
3.2.9 Slave Diagnostic Status Register................................. 118
3.2.10 Field Controller Diagnostic Status Register.................. 118
3.2.11 Executing Services Using the Standard Function
Registers...................................................................... 119
3.3
Reset Behavior of the INTERBUS System ...................... 120
3.4
INTERBUS Error Diagnostics .......................................... 121
3.4.1 Representation of an INTERBUS Error in a G4
INTERBUS System...................................................... 121
3.4.2 Error Types .................................................................. 130
3.5
Local Bus Diagnostics ..................................................... 132
3.5.1 Time Conditions for Error Localization ......................... 135
3.5.2 Error Localization With Older SUPI Protocol Chips...... 136
3.5.3 Error Localization With INTERBUS Devices Using
SUPI 3 or Later ............................................................ 138
3.6
Diagnostics in SUPI 2, SUPI 3, and Combined Systems. 139
3.7
Transmission Quality ....................................................... 143
3.8
Evaluating INTERBUS Module Diagnostic LEDs............. 144
3.8.1 General Diagnostic LEDs............................................. 144
3.8.2 Procedure for Troubleshooting Using Diagnostic LEDs147
3.9
Evaluating the Controller Board LCD/Diagnostic LEDs ... 148
3.10 Diagnostic Programs ....................................................... 151
3.10.1 Integrated Diagnostics With CMD and PC WORX ....... 151
3.10.2 Diagnostics Using DIAG+ ............................................ 154
3.11 Diagnosing Complicated Error Descriptions .................... 155
3.12 Hardware Diagnostics ..................................................... 157
3.12.1 Measuring the Voltage Supply ..................................... 157
3.12.2 Checking Output Drivers for the RS-485 Interface....... 158
3.12.3 Checking INTERBUS Cables....................................... 160
3.12.4 Use of a Protocol Analyzer for Diagnostic Purposes.... 161
3.12.5 Questions for the "Diagnostics" Section....................... 162
4 INTERBUS Programming ........................................................ 163
4.1
Flowcharts for INTERBUS Programming ........................ 164
4.2 Programming an INTERBUS Master in
High-Level Language .......................................................... 167
4.2.1 INTERBUS PC Controller Boards ................................ 167
4.2.2 INTERBUS Ethernet Controller Boards ....................... 170
4.2.3 High-Level Language Interface (HLI) and Device Driver
Interface (DDI) ............................................................. 172
4.2.4 Startup Checklists for INTERBUS Controller Boards ... 176
4.2.5 Programming via the DDI............................................. 178
4.2.6 INTERBUS Controller Board Programming via the HLI181
4.2.7 Driver Development With the Device Driver Development
Kit (DDK)...................................................................... 182
4.2.8 Practical Tips ............................................................... 182
4.2.9 Questions for the "High-Level Language Programming"
Section......................................................................... 185
4.3
Programming in IEC 61131-3 Using PC WORX .............. 186
4.3.1 INTERBUS PC Field Controller.................................... 186
4.3.2 INTERBUS Remote Field Controller ............................ 187
4.3.3 INTERBUS Ethernet Remote Field Controller.............. 188
4.3.4 Programming in IEC 61131-3 Using PC WORX .......... 189
4.3.5 Mapping the Physical Hardware in PC WORX............. 199
4.3.6 Program-specific Elements in PC WORX .................... 202
4.3.7 Practical Tips ............................................................... 208
4.3.8 Questions for the "Programming Using PC WORX"
Section......................................................................... 210
4.4
Programming S7 INTERBUS Controller Boards.............. 211
4.4.1 IBS S7 300 DSC-T....................................................... 211
4.4.2 IBS S7 400 DSC/I-T..................................................... 216
4.4.3 Questions for the "Programming Using S7 Controller
Boards" Section ........................................................... 226
5 INTERBUS Specialist Knowledge............................................ 227
5.1
@utomationXplorer.......................................................... 228
5.2
IB Loader......................................................................... 229
5.2.1 Available Operating Systems ....................................... 229
5.2.2 Structure of the SVC File ............................................. 229
5.2.3 Creating an SVC File ................................................... 230
5.2.4 Installation of the IB Loader ......................................... 231
5.2.5 Calling the IB Loader ................................................... 231
5.2.6 IB Loader Error Messages ........................................... 232
5.3
Process Data Preprocessing ........................................... 233
5.3.1 PDP for Standard Controllers (SC) .............................. 233
5.3.2 PDP for PC WORX Controllers .................................... 234
8.3
8.4
8.7
8.8
8.9
8.10
8.11
8.12
INTERBUS Basics
1 INTERBUS Basics
This section provides a general INTERBUS function and system description. A
certain level of knowledge of INTERBUS basics is required to enable applicationspecific use of the INTERBUS system. This knowledge enables the user to correctly
interpret information from the INTERBUS system during configuration, startup or
diagnostics. The user will also benefit from an understanding of the structure,
hierarchy, and interaction of INTERBUS components.
The INTERBUS system description only provides detailed information when this is
appropriate to the practical nature of this manual. This means that applicationspecific information is described in detail and the user is provided with a basic
knowledge of the system. This includes information on methods of optimizing the
INTERBUS system, the use of the MPM or the various applications of different
INTERBUS operating modes.
The aim of this section is to provide users with a practical understanding of the
INTERBUS system, its topology, its components, and wide range of properties,
enabling the use of the system in practical applications.
This section covers the following topics:
-
H.Meyer u.
14.10.2002
Page 12
Page 20
Page 24
Page 36
Page 39
Page 47
Page 48
Page 57
Page 71
10
INTERBUS Basics
Operating level
Management level
Applications
Process
Visualization
System control
System level
SAP R/3
Local area
network
Genesis 32
OPC client/
server
IBS PCWORX
Control level
Data
processing
I/O level
Process bus:
e.g., Ethernet
INTERBUS m aster
Fieldbuses:
e.g., INTERBUS
Sensors and actuators
INTERBUS Basics
11
Easy maintenance
Minimal downtimes
Easy startup
The properties that have particularly contributed to the success of INTERBUS are cost
savings, the high degree of reliability, very simple error diagnostics, and excellent
flexibility of the system.
With its disclosure of the INTERBUS communication protocol, Phoenix Contact has
interested over 600 manufacturers in the implementation of INTERBUS technology in
control systems and field devices. These manufacturers of INTERBUS-compatible
devices have joined together to form a user group, the Interbus Club e. V. Users can
rely on tried and tested, reliable technology and a high degree of availability for both
fieldbuses and components, and can benefit from the wide range of components
offered by suppliers and users.
Due to its technical stability, network security, EMC behavior, transmission reliability,
and transmission performance, INTERBUS is the ideal fieldbus for use as an industrial
automation solution. It has also been implemented successfully as a solution in
building automation.
The further technological development of INTERBUS involves the increase of the
INTERBUS data transmission speed from 500 kbaud to 2 Mbaud, connection to a
higher communication hierarchy via Ethernet, and the implementation of an
INTERBUS system with an emergency stop concept (INTERBUS Safety).
12
INTERBUS Basics
INTERBUS
20 m
(65.62 ft)
BK
M
-T
DI 32/2
BDO
8/
3
DO 16/
3
ST local
bus
AO 4/
SF4
IL local bus
RT
modules
PHOENI
X
CONTACT
1 2 3 4 5 6 7 89
B
A
R
C
R
D
PHOENI
X
CONTACT
1 1 1 1 1 1 1
0 1 2 3 4 5 6
1 2 3 4 5 6 7 89
ready
UB(1)
B
A
R
C
R
D
1 1 1 1 1 1 1
0 1 2 3 4 5 6
read
y
UB(1
)
400 m
(1312.34 ft)
20 m
(65.62 ft)
INTERBUS Basics
13
14
INTERBUS Basics
INTERBUS controller board
1
1.0
2
1.1
3
1.2
4
1.3
5
2.0
Remote bus
branch
6
3.0
Remote bus
devices
9
4.0
10
4.1
11
4.2
7
3.1
8
3.2
12
4.3
Figure 1.3: Devices in the INTERBUS remote bus with remote bus branch
Electrical interface
RS-485
Optical fibers (polymer fiber, HCS fiber, glass fiber)
Copper, infrared, radio
Maximum distance
INTERBUS Basics
15
1
1.0
5
2.0
2
1.1
3
1.2
Local bus
devices
Remote bus
branch
6
3.0
9
4.0
4
1.3
10
4.1
11
4.2
7
3.1
12
4.3
8
3.2
16
INTERBUS Basics
The bus terminal module supplies the bus logic and decouples
the local bus from the main ring.
Physical interface
Electrical interface
Power supply
Electrical segmentation
Maximum number of
63 - this is a theoretical figure. For example, in the ST range
devices within the local bus only 8 local bus devices can be mounted side by side in a
segment.
Electrical interface
RS-485
Electrical segmentation
50 m (164.04 ft.)
INTERBUS Basics
17
3.2
Incoming
remote bus
3.1
3.3
3.0
Loop devices
3.4
3.5
Outgoing
remote bus
Figure 1.5: Bus terminal module and devices in the INTERBUS Loop
18
INTERBUS Basics
Fiber
Elastomer
Aramide fiber
Wire
Outer cable
sheath
INTERBUS Basics
19
6 Presentation Layer
5 Session Layer
4 Transport Layer
3 Network Layer
Finds the optimal path for data through the existing network.
Establishes and aborts network connections.
1 Physical Layer
20
INTERBUS Basics
INTERBUS
master
Twisted pair cable
INTERBUS bus INTERBUS
INTERBUS
coupler
input module output module
INTERBUS
bus coupler
INTERBUS
bus coupler
INTERBUS
input module
INTERBUS
bus coupler
INTERBUS
INTERBUS
bus coupler output module
INTERBUS
bus coupler
INTERBUS
input module
INTERBUS
INTERBUS
bus coupler output module
INTERBUS Basics
21
16
32
Output data
Master transmit
shift register
Master recieve
shift register
I
O
8 bits
16
32
Input data
I
O
16 bits
O
32 bits
The INTERBUS system requires a closed, active data ring as the bus
architecture. This is due to the INTERBUS topology, which is
structured as a ring.
22
INTERBUS Basics
CRC generator
CRC register
Incoming data
DATA SHIFT REGISTER
Output register
Input register
Identification register
Control register
Outgoing data
CRC generator
CRC register
Returning data
Data
Data
Data
Data
Data
Module 1
Module 2
Module 3
Module n-1
Module n
LBW
FCS
End
INTERBUS Basics
23
sends the summation frame protocol to all devices and receives all process data
from the connected devices when the process is complete.
Every INTERBUS cycle is both an output and an input cycle, i.e., a write
and a read cycle.
Since all data is sent simultaneously within the summation frame protocol and the
data areas are detected efficiently by the INTERBUS devices, the sum of all
additional protocol information within the summation frame protocol is very low.
This protocol information only occurs as a single value. The method of grouping all
additional information together within the protocol increases the efficiency of the
cyclically transmitted summation frame protocol with an increasing number of
network devices. When compared with a message-oriented protocol, such as
PROFIBUS, which has a maximum of 30% user data efficiency, INTERBUS offers
60% user data efficiency. The time for the complete exchange of signals, i.e., for a
complete bus cycle, is the sum of the individual scanning cycles for all the sensors
and actuators connected in INTERBUS. By combining these properties, the
INTERBUS system offers time equidistance, synchronous data scanning, and
determinism.
Identification cycles (SL signal = TRUE) are used to transmit error and
control information during operation or to read the INTERBUS
configuration in startup mode.
In data cycles (SL signal = FALSE), which are the actual INTERBUS
operating cycles, output data is transmitted from the INTERBUS master
to the INTERBUS devices and input data from the devices is transferred
to the master in the same cycle.
24
INTERBUS Basics
The INTERBUS master uses the CR signal to switch between the data shifting
(CR signal = FALSE) and data integrity (CR signal = TRUE) phases. This is called
the CR check.
Section
1
16 bus
clocks
2
32 bus
clocks
.........
Clock
1
SL signal
0
3
16 bus
clocks
.......
4
32 bus
clocks
.........
.......
Identification
cycle
Data cycle
Identification cycle
1
CR signal
Data
integrity
Data shifting
0
I/O
I/O
I/O
I/O
Data
integrity
Data shifting
I/O
I/O
I/O
I/O
I/O
I/O
The loop-back word is a component of the summation frame and is moved towards
the INTERBUS master during data transmission, i.e., during the shift operation.
After X shift operations, the loop-back word leaves the master shift registers. This
loop-back word is moved through all the INTERBUS devices and is received again
in the master at the end of the entire transmission process. If there is a difference
between the sent and the received loop-back word, then the received data is not
accepted. To prevent confusion, the other signals increment the last 4 bits of the
loop-back word in every transmission cycle. If the sent and received loop-back
word is the same, then the received data is accepted in the master.
The master can also determine how many devices are connected and can use
LBW time monitoring to detect a closed INTERBUS ring, a reduction in the bus or a
change in the configuration.
To ensure transmission reliability, general protection must be provided for the
INTERBUS Basics
25
26
INTERBUS Basics
G ( x) = X 16 + X 12 + X 5 + 1
The remainder after the polynomial division is transmitted after the data or
identification code phase in the check sequence. The following boxes show the
equations required for calculating the CRC polynomial.
Message: N(x)
Generator polynomial: G(x), n is the highest power in G(x)
Remainder after division: R(x)
K: Number of data bits in a message
W(x): Comparison: 9/4=2 . W(x) corresponds to the integer
Equation 1: Generator polynomial register initialized with 0
X n N ( x)
R( x)
= W ( x) +
G ( x)
G ( x)
Equation 2: Generator polynomial register initialized with 1
n =1
X n N ( x) + x K x i
i =0
G ( x)
= W ( x) +
R( x)
G ( x)
As the division is performed with XOR elements in terms of hardware, the following
mathematical rule should be observed for the polynomial division:
x x = 0
Figure 1.12 illustrates the implementation of a general generator polynomial
division in terms of hardware. This implementation multiplies the message N(x) by
n
x and divides by the generator polynomial G(x). To make things simpler when
converting a generator polynomial to the hardware solution, the relevant powers
have been entered in the individual registers. The bit information, which is one
power lower than the entered powers, can then be taken from the registers.
INTERBUS Basics
27
N(x)
LSB
MSB
a0
x3
x2
a1
x n-1
a2
xn
a n-1
G ( x) = an x n + a n1 x n1 + an 2 x n2 + ... + a1 x1 + a0
The general equation results in the following INTERBUS implementation as shown
in Figure 1.13.
N(x)
MSB
LSB
x x2 x3 x4 x5
28
INTERBUS Basics
The polynomial of the 16th order leads to a Hamming distance of 4, enabling the
100% detection of group errors b < 16. Group errors b 17 have a 99.9%
probability of detection. A group error is an error, which is caused by a closely
positioned group of bit errors, known as an error group. Group errors are usually
easier to detect than errors, which are distributed over the entire message. In this
description, b is the number of bits, which belong to a group error. When
comparing two binary words of the same length, the number of bits that differ
between the two words forms the basis of the Hamming distance. If an error
correction method has a Hamming distance of 4, up to 3 errors are detected safely
at the same time.
HD = d = e + 1 (HD, d: Hamming distance; e: Number of errors that can be
detected safely).
1.4.5.3
In order to detect line interrupts in the INTERBUS system, the INTERBUS master
scans the status of the SL (Select Line) signal in the INTERBUS system. The SL
line in the INTERBUS system is used to test the INTERBUS ring for interrupts
before every data cycle (SL signal = FALSE) and before every identification cycle
(SL signal = TRUE). For this test, the master sets this SL signal to a logical state
(TRUE) at the start of a cycle and scans it again at its input. The resulting signal
delay time, which is caused by the processing in the individual INTERBUS devices
and by the INTERBUS system runtime, indicates whether the signal was
transmitted by the INTERBUS system. If this signal exceeds a specific duration, a
transmission error has occurred, usually an interrupt on the INTERBUS ring.
In addition, the status of the CR line (Control Line) signal is monitored. The data
sequence for this signal differs from the CR check sequence of an INTERBUS
cycle and therefore its status must not change during the data sequence.
1.4.5.4
INTERBUS Basics
29
15
14
13
Management bit
messages
12
11
10
Data width
Device class
Device type
Data direction
or PCP words
0
1
0
1
0
0
1
1
0
1
0
1
ID2 and ID3 specify the device type. Within a device class, a distinction can be
made, for example, between a DRIVECOM-compatible device or another device of
this class.
30
INTERBUS Basics
Device Class
Digital remote bus device
Reserved for bus master
Digital remote bus device
Analog remote bus device
Analog local bus device
Digital local bus device
Local bus device with PCP
Remote bus device with PCP
Data Width
0 words
1 word
2 words
3 words
4 words
5 words
8 words
9 words
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
1 nibble
1 byte
3 nibbles
3 bytes
5 nibbles
5 bytes
6 words
7 words
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
Reserved
Reserved
16 words
24 words
32 words
10 words
12 words
14 words
Reserved
Bits 0 to 12 are usually specified by the hardware, i.e., the INTERBUS protocol
chip is set to a fixed ID code. An exception to this rule is the system coupler (e.g.,
ILC 200 IB), which can be assigned an ID code via software (firmware command
Set_Value_Request). The length of the parameter and process data channel for
the slave interface can then be specified. During operation, when the INTERBUS
INTERBUS Basics
31
system is in the RUN state, this ID code must not be changed, as this would
change the summation frame.
The IBS SUPI 3 protocol chip offers a flexible option for setting the ID code
by setting the "P_Not_Ready" ID code. Using "P_Not_Ready" ID codes,
a microprocessor application can then initialize the IBS SUPI 3 without
problem.
Bits 13-15 in Table 1.11 are an exception. They are used for error localization
during operation and for the reconfiguration of individual INTERBUS devices. In the
event of an error, if a data cycle is faulty and an ID cycle is run immediately, the
devices can report the precise error location to the INTERBUS master using bits
13-15.
This is not the case for a reconfiguration request. In this instance there are no
actual errors, but a slave device wants to inform the master, for example, that a
specific part of the system can be started up again. The reconfiguration option is
also found on bus terminal modules. It enables the user to restart specific parts of
the system that have been shut down. A CRC error is generated internally in the
device. After the subsequent ID phase, the device sends the reconfiguration
request to the master via bit 15.
In summary, the INTERBUS master requires ID cycles for the following purposes:
-
The length code is used to determine the register length, i.e., the process data
length used in the summation frame. Bits 8 to 12 pass on the data width in
encoded form. The length code, which is determined using bits 8 to 12, is
described in INTERBUS standard DIN EN 50254:1999-07. The length code used
by the user is generated in the master firmware. The main advantage of the user
length code is its easy operation. The length codes do not have to be determined
using a table, but are specified as shown in Figure 1.15.
32
INTERBUS Basics
15
14
13
12
11
Data length
10
Bit 15
0
1
0
1
Bit 14
0
0
1
1
Data length
Word (16 bits)
Byte (8 bits)
Nibble (4 bits)
Bit (1 bit)
Number
15
14
13
12
11
10
Reserved
Acknowledges module error
Sub ID mode
Extends active ID register in SUPI1
devices by 2 words
Local bus reset (bus terminal modules only)
Remote bus reset
Switches local bus interface, outgoing
interface (bus terminal modules only)
Switches remote bus interface, outgoing
interface (bus terminal modules only)
Alarm, signal on PIN alarm
Error, signal on pin error
Acknowledges the reconfiguration input
Masks the control register
INTERBUS Basics
33
The standard control register is not the only control register, there are also five
other control registers. These registers will not be considered in detail, as they will
not aid your understanding of the INTERBUS system.
PD:
PCP:
LBW:
FCS:
END:
Header (1 byte)/
data (1, 3 or 7 bytes)
Process data
Parameter data
Loop-back-word
Frame check sequence
End identification
Header (1 byte)/
data (1, 3 or 7 bytes)
Data (PD)
Data (PD)
Data (PD)
Data (PD)
M odule 1
M odule 2
M odule 2
M odule n-1
M odule n
FCS
LBW
End
34
INTERBUS Basics
If no parameter data is transmitted via the parameter channel, the data areas in the
summation frame remain empty. The length of the summation frame always
remains the same and the deterministic behavior of INTERBUS does not change.
INTERBUS Basics
35
Standard PCP
Compact PCP
Application
ALI
NMI
Application Layer
Interface
Network Management
Interface
PMS Layer 7
PNM7
Peripherals Message
Specification
Peripherals Network
Management
Application
Encoder/Decoder
PDL Layer 2
PDL Layer 2
36
INTERBUS Basics
In firmware Version 4.6 or later, the connection is established in the initial
phase of the INTERBUS system by synchronization protocols. Thereafter
the user does not have to establish a connection. The logical PCP
channel is always connected.
INTERBUS Basics
37
Host application -> INTERBUS output module
Host application cycle
OUT data is copied
to the MPM
P1
S1
P2
S2
P3
S3
Host
Sequential data
exchange
S1
S2
S3
Parrallel data
exchange
P1
P2
P3
INTERBUS
cycle
S1 P 0
S2 P1
S3 P2
Latch out
Output module
PHOENIX
CONTAC
1 1 1 1 1 11
T re
B1 2 3 4 5 6 7 89
A
R
C
R
D
0 1 2 3 4 56
S 0 P -1
S1 P 0
S2 P 1
ad
y
U
B(
1)
PHOENIX
CONTAC
1 1 1 1 1 11
T
1 2 3 4 5 6 7 89
0 1 2 3 4 56
E1
E2
E3
E4
E5
re
ad
y
U
B(
1)
Latch in
E0
INTERBUS
cycle
E1
E2
E3
Parrallel data
exchange
E0
E1
E2
E0
Sequential data
exchange
E1
E2
E3
E0
E1
E2
E0
E1
E2
E3
Figure 1.19: Number of INTERBUS cycles for the transmission of process data
38
INTERBUS Basics
INTERBUS
328= 256
Ethernet
328= 256
1632+385=
238
648322=
32768
256/
(256+238)=
52
500 kbps
2 Mbps
256/
(256+32768)
= 0.77
10 Mbps
100 Mbps
1000 Mbps
77 kbps
770 kbps
7700 kbps
260 kbps
1040 kbps
Even with the comparatively low transmission speed of the INTERBUS system, a
relatively high data throughput can be achieved. Only the Ethernet system
achieves the data throughput of the INTERBUS system, but it requires much higher
data transmission speeds. This means that much greater technical demands are
placed on the Ethernet system.
By default, the INTERBUS protocol operates at a data transmission rate of 500
kbps, which corresponds to a data transmission rate without protocol header of 300
kbps. The technology and firmware of the INTERBUS master is designed so that it
tries to start up the INTERBUS system at 2 Mbps. If this does not work, it tries to
start up the INTERBUS system at 500 kbps. An increase in transmission speed
from 500 kbps to 2 Mbps depends on the system properties of the INTERBUS
modules.
INTERBUS Basics
39
Remote
bus
IPMS
1
1.0
2
1.1
3
1.2
Local bus
SUPI
SUPI
Bus terminal
module
4
2.0
SUPI
IO
Remote bus
branch
SUPI
Bus terminal
module
5
3.0
Local bus
6
3.1
SUPI
SUPI
IO
40
INTERBUS Basics
Microprocessor
interface
INTERBUS
interface
ISO/OSI
reference model
Layer 7
Firmware
Software
Firmware
INTERBUS
Level shifting
IPMS 3
Layer 2
CMOS/RS485
RS485/CMOS
Layer 1
INTERBUS
remote bus
cable
INTERBUS Basics
41
IBS SUPI 3
The IBS SUPI 3 chip (Serial Universal Protocol Interface for Generation 3) has
been available since 1996 and its use is widespread. For INTERBUS connection,
the IBS SUPI 3 can be used to configure the INTERBUS module as a remote bus,
installation remote bus or local bus device. The IBS SUPI 3 controls the entire
summation frame protocol and offers error and diagnostic management. The
hardware features of the IBS SUPI 3 are as follows:
-
The IBS SUPI 3 consists of a 16 MHz quartz oscillator, a 16-bit multi-function pin
interface (MFP interface), a transmit and receive buffer for the identification
transmission cycle, a transmit and receive buffer for the data cycle, the diagnostics
and report manager with error detectors, two separate INTERBUS interfaces for
IN/OUT, and the interface to an external shift register. Figure 1.24 shows a block
diagram of the IBS SUPI 3.
42
INTERBUS Basics
The IBS SUPI 3 uses fewer external components than the IBS SUPI 2, and
the external wiring is reduced.
The method of operation of the diagnostics and report manager in the IBS SUPI 3
can be described as follows. All event information, which is generated in the
INTERBUS system, must be transmitted to the INTERBUS master for the
diagnostic display. A distinction must be made here between high-priority events
such as CRC errors or power-up, which are transmitted to the INTERBUS master
immediately, and I/O errors, reconfiguration requests or MAU warnings, which are
low-priority events and are reported to the INTERBUS master in every 16th
INTERBUS cycle. All events remain stored in the report manager until they are
acknowledged by the INTERBUS master or a hardware reset is triggered.
INTERBUS Basics
43
MFP (0:15)
MFP interface
ID transmit/recieve
buffer
Oscillator
ID address
Data transmit/
recieve buffer
0 ID control
1
2
3
4
5
6
7
Address
0 Data control
1
2
3
4
5
6
7
To ExR
MAC sublayer
From ExR
Error detectors
Diagnostics
and report
manager
MIS sublayer
MDS
1
MDS
2
MAU
MAU
MDS
3
MAU warning
Transmission medium
The IBS SUPI 3 OPC (Optical Protocol Chip) is another slave protocol chip in the
SUPI 3 family. It can be used to develop all the same device classes (digital
modules, bus terminal modules, and intelligent I/O) as the IBS SUPI 3. The
difference between this chip and the IBS SUPI 3 is its high level of operational
reliability and diagnostic capability for optical signal transmission (fiber optics).
The IBS SUPI 3 OPC protocol chip is an ASIC in 0.6 m CMOS technology with
approximately 15,000 gate equivalents. It can be used to implement 2-wire remote
bus and 2-wire local bus devices. The IBS SUPI 3 OPC differs from the IBS SUPI 3
in particular through its support of optical transmission methods. These include:
44
INTERBUS Basics
Automatic bus connector recognition (RBST/LBST) for copper and fiber optic
transmission
The IBS SUPI 3 OPC offers optical path diagnostics, e.g., with IBS CMD >= 4.50,
as shown in Figure 1.25. The distances, the current power level, and the enable
status of the optical regulation can be read cyclically or automatically. The collected
data can be saved in ASCII files for later evaluation. To use this feature, please
activate the orm.dll in the IBSCMD menu.
INTERBUS Basics
1.5.2.3
45
Older INTERBUS modules operate with slave protocol chips such as the SIOC
(from 1988), SUPI 1 (from 1990), and the IBS SUPI 2 (from 1992). As these slave
protocol chips are no longer up-to-date, this section only provides a brief
comparison of the properties of IBS SUPI 2 and IBS SUPI 3, in Table 1.16.
Table 1.16: Comparison of the IBS SUPI 2 and the IBS SUPI 3
IBS SUPI 2
IBS SUPI 3
1.0 m sea-of-gate technology
0.7 m standard cell technology
Approximately 7,000 NAND equivalents
Approximately 15,000 NAND equivalents
Standard Intel microprocessor interface
Universal Intel microprocessor interface
Unfiltered control inputs
Filtered control inputs
No mask separation
Clear mask separation
Standard driver outputs (2/4 mA)
Powerful driver outputs
for LEDs BA, RD, etc.
(12 mA) for LEDs BA, RD, etc.
Only hardware-controlled ID code
Additional ID code SET register
Available as SUPI 2 only from OKI
Second source available (Motorola,
AMTEL/ES2)
No diagnostics and report manager
Complex diagnostics and report manager
More cost-effective
1.5.2.4
INTERBUS protocol chips IBS LPC 2 and IBS LPC 1 (Loop Protocol Chip) were
specifically designed for the INTERBUS Loop, which is a cost-effective solution
with a reduced amount of cabling for the direct integration of sensors, actuators,
and other I/O devices into the INTERBUS system.
The IBS LPC 1 is an ASIC in 0.7 m CMOS technology with approximately 6,800
gate equivalents and is a Generation 4 INTERBUS slave protocol chip. This means
that the IBS LPC 1 has a diagnostics and report manager to provide INTERBUS
diagnostics. In addition, the IBS LPC 1 has been adapted to meet the requirements
of the sensor and actuator level, which requires simple external wiring and a low
housing
weight.
Figure 1.26 shows the IBS LPC 1 and IBS LPC 2 Loop protocol chips.
Figure 1.26: IBS LPC 1 and IBS LPC 2 INTERBUS Loop protocol chips
The IBS LPC 2 is the further development of the IBS LPC 1 and has an extended
range of functions. For startup and diagnostics, monitoring functions have been
integrated, which enable device-oriented local bus diagnostics. The integration of
analog modules and the external wiring have also been simplified. The following
modifications also affect practical applications: a new diagnostics and report
manager, doubling of the cable path supported between two Loop devices to 20 m
(65.62 ft.), doubling of the total length of the Loop ring to 200 m (656.17 ft.),
46
INTERBUS Basics
doubling of the number of devices supported to 63, and an increase in the current,
which can be tapped from the Loop 2 ring, to 1.8 A (IBS LPC 1: 1.5 A).
Master firmware Version > 4.0 is required for the use of the IBS LPC 1
protocol chip in an INTERBUS system.
INTERBUS Loop modules (IBS LPC 1) cannot be operated in an
INTERBUS Loop 2 system (IBS LPC 2). However, INTERBUS Loop
modules can be operated in an INTERBUS Loop 2 system with master
firmware Version > 4.4.
1.5.2.5
IBS SRE 1
The IBS SRE 1 (Serial Register Expansion chip) was specifically developed in 1994 as
a register expansion for the IBS SUPI 2 INTERBUS slave protocol chip. However, it
can also be used for the IBS SUPI 3 and the IBS SUPI 3 OPC. The IBS SRE 1, as
shown in Figure 1.27, is an ASIC in 1.5 m CMOS technology with approximately
4,000 gate equivalents and has a serial input, a serial output, and an interface to the
microprocessor for loading and reading the INTERBUS memory area.
Its task is to extend the data length of the internal slave protocol chip. Using a
microprocessor, it provides access to a maximum of six additional IN and OUT data
words. The IBS SRE 1 is also used in other applications.
INTERBUS Basics
47
Startup Behavior
After a power up or reset, Generation 3 firmware tries to physically read the
bus devices and to store a valid configuration frame in the RAM. If the bus
is not operable, the controller board starts up with an error.
The user can then send a Start_Interbus request to place the INTERBUS
system in the RUN state, provided that a valid configuration frame has
been generated.
Generation 4
firmware
Server
48
INTERBUS Basics
request is sent while the system is in the RUN state, the service confirmation would
be 0088hex. Some service codes have no negative confirmation.
Generation 4 Firmware:
The command structure has been restructured. Each confirmation is clearly
assigned to the request code, as shown in Figure 1.29. In this example, the
request code for the Start_Data_Transfer service is 0701hex. The positive
confirmation is 8701hex, and the negative confirmation is also 8701hex. The result of
the service processing and other information is included within the confirmation.
Request: 0701(hex)
Client
Server
In Generation 4, bit 15 of the service code (request) is always zero. This bit is set
for the confirmation. The user can therefore always determine the confirmation
code by "logically ORing" the service code with 8000hex.
Services, which do not make sense to the user in the current controller board
status are acknowledged as negative. For example, if a Start_Data_Transfer
request is sent in the RUN state, the confirmation will indicate to the user that this
service is not permitted in the current controller board status.
INTERBUS Basics
49
1
1.0
2
1.1
3
1.2
4
1.3
5
2.0
Remote bus
branch
6
3.0
Remote bus
devices
9
4.0
10
4.1
11
4.2
7
3.1
8
3.2
12
4.3
50
INTERBUS Basics
Every access to the MPM is also monitored in terms of time. If an MPM accessor
takes too long for an access, a timeout is generated. The MPM is then enabled
again for the other accessors. The timeout flag can be requested in the MPM
registers.
This system does not have to follow the usual order, where the host
system is device number 0 and the coprocessor is device number 2. For
example,
the
IBS 24 RFC 486 DX-I/T controller from Phoenix Contact has the
coprocessor as node 0.
0x7FFFF
0x40000
0x3FFFF
192 KB
0x10000
0x0FFFF
64 KB, maximum
Static RAM (SRAM)
0x00000
INTERBUS Basics
51
XDTA Node 3
0xEC00
0xEBFF
MXA Node 3
0xD000
0xCFFF
XDTA Node 2
0xBC00
0xBBFF
MXA Node 2
0xA000
0xBFFF
XDTA Node 1
0x8C00
0x8BFF
MXA Node 1
0x7000
0x6FFF
XDTA Node 0
0x5C00
0x5BFF
MXA Node 0
0x4000
0x3FFF
0x3F00
0x3EFF
0x3200
0x31FF
Hardware register
Software register
0x3EFF
0x3B60
0x3B5F
0x3840
0x383F
0x3520
0x351F
0x3200
0x1FFF
0x1C00
0x1BFF
0x1800
0x17FF
0x1400
0x13FF
0x1000
0x0FFF
0x0C00
0x0BFF
0x0800
0x07FF
0x0400
0x03FF
0x0000
52
INTERBUS Basics
SRAM segmentation can be read via the MPM descriptor, which is generated by
the master firmware for every node. This should be taken into account during driver
development, because the SRAM segmentation might change.
Data, which is to be transmitted from one node to another node, can be written to
the relevant areas of the data area (DTA IN and OUT area), as shown in the righthand column in Figure 1.32.
The node to the left of the "-> - Operator" can write to this memory area and the
node to the right of the "-> -Operator" can read from this memory area.
For example, node 0 (host system) transmits data to node 1 (INTERBUS master).
Node 0 writes the data to the area 0x0000-0x03FF. Node 1 reads this data starting
from address 0x0000.
The exception is the ISA FC 486DX/I-T controller board. The areas from which
OUT and IN data can be read are shown in Figure 1.33.
0xFFFF
0xEC00
0xEBFF
Node 2:
ProConOS output data (Q)
Node 1:
INTERBUS master
input data
Node 0
0xD000
Node 1:
INTERBUS master
output data
Node 0
0xBC00
0xA000
Node 2:
ProConOS input data (I)
0x8C00
0x7000
Node 0
0x5C00
0x2000
0x1C00
Node 2:
ProConOS output
data (Q)
0x1800
0x1400
0x1000
0x0C00
Node 1:
INTERBUS master
input data
0x0800
0x0400
0x0000
Node 1:
INTERBUS master
output data
Node 0:
INTERBUS input data is read here
for PC processing
Node 2:
Input data (I) for
ProConS
Node 0:
INTERBUS input data is read here
for PC processing
INTERBUS Basics
53
Data Interface
Mailbox Interface
SysFail requests
Signal Interface
Synchronization request
Synchronization
interrupt
SysFail interrupt
Signal interrupt
Mailbox handshake
interrupt
DTI
MXI
SGI
DDI
MPM
54
INTERBUS Basics
No handshake is specified for exchanging data via the DTI., which means
that while one node is reading, another node may overwrite this data,
causing a problem in terms of data consistency. To solve this problem, a
separate transmission protocol should be used, e.g., "Asynchronous with
synchronization pulse", see 1.8 "Process Data Channel Operating
Modes", or alternatively a data consistency of greater than 16 bits
(default) must be set for a specific data item.
INTERBUS Basics
55
during data exchange. It can be implemented so that all data in the summation
frame is made available consistently to the application.
Memory size
Data consistency
Byte consistency
56
INTERBUS Basics
Node 1: 0x378A
Node 2: 0x3AAA
Node 3: 0x3DCA
Note for the development of your own device driver: The device driver for
the host system should be designed so that the MPM descriptor for the
INTERBUS controller board is read and the returned addresses are used
(because the master firmware could, in theory, reset the parameters for
individual areas of the SRAM).
In practice, the data from the relevant address is transferred to the following
structure (load pointer for the structure with the memory address of the MPM
descriptor):
typedef struct {
USIGN16 StartAddrDTA;
/* Start address of a DTA subrange*/
USIGN16 DTALength; /* Length of a DTA subrange*/
} T_DTA_ENTRY;
typedef struct {
USIGN16 StartAddrDTA;
USIGN16 DTALength;
USIGN16 StartAddrExDTA;
USIGN16 ExDTALength;
USIGN16 StartAddrMXA;
USIGN16 MXALength;
T_DTA_ENTRY Data[2][4];
USIGN16 SVR[2][4];
*/
USIGN16 AVR[2][4];
registers */
USIGN16 SNR[2][4];
} T_NODE_INFO;
INTERBUS Basics
57
0x0000
1024
0x5C00
5120
0x4000
7168
StartAddrDTA
DTALength
StartAddrDTA
DTALength
StartAddrDTA
DTALength
StartAddrDTA
DTALength
StartAddrDTA
DTALength
StartAddrDTA
DTALength
StartAddrDTA
DTALength
StartAddrDTA
DTALength
0xFFFF
0000
0x0000
1024
0x0000
1024
0x0000
1024
0xFFFF
0000
0x1000
1024
0x1000
1024
0x1000
1024
Table 1.19: Start addresses of the MPM descriptor for the individual nodes:
Node
0
1
2
SVR[0][0 - 3]
0x0000
0x342A
0x342C
SVR[1][0 3]
0x0000
0x3772
0x3A92
AVR[0][0 - 3]
0x0000
0x3432
0x3434
AVR[1][0 3]
0x0000
0x377A
0x3A9A
SNR[0][0 - 3]
0x0000
0x343A
0x343C
SNR[1][0 3]
0x0000
0x3782
0x3AA2
3
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
A tool and the source code for reading the MPM descriptor for every node
can be found on the accompanying CD-ROM. This tool can read the MPM
descriptor of every controller board. It uses the diagnostic interface (RS232) of the controller board and can be operated independently of the
host system.
58
INTERBUS Basics
operating
modes
for
Figure 1.35 and Table 1.20.
the
INTERBUS
system
is
given
in
Bus-synchronous
Program-synchronous
Bus-synchronous
Programsynchronous
INTERBUS Basics
59
Four times are particularly important for the INTERBUS operating modes. They are
the default cycle time, the bus warning time, and the bus and application timeout
times. To aid understanding of the operating modes, these times are described
overleaf.
IBS
cycle
IBS
cycle
IBS
cycle
Default cycle
time
Bus warning time
Bus timeout time
IBS
cycle
60
INTERBUS Basics
The monitoring times can be edited easily using IBS CMD/PC WORX.
The dialog box for these settings, Figure 1.37, can be found in the
controller board context menu under "Settings".
For sequential transmission, the process data is read from the MPM (host OUT
data) before the start of an INTERBUS cycle, and it is copied to the MPM
(INTERBUS device IN data) at the end of an INTERBUS cycle.
INTERBUS Basics
61
For parallel data exchange, the process data is read from the MPM (host OUT
data) and is written to the MPM (INTERBUS device IN data) after an INTERBUS
cycle has started.
INTERBUS system cycle time
Data cycle
INTERBUS
cycle
INTERBUS
cycle
INTERBUS
cycle
Parallel I/O
data exchange
IN
IN
OUT
OUT
IN
OUT
Sequential I/O
data exchange
OUT
IN:
IN
IN data is read
from the
INTERBUS master
OUT
OUT:
IN
OUT data is
transmitted to the
INTERBUS master
OUT
A different transmission method can be set for each process data item.
This means that a combination of parallel and sequential transmission is
supported. In practice, this is hardly ever used.
Due to the copying procedures before and after an INTERBUS cycle, the
INTERBUS cycle time is longer for sequential transmission than it is for
parallel transmission. A better response time compensates for this
difference.
62
INTERBUS Basics
from address 100 is the assignment 100:32. Without the relevant configuration
software, the master firmware service 0x0325 (load process data reference list)
should be used. This entry is used to program the function decoder of the MPM,
which ensures the relevant data consistency. With the function decoder, several
accesses can be made to the MPM in succession. The function decoder locks the
MPM for the other nodes until all the accesses have been completed. If the MPM
timeout time is exceeded, an MPM timeout is triggered. An error message is
generated and the MPM is then enabled again. The adjustable data consistency
only applies to addresses 0x0000 0x01FFF (8 KB).
The relevant INTERBUS driver in the host system must also be set to the required
data consistency so that addresses are accessed accordingly.
With a data consistency of 64 bits on a PC host system on which the
INTERBUS driver is also running, please note that an interrupt from a
higher
IRQ
(e.g., NMI Non maskable interrupt) may take place while the driver is
copying data from the MPM.
In the rest of this section, the handshake bits are referred to by name in the
diagrams.
Table 1.22 shows the relevant registers with the appropriate handshake bits.
INTERBUS Basics
63
MPM Address
Note
Diagnostic status
register
0x3520
Standard function
start register
0x3524
Synchronization result
bit
Data cycle result bit
Cons activate bit
Application busy bit
Data cycle activate bit
Standard function
status register
0x3526
1.8.3.1
Bit
Bit 15
Bit 12
Bit 15 (asynchronous)
Bit 14 (bus-synchronous)
Bit 14 (programsynchronous)
Bit 15 (asynchronous)
Cons state bit
Synchronization pulse Bit 14 (bus-synchronous)
bit
Bit 14 (programData cycle state bit
synchronous)
1...
Cons active
bit (host)
Cons state bit
(INTERBUS
master)
Application
(host)
IN:
IN
O UT
64
INTERBUS Basics
cons active bit in Section 4. Once the INTERBUS master has detected the falling
edge of the cons active bit, it can freely access the process data. The cons state bit
is reset when the host system OUT data is accepted, see Section 4.
This sub-operating mode is very easy to implement because it does not use
interrupts. The INTERBUS cycle time is highly dependent on the operating speed
of the host system.
Note: The INTERBUS master is always in the RUN state, even if the host is no
longer using the handshake. The process image update in the MPM is disabled.
Process data is still written to the input and output data memories, i.e., INTERBUS
cycles are run.
When the INTERBUS system is in the STOP state, the cons state bit is
no longer used. The application program or the driver must react
accordingly.
1.8.3.2
Driver
DDI_DTI_ReadData
Process data read service
Selector
Interrupt shift routine
Alternating
OUT buffer
Alternating
IN buffer
3
MPM
INTERBUS Basics
65
Section
2...
Synchronization
pulse bit (INTERBUS
master)
Application busy
bit (host)
IN
Host reads IN data
OUT
OUT
Synchronization result
bit (INTERBUS master)
NOT VALID
VALID
NOT
VALID
NOT VALID
VALID
NOT
VALID
IN:
66
INTERBUS Basics
Section
1...
IN
Host reads IN data
OUT
OUT
NOT VALID
VALID
I
R
Q
NOT VALID
I
R
Q
I
R
Q
I
R
Q
INTERBUS cycle
complete
INTERBUS Basics
67
Counter modules
Dosing devices
V.24 modules
Resolvers
Gateway modules
Motor starters
Servo drives
Identification systems
Encoders
Pneumatic valve manifolds
Hydraulic valve manifolds
Positioning controllers
Welding controllers
Weighing
and
dosing
systems
Cam-operated systems
PLC devices
PC boards
Gateway modules
Linear and rotating
transmission components
Infrared transmission paths
Radio transmission modules
Robot controllers
Multi-process control systems
Wrenching controllers
ID systems
Barcode reading systems
Scanner reading systems
Device control systems
Process controllers
68
INTERBUS Basics
t INTERBUS
Cycle time
= (1 . 15 13 (8 + n ) + 3 a ) t b + t s + 2 t p
Transmissi on time = 13 (8 + n )
Delay time = ( 3 a ) t b + 2 t p
n = Number of user data bytes of process and PCP data
a = Number of remote bus and local bus mod ule
t b = Bit duration = 0 .002 ms at 500 kbps
t s = Software runtime = 0 .7 ms ( G 4 ) and 0 . 34 ms (G 3)
t p = Runtime on the cable = 0 .016 ms / km
The PCP transmission time is calculated using the following practical formula:
b+n
tPCP transmission = tS 7 + ti + t I
a 1
b = Amount of user data in bytes
n = Overhead data for PCP command in bytes ( see PCP command )
a = Re quired data width in the parameter channel
ti = Transmission time for a PMS service ( 2 t I )
tS 7 = Software runtime for Layer 7 (1 ms )
z = Number of transmission cycles required
tI = INTERBUS cycle time
INTERBUS Basics
69
70
INTERBUS Basics
The Read_Configuration service can be used to read the SUPI type for every
device. For Used_Attributes a "global_bus_error" (0100 hex) must be set. The
following 3 words are then read for every device:
Word 1: SUPI_Type (Byte) | Add_Info (Byte)
Word 2: Transmission_Error (Word)
Word 3: Device_Error (Word)
SUPI_Type
Add_Info
A5: SUPI 3 | A4: SUPI 3-DPC | A3: LPC1 | A2: LPC2 | A0: IB8052 |
D0: SUPI 3-OPC | 00: SUPI older than SUPI 3 | FF: SUPI type not yet read
INTERBUS Basics
71
1.11 Workshops
1. Calculation of the CR check: If the message N(x) is 10101100 and the
7
5
generator polynomial G(x) is x +x +x then determine R(x). Calculate a solution
using XOR elements and use the mathematical version.
2. How long is the INTERBUS cycle time for a G4 INTERBUS configuration with
five INTERBUS devices and 20 bytes of process and parameter data?
3. What are the options for optimizing the INTERBUS process data in the
summation frame protocol?
4. Implement MPM access to the XDTA of the INTERBUS controller board from
the host PC using the application program (C, C++).
The answers to the questions for the "Basics" Section can be found on
the accompanying CD-ROM.
72
INTERBUS Configuration
2 INTERBUS Configuration
By carefully planning an INTERBUS configuration, it is possible to determine
whether system expansions will be easy to implement during later operation, and
how the entire system will respond to external interference.
Installation faults can lead to high interference and compensating currents, for
example in the INTERBUS cable shields. These currents can adversely affect bus
operation and lead to downtimes. These installation faults exist in many systems,
but are only detected when system downtimes occur.
With an understanding of the danger areas, an INTERBUS planning engineer is
faced with many questions, such as "What issues should be considered before
starting an INTERBUS project?", "Which installation faults have a particularly
negative effect on INTERBUS operation?, "Should a regulated or non-regulated
power supply be used?" - "How should the emergency stop concept be
implemented?" or "Which EMC measures should be taken to protect against surge
voltage, ESD, lightning, transients, and network disturbances?". These and other
questions are answered in detail in this section.
This section also provides the following information about the configuration of
INTERBUS systems and devices: a step-by-step list of procedures, acceptance
reports, test reports, applications examples such as emergency stop concepts, and
workshops and questions.
This section covers the following topics:
-
Page
Page
Page
Page
Page
Page
Page
73
74
79
83
89
90
91
INTERBUS Configuration
What is the most effective way to protect the system from IBS errors?
How is redundancy created for the power supplies?
73
Page 92
Page 99
When planning an INTERBUS system and its topology, the legal regulations (VDE,
DIN, IEC, EN, etc.), the local conditions, and the technical requirements must be
taken into account.
74
INTERBUS Configuration
The (distributed) control boxes and stations should be planned in advance to meet
the needs of the application. The IP code, which indicates the required degree of
protection against contact, foreign bodies, and water, should be considered. The
various degrees of protection (IP codes) are defined in DIN 40 050 and in IEC 144.
A table listing the degrees of protection (IP codes) can be found on the
accompanying CD-ROM.
Required and maximum cycle time for the INTERBUS configuration (realtime)
INTERBUS Configuration
75
What type of control system (software or hardware PLC) should be used and
what programming language is required for this?
Are there large data packets, which require consistent transmission to higherlevel components? Can this transmission be achieved without problems?
Ensure that you select the correct cable type for your application. Select the
appropriate cables for indoor or outdoor use, for trailing cables or for protected
areas (potentially explosive areas or those prone to EMI). If INTERBUS is used in
areas prone to EMI, fiber optic cables should be used as the INTERBUS medium.
Shielding
Grounding
Equipotential bonding
76
INTERBUS Configuration
EMI protection
When mounting INTERBUS devices, they should be well grounded. Often a metal
clip on the back of the module is connected to the control cabinet to provide the
ground connection. In this case, the user must then check that the DIN rail, the
control cabinet, and the built-in mounting plate are also grounded. If necessary, a
grounding terminal block should be installed on the DIN rail to connect the rail to
protective earth ground.
If the INTERBUS device is screwed directly onto a mounting surface, the grounding
connection is made via a mounting screw on the grounded mounting surface.
When mounting INTERBUS components, various options are available for reducing
the amount of "space" required in the summation frame protocol. The skilled
configuration of adjacent INTERBUS I/O modules and their process data width can
ensure optimal use of the summation frame. Depending on the INTERBUS system
(Inline, ST, RT, Loop, etc.), the process data in the summation frame is either byte
or nibble-oriented. The use of this "space" can be optimized with knowledge of the
process data width of the INTERBUS modules and by positioning them next to
each other. The information required to understand this concept can be found in
the workshop for Section 1.11 "Optimizing Process Data in the Summation Frame
Protocol".
4
When laying cables for sensors and actuators, parallel cabling with (powerful)
conductive cables should be avoided. If the application side of the INTERBUS
module does not have electrical isolation, interference can be transmitted via the
sensor/actuator cables to the INTERBUS module and onward into the INTERBUS
INTERBUS Configuration
77
data cable. This type of interference often occurs with frequency inverters,
protective circuits, and switching operations in power cables.
5
The bus lines must not be laid parallel to power supply lines. They should be laid
separately in metal cable ducts, cable trays or jumpers. A minimum distance of 10
cm (3.94 in.) from power cables must be observed if isolated cable laying is
absolutely impossible. Interference voltages may be induced on power cables to
and from frequency inverters, motors, and other sources of interference. This
should be avoided wherever possible. In addition, bus lines should not be laid at
right angles to driving paths or machine movements. If particularly long bus lines
are used or lines are laid in adjacent buildings, a separate equipotential bonding
line should also be laid and contacted at the connection points. When a line is laid
to an adjacent building, it should be installed in a grounded metal conduit.
Always take the bending radius into account when laying cables, especially fiber
optic cables.
To ensure error-free INTERBUS operation, the power supplies for the INTERBUS
I/O devices and the INTERBUS module electronics should be isolated for all
INTERBUS devices. A separate primary switched power supply unit should supply
the voltage in each case. This prevents INTERBUS errors, which could arise from
the coupling of contaminated voltages (voltage peaks, transients, etc.) to the
INTERBUS communications power.
6
The assignment of wire pairs for all main INTERBUS cables and
connectors can be found on the accompanying CD-ROM.
When testing and logging the INTERBUS cabling, the length, impedance,
attenuation, and crosstalk should be determined. The values given in the
acceptance and test reports and in the INTERBUS system specifications should be
used as reference values. For example, the ground or shield connection for the bus
cables must be checked for continuity.
78
INTERBUS Configuration
All the data, which is required for a cabling test, can be found in the
submission for INTERBUS acceptance and in the fiber optics test
report. These documents are provided on the CD.
When connecting the cables, ensure that as much of the shield as possible is held
underneath the strain relief. Tightening the screws correctly ensures a good
contact between the connector and the INTERBUS module. Whenever possible,
the connector should also be screwed to the coupling.
8
When connecting the supply voltage, observe the isolation of voltages described
above for INTERBUS I/O devices and the INTERBUS module electronics, and the
assignment in an emergency stop concept. For some components, the correct
polarity may also be important for the voltage connection.
Once the modules have been connected and supplied with power, a measurement
can be taken to check the voltage. In general, this voltage measurement is not taken
using a multimeter or voltmeter. Due to the fact that the voltage must be within a
defined range, an oscilloscope should be used. For Phoenix Contact INTERBUS
modules, a voltage between 20.0 and 30.0 V is required, with a permitted voltage
ripple of +/- 3.6 V. Longer-term voltage triggering of over 30.0 V or under 20.0 V can
help to determine whether the AC supply is "contaminated" with voltage peaks. This
measurement is meaningful if the system is operated under "load" and all electrical
and electronic components are included in the configuration. This is why this
measurement is also part of the INTERBUS acceptance report.
Depending on the selected controller board (PLC, soft PLC or hard PLC), various
factors should be considered when mounting and starting up the INTERBUS
controller board. These factors are described in detail in the data sheets supplied
with the controller boards.
INTERBUS Configuration
79
Disconnect safely
If all voltage LEDs are not lit on the INTERBUS modules, then use a
voltage measuring instrument to determine whether the required voltage
of 24 V is present at the module. The fuse may not be present or may be
faulty.
At this point, the BA LED (Bus Active) on the INTERBUS modules should be unlit
or flashing, as the controller board is not yet operating the INTERBUS system. The
controller board is only in the "Ready" state and does not yet have an INTERBUS
configuration frame, i.e., there is no image of the INTERBUS configuration within
the controller board.
In order to check the INTERBUS configuration to ensure it functions correctly,
DEBUG, AUTODEBUG or test mode is available on the controller board (see data
sheet). The INTERBUS devices are (automatically) switched on one after the other.
In these test modes, ID and data cycles are run alternately. In the event of an error
on an INTERBUS module, the physical device number is displayed, e.g., in the
LCD on the controller board. If the INTERBUS system contains no errors,
INTERBUS cycles are run up to the last device. At this point it can be assumed that
80
INTERBUS Configuration
the system does not contain any problems, which are the result of INTERBUS
hardware errors.
The DEBUG and AUTODEBUG functions are set in the LCD on the
controller board (MODE | DIAG | DEBG or ADBG) or in IBS PC WORX
or IBS CMD under the Monitor menu item. On some controller boards,
the test mode can be set via DIP switches.
Firmware commands
INTERBUS Configuration
81
The I/O test can be performed easily using a digital process data monitor.
This can be found in the CMD G4 and PC WORX software on the
accompanying
CD-ROM.
To carry out an I/O test, the INTERBUS system must now be started up (no longer
in test mode). This should no longer be a problem because all possible errors have
been removed in the previous steps. For INTERBUS operation a configuration
frame is now required, which must be transmitted to the controller board and
started. This step is called "Execute parameterization and startup". In the controller
board, the specified configuration frame is compared with the actual physical
INTERBUS configuration. After a successful comparison, the configuration frame is
switched first to ACTIVE and then to RUN. The INTERBUS system is now running
and is operated by the controller board cycle by cycle.
82
INTERBUS Configuration
User-defined addressing enables the user to assign bits, bytes, words, etc. of
process data to memory spaces or variables. However, this has no effect on the
assignment of process data within the summation frame protocol.
INTERBUS Configuration
83
16 Continuous Operation
If the INTERBUS system is in the RUN state after the hardware and software has
been started up, then cycles are initiated continuously by the INTERBUS controller
board. The controller board fetches IN process data from the modules and sends
OUT process data to the modules in the same cycle. The cycle time always
remains the same. Determinism can therefore be specified using the cycle time. If
parameter data (PCP) is also transported in the INTERBUS system, this data is
transmitted sequentially in blocks and does not affect the cycle time.
17 Acceptance by Report
During the INTERBUS system acceptance process, the parameters required for
safe and smooth operation should be logged.
84
INTERBUS Configuration
complete system check cannot be carried out, the following values should at least
be determined using random tests:
-
INTERBUS Configuration
85
is smoothed and filtered using capacitors. It is then led through either a DC series
controller or a DC quadrature controller. Depending on the forward resistance of
the transistor in the controller, the current is regulated so that the voltage remains
constant. The main field of application for regulated power supplies with linear
regulation is the supply of electronic loads in the 24 V DC area.
In the event of a short circuit, the short circuit current is limited by the fuse on the
secondary side and by the controller. It may briefly amount to two or three times
the nominal output current of the power supply.
+
L
Input
(primary)
Output
(secondary)
Controller
50 Hz transformer
Rectification
Smoothing
Regulation
Smoothing
No harmonics
Primary Switched
In primary switched devices, as shown in Figure 2.2, the AC supply voltage on the
primary side is first rectified, smoothed, and keyed. The resulting square-wave
voltage is transformed using a high-frequency transmitter and smoothed again on
the secondary side. Due to their universal use, the main field of application for
regulated power supplies with primary switched regulation is in automation and in
the provision of distributed supply voltages.
Controller
Electrical isolation
Output
(secondary)
Input
(primary)
N
Rectification
Smoothing
Keying
50 Hz transformer
Filter
Smoothing
86
INTERBUS Configuration
Disadvantages:
More components
Low weight
Higher price
Universal use
Small size
In the event of a short circuit, the short circuit current is shut down briefly by the
controller on the secondary side and reactivated after a few seconds. The current
on a short circuit may be about 1.1 to 1.5 times the nominal output current of the
power supply.
If primary switched power supplies are equipped with a U/I characteristic curve as
shown in Figure 2.3, the entire output current is provided on a short circuit and the
output voltage is reduced accordingly. The fuse positioned after the power supply
unit must therefore have a low level of internal resistance, so that it shuts down
reliably in the event of a short circuit. These power supply units are used to
connect any size of capacitive load when reliable selective triggering is required.
UOutput [V]
24V
I Output [A]
INominal 1,1*INominal
Figure 2.3: U/I characteristic curve for a power supply
If the controller for the primary switched power supply unit uses the fold-back
output characteristic curve, the voltage to current ratio is as shown below in Figure
2.4.
INTERBUS Configuration
87
Overcurrent range
UOutput [V]
24V
IOutput [A]
INominal
1.1*INominal
2.4*INominal
I Output [A]
INominal
1.5*INominal
88
INTERBUS Configuration
+
L
Input
(primary)
Output
(Secondary)
N
50Hz transformer
Rectification
Smoothing
Few components
Long life
Efficiency of 80%
Disadvantages:
No control level
-
10
16
61
82
The following formulae are used to calculate the voltage drop on the secondary
side, where is the conductivity (57 = copper, 36 = aluminum):
INTERBUS Configuration
89
24 V DC:
mm
[ ]
1~ 240 V AC:
3~ 400 V AC:
The workshop at the end of this section contains exercises for calculating the
voltage drops for AC and three-phase loads.
Table 2.2 below illustrates the differences between the types of power supply.
Table 2.2: Differences between various power supplies
Efficiency
Power dissipation with a load
power of 1000 W
Input range
Non-Regulated
80%,
approximately
200 W,
approximately
-10% < UN < +6%
Linear Regulated
40 - 60%,
approximately
600 W,
approximately
-10% < UN <
Primary Switched
90%, approximately
100 W,
approximately
-20% < UN < +15%
90
INTERBUS Configuration
Non-Regulated
Output voltage
Residual ripple
Short circuit current
Field of application
Depends on input
voltage and load
2000 mVpp,
approximately
10 x IN,
approximately
Linear Regulated
+6%
Precisely
regulated
50 mVpp,
approximately
2 or 3 x IN,
approximately
Electromechanical Sensitive
loads
analog
technology
Primary Switched
Precisely regulated,
can be set
150 mVpp,
approximately
1.1 to 1.5 x IN,
approximately
(U/I characteristic
curve)
Universal,
INTERBUS
The future of power supplies for INTERBUS lies in regulated primary switched
power supply units. These power supply units offer clear advantages in the form of
reduced power dissipation, compact design, and multi-functional use.
INTERBUS Configuration
91
Figure 2.7 shows an INTERBUS configuration for the emergency stop concept
using a SAFETY bus terminal. The safe segment circuit starts at the
IB IL 24 SAFE 1 terminal and finishes at the last terminal before another power
supply unit or at the end of a station.
92
INTERBUS Configuration
Power supply
company
Main
distribution
FLASHTRAB
Subdistribution
Termination
device
L1
L2
L3
N
PE
VALVETRAB
Device
protection
Figure 2.8: Surge voltage protection concept with surge voltage arresters in a TNC-S network
In the planning phase, a consistently implemented equipotential bonding concept
should be configured with a network that is as tightly meshed as possible.
However, when the complete equipotential bonding concept is later implemented,
star and line networks can also be installed.
INTERBUS Configuration
93
Data line
EMI PZ
(Lightning PZ)
Main distribution
Equipotential
bonding
Sub-distribution
Equipotential
bonding
Arrester
EMI PZ
Arrester
EMI PZ 2
Arrester
EMI PZ 3
Sub-distribution
Equipotential
bonding
94
INTERBUS Configuration
The following classifications have been developed for the assignment of electrical
components in protection zones 0-3 (PZ):
PZ 0
PZ 1
PZ 2
PZ 3
Using this protection zone concept, in which protection zones 1-3 may occur
several times, surge voltages can no longer be coupled to the electronics. In order
to also prevent different circuits from affecting one another, power supply and data
cables should be installed separately in shielded grounded metal ducts.
In addition, all conductive parts such as pipes are included in the equipotential
bonding.
The protection zone concept can also be used to create island solutions and thus
to protect only individual devices or systems/system parts from surge voltage. This
may be desirable if complete surge voltage protection is not cost-effective or is not
required. However, later modifications to provide surge voltage protection using the
protection zone concept should always be taken into account in the planning
phase.
DIN V VDE V0100 Part 534 specifies the regulations for the erection
of surge voltage protection equipment. It covers both the issue of
lightning protection and the requirements for lightning protection to
prevent the risk of fire and electric shock. The "3+1" circuit used in
TT and TN systems virtually eliminates the risks presented by circuit
connection errors. The conditions for the correct installation of surge
voltage protection equipment are clearly specified in DIN V VDE
V0100 Part 534 and the Directive for the Use of Surge Voltage
Protection Equipment Class B.
INTERBUS Configuration
95
[Time]
[Time]
96
INTERBUS Configuration
As a rule, protection from voltage peaks and disturbing pulses can be provided by
AC supply filters and interference suppression filters. Figure 2.10 shows the
voltage curve before and after an interference suppression measure, which is
connected in the supply line before the device. In general, to ensure error-free
operation of the electrical equipment connected to the supply network, the
operation of one device must not adversely affect that of another device; the Digital
modules may react even to relatively low interference signals at the inputs with
undesirable and unknown malfunctions. For example, a poor contact to the supply
line (poor soldering points or loose screw connections) or couples wiring may lead
to malfunctions.
INTERBUS Configuration
97
Lightning strike
Power supply
INTERBUS
Coupling through
induction
Induction loop
Equipotential
bonding
98
INTERBUS Configuration
However, a lightning protection system does not protect the electrical equipment.
Additional safety devices must be installed to provide protection against
interference and surge voltages.
The shielding of power lines is also important. The line between an inverter and a
motor must be shielded and as much of the shield as possible must be connected on
both sides. When analog signal lines are used (for example in sensors and actuators
for analog input modules), unlike motor lines, as much of the shield as possible should
be connected but only on one side and with low resistance in the control cabinet.
However, if both shield ends, i.e., the shielding on the sensor and actuator side, are
connected then the measured values may be distorted. The shields in the INTERBUS
cables are connected using as much of the shield as possible on both sides with low
resistance.
The wires for shielded INTERBUS cables must be twisted to prevent interference
coupling. The individual wires for the digital signals DI (gray) and DO (yellow) are
twisted with their corresponding differential signal wires DI (pink) and DO (green). The
wire twisting keeps the differential signal virtually free from interference, even if external
interference signals affect the wire pair. An illustration of the signals/differential signals
is given in Figure 2.13 using the example of DO/DO. The fifth wire of the INTERBUS
remote bus, the GND, is normally brown.
INTERBUS Configuration
99
DO
DO
Difference is always the same
Coil,
winding
Resistor
100 - 200 Ohm
Capacitor
222 - 470 nF
100
INTERBUS Configuration
Electrical isolation is installed in Figure 2.15. The INTERBUS modules are supplied
with communications power and I/O voltage by separate power supply units. Every 0 V
power supply unit output (1) on the secondary side is fitted with a jumper to the
equipotential bonding, which creates a short circuit in the power supply unit on a
ground fault. In addition, the 0 V potentials (2) of the distributed control cabinets are set
to the same level using a 10 mm (8 AWG) RS-232 cable. This leaves the user with
nothing to worry about.
240 V/400 V power supply from main distribution with TN-S network type, star grounding, no jumper between PE and zero
L1-3, N, PE
Quint 5
Quint 5
DC o.k.
L
AC
N
L1-3, N, PE
Quint 5
- - + +
PE
1
EB, to equipotential
bonding in the control
cabinet
Quint 5
DC o.k.
L
AC
N
DC o.k.
- - + +
PE
10 mm2 conductor
(8 AWG)
AC
N
- - + +
PE
AC
N
- - + +
PE
EB
EB
EB
Control cabinet 2
Large distance
Control cabinet 1
0V
DC o.k.
L
0V
24 V
24 V
Communications
power
INTERBUS
INTERBUS Configuration
101
DIN 40050
IEC 144
102
INTERBUS Configuration
Power supply
unit 20 A
+
-
5A
5A
8A
Power supply
unit 20 A
+
-
5A
5A
25 A
Power supply
unit 20 A
5A
5A
8A
20 A
INTERBUS Configuration
103
Power supply
unit 20 A
Power supply
unit 20 A
+
-
5A
5A
25 A
104
INTERBUS Configuration
2.7 Workshop
1. As shown in Figure 2.20, a power supply with the output values Ia = 4 A and
Ua = 24 V supplies a load via a 10 m (32.81 ft.) copper cable. The cable has a
cross section of 2.5 mm (14 AWG).
Task: How high is the voltage drop and the voltage at the load?
INTERBUS Configuration
105
u=?
Ia = 4 A
+
Ua = 24 V
Power supply
Ua = ?
Load
-
Figure 2.20: Determine the voltage drop and the voltage at the load
2. As shown in Figure 2.21, a 3-phase power supply of 20 A/3*400 V is
connected from a sub-distribution in a TN-S network via a 100 m (328.08 ft.)
copper cable (cross section = 2.5 mm [14 AWG]). At the sub-distribution, the
voltage between the wires UL = 400 V.
Task: How high is the voltage drop U and the voltage between the wires on the
input side of the power supply Ua?
u=?
L1 } UL1L2 = 400 V AC
L2
Sub-distribution L3
N
PE
Ua = ? {
L1
L2
L3 Power supply
N
PE
+
-
Figure 2.21: Determine the voltage drop and the voltage at a 3-phase power
supply unit
3. Configure a surge voltage protection concept for the Inline segment shown in
Figure 2.22.
Bus
terminal AI AO
DO
DI
Figure 2.22: Configure a surge voltage protection concept for the Inline
segment
106
INTERBUS Configuration
Power Bus
supply terminal
L
N
PE
BK-T
AO
AO 4/SF4
AI
AI 4/SF4
AI
AI 4/SF4
Figure 2.23: Configure a surge voltage protection concept for the ST segment
INTERBUS Diagnostics
107
3 INTERBUS Diagnostics
The diagnostic properties of the INTERBUS system are often praised by both
practical experts and theorists. In fact, the great market success of the INTERBUS
system is due in no small part to its diagnostics, which enable the location and
cause of an error to be determined precisely.
This section first provides a general description of INTERBUS system diagnostics,
from segment designation to device number, and then continues with explanations
of more complex diagnostic topics. The accompanying CD-ROM contains an
introduction to the use of the DIAG40 software tool, which the practical expert can
use to read all INTERBUS master information.
After working through this section, you will be able to understand the limitations of
diagnostics using LEDs and how even serious error descriptions can be controlled
using suitable methods.
The following topics are covered:
- Use of standard registers for diagnostic purposes
- Reset behavior of the INTERBUS system
- INTERBUS system error types
- Error localization with SUPI 3 INTERBUS devices and older SUPI chips
- Representation of an error in INTERBUS Generation 4
- Diagnostic options in SUPI 2, SUPI 3, and combined systems
- Transmission quality
- Evaluation of INTERBUS module diagnostic LEDs
- Introduction of the diagnostic programs PC WORX/CMD and DIAG+
- Serious error descriptions (E0X errors)
- Hardware diagnostics
108
INTERBUS Diagnostics
Software
Diagnostic programs
- Integrated diagnostics in
CMD/PC WORX
- DIAG+
- DIAG40
Diagnostic registers
- Use of diagnostic registers
- in the application
Hardware
Controller board diagnostics
- Central diagnostic display on the
jjjINTERBUS controller board
INTERBUS Diagnostics
109
Diagnostic information can be accessed via the RS-232, Ethernet, ISA or PCI
interface. Diagnostic software (CMD/PC WORX, DIAG+ or DIAG40) can access all
diagnostic data using these interfaces.
INTERBUS Designations for Diagnostic Purposes
As this section frequently refers to device numbers, physical numbers, segment 1,
OUT1, etc., Figure 3.2 provides an overview of these terms.
Physical number/
logical number
0/0.0
OUT 1
Level 0
11 1 1111
B1 2 3 4 5 6 7 8 90 1 2 3 4 5 6
A
R
C
R
D
a
d
y
U
B
(
1
)
1/1.0
Segment 4 includes
device 4.0 and the
RS-485 output driver
for device 2.0
(highlighted area segment 4)
B
A
R
C
R
D
OUT1
P
l
St
a
A
Bu
a ti s
n
d g
Se
PHOENIX
to
d n.
m
CONTACT
r.
1 2 34 56
re
ad
y
E
LD
OUT2
Level 1
Level 2
P
lSt
a
At s
Bu
n
do g
iSe
tn
d .
m
r.
B 12 3 456
A
R
C
R
D
PHOEN IX
C ONTAC
T re
PHOENIX
r
CONTACT
e
2/2.0
1 1 11 111
B1 2 3 4 5 6 7 8 9
0 1 23 456
A
R
C
R
D
a
d
y
U
B
(
1
)
a
d
y
E
L
D
3/3.0
PHOENIX
r
CONTACT
e
11111 11
B1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6
A
R
C
R
D
a
d
y
U
B
(
1
)
BK-T
4/4.0
OUT2
Level 1
BK-T
DO 16/3
DI 32/2
AI 4/SF4
5/5.0
6/5.1
7/5.2
8/5.3
Level 1
9/6.0
BDO 32/2
110
INTERBUS Diagnostics
Device numbers are frequently encoded in a word. This is true, for example, for all
firmware services, which are required for programming the bus configuration or in
1
the diagnostic parameter register. The segment number is given in one byte and
the local bus number is given in the other byte.
Example: Device 6.1 0x0601
Values from 0x80 of the low byte are an exception. They do not indicate a local bus
number, and are reserved for additional information. 0x80 (OUT 1) designates the
remote bus interface and 0x81 (OUT 2) designates the local bus interface of a bus
terminal module, see Figure 3.2.
Example: Error in the local bus at bus terminal module 6.0 0x0681
A distinction is made between physical and logical device numbers. In most case,
logical device numbers are used rather than physical device numbers. A logical
device number consists of the segment and local bus position. The user can freely
designate this number, see Figure 3.3. Physical device numbers reflect the
physical location of devices in the INTERBUS ring; devices are numbered
consecutively in their physical order.
0
0.0
Physical numbering
BK
MT
DO 16/3
Logical numbering
DI 16/3
13.0
2
DIO 8/8/32A
DO 16/3
DI 16/3
13.1
7
BK-T
BK
MT
AO 4/SF4
BK-T
7.0
6
DIO 8/8/32A
7.1
13.2
1.1
40.0
40.1
7.2
10
1.0
AO 4/SF4
The position of the low and high byte is described in Section 3.2.
INTERBUS Diagnostics
111
112
INTERBUS Diagnostics
INTERBUS Diagnostics
113
Byte n+1
0 : BSA BIT:
Bus segment aborted (switched off). One or more bus
segments have been switched off.
0 : USER ERROR:
Error in the user program.
1 : SYSFAIL:
The controller board has activated the SysFail signal.
The output data is reset.
1 : PERIPHERAL FAULT:
An INTERBUS device has detected an error in the I/O
area.
2 : RESULT BIT:
The result of the processing, a service sent by the standard
functions, was negative.
2 : BUS ERROR:
A remote bus or local bus error has ocurred.
3 : Synchronization error:
The INTERBUS master is not recieving a
synchronization pulse. This error only occurs in a
synchronous operating mode.
3 : CONTROLLER ERROR:
The controller board has detected an internal error.
4 : DETECTION BIT:
Error localization is running. LOOK FOR FAIL
appears on the diagnostic display.
5 : RUN BIT:
The controller board is in the RUN state. Data cycles
are being exchanged.
6 : Quality bit:
The bus quality has deteriorated (can be parameterized).
6 : ACTIVE BIT:
The controller board is in the ACTIVE state. A
configuration frame has been activated.
7 : Message in SSI:
There is a message in the standard signal interface.
7 : READY BIT:
The controller board is in the READY state.
The internal selftest is complete, and the controller
board is ready for operation.
114
INTERBUS Diagnostics
Byte n
Byte n
Byte n+1
Byte n+1
Byte n+1
INTERBUS Diagnostics
115
Byte n
Byte n+1
G4
G3
G2
G1
G8
G7
G6
G5
U4
U3
U2
U1
Error type
Display in diagnostic status register
Segment and position of the error
Display in diagnostic parameter register
n
0
1
2
3
4
5
6
7
Error code
Display in extended diagnostic parameter register
116
INTERBUS Diagnostics
Figure 3.8 shows which information from the diagnostic display is given in the
diagnostic registers.
Byte n+1
INTERBUS Diagnostics
117
The status register is frequently used to reset the service request from the
start register. An RS-Flip-Flop or similar circuit can be used for easy
operation, see Figure 3.13. This example was created using PC WORX
and does not use the standard registers as individual bit objects but
instead uses a different word variable for each register. In practice, there
are often difficulties working with word objects according to IEC 61131-3
and manipulating individual bits within the word object.
Byte n
Byte n
Byte n+1
Byte n+1
118
INTERBUS Diagnostics
Byte n+1
Reserved
Process control:
For a system coupler with redundant slave, this bit indicates
which slave is controlling the process.
0 - Slave 1 is controlling the process
1 - Slave 2 is controlling the process
Slave is in the READY state:
The slave diagnostic status register is initialized.
Power ON:
The slave part is supplied with power.
Slave part is initialized:
The slave parameterization was completed successfully. The
higher-level INTERBUS system is not in the RUN state.
Fail:
No data transmission to/from slave. The higher-level
INTERBUS system is in the Reset state (alarm stop, bus
error). The slave output data is set to zero.
INTERBUS Diagnostics
119
Byte n
Byte n+1
Reserved
Loading:
A permanently stored boot
project is started.
Reserved
Halt:
ProConOS in HALT state
Stop:
ProConOS in STOP state
Run:
ProConOS in RUN state
Power ON:
ProConOS initialized successfully.
Status bits can be transferred
1
0
1
0
1
0
120
INTERBUS Diagnostics
Figure 3.13 describes the timing of a function execution via the standard function
registers.
Figure 3.14 illustrates a circuit version created using PC WORX as a practical
example of function execution with parameter transfer. Two inputs (start and stop)
can be used to start or stop the data cycles. This example uses the status bits to
reset the service request (here the start and stop command).
INTERBUS Diagnostics
The INTERBUS system starts a
timer to measure the interrupt
time if no activity is detected on
the two-wire cable after 26s.
121
M easurement of
interrupt time
0 26 s
25 ms
Short reset
Long reset
The "short reset" is triggered at different times in a SUPI 3 or SUPI 2 chip. This
behavior improves error localization options.
CTRL
BUS
RBUS
LBUS
DEV
Device error
OUT1
122
INTERBUS Diagnostics
OUT2
PF
EVNT
Event error
FC
The basic error types are described here. Six of these error types are considered in
more detail later.
INTERBUS
In the event of an error in
the INTERBUS system, the
diagnostic routine is started
automatically. During error
localization, the message
"LOOK FOR FAIL" is
Segment 1
displayed on a controller
board
with
diagnostic
display. The DETECT bit in
the
diagnostic
status
Segment 2
register is set during
troubleshooting.
Once troubleshooting is
complete, the detected
Segment 3
error is indicated in the
diagnostic
display
or
diagnostic register. Data Figure 3.16: Error type: Troubleshooting (LOOK FOR FAIL)
transmission
on
the
INTERBUS
system
is
stopped. The outputs are
reset.
All error types are explained using an example with the corresponding INTERBUS
topology. The possible error area is indicated in the INTERBUS topology.
Byte
n+1
0
1
2
3
4
5
6
7
0
1
2
3
4
5
6
7
INTERBUS Diagnostics
123
INTERBUS-S
Segment 1
Segment 2
Segment 3
Figure 3.17: Error type: Controller board error (CTRL
ERROR)
INTERBUS
Byte
n+1
0
1
2
3
4
5
6
7
Segment 1
n
0
1
2
3
4
5
6
7
Segment 2
Segment 3
Figure 3.18: Error type: Remote bus error (RBUS)
124
INTERBUS Diagnostics
Communications power not present (fuse faulty or voltage supply not present)
The transmission medium is faulty (e.g., faulty remote bus cabling, faulty fiber
optic converter, infrared transmission path or slip ring rotor)
Grounding/equipotential bonding
Electromagnetic interference
Voltage dips on the communications power of the specified remote bus device
Missing or faulty RBST jumper in the outgoing bus connector of the previous
device
INTERBUS
Byte
n+1
0
1
2
3
4
5
6
7
Segment 1
n
0
1
2
3
4
5
6
7
Segment 2
Segment 3
Figure 3.19: Error type: Local bus error (LBUS)
Communications power not present (fuse faulty or voltage supply not present)
INTERBUS Diagnostics
125
Missing or faulty LBST jumper in the outgoing bus connector of the previous
device
Grounding/equipotential bonding
Electromagnetic interference
INTERBUS
Error on the outgoing
interface of the specified
INTERBUS device. This
error always occurs if the
cause of the error is not
clear. During normal
Segment 1
operation,
the
error
occurs in test mode for
bus
errors
on
the
outgoing interface during
startup, because the
Segment 2
INTERBUS configuration
is not yet known. It also
occurs if an unconfigured
remote bus interface is
Segment 3
connected
to
an
INTERBUS module.
Figure 3.20: Error type: Remote bus error at OUT1
Data transmission is
stopped and all outputs
are reset.
Byte
n+1
0
1
2
3
4
5
6
7
0
1
2
3
4
5
6
7
The causes of an OUT1 error are the same as for a remote bus error (see above).
126
INTERBUS Diagnostics
INTERBUS
Byte
n+1
0
1
2
3
4
5
6
7
Segment 1
n
0
1
2
3
4
5
6
7
Segment 2
Segment 3
Figure 3.21: Error type: Remote bus error at OUT2
The causes of an interface error at OUT2 are the same as for a remote bus or local
bus error, depending on the connected interface type.
0
1
2
3
4
5
6
7
The causes of this error are the same as for a local or remote bus error. It should
be noted that this error usually occurs in the event of short-term voltage dips or
strong electromagnetic interference.
INTERBUS Diagnostics
127
INTERBUS
Byte
n+1
0
1
2
3
4
5
6
7
Segment 1
n
0
1
2
3
4
5
6
7
Segment 2
Segment 3
Figure 3.23: Error type: User error (USER ERROR)
The
PF
message
indicates a module error.
INTERBUS devices may
report peripheral faults
under various conditions.
They usually occur after
a failure of the I/O
voltage
(for
input
modules) or overload of
an input or output. Data
transmission
is
not
interrupted
on
a
peripheral fault.
INTERBUS
Byte
n+1
0
1
2
3
4
5
6
7
n
0
1
2
3
4
5
6
7
Segment 1
Segment 2
Segment 3
Figure 3.24: Error type: Peripheral fault (PF)
128
-
INTERBUS Diagnostics
Data transmission of the second bus system to an INTERBUS gateway not
active
The peripheral fault is still displayed after the cause of the error has been
removed. A peripheral fault must be acknowledged by the user or
application program. Automatic acknowledgment by the application
program is recommended. Some modules even require special
acknowledgment because the peripheral faults are saved.
Refer to the INTERBUS device data sheet to determine when the device
indicates an peripheral fault.
Note: An IDENT cycle must be run in order to locate the peripheral fault.
INTERBUS-S
INTERBUS Diagnostics
129
INTERBUS-S
Segment 1
Segment 2
Segment 3
Figure 3.26: Error type: Device error (DEV-ERROR)
INTERBUS
Byte
n+1
0
1
2
3
4
5
6
7
Segment 1
n
0
1
2
3
4
5
6
7
Segment 2
Segment 3
Figure 3.27: Error type: Bus error E1 - E9
Table 3.2: E-errors
E-Error
Meaning
E1
No error was found on acquiring and comparing the configuration.
E2
The maximum INTERBUS configuration has been exceeded.
E3
Reserved
E4
The bus configuration could not be acquired using the
"Create_Configuration_Request" service.
E5
Reserved
E6
Data cycles cannot be started. No error found on acquiring and comparing the
130
INTERBUS Diagnostics
E-Error
E7
E8
E9
Meaning
configuration.
The INTERBUS master cannot activate the configuration.
The configuration could not be acquired on startup of diagnostic cycles.
Configuration change during active diagnostics
The causes of an E-error are the same as for a remote bus or local bus error.
Temporary errors are statistically recorded and do not interrupt bus operation.
The most frequent error locations are stored in the diagnostic memory in the
1
form of a Top Ten list. In the event of serious error descriptions, the Top Ten
list can provide information about the error location. This list is particularly
important for SUPI 2 systems. As there is no CRC checker on the return path,
2
the INTERBUS master cannot specify the error location (E-error classes ).
The faulty device is often already in the Top Ten list, because this device has
already caused single errors over a long period of time.
2.
Bus reductions are detected by the premature return of the loop-back word.
They are often caused by a short reset (256 s, 2 ms) triggered on an
INTERBUS device. This closes the outgoing interfaces of the device and
reduces the bus. Timeout errors (TO errors) usually occur before the error is
detected. Interference on the RBST or LBST signals, which indicate a
subsequent remote bus (RB) or local bus (LB), also causes a bus reduction.
The bus reduction is detected by all SUPI types. However, for SUPI types
prior to Version 3, only an error area can be specified. This area comprises
the specified device, including its outgoing interfaces, and the previous device,
including the devices connected to its branch (OUT 2). Precise error
localization on a bus reduction is only provided by SUPI 3 devices.
3.
This type of error can be detected by all SUPI types through the sequential
connection of the INTERBUS configuration.
The Top Ten list is part of the INTERBUS diagnostics. It records the ten most frequent
CRC errors. It can be read via the LCD or using DIAG40.
2
Firmware errors 0BE0 - 0BE9 belong to the E-error class.
INTERBUS Diagnostics
4.
131
The causes of INTERBUS errors on the transmission path can be divided into
two groups:
-
Transmission errors can lead to CRC errors, SL line errors (SLL), CR line
errors (CRL), loop-back word errors (LBW), and timeout errors (TO). The
majority of these errors are CRC errors, while the other errors occur with more
or less equal frequency.
In the event of a broken cable, the data flow may be completely interrupted. In
the INTERBUS diagnostics, this is characterized by a string of TO errors.
In this situation, the full diagnostic advantages of SUPI 3 devices are clear. A
SUPI 3 device can locate all errors and even distinguish between transmission
errors and broken cables. Devices prior to SUPI 3 cannot always assign CRC
errors to the relevant device, because they do not have detection on the return
path.
A broken cable or wire short circuit leads to single errors if there is a loose
contact or one wire in a twisted pair connection is broken. The transmission
path is then prone to errors. A special connection, see Figure 3.28, at the
input of the RS-485 receiver, known as a 1-polarization, detects every wire
break and every wire short circuit (1-polarization is also used in SUPI 3
devices to distinguish between transmission errors and broken cables).
INTERBUS switches to the STOP state.
The error description for a broken cable or short circuit is also a string of TO
errors and usually a simultaneous bus reduction. The device after the faulty
device interprets the break in the connection as a bus reset and closes its
outgoing interfaces.
VCC
VCC
Optocoupler
DO
DO
RS-485
/DO
1-polarization
132
6.
INTERBUS Diagnostics
caused by incorrect parameterization of SUPIs and faulty data paths or data
paths of incorrect length.
INTERBUS devices have a voltage monitoring block, which controls the
communications power. If the voltage falls below a certain value, a device
reset is triggered for at least 50 ms. In currently available standard
INTERBUS devices (e.g., ST, Inline or Rugged Line), this time has been set
to 2 sec to improve error localization.
While the device is in the reset state, only TO errors are diagnosed. If the
voltage reset occurs during bus operation, the INTERBUS device has open
interfaces. The subsequent device would interpret this reset as a bus reset
and close its interfaces bus reduction. The master can begin error
localization.
INTERBUS Diagnostics
133
+1
+1
+1
+1
+1
+1
+1
+1
+1
1.1
1.2
1.3
1.4
1.5
Figure 3.29: Extended local bus diagnostics, error on the forward path
Note that the last local bus device is only counted once.
The bus terminal module also sends a data item to determine the local
bus configuration. This data item, 0x80, is incremented by the
INTERBUS devices in the connected local bus and, when it reaches the
bus terminal module again, provides information about the configuration.
In the event of an error, the error location can also be determined in this
way.
Extended OPC local bus diagnostics only works if it has been
implemented in the hardware. If the OPC chip is incorrectly connected in
the bus terminal module, this feature is not available. The DIAG40
documentation contains information about whether the bus terminal
module and its connected devices have local bus diagnostics. This
information is in Part 3/Section II of the DIAG40 explanation, see
accompanying CD-ROM "Diagnostics with DIAG40".
Error on the data return path: The damaged local bus device cannot pass on the
status telegram it receives from the previous INTERBUS device, because there is
an error on the return path (this explanation refers to Figure 3.30). INTERBUS
device 1.2 then closes its outgoing interface, while the outgoing interface is
considered not connected. If the INTERBUS master does not know the
configuration frame, INTERBUS changes to the RUN state, although INTERBUS
modules 1.3 1.5 cannot be operated. This should be taken into account when
reading the bus configuration or during test mode.
134
INTERBUS Diagnostics
0.5 Hz 0.5 Hz 4.0 Hz 0.5 Hz 0.5 Hz
+1
+1
+1
+1
+1
1.1
1.2
+1
+1
+1
1.3
1.4
1.5
Figure 3.30: Extended local bus diagnostics, error on the return path
Figure 3.31 illustrates the counting mode in an Inline local bus with Loop branch.
The diagnostic display indicates an OUT 2 error with local bus position 6. To
determine the error location, start at the bus terminal module and move 6 steps
against the direction of transmission. The error area is between the output of
device 3.5 and the input of module 3.6. This error must have occurred during the
startup process on an unknown INTERBUS configuration, otherwise the logical
device number would have been given.
INTERBUS Diagnostics
135
4.0 Hz
+1
3.0
+1
+1
+1
+1
+1
+1
+1
+1
3.1
3.2
3.3
3.4
3.7
+1
Return
path
Foward
path
0.5 Hz
3.5
+1
0.5 Hz
3.6
Figure 3.31: Local bus diagnostics in an Inline local bus with Loop branch
50% of CRC
errors can be
located
Special INTERBUS
master diagnostic
firmware startup
algorithm
Start of error
Bus timeout
Startup algorithm
complete
Error
duration
Figure 3.32: Time behavior for localization of errors using a < SUPI3 Version
136
INTERBUS Diagnostics
Bus reductions are detected during the running bus timeout. The bus timeout can
be set by the user via a firmware command (can be set using CMD/PC WORX).
The default value is twenty times the bus cycle time, or a minimum of 200 ms.
If a transmission error affects the bus timeout, the error can only be located if it
remains in place until it is reached by the startup algorithm.
SUPI 3 systems can locate all errors, as they offer extended error detection and
save error information. All devices should have a SUPI 3 chip or newer.
In a SUPI 3 system, if the internal reset of a device lasts longer than the
startup routine, then diagnostic information cannot be read from this
device. This means it is not possible to determine a precise error cause.
However, the error location is detected safely.
Note for Figure 3.33 and Figure 3.34: a Generation 3 INTERBUS master
with a dedicated SUPI 3 system would indicate the same error location,
because the SUPI 3 diagnostics cannot be activated by a G3 master.
INTERBUS Diagnostics
137
1.0
G
2.1
CG
2.2
G
2.3
G
2.0
3.0
C = CRC checker
G = CRC generator
Figure 3.33: Error diagnostics in SUPI 2 systems on the data return path
1.0
C
G
2.1
CG
2.2
G
2.3
G
2.0
3.0
C = CRC checker
G = CRC generator
Figure 3.34 Error diagnostics in SUPI 2 systems on the data forward path
138
INTERBUS Diagnostics
Power-on reset
Reconfigure
Module error
MAU warning on data forward path, warning for poor transmission quality on
fiber optic cables
MAU warning on data return path, warning for poor transmission quality on
fiber optic cables
DEV (X-1).0
Transmission path
BK-T
BK-T
RBUS X.0
BDO 8/
3
DI 32/2
DEV X.0
Return path X.1
Foward path X.1
DEV X.1
DEV X.2
LBUS X.2
OUT2 X.0
OUT1 X.0
INTERBUS Diagnostics
139
REMOTE IN
Figure 3.36 illustrates the fact that the device representation and the interpretation
of forward and return paths is different in the Loop system.
DEV X.1
Foward path
DEV X.2
Foward path
Foward path
REMOTE OUT
LOOP IN
DEV X.5
DEV X.4
Foward path
DEV X.3
DEV X.0
LOOP-BK
LOOP OUT
Return path
Foward path
Figure 3.36: Device representation with forward and return paths in the
INTERBUS Loop system
Every Loop device has a forward path, but only the last device has a return path.
If the return path from device X.5 to the bus terminal module is faulty,
no error is indicated on an unknown configuration. The Loop bus
terminal module cannot detect the Loop devices and assumes the Loop
branch is unconnected.
140
INTERBUS Diagnostics
Error detection options:
PHOENIX
CONTACT
1 11 111 1
B1 2 3 4 5 6 7 8 90 1 2 3 4 5 6
A
R
C
R
D
re
a
d
y
U
B(
1)
Foward path
Return path
SUPI 2
SUPI 2
PHOENIX
CONTACT
1 11 111 1
B1 2 3 4 5 6 7 8 90 1 2 3 4 5 6
A
R
C
R
D
re
a
d
y
U
B(
1)
*
Return path:
- CRC errors are detected safely by an additional
CRC checker on the return path.
- A distinction can be made between cable
interrupts and transmission errors.
Foward path
Return path
SUPI 3
Foward path:
- CRC errors are detected by the CRC checker.
- A distinction can be made between cable
interrupts and transmission errors.
SUPI 3
INTERBUS Diagnostics
141
Foward path
Return path
SUPI 3
Device errors:
SUPI 2: Module error, reconfiguration request
SUPI 3: Module error, reconfiguration request,
microprocessor reset, Power On reset
SUPI 2
PHOENIX
CONTACT
1 11 11 11
B1 2 3 4 5 6 7 8 90 1 2 3 4 5 6
A
R
C
R
D
Return path:
- CRC errors are detected by an additional CRC
checker on the return path. These errors can be
clearly identified using appropriate diagnostic
software (e.g., DIAG+, DIAG40).
- A distinction can be made between cable
interrupts and transmission errors.
re
a
d
y
U
B(
1)
Foward path:
- CRC errors are detected by the CRC checker
- A distinction can be made between cable
interrupts and transmission errors.
re
a
d
y
U
B(
1)
Return path:
- No CRC error detection as there is no CRC checker
on the return path.
Foward path
Return path
SUPI 2
Device errors:
SUPI 2: Module error, reconfiguration request
SUPI 3: Module error, reconfiguration request,
microprocessor reset, Power On reset
SUPI 3
142
INTERBUS Diagnostics
1.0
C
SUPI 3
C G
2.1
CG
2.2
G
2.3
G
2.0
SUPI 2
3.0
C = CRC checker
G = CRC generator
4.0
C
G
INTERBUS Diagnostics
143
more precisely. The diagnostics provided in this INTERBUS combined system are
the same as SUPI 2 diagnostics.
Cycle counter
(number of data and ID cycles)
ID cycle counter (number of ID cycles run)
Data cycle counter
(number of data cycles run)
Cycle error counter (faulty ID and data cycles)
ID error counter (number of faulty ID cycles)
Data error counter
(number of faulty data cycles)
Practical Tip
Request the quality bit in your application and display it using either a
visualization system or operator interface. A gradual error can be
removed when production is not in progress before it leads to a costly
system downtime. The quality bit is part of the diagnostic status register.
144
INTERBUS Diagnostics
RC
LED
Color
Green
Green
Status
Meaning
ON
OFF
ON
INTERBUS Diagnostics
LED
Designation
LED
Color
145
Status
Meaning
outgoing remote bus cable).
OFF
BA
Green
ON
OFF
Red
Flashing
ON
LD
Red
OFF
ON
RD
Red
OFF
ON
OFF
LED
Color
Green
Status
Meaning
ON
Us
Green
OFF
ON
Red
OFF
ON
OFF
146
INTERBUS Diagnostics
LED
Designation
I/O status
indication
LED
Color
Yellow
Status
Meaning
ON
OFF
LED
Color
Green
Status
ON
Meaning
INTERBUS
is
in
the
RUN
communications power is present.
state,
Flashing 0.5 Hz
Flashing 2 Hz
Flashing 4 Hz
OFF
LED
Color
Green
Status
Meaning
ON
OFF
Us
Green
ON
DIAG
Green
OFF
ON
present,
Flashing 4 Hz
Communications power UL present, local bus
error
(INTERBUS can be active or not active).
OFF
Status indication
Yellow
ON
OFF
INTERBUS Diagnostics
147
LED
Color
Green
Status
Meaning
ON
LED
Color
Green
UM
Green
Status
Meaning
ON
OFF
ON
OFF
RT modules, SAB modules, and CT modules: The LEDs for these modules are the
same as the general diagnostic LEDs.
148
INTERBUS Diagnostics
LED
Color
Green
BSA
Red
FAIL
Red
PF
Green
STOP
Red
SYSFAIL
Red
Status
Meaning
ON
Flashing
ON
OFF
ON
Bus active
Bus ready to operate
At least one bus segment is aborted.
No bus segment aborted.
Group error message for errors on the controller
board, parameterization errors or bus errors.
No error.
Module error
No module error
Control system in STOP state.
Control system not in STOP state.
Controller board SysFail signal active.
Controller board SysFail signal inactive.
OFF
ON
OFF
ON
OFF
ON
OFF
INTERBUS Diagnostics
149
Diagnostic Display
The diagnostic display can be used to access important diagnostic and status
information for the INTERBUS master from various menus. A detailed description
of the operation of the diagnostic display can be found in the Phoenix Contact
Diagnostics Guide [25]. The INTERBUS user should be proficient in the operation
of the diagnostic display and know every menu item within the integrated functions.
The diagnostic display can also be accessed for controller boards, which
do not have a hardware display. The configuration tools CMD and PC
WORX provide a software display via the controller board context menu.
This display is operated in exactly the same way and offers all the same
functions as the hardware version.
Figure 3.44 provides an overview of the menu items that can be accessed using
the diagnostic display.
Menu (Mode)
MODE
CFG
DIAG
STAT
MONI
OPT
SCANTIME
ERRHIST
ID
MPM
DEBG
LEN
LEVL
OPTITIME
FW-V
HW-V
SER-No.
REC
PF
CRC
ADBG
QFLG
WFLG
SNGL
ACTV CFG
SAVE CFG
SWTC
BRDG
PF TEN
RSET
LCD TEST
BUS DEV
CRC TEN
* Only available in
test mode
Figure 3.44: Total overview of the menu items within the diagnostic display
The DIAG (diagnostics) and STAT (statistics) menus are described in this section,
because they are used frequently in the event of a bus error.
The DIAG menu provides diagnostic information about the current INTERBUS
status. For troubleshooting, it is possible to start up the bus successively (one
device at a time) using the "Debug" function.
MPM: In the event of an error, this contains very detailed error information for user
errors (USER), peripheral faults (PF), bus errors (BUS), and controller errors
(CTRL).
150
INTERBUS Diagnostics
DEBG (Debug): Can be used to start the bus step by step. The INTERBUS master
must be in the READY state. This menu item is particularly useful in the event of an
error because devices can be started successively until the error location is
reached.
ADBG (Auto Debug): Offers the same functions as the DEBG menu item, but the
function is executed automatically. Once this menu item is selected, the system
tries to start up the bus. If the startup is successful, ID and data cycles are run after
1 second. In the event of an error, the error location is indicated on the display.
After 1 second, another attempt is made to operate the bus until the startup is
carried out successfully.
QFLG (Quality Flag): Status of the quality flag. Parameterization of the quality flag
(quality bit) is described in 3.7.
WFLG (Warning Flag): If no INTERBUS cycles are transmitted without errors within
a parameterizable time frame, the warning flag (bus warning time) is set. This bit
can be reset using the standard "Confirm diagnostics" function, see 3.2.6 or the
relevant firmware command. The warning flag is parameterized using CMD/PC
WORX or a "Set_Value" service. A precise description of the bus warning time can
be found in 1.8.
SNGL (Single Error): Displays all single errors that have occurred. A single error
does not shut down the bus. It provides information about the quality of the bus
system.
The statistics menu (STAT) provides statistical information about the bus status.
ERRHIST (Error Protocol): This contains an error protocol of the last ten errors.
The most recent error is stored as number 1.
REC (Reconfiguration): The number of reconfiguration requests for a bus terminal
module. Bus terminal modules can trigger a reconfiguration request to the
INTERBUS master. A CRC error is generated, which the INTERBUS master
recognizes as a reconfiguration request. This enables the user, for example, to
start up system parts that have been switched off.
PF (Peripheral Fault): Error counter for peripheral faults.
CRC (Transmission Error): Counter for all cyclic redundancy check errors.
PF TEN (Top Ten List of Peripheral Faults): List of the last ten devices with
peripheral faults. The most recent peripheral fault is number 1.
CRC-TEN (Top Ten List of CRC Errors): List of the ten devices with the most
transmission errors.
INTERBUS Diagnostics
151
152
INTERBUS Diagnostics
INTERBUS Diagnostics
153
The process data monitor is accessed via the context menu of the device, and the
address monitor is accessed via the context menu of the controller board.
Practical Tip
The standard function registers are often assigned to MPM addresses. This means
they can be viewed via the address monitor. Parameterized services can also be
viewed in the address monitor using the standard function registers, see 3.2.
In CMD/SYSTEM WORX, all firmware commands can be executed via an
integrated command interface. This means that firmware services can be tested
before use in a program. This dialog box can be accessed via the controller board
CMD menu or context menu. Figure 3.47 illustrates access via the CMD menu.
Figure 3.47: Accessing the Control dialog box via the CMD menu
The process data monitor does not read information from the MPM, but
reads from the input or output data memory of the controller board. The
bus data is copied from this memory to the MPM or transmitted to the
devices, see Figure 3.48.
154
INTERBUS Diagnostics
Controller board
Output data memory
IPMS
I/O module 9
I/O module 1
I/O module 2
PHOENIX
C ONTAC T
1 2 3 4 5 6 7 8 9 1 0 1 112 1 3 14 1 5 16
INTERBUS
summation frame
BA
RC
RD
re a d y
UB(1 )
I/O module 8
PHOEN IX
C ON TA C T
DIO 8/8/3-2A
1 2 3 4 5 6 7 8 9 1 011 1 2 1 31 41 5 16
BA
RC
RD
re a dy
UB(1)
DO 16/3
AO 4/SF4
I/O module 7
I/O module 3
I/O module 4
I/O module 5
I/O module 6
INTERBUS Diagnostics
155
During startup, this tool can be used to test installed buses. Commands such as
start the bus, acknowledge peripheral faults, switch devices on and off, and stop
the bus using an alarm stop are standard commands, which can be sent from the
application.
A special feature of DIAG+ is its ActiveX capability. This means that DIAG+ can be
integrated in every visualization or high-level language application.
Interested users who want to access the methods and properties of ActiveX
Control can enable this function by purchasing a programming interface (PI).
Summary: This diagnostic software is equally interesting for both beginners and
experts. The ActiveX interface provides user-friendly options for embedding in
user-specific programs/visualizations.
156
INTERBUS Diagnostics
Static INTERBUS
error
Short-term
INTERBUS error
INTERBUS
diagnostics was
able to determine
error location ->
remove error.
Diagnostics
indicates error
location or E-error
Error
removed?
Error removed
Yes
No
Error
removed?
No
Yes
Error removed
E-error?
Error location is
indicated.
Remove error.
Yes
No
Does error
only occur during
operation?
No
Yes
Read diagnostics.
Check whether a
transmission error
was assigned.
This usually
corresponds to the
error location.
Was a
transmission error
assigned?
Yes
No
Check communications
power using oscilloscope.
Set trigger points for the
minnimum voltage
specified in the data
sheet.
No
Error
removed?
Yes
Error removed
INTERBUS Diagnostics
157
Practical Tips
Tip: Determine the voltage values for each module range, because these values
can differ from one module range to another. The voltage values can be found in
the relevant data sheet.
Tip: First look at the waveform and then set trigger points, usually Umin values.
Once the trigger point is activated, the waveform can be recorded. This procedure
is particularly suitable for voltage problems that occur sporadically. A suitable
oscilloscope (100 MHz, minimum) is required. Umax values should also be taken
into account because the RS-485 drivers start to overdrive above a certain voltage
(30 V, approximately).
Tip: Some oscilloscopes offer long-term recording with Umin and Umax logging.
Recordings over a long period provide excellent information about voltage
problems. The time is often saved with the data, so that events occurring at a
particular point in time can be considered.
Tip: RC combinations, varistors, and other electronic components can be used to
compensate voltage peaks. This topic is covered in more detail in Section 2
"INTERBUS Configuration".
158
INTERBUS Diagnostics
/DO
/DI
DO
DI
1.0
/DO
/DI
DO
DI
2.0
Important:
The voltages should
be measured as close
to the RS-485 as
possible.
RS-485 driver
Colour coding the INTERBUS cables:
Scope setting:
Voltage
Time
: DC,2 V/DIV
: 2 s/DIV
INTERBUS Diagnostics
159
The voltage measurement during INTERBUS operation must not fall below 1.5 V,
and a typical minimum value is 2 V. A voltage measurement if the module is not
integrated in INTERBUS will deviate from the oscilloscope images illustrated here.
For this measurement, note that the interface is measured without load, i.e., the
100 terminal resistance of the next module is not present. The measured values
are therefore higher than those described here. The waveform cannot be evaluated
because no automatic edge change is generated.
Figure 3.52: Oscilloscope images for RS-485 output driver (left: OK, right: NOK)
DO - Pin 1
DO - Pin 1
Measuring point 1
DI - Pin 2
DI - Pin 2
Measuring point 0
COM - Pin 3
Measuring point 6
COM - Pin 3
Measuring point 5
/DO - Pin 6
/DO - Pin 6
Measuring point 2
/DI - Pin 7
Measuring point 4
/DI - Pin 7
160
INTERBUS Diagnostics
This circuit can be implemented as a compact module for service purposes, which
can be inserted between an existing INTERBUS cable during servicing.
The relevant signals are tapped off at the measuring points. INTERBUS remains in
the RUN state during the measurement process.
The most important measuring points for measuring the RS-485 output driver are
as follows:
Measuring point 1 (DI) measuring point 2 (/DI) or measuring point 3 (DO)
measuring point 6 (/DO): The data lines are measured. The following points should
be noted: symmetrical signals, no spikes, no peaks, no (over)swings above the
range of 3 V->+3 V.
Measuring point 5/6 - measuring point 0: Measurement to ground signal. The
following should be noted: half operating voltage (~2.5 V) is OK, only small peaks
in 1s range are permitted. If the voltage is greater than ~2.5 V, the probable
cause is a voltage shift (offset voltage) due to faulty driver blocks in the device. An
offset voltage is usually generated by an operation amplifier when summing the
single transistor errors, and moves in the range from 1/20000.
The COM cable is not the mass or ground, but the reference potential
for the OP amplifier.
During startup, a test report should be created for the entire INTERBUS
cable. This ensures that wiring errors are detected immediately instead
of on system startup. This is also advisable for providing evidence in the
event of later problems.
Practical Tip
INTERBUS Diagnostics
161
Recording device
Tracer module
BK-T
BDO 32/2
162
INTERBUS Diagnostics
Supplier
Phoenix Contact GmbH & Co. KG
Name of Tool
IBS Analyzer
Address
Flachsmarktstrae 8
32825 Blomberg
Primas
Otto-Lilienthal-Str. 36
71034 Bblingen, Germany
LP Elektronik GmbH
Ramses
Ettishoferstr. 8
88250 Weingarten, Germany
How can all INTERBUS devices enter the reset state on a long reset?
3. What is shown in the diagnostic display for the following error (indicated by a
lightning strike in Figure 3.55)?
0.5 Hz
+1
3.5
Foward
path
0.5 Hz
Return path
3.0
3.7
0.5 Hz
3.6
+1
+1
0.5 Hz 0.5 Hz
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
3.1
3.2
3.3
3.4
3.8
+1
3.9
INTERBUS Programming
163
4 INTERBUS Programming
The programming of an INTERBUS system covers a wide field with a lot of details,
as there are a number of host systems with different programming languages. This
is why this section covers the basics of the three areas PC, IEC 61131 (PC
WORX), and conventional PLC (S7), which provides a comprehensive introduction
to the relevant host system. Programming examples and detailed listings for the
different topics can be found on the accompanying CD-ROM, which can be used
directly as a template for your own automation solutions.
PC programming is deliberately described at the start of this section, as some of
the aspects discussed here are also important for PC WORX controller boards.
The drivers for the host system, which communicate with the controller board, are
identical, i.e., all programming interfaces, driver models, practical tips, etc. also
apply here.
The following topics are covered:
-
ProConOS
Instantiation
Page 169
Page 172
Page 178
Page 181
Page 194
Page 204
Page 212
Page 218
164
INTERBUS Programming
Diagnost ic start
Yes
Yes
No
Evaluation of
diagnostic stat us
register
No
Evaluation of
diagnostic
parameter register
Bus quality
poor
Yes
Program-internal
error response
Program-internal
error response
No
Diagnostic block
end
INTERBUS Programming
Close all nodes of DDI
165
Close Nodes ()
Open nodes
OK?
No
Yes
Software reset
Nodes remain open.
MPM reset.
Reset controller
board - 0956hex
- Warm start -
Logic addressing of
controller board or
physical reading
Load
configuration
No
Error evaluation:
Configuring syntax
incorrect
No
Error evaluation:
Configuration
incorrect
No
Error evaluation:
Yes
The controller board
checks the connected
configuration.
For physical reading purposes,
this step is not essential since
service 0710hex includes it.
Activate
configuration
711hex
Screen output of
error source
Terminator:
program stopped
Yes
Bus start: the controller
board activates the cyclic
data traffic.
Status: RUN
Start
data transfer
701hex
Yes
Protection against
exhaustive running of
program by starting the
watchdog
Evaluate PCP
telegrams
Evaluate firmware
telegrams
Activate program
watchdog
Cyclic
Trigger program
watchdog
Evaluate SysFail
Register
PCP cycle
PCP FUNCTION
Transfer
information
Read indication
and confirmation
Evaluate IN
messages
Transfer
information
In the event of an
error: screen output
Figure 4.2: Flowchart for INTERBUS startup, cyclic program, and program end
part 1
166
INTERBUS Programming
Read INTERBUS
input data
Evaluation of
INTERBUS status
Diagnostic
evaluation
Customer-specific
program start
Start application
program
Customer-specific
program end
End application
program
Write INTERBUS
output data
Output process
data
Controlled exit
from cyclic
program
Request abort
condition in
program
Close nodes ()
End
DIAGNOSTIC
FUNCTION
Start cyclic
shutdown program
Terminator
Figure 4.3: Flowchart for INTERBUS startup, cyclic program, and program end
part 2
INTERBUS Programming
167
Waiting time
approximately
15 ms
Timeout?
Yes
Internal processing
of program
Terminator
No
Abort?
Yes
Increment counter_2
No
Negative
PCP service
Yes
Error evaluation
- Error code/error class
- Transmit/receive buffer
Counter_2= 3?
No
No
Yes
1. End PCP program
2. External error output
3. Execute INTERBUS
diagnostics
Increment counter_1
Terminator
Counter_1 = 3?
Yes
No
Activate next
PCP service
Terminator
168
INTERBUS Programming
Table 4.1 lists the INTERBUS controller boards for PC systems available from
Phoenix Contact and provides details of supported operating systems and drivers.
Table 4.1: Overview of PC controller boards from Phoenix Contact
INTERBUS PC
Controller Board
IBS ...
PC ISA SC/I-T
PC 104 SC-T
ISA SC/RI/RT/LK
ISA SC/RI/RT/I-T
ISA SC/486DX/I-T
ISA RI/I-T
PCI SC/I-T
PCI SC/RI-LK
PCI SC/RI/I-T
PCCARD SC/I-T
Directory
Containing
Device Driver
Name of
Device Driver
Interface
(DDI)
Directory
Containing
Device Driver
Interface
Supported
Operating
Systems
Name of
Device Driver
(DD)
MS-DOS 6
Win 3.X
Win 95/98
Win NT4.0
Win 2000
MS-DOS 6
Win NT4.0
Win 2000
MS-DOS 6
Win NT4.0
Win 2000
Win NT4.0
Win 2000
ibsisa.exe
ibsisasc.dll
vibsscd.vxd
ibsisasc.sys
ibsisasc.sys
ibsisa.exe
ibsisasc.sys
ibsisasc.sys
ibdpmdrv.exe
ibdpmdrv.sys
ibdpmdrv.sys
ibpcimpm.sys
ibpcimpm.sys
win/system
win/system32/driver
winnt/system32/driver
winnt/system32/driver
winnt/system32/driver
winnt/system32/driver
winnt/system32/driver
winnt/system32/driver
winnt/system32/driver
winnt/system32/driver
lddi_tsr.lib
ibddiwin.dll
ibddiw95.dll
ibddiwnt.dll
ibddiwnt.dll
lddi_tsr.lib
idddiwnt.dll
idddiwnt.dll
dpmdrvtl.lib
idddiwnt.dll
idddiwnt.dll
idddiwnt.dll
idddiwnt.dll
win/system
winnt/system32
winnt/system32
winnt/system32
winnt/system32
winnt/system32
winnt/system32
winnt/system32
winnt/system32
winnt/system32
Win NT4.0
ibpccard.sys
winnt/system32/driver
idddiwnt.dll
winnt/system32
4.1.1.2
MS-DOS
Win95/98
Win NT 4.0
Win 2000
C, C++
Delphi
Pascal
Visual Basic
X
X
-
X
X
X
X
X
X
X
X
X
X
X
INTERBUS Programming
169
4.1.1.3
Win NT 4.0
X
X
X
X
Win 2000
X
X
X
X
The control application accesses an INTERBUS PC controller board via the MultiPort Memory (MPM) or in the case of slave interface boards via the Dual-Port
Memory (DPM). Both the MPM and DPM are memory blocks on the PC controller
board. As the term Multi-Port Memory already indicates, it is possible for several
applications (MPM accessors) to access the MPM and exchange data. MPM
accessors are control applications on the PC, the INTERBUS master controller
board, and the INTERBUS coprocessor. Figure 4.5 shows a simplified access
route of the MPM.
PC host, with an
INTERBUS application
INTERBUS PC
controller board
INTERBUS PC
copressor
Read/write access on
both sides
MPM
Figure 4.5: Accessing the INTERBUS PC controller board via the MPM
The DPM differs from the MPM in terms of the maximum number of applications
(nodes) that can access it, the size of the DPM memory, and the driver, which
supports fewer boards in the PC. Table 4.4 compares INTERBUS PC controller
boards from Phoenix Contact with an MPM or DPM memory.
Table 4.4: Differences between MPM and DPM for PC controller boards
PC Controller Boards
Driver Supports Maximum
Driver Type
From Phoenix Contact
x Boards in the PC
IBS PC ISA SC/I-T
IBS PC 104 SC-T
IBS ISA SC/RI/RT/LK
MPM
8
IBS ISA SC/RI/RT/I-T
IBS ISA SC/486DX/I-T
IBS PCI SC/I-T
IBS PCI SC/RI-LK
MPM
8
IBS PCI SC/RI/I-T
IBS ISA RI/I-T
DPM
4
IBS PCCARD SC/I-T
DPM
1
170
INTERBUS Programming
All data and information is exchanged between the individual MPM accessors,
such as the host PC and the INTERBUS controller board via the MPM. Figure 4.6
shows the access paths between a control program and a controller board via the
Device Driver Interface (DDI), the Device Driver (DD), and the Multi-Port Memory
(MPM).
Host PC
INTERBUS
controller board
Control program
INTERBUS
MASTER
Device Driver
MPM
Figure 4.6: Accessing the PC controller board via the DDI, DD, and MPM
Table 4.5 lists the controller boards for Ethernet systems available from Phoenix
Contact and provides details of supported operating systems and drivers.
Table 4.5: Overview of Ethernet controller boards from Phoenix Contact
INTERBUS
Ethernet Controller
Board
Supported
Operating
Systems
Directory
Containing
Socket
Name of
Socket
bsdsocket
winnt/system32
winnt/system32
-
Name of
Device
Driver
Interface
(DDI)
ibddiwnt.dll
ibddiwnt.dll
ibseth.lib,
eth.a
Directory
Containing
Device Driver
Interface
winnt/system32
winnt/system32
-
The latest drivers for Phoenix Contact Ethernet controller boards can
be
found
in
the
InfoService
on
the
Internet
at
www.phoenixcontact.com.
INTERBUS Programming
4.1.2.2
171
Win NT 4.0
Win 2000
Linux
SUN Solaris
2.4
C, C++
Delphi
Visual Basic
X
X
X
X
X
X
X
-
X
-
4.1.2.3
Win NT 4.0
Win 2000
Linux
X
-
X
-
X
-
SUN Solaris
2.4
X
-
A control application communicates with an Ethernet controller board via the MultiPort Memory (MPM) in the same way as a normal PC controller board does. The
Device Driver Interface (DDI) for the Ethernet controller board operates as a
remote procedure call and does not use the standard libraries due to time
constraints. A remote procedure call means that the relevant function is not
executed on the host PC of the user, but on the INTERBUS Ethernet controller
board. The user does not notice anything different about this working method
except that it is faster. Figure 4.7 shows the access structure for INTERBUS
Ethernet controller boards.
The software interface kit IBS ETH DDI SWD E is used to adapt the Device Driver
Interface (DDI) to other UNIX operating systems.
172
INTERBUS Programming
Host PC
INTERBUS
MASTER
Control program
INTERBUS
Ethernet
controller board
P HOE NI
X
CONTAC
Firmware
ULT
100
CO
L
XM
MPM
T
RC
V
UL
RDY/
RUN
BSA
FAI
L
PF
INTERBUS
REMOTE
10/
100
FLIBSSC/I-T
Ord.No.:28 3 10 60
Socket
TCP/IP
Socket
Ethernet
TCP/IP
Figure 4.7: Accessing the INTERBUS Ethernet controller board via TCP/IP
4.1.2.4
When a function is called, all the transfer parameters for the DDI function and an ID
for the function to be executed are copied into a network telegram in the control
program of the host PC and sent to the Ethernet controller board via the Ethernet
network (TCP/IP). The controller board decodes the received telegram, accepts the
parameters for the function, and calls the function using these parameters. While
the function is being executed by the Ethernet controller board, the control program
on the host PC is blocked until a response arrives from the Ethernet controller
board.
Once the function has been executed on the Ethernet controller board, the read
data and the return value for the function are copied into a telegram in the control
program and sent back to the Ethernet controller board. The controller board
decodes the telegram and makes the return values for the function available in the
program.
INTERBUS Programming
173
board. It is passive in terms of the application , i.e., its functions are only controlled
by the relevant application calls. Table 4.8 lists INTERBUS controller boards from
Phoenix Contact, which have a HLI programming interface and can be addressed
by C, C++ and Delphi compilers or MS Visual Basic.
Table 4.8: INTERBUS controller boards with HLI programming interface
Controller Boards
IBS PC ISA SC/I-T
IBS PCI SC/I-T
IBS PC 104 SC-T
IBS PCCARD SC/I-T
IBS ETH DSC/I-T
IBS ISA SC/486DX/I-T
(program running on the
coprocessor)
MS-DOS
Windows 95/98
Windows NT 4.0/2000
g4hlidos.lib
g4hliw16.dll
g4hliw32.dll
g4hliw32.dll
g4hlicop.lib
Figure 4.8 shows the driver structure when using HLI software.
Host PC
INTERBUS
controller board
Control program
INTERBUS
MASTER
Device Driver
MPM
Figure 4.8: Accessing the PC controller board via the HLI, DDI, DD, and MPM
IBS CMD G4 software with integrated HLI export filter can be used to simplify HLI
programming through intelligent source code generation. The code generated in
IBS CMD G4 is inserted in an existing high-level language program and contains
INTERBUS initialization and startup. Other advantages of using HLI include:
-
Using the High-Level Language Interface (HLI) and the HLI export
filter from IBS CMD G4, an INTERBUS system can be started up
in five minutes with an application program written by the user.
Additional information on the software interfaces for INTERBUS
controller boards from Phoenix Contact can be found in the "Driver
Reference Manual for PC Controller Boards" IBS PC SC SWD UM
174
INTERBUS Programming
E and in the "User Interface Version 2.x for High-Level Language
Programming" User Manual, IBS PC SC HLI UM E.
Figures Figure 4.9 to Figure 4.11 show the access paths for 16-bit and 32-bit
applications on INTERBUS controller boards from Phoenix Contact under
Windows 3.1/95/98 and Windows NT 4.0/2000.
HLI:
g4hliw32.dll
c:\winnt\system32
DDI:
ibddiwnt.dll
c:\winnt\system32
DD:
ibpcimpm.sys
c:\winnt\system32\
drivers
HLI:
g4hliw16.dll
c:\winnt\system32
ibddiwnt.ini
c:\winnt
16/32-Bit
DDI:
thkwnt.dll
ibddiwin.dll
c:\winnt\system32 c:\winnt\system32
Figure 4.9: Accessing the IBS PCI SC/I-T under Windows NT4.0/2000
INTERBUS Programming
175
Label1
32-bit applications under Windows NT4.0/2000
32-bit HLI application
HLI:
g4hliw32.dll
c:\windows\system(32)
DDI:
ibddiw95.dll
c:\windws\system(32)
DD:
vibsscd.vxd
c:\windows\system(32)\drivers
Parameters from the registry!
HLI:
g4hliw16.dll
c:\windows\system
DDI:
Parameters from
DD:
ibddiwin.dll
ibsisasc.dll
ibddiwnt.ini
c:\windows\system c:\windows\system
c:\windows
HLI:
g4hliw32.dll
c:\winnt\system32
DDI:
ibddiwnt.dll
c:\winnt\system32
DD:
ibsisasc.sys
c:\winnt\system32\drivers
Parameter aus der Registery!
HLI:
g4hliw16.dll
c:\winnt\system32
ibddiwnt.ini
c:\winnt
DDI:
16/32-Bit:
thkwnt.dll
ibddiwin.dll
c:\winnt\system32 c:\winnt\system32
HLI:
g4hliw16.dll
c:\winnt\system32
16/32-Bit:
thkwnt.dll
c:\winnt\system32
PHOENIX
CONTACT
FL IBS SC/I-T
UL
R DY/RU N
BSA
FAIL
PF
100
COL
INTER BUS
R EMOTE
XMT
RC V
UL
10/100
F LIBSSC/I-T
Ord .-No.:2831 060
HLI:
g4hliw32.dll
c:\winnt\system32
DDI:
ibddiwnt.dll
c:\winnt\system32
Ethernet
DDI:
TCP/IP socket:
ibseth.dll
wsock32.dll
c:\winnt\system32 c:\winnt\system32
Figure 4.11: Accessing the FL IBS SC/I-T and IBS ETH DSC/I-T under Windows
NT4.0/2000
176
INTERBUS Programming
Have available system resources for the IBS PC ISA controller board been identified?
In Windows 2000, the resource assignments for IRQ, I/O, and MPM addresses are under Start |
Settings | Control Panel | Management | Computer Management | System | System Information
In Windows NT 4.0, the resource assignments for IRQ, I/O, and MPM addresses are under
Start | Programs | Management | Windows NT Diagnostics | Resources
In Windows 95/98, the resource assignments for IRQ, I/O, and MPM addresses are under
Start | Settings | Control Panel | System | Device Manager | Computer | Properties
Is the IBS PC ISA controller board installed in a free ISA slot on the PC?
When installing the controller board, check for any existing BIOS settings, in which ISA slots are inhibited
or linked with a specific IRQ. The BIOS directory can usually be accessed during PC startup by pressing
the DEL key.
Set the free I/O address on the IBS PC ISA board using the DIP switch.
Has the latest driver software (DD, DDI, and HLI if selected) been installed successfully?
The latest drivers can be downloaded from the InfoService at www.phoenixcontact.com
During setup, ensure that the system resources that were identified as available are used
Does the driver start successfully after a PC restart?
In Windows 2000, you can check for successful driver startup under:
Start | Settings | Control Panel | Management | Computer Management | Device Manager
Select Display Hidden Devices using the right mouse-button to access the
Non-PnP Drivers folder, which contains the IBSISASC INTERBUS driver. If the IBSISASC driver cannot
be started up successfully, this is probably because hardware resources (IRQ, I/O, and MPM address) have
not been selected correctly. You can adjust these resources in the registry editor under:
H_Key_Local_Machine/System/CurrentControlSet/Services/IBSISASC/Parameter/
Once you have modified the resource parameters, you do not have to restart the PC and can continue
immediately in the device control with a driver restart.
In Windows NT 4.0, you can check for successful driver startup under:
Start | Settings | Control Panel | Devices | IBSISASC Then proceed as for Windows 2000.
In Windows 95/98, you can only determine whether the INTERBUS driver has been started successfully
by attempting to establish a communication link (described in the next point).
Is it possible to establish a communication link to the IBS PC ISA board?
The following programs can be used to quickly and easily determine whether communication can be
established with the IBS PCI. In IBS CMD G4 and PC WORX, select the relevant controller board,
press F3, and select the Online option
IBS CMD G4
PC WORX
HLICHK16.EXE when using the HLI interface
HLICHK32.EXE when using the HLI interface
It is also possible to establish a communication link via a serial cable from the serial PC COM interface to
the IBS PC ISA controller board.
The IBS PC ISA controller board is now ready for operation
IBS CMD G4 and PC WORX are available as monitor programs
Why can't the system establish a communication link?
Resource assignment for IRQ, I/O, and MPM address not freely available, use Microsoft System
diagnostics
Entries in the registry editor for this IBS PC ISA controller board do not correspond (InUse, etc.)
Device Driver, Device Driver Interface, and High-Level Language Interface are not correct
In Windows 3.x/95/98, the FIFO buffer is still activated
To identify other possible reasons, search the event log in Windows NT 4.0/2000 for relevant entries
IBS PC ISA driver software does not correspond to the IBS PC ISA controller board (firmware?)
IBS PC ISA board faulty
PC ISA slot faulty or inhibited by the BIOS
Host PC faulty
INTERBUS Programming
177
Is the IBS PCI controller board installed in a free PCI slot on the PC?
When installing the controller board, check for any existing BIOS settings, in which PCI slots are inhibited
or linked with a specific IRQ. The BIOS directory can usually be accessed during PC startup by pressing
the DEL key.
Set the board number on the IBS PCI board using the DIP switch. The first IBS PCI board should be set to
board number 0.
Has the latest driver software (DD, DDI, and HLI if selected) been installed successfully?
The latest drivers can be downloaded from the InfoService at www.phoenixcontact.com
Does the driver start successfully after a PC restart?
In Windows 2000, you can check for successful driver startup under:
Start | Settings | Control Panel | Management | Computer Management | Device Manager
In the folder, the INTERBUS driver PCI MPM INTERBUS Controller appears under
INTERBUS Class Driver. Double click on the driver to access a Windows window, which describes the
status of the driver. If the driver cannot be started up successfully, this is probably because the settings
such as the board number have not been selected correctly. You can adjust these resources in the registry
editor under: H_Key_Local_Machine/System/CurrentControlSet/Services/IBSPCIMPM/Parameter/
Once you have modified the resource parameters, you do not have to restart the PC and can continue
immediately in the device control with a driver restart.
In Windows NT 4.0, you can check for successful driver startup under:
Start | Settings | Control Panel | Devices | IBSPCIMPM Then proceed as for Windows 2000.
Is it possible to establish a communication link to the IBS PCI board?
The following programs can be used to quickly and easily determine whether communication can be
established with the IBS PCI. In IBS CMD G4, select the relevant controller board, press F3, and select the
Online option
IBS CMD G4
HLICHK16.EXE when using the HLI interface
HLICHK32.EXE when using the HLI interface
It is also possible to establish a communication link via a serial cable from the serial PC COM interface to
the IBS PCI controller board.
The IBS PCI controller board is now ready for operation
IBS CMD G4 is available as a monitor program
Why can't the system establish a communication link?
The selected IBS PCI board number on the board or in the registry editor is not correct
Entries in the registry editor for this IBS PCI controller board do not correspond (InUse, etc.)
Device Driver, Device Driver Interface and High-Level Language Interface are not correct
IBS PCI driver software does not correspond to the IBS PCI controller board (firmware?)
When using IBS CMD G4, the appropriate host adaptation for the IBS PCI board is not available. The
appropriate host adaptation is available in the InfoService on the Internet at www.phoenixcontact.com
To identify other possible reasons, search the event log in Windows NT 4.0/2000 for relevant entries
IBS PCI board faulty
PCI slot faulty or inhibited by the BIOS
Host PC faulty
Are the INTERBUS Ethernet controller board and host PC linked in Ethernet?
Assign the INTERBUS Ethernet controller board a free IP address and an appropriate subnet
mask address. For Factory Line components such as the FL IBS SC/I-T, you can use the Factory
Manager provided on the accompanying CD-ROM.
Use the LINK LED on the INTERBUS Ethernet controller board. This indicates the correct
configuration of the Ethernet cable.
Use the "ping" command to check whether the Ethernet controller board and the host PC
exist at network hardware level.
For more detailed network diagnostics, refer to Section 8 Ethernet and INTERBUS Procedure.
Has the latest driver software (DD, DDI, and HLI if selected) been installed successfully?
The latest drivers can be downloaded from the InfoService at www.phoenixcontact.com
During driver installation, entries are made in the registry. Refer to
H_Key_Local_Machine/SOFTWARE/PhoenixContact/IBSETH/Parameters to determine parameters such
as IP address, communication string, InUse, timeout, etc.
Is it possible to establish a communication link to the INTERBUS Ethernet controller board?
The following programs can be used to quickly and easily determine whether communication can be
established with the INTERBUS Ethernet controller board. In IBS CMD G4, select the relevant
controller board, press F3, and select the Online option
IBS CMD G4
ETHERNET MONITOR on the accompanying CD-ROM
HLICHK16.EXE when using the HLI interface
HLICHK32.EXE when using the HLI interface
178
INTERBUS Programming
It is also possible to establish a communication link via a serial cable from the serial PC COM interface to
the INTERBUS Ethernet controller board.
The INTERBUS Ethernet controller board is now ready for operation
IBS CMD G4, ETHERNET MONITOR, and the Factory Manager are available as monitor programs
Why can't the system establish a communication link?
IP and subnet mask address not freely available or do not correspond
Entries in the registry editor for this Ethernet controller board do not correspond (InUse, etc.)
Device Driver, Device Driver Interface, and High-Level Language Interface are not correct
Driver software does not correspond to firmware for INTERBUS Ethernet controller board (firmware?)
To identify other possible reasons, search the event log in Windows NT 4.0/2000 for relevant entries
INTERBUS Ethernet controller board faulty
Host PC faulty
Communication problems due to Ethernet overload
These functions are implemented in the Device Driver Interface (DDI) and are
virtually the same for all INTERBUS controller boards. Figure 4.12 shows the
hardware, which can be accessed via the DDI communication channels.
Host PC
INTERBUS
controller board
Control program
Device Driver
Diagnostic
functions
Data
Interface
Mailbox
Interface
Management
of
data channels
MPM
Figure 4.12: Accessing a PC controller board via the various channels of the DDI
When creating a user-specific high-level language program, the Device Driver
Interface must be integrated in the high-level language project. The Device Driver
Interface, which consists of libraries (*.LIB, *.DLL) and include files (*.h), is made
available with the INTERBUS controller board and depends on compilers or
interpreters (MS C++, Borland C++, Borland Delphi, MS Visual Basic, etc.). Table
4.12 and Table 4.13 list the DDI libraries and include files for the various
programming languages used by INTERBUS PC and Ethernet controller boards.
They are inserted in the high-level language project and provide an interface to the
INTERBUS driver (DD) and therefore to the INTERBUS controller board.
INTERBUS Programming
179
Table 4.12: DDI libraries and include files for Ethernet controller boards
Programming
Library
Include Files
Language
MS Visual C, C++,
ibseth.lib
ddi_err.h, ddi_macr.h, ddi_usr.h, ibs_util.h,
Borland C, C++
eth.a
stdtypes.h, svc_code.h, ddi_eth, ddi_win.h,
under MS-DOS, SUN
eth_err.h, eth_mng.h, eth_secu.h, eth_unix.h,
Solaris 2.4,
ethwin32.h, iocrtl.h
Windows
95/98/NT/2000
Table 4.13: DDI libraries and include files for PC controller boards
Programming Language
Library
Include Files
ibs_dos.h,
ddi_err.h,
MS Visual C, C++ to 1.52, lddi_tsr.lib
Borland C, C++
ddi_macr.h, ddi_usr.h, ibs_util.h,
under MS-DOS
opmode.h, stdtypes.h,
svc_code.h
ibsg4uti.h, console.h
ibs_win.h, ddi_win.h, ddi_err.h,
MS Visual C, C++ to 1.52, ibddiwin.lib
Borland C, C++
win16con.lib ddi_macr.h, ddi_usr.h, ibs_util.h,
under Windows 3.X
opmode.h, stdtypes.h,
(16-bit)
svc_code.h, ibsg4uti.h,
win16con.h, console.h
ibddiw95.h, ddi_win.h,
MS Visual C, C++,
ibddiw95.lib
ddi_err.h, ddi_macr.h, ddi_usr.h,
Borland C, C++,
C-Builder under
ibs_util.h, opmode.h, stdtypes.h,
Windows 95/98 (32-bit)
svc_code.h, ibsg4uti.h,
console.h
ibddiwnt.h, ddi_err.h,
MS Visual C, C++ under
ibddiwnt.lib
Windows NT 4.0/2000
ddi_macr.h, ddi_usr.h,
ddi_win.h, ibs_util.h, opmode.h,
stdtypes.h, svc_code.h
ibsg4uti.h, console.h
Borland Delphi under
bpisawin.pas Windows 3.x/95/98
(16-bit)
Borland Delphi
bpisaw95.pas under Windows 95/98
(32-bit)
Borland Delphi
bpisawnt.pas under Windows NT
4.0/2000
MS Visual Basic under
Windows 3.x/95/98
(16-bit)
MS Visual Basic
under Windows 95/98
(32-bit)
MS Visual Basic
under Windows NT
4.0/2000
Utility Files
ibsg4uti.c
ibsg4uti.c
ibsg4uti.c
ibsg4uti.c
g4utiwin.pas
g4utiw95.pas
g4utiwnt.pas
g4utiwin.bas
g4utiw95.bas
g4utiwnt.bas
The most important functions in the DDI are the calls for opening and closing the
data and mailbox channel (DDI_DevOpenNode, DDI_DevCloseNode), the
180
INTERBUS Programming
functions
for
transferring
messages
(DDI_MXI_SndMessage,
DDI_MXI_RcvMessage), and the functions for transferring INTERBUS input and
output data (DDI_DTI_WriteData, DDI_DTI_ReadData). The integration of the
supplied utility files (e.g., ibsg4uti.c and ibsg4uti.h for C/C++) makes it easier to
access the DDI functions. The utility files group DDI functions, which experience
shows are used together. For example, a utility function OpenHandles can be used
to open the communication channels for the data and the mailbox. In order to use
the utility functions, the relevant utility files must be added, see Table 4.12 and
Table 4.13. Table 4.14 lists the individual functions of the ibsg4util.c utility file.
INTERBUS Programming
181
Control program
Host PC
INTERBUS
controller board
Diagnostic
functions
Data
Interface
Mailbox
Interface
Management
of
datachannels
Device Driver
INTERBUS
MASTER
MPM
Figure 4.13: Accessing a PC controller board via the various channels of the HLI
The HLI is integrated in the high-level language project as a library, see Table 4.8,
and the HLI functions from the HLI library are virtually the same for all INTERBUS
controller boards. A wide range of function calls are available for creating a userspecific HLI application in a programming language. Table 4.15 lists the most
important functions of the g4hliw32.lib HLI library.
Table 4.15: INTERBUS functions of the HLI library
Initialize INTERBUS
(physical)
Initialize INTERBUS
(with configuration
specification)
Deinitialize INTERBUS
Run state machine (all
messages are fetched)
182
INTERBUS Programming
INTERBUS Programming
183
The file Hliexpe.dll (English) or Hliexpd.dll (German) must be copied from the HLI
directory into the CMD/BIN directory and the path under CMD | Tools | Activate
Add-On Programs must be set accordingly. The export file can then be activated
under CMD | TOOLS | ADD-ON PROGRAMS. The HLI export file for high-level
language programs can then be created under CMD | Write Parameterization
Memory | File | HLI Export File. In this export file, all necessary process data is
predefined as variables, HLI-specific variables, and user functions.
Tip: Ensure sufficient bandwidth for INTERBUS Ethernet controller boards
184
INTERBUS Programming
Two files from the Borland/Bin directory are required for the conversion: impdef and
implib. Use the command: c:\impdef ibddiwnt.def ibddiwnt.dll to create a definition
file and then the command: c:\implib ibddiwnt.lib ibddiwnt.dll to generate a Borlandcompatible library. This library can be processed in a Borland compiler.
Tip: How to set an interrupt on IBS PC ISA controller boards to 0
PHOENIX
CONTACT
UL
RD Y/R UN
BSA
FAIL
PF
100
COL
XMT
INTER BU S
R EMOTE
Creation of a
communication
connection
Creation of a
management
connection
INTERBUS
RC V
UL
Ethernet
10/100
FLIBSSC/I-T
Ord .-No.:2 83106 0
INTERBUS
FL IBS SC/I-T
INTERBUS Programming
185
186
INTERBUS Programming
Table 4.16 shows the INTERBUS PC Field Controllers from Phoenix Contact that
are currently available. Like Table 4.1, the table below also specifies the driver
data and supported operating systems.
Table 4.16: Overview of PC Field Controller from Phoenix Contact
INTERBUS PC Field
Controller
IBS ...
ISA FC/I-T
ISA FC/486DX/I-T
4.2.1.2
Supported
Operating
Systems
Name of
Device Driver
(DD)
WinNT4.0
Win 2000
Win NT4.0
Win 2000
ibsisasc.sys
ibsisasc.sys
ibsisasc.sys
ibsisasc.sys
Directory
Containing
Device Driver
winnt/system32/driver
winnt/system32/driver
winnt/system32/driver
winnt/system32/driver
Name of
Device Driver
Interface
(DDI)
ibddiwnt.dll
ibddiwnt.dll
ibddiwnt.dll
ibddiwnt.dll
Directory
Containing
Device Driver
Interface
winnt/system32
winnt/system32
winnt/system32
winnt/system32
Both Field Controller boards are programmed using the control software PC
WORX, regardless of the operating system being used. Users can access process
data or the XDTA area (see Section 1.7 "MPM"), using the standard drivers, which
are already installed. Table 4.17 lists the available programming interfaces for
INTERBUS PC Field Controllers IBS ISA FC/I-T and IBS ISA FC/486DX/I-T,
depending on the operating systems used.
Table 4.17: DDI programming interfaces for IBS ISA FC/I-T and IBS ISA FC/486DX/I-T
Programming
Win NT 4.0
Win 2000
Language
C, C++
X
X
Delphi
X
X
Pascal
X
X
Visual Basic
X
X
INTERBUS Programming
4.2.1.3
187
The driver concept has already been described in 4.1.1.3. Table 4.18 gives the
INTERBUS PC Field Controllers from Phoenix Contact together with their
corresponding driver types.
Table 4.18: Differences between MPM and DPM for PC controller boards
PC Controller Boards
From Phoenix Contact
IBS ISA FC/I-T
IBS ISA FC/486DX/I-T
Driver Type
MPM
All data and information is exchanged between the individual MPM accessors,
such as the host PC, the INTERBUS master and the runtime operating system
ProConOS via the MPM. Figure 4.15 shows the access paths between a
visualization and an INTERBUS controller board via the Device Driver Interface
(DDI), the Device Driver (DD) and the Multi-Port Memory (MPM).
Host PC
INTERBUS
controller board
Visualization
Device Driver
INTERBUS
MASTER
MPM
ProConOS
Figure 4.15: Accessing the PC controller board via the DDI, DD, and MPM
Table 4.19 gives an overview of the INTERBUS Remote Field Controllers from
Phoenix Contact that are currently available. The driver data and support operating
systems are also listed.
188
INTERBUS Programming
4.2.2.2
Supported
Operating
Systems
Name of
Device Driver
(DD)
WinNT4.0
Win 2000
Win NT4.0
Win 2000
ibsisasc.sys
ibsisasc.sys
ibsisasc.sys
ibsisasc.sys
Directory
Containing
Device Driver
winnt/system32/driver
winnt/system32/driver
winnt/system32/driver
winnt/system32/driver
Name of
Device Driver
Interface
(DDI)
ibddiwnt.dll
ibddiwnt.dll
ibddiwnt.dll
ibddiwnt.dll
Directory
Containing
Device Driver
Interface
winnt/system32
winnt/system32
winnt/system32
winnt/system32
The programming interfaces and supported operating systems do not differ from
the data of the PC Field Controller and should therefore be used. The same
applies to the driver concept.
Table 4.20 lists the INTERBUS Remote Field Controllers for Ethernet systems
from Phoenix Contact and provides details of supported operating systems and
drivers.
Table 4.20: Overview of Ethernet Remote Field Controllers from Phoenix Contact
INTERBUS Ethernet
Controller Board
4.2.3.2
Directory
Containing
Socket
Name of
Device Driver
Interface
(DDI)
Directory
Containing
Device Driver
Interface
Supported
Operating
Systems
Name of
Socket
Win NT4.0
Win 2000
wsock32.dll
wsock32.dll
winnt/system32
winnt/system32
ibddiwnt.dll
ibddiwnt.dll
winnt/system32
winnt/system32
Sun Solaris
bsdsocket
ibseth.lib,eth.a
INTERBUS Programming
189
Table 4.21: DDI programming interfaces for RFC 430 ETH-IB and RFC 450 ETH-IB
Programming
Language
Win NT 4.0
Win 2000
Linux
SUN Solaris
2.4
C, C++
Delphi
Visual Basic
X
X
X
X
X
X
X
-
X
-
4.2.3.3
The driver concept has not changed in relation to the dedicated high-level
language controller boards, as referred to in Section 4.1.2.3.
ProConOS
The software interface kit IBS ETH DDI SWD E is used to adapt the Device Driver
Interface (DDI) to other UNIX operating systems.
190
INTERBUS Programming
BDO 32/2
AO 4/SF4
Send project
ProConOS
control system
PC WORX
programming system
BAI 8/U
Control
system
Automation process
Signals from field
Editors
Bus configuration
PLC programming
Data management
Service programs
Compiler
Online display
Online changes
Program memory
Data memory
Buffer memory
I (inputs)
Q (outputs)
M (bit memory)
Retain
Boot project
ProConOS memory
Project folder
Library folder:
Functions, programs, and function blocks that have
already been created for reuse.
User-defined data types:
Arrays, matrixes, etc.
Instances
Hardware
Libraries
POUs
Project view
Physical hardware:
Configuration, resource, and task handling for
set controller board.
INTERBUS Programming
191
The project tree is the basis of a PC WORX program. All programming tasks are
performed and managed in the project tree. Figure 4.17 shows the project tree
with the individual components and a brief description (PC WORX 3.0x). Use the
tab at the bottom of the window to quickly switch between the views for project,
POUs, libraries, hardware, and instances.
4.2.4.3
The POU is the language element of an IEC 61131 PLC program, which contains
the program code. It forms a small software unit, which must be clearly identifiable
within the project, in other words, a POU name can only be assigned once within
the whole project.
4.2.4.3.1 Programs, Function Blocks, and Functions
Programs
Function blocks
Functions
Each of these POU types is then divided again into a description section (notepad
used to describe the POU), declaration section (variable declaration), and an
instruction section (programming environment).
Figure 4.18 shows the structure of a POU in the project tree window of PC WORX.
POU folder
POU header
Descriptive system
Declaration section
Instruction section
192
INTERBUS Programming
Program
Program
Function block
Function block
Function
Function
Function blocks
Meaning
Upper level of the POU. Consists of functions and function blocks and
the required control structures.
Programs are called by a single task, which was previously assigned to
the program.
Recursive calls are not permitted.
At the hierarchical level, function blocks come directly after the
programs. All functions, which are also possible in programs, can be
integrated. Function blocks, however, are called by programs or other
function blocks. A task cannot call a function block.
It is possible to parameterize input and output parameters, so that all
values used by the block can be transferred.
Function blocks have a storing capacity, which is why they are
instantiated -> The same input values may produce different output
values.
Recursive calls are not permitted.
A distinction is made between the standard function blocks, which
originate from the system and are defined in IEC 61131-3, and function
blocks written by the user.
INTERBUS Programming
Functions
193
Functions can have several input parameters, but only one output
parameter, the return value. They have no storing capacity, so that the
same input parameters always produce the same result. The advantage
is that functions require less memory.
A function on the other hand can call another function, but not a function
block or certainly not a program.
IEC 61131-3 defines the standard functions. The user, however, can
create his own functions.
In PC WORX the return value must be an elementary data type.
All function blocks, which can be used in PC WORX, are detailed in the
"PROGRAM WORX - Functions and Function Blocks" User Manual
IBS PROGRAM WORX 2.0 FUB UM E (or 3.0). This manual should
always be kept to hand when using PC WORX.
Figure 4.19 details the call options of POU types. Programs cannot be called by
programs. Programs must be assigned to a task, which then calls the program
following the set cycle time.
A comparison is often made between PC WORX and other PLC systems. An
important factor is the recognition effect of known structures. Figure 4.20 shows
how to identify terms used by other control system manufacturers in PC WORX.
Conventional PLC
OB organizational
block
SB system
block
IEC
Task
Program
FB function
block
PB program
block
Function
Function block
DB data block
194
INTERBUS Programming
4.2.4.4
With PC WORX, the memory of the control system is not permanently linked to the
I/O devices. For conventional PLC control systems, the same bits can be randomly
addressed in the memory, either as a bit, byte or double word and are directly
linked to the I/O devices. The IEC standard and PC WORX both specify that a
memory cell can only have one data item with a set data type. It is possible to
convert it to another data type via special type conversions (these functions are
known as *_TO_**, e.g., WORD_TO_BOOL).
A variable can be given a symbolic address or an absolute address with PC
WORX. Symbolic addressing is the standard addressing for PC WORX. A user
declares a variable in the POU and then assigns the data direction in the global
variable explorer at a later date. A process data item is then assigned to the
variable, i.e., it links the variable to the INTERBUS I/O devices. To perform this
task, you need specific tools such as SYSTEM WORX in PC WORX (PC WORX
2.0x) or a special bus configurator in PC WORX 3.0x. The system knows the
memory segmentation of the hardware and therefore performs the assignments in
a controlled manner.
This is not the case for absolute addressing. Here it is the user who determines the
memory location of variables. In general, there is no checking of possible
overlapping.
Symbolic addressing: Variable name / Data type / Data direction / Scope / Process
data item
For example, Not_Aus / BOOL / I / VAR_EXTERNAL / 1.1.1_IB IL 24 DI 8 1.2
Absolute addressing: Variable name / Data type / Data direction / Scope / Address
For example, Not_Aus / BOOL / I / VAR_EXTERNAL / %IX10.3
Symbolic Addressing
Data direction:
I:
Input
Q:
Output
M:
Bit memory
R:
Retain (remanence)
4.2.4.5
Absolute Addressing
1. % initiates absolute addressing
2. Data direction
I:
Input
Q:
Output
M:
Bit memory
R:
Retain (remanence)
4. Data type
X:
Bit
B:
Byte
W:
Word
D:
Double word
Keywords for Variable Declaration in PC WORX
INTERBUS Programming
195
Function
Not possible
VAR_INPUT
VAR
196
INTERBUS Programming
4.2.4.5.1 Global Variable Validity in PC WORX
Figure 4.21 shows the scope of validity for global variables. The project tree shows
the MAIN program which is created and which calls a MAIN_FB function block. The
function block contains definitions of variable types VAR_EXTERNAL_PG and
VAR_EXTERNAL_FB. The project tree also shows the correct structure of the
hardware tree, if an integrated function block contains these variable types.
Resource
VAR_EXTERNAL
Program 1
VAR_EXTERNAL_PG
FB
FB
VAR_EXTERNAL_PG
VAR_EXTERNAL_FB
VAR_EXTERNAL_PG
VAR_EXTERNAL_FB
Program 2
VAR_EXTERNAL_PG
FB
Global variables
(VAR_EXTERNAL)
VAR_EXTERNAL_PG
VAR_EXTERNAL_FB
FB
VAR_EXTERNAL_PG
VAR_EXTERNAL_FB
FB global variables
(VAR_EXTERNAL_FB)
INTERBUS Programming
197
Note: In order to access a local or program global variable of another POU, the
instance name must precede the variable name. Example: Instance_1.door_open,
Instance_1: Program instance.
Structure elements can only be accessed via the RD_*_BY_SYM (*: data type)
functions. These functions can be used for all types of access.
4.2.4.6
Instantiation
When IEC 61131-3 is referred to, the term instantiation is often used. Instantiation
means, that an object (e.g., function block) is created once and can then be used
several times. Since the function block has an internal data area, memory space
has to be reserved by the PLC system for each copy of the function block. This
requires a name, so that the reservation can be assigned in the memory, in other
words, an instance name.
Example: The standard function block for an RS-FlipFlop is called RS. The
instance name is created by default by PC WORX as RS_1.
4.2.4.7
IEC 61131 details the graphical and textual languages, which can also be used in
PC WORX. Table 4.25 gives an overview of the IEC languages used in PC WORX.
Table 4.25: Programming languages in PC WORX
IEC Language
Meaning
Instruction list (IL) Textual programming language which is similar to the conventional IL
languages of other manufacturers. The code is a sequence of instructions,
with each instruction starting on a new line.
Example:
LD
AND
ST
Structured text
(ST)
198
INTERBUS Programming
Function block
language (FBD)
Ladder diagram
(LD)
Example:
Sequential function Graphical programming language, where the program code is made up of
chart (SFC)
steps and transitions. A step can perform several actions. The transition
contains the next switching requirement for the next step. This
programming language is similar to a flowchart.
Example:
INTERBUS Programming
199
Resource 2
Task 1
Task 1
FB
FU
FU
FB
FB
FB
Task 2
FU
Task 2
FB
FU
FB
FU
FU
200
INTERBUS Programming
Configuration IPC
IBS ISA FC/
486 DX/I-T
PLC rack
RFC 430
ETH-IB
Configuration M68
IBS ISA FC/I-T
PLC rack
ILC 200 IB
RFC 450
ETH-IB
IBS ST 24 RFC-T
BK-FT-T
RFC-T
Global variables:
Global variables of configuration
I/O configuration:
Assignment of IBS process data
2. Configuration
System Tick
The system tick plays an important role in ProConOS. It is used to control task
calls, and is used as a timer in ProConOS. It is formed by a timer unit of the
hardware. The pulses per second are dependent on the hardware being used.
IPC target: 1/1024 1/s= 0.98 ms
M68 target: 1/200 1/s = 5 ms
INTERBUS Programming
4.2.5.4
201
In PC WORX, the user can distinguish between a cyclic task, event task, and a
system task. The special characteristic of this control system would have to be the
cyclic task, which enables the user to specify a cycle time. For most conventional
PLC systems, the cycle time is determined by the PLC program, free running tasks.
This type of task is referred to as default task in PC WORX.
Task Type
Cyclic task
Feature
This type of task is called within a set time interval, a multiple of the system
tick. The valid value range is between 1 and 32767 ms. The average must
be the set cycle time. If there are several cyclic tasks, the priority of the task
is determined by the processing sequence. The priority values are between
0 and 31, where 0 is the highest priority.
The event task is activated by a hardware event. Possible events are, for
example, the fast inputs and outputs of the ILC 200 IB controller or the
process data preprocessing.
ProConOS can process up to 16 events.
System tasks can be used as start, stop, and error tasks. For example, a
program can only be processed if the control system has been started, in
order to initialize the array data types.
System tasks are not monitored by a watchdog, as they are not used
permanently.
System program numbers (SPG number) are transferred to the system
task, which characterize the event and indicate when the system task is to
be started. SPG1 for instance is run if the control system undergoes a cold
restart. The system program numbers can be found in the online help or in
the PROGRAM WORX User Manual.
Event task
System task
4.2.5.5
Task Scheduling
Task scheduling defines the control of the capacity of a processor. This also
includes the assignment of individual tasks after a specific time. Task scheduling is
used to fully utilize the resources of a processor.
The quasi-parallel execution of tasks at different times is one of the main features
of PC WORX. This is possible by using the multitasking operating system
ProConOS.
Figure 4.25 shows the principle of task scheduling in an example. Four tasks with
different interval times share the processing power in order of priority.
Task
priority
Task 1
Priority: 0
Interval: 10 ms
T1
T1
T1
T1
T1
EVENT task
Priority: 1
Task 2
Priority: 2
Interval: 5 ms
T2
DEFAULT
DEFAULT task
T2
T2
DEFAULT
10
15
DEFAU
20
25
T2
DEFAU
30
35
DEFAU
DEFAU
40
45
t / ms
202
INTERBUS Programming
The priority levels of user tasks are always greater than the priority levels of default
tasks. Figure 4.26 shows the classification of the priority of different task types in
ProConOS.
Priority
Monitoring task
User task
Default
task
ProConOS
task
For high-level languages it is possible to form other data types from simple data
types. PC WORX permits combined data types such as fields (ARRAY) and
structures (STRUCT).
Fields and structures are created in the project tree of PC WORX with the
DATA TYPES.
Fields (Arrays)
Declaration:
TYPE
(*Type name*) : ARRAY [(*From..to*)] OF (*DATA TYPE*);
END_TYPE
INTERBUS Programming
203
Example:
Task: An array with 10-word elements is to be created.
Solution:
TYPE
WORD_10 : ARRAY [1..10] OF WORD;
END_TYPE
Structures (STRUCT)
Declaration:
TYPE
(*Typename*):
STRUCT
(*Element 1 Name*):
(*Element 2 Name*):
(*Element 3 Name*):
(*
. :
. *)
(*
. :
. *)
(*Element n Name*):
END_STRUCT;
END_TYPE
(*DATATYPE*);
(*DATATYPE*);
(*DATATYPE*);
(*DATATYPE*);
Example:
Task: A structure with the elements NAME: Data type STRING, Zip code: Data
type INT and LOCATION: Data type STRING is to be created.
TYPE
Person :
STRUCT
NAME
:
Zip code
:
LOCATION :
END_STRUCT;
END_TYPE
STRING
INT
STRING;
204
INTERBUS Programming
4.2.6.2
Elementary data types, which are defined in IEC 61131-3 and which can be used
in
PC WORX.
Table 4.26: Data types in PC WORX
Data Type
Description
BOOL
SINT*
INT
DINT
Boolean
8-bit integer
Integer
Double integer
USINT*
8-bit integer
without sign bit
Integer without
sign bit
Double integer
without sign bit
Floating-point
number
UINT*
UDINT
REAL
Size in
Bits
1
8
16
32
Range
Default Start
Value
0
0
0
0
0...1
-128...127
-32768...32767
-2.147.483.648 to
2.147.483.647
0 to 255
16
0 to 65535
32
0 to 4.294.967.295
32
-3.402823466 E+38 to
-1.175494351 E-38 and
+1.175494351 E-38 to
+3.402823466 E+38
0... 4.294.967.295
0...255
(16#00...16#FF)
0...65.535
(16#00...16#FFFF)
0...4.294.967.295
(16#00....16#FFFFFFFF)
0.0
TIME
BYTE
Time
8-bit string
32
8
WORD
16-bit string
16
DWORD
32-bit string
32
T#0s
0
0
0
The data type STRING may be an elementary data type, but it has a special
position, as is shown in the following.
The data type designation is an important piece of information for IEC blocks. A
supplier of blocks can only permit function blocks/functions for specific data types.
The character description of the block details the supported data types. Table 4.27
shows the data types used with PC WORX.
This data type is not available in PC WORX 2.0x or earlier. It is only implemented in
PC WORX 3.0x or later.
INTERBUS Programming
205
ANY_BIT
DWORD
WORD
BYTE
BOOL
STRING
TIME
User-defined data types
Array
Struct
Character string
Time data type
Combined user data types
206
INTERBUS Programming
TYPE
STRING_40: STRING(40);
END_TYPE
If this string contains the text "Hello", the following image is created in the
ProConOS memory:
0xFFD8 | 0x0005 | 'H' | 'e' | 'l' | 'l' | 'o' | 0x00
4.2.6.3
Instructions in ST
RETURN
CASE
FOR
Code Example
IF x < y THEN
a:=1;
ELSIF x=y THEN
a:=2;
ELSE
c:=3;
END_IF;
RETURN;
CASE x OF
1:
a:=1;
2..3: a:=3;
4:
a:=4;
b:=1;
ELSE a:=0;
END_CASE;
FOR x:=1 TO 5 BY
1 DO y[x] :=a;
END_FOR;
WHILE
WHILE b > 1 DO
b:= b/2;
END_WHILE;
REPEAT
REPEAT a := a*b;
UNTIL a<10000
END_REPEAT;
EXIT
EXIT;
Description
Conditional execution: An instruction is only
executed if the assigned Boolean expression "x<y" is
TRUE. If the condition is FALSE, either no instruction
is executed or the group of instructions that follow
ELSE are executed.
INTERBUS Programming
4.2.6.4
207
The task info is a useful tool, which is used to obtain runtime information of the
individual tasks. The processing time of the program(s) can, for example, be
determined via the task info.
The required data types are already set up under the data types in PC WORX by
way of default:
TYPE
Task_Name_Type: ARRAY[0..9] OF BYTE;
Extended_Task_Info :
STRUCT
TaskName
: Task_Name_Type; (* Name of the Task as ARRAY OF BYTE,
ZERO terminated *)
TaskPrio
: INT; (* Priority of the task *)
undocumented_0
: INT;
TaskPeriod
: INT; (* Period of the task in milliseconds *)
TaskStack
: INT; (* Stack size of the task *)
unused_1
: INT;
TaskWatchdog
: INT; (* Watchdog time in milliseconds *)
undocumented_2
: INT;
undocumented_3
: INT;
undocumented_4
: INT;
CurDuration
: INT; (* Current task duration in ticks including preemption *)
MinDuration
: INT; (* Minimum task duration in ticks including preemption *)
MaxDuration
: INT; (* Maximum task duration in ticks including preemption *)
undocumented_5
: INT;
CurDelay
: INT; (* Current task delay in ticks including preemption *)
MinDelay
: INT; (* Minimum task delay in ticks including preemption *)
MaxDelay
: INT; (* Maximum task delay in ticks including preemption *)
END_STRUCT;
END_TYPE
Corresponding variables with this data type are preassigned under the name
PLC_TASK_1..16 for global variables in the global variable editor
(Global_Variables).
To view the content of these variables, you must use the watch list. In
Debug mode, the variable can be copied to the watch list using the context
menu of the variable in the variable worksheet. There you can open userdefined data types.
In versions of PC WORX earlier than Version 3.x, the task info was not yet
enabled by default. This can be done using the PWX20(0,1,2)V(E,D).ini
file in the Windows directory. Under section [PLCPG], the entry
TaskInfoSupported=1 must be added.
The assignment of defined tasks to describe PLC_TASK_1..16 depends
on the priority of the task. In PLC_TASK_1, for example, the task is stored
as being high priority.
208
INTERBUS Programming
PC WORX 2.0x: Compile the project with tested blocks. Delete all POUs, which are
no longer required, and the hardware tree and code worksheets of the blocks to be
protected. Save project as library and call as library in new project.
Tip: Assign update time of global variables to a specific task
PC WORX 2.0x: In the global variable explorer, from the context menu of the
resource in the hardware tree, you can call menu item "Select Task ". All
available tasks are listed in a drop-down menu. The task shown here is used to
update all global variables (VAR_EXTERNAL).
PC WORX 3.0x: A selection is no longer possible. All global variables are updated
by the DEFAULT task.
Tip: Display system reserves
The control dialog box (PC WORX 2.0x) or project control dialog box (PC WORX
3.0x) in PC WORX is used to operate the ProConOS control system. Use the Info
button to view up-to-date information of the current project (project name, available
memory on the control system, current CPU capacity, cycle time of DEFAULT task,
etc.).
Tip: Constants in PC WORX
BYTE#2#0000_1111
BYTE#8#6743
BYTE#120
BYTE#16#FEAF
INTERBUS Programming
Time:
209
TIME#5s
PC WORX already has a library in the firmware library directory with useful
functions. Every user should call this library for his project.
Path (PC WORX 2.0x): pcworx2 / MWT / PLC / FW_LIB / BIT_UTIL / Bit_Util.fwl
Path (PC WORX 3.0x): pcworx3 / MWT / PLC / FW_LIB / BIT_UTIL / Bit_Util.fwl
Tip: Programming techniques in PC WORX
210
INTERBUS Programming
INTERBUS Programming
211
General Data
212
INTERBUS Programming
4.3.1.2
The base address of the INTERBUS master controller board is taken from the slot
system of the S7 300 environment, see Figure 4.28. The S7 300 controller is roworiented with a maximum of four rows (rows 0 to 3). The column is used for the slot
number of the rack.
The S7 300 DSC-T controller board can be used in rows 0 to 3 in slots 4 to 11. It is
integrated as a hardware component from the hardware catalog of Step 7
software: FM353 F.STEPPER MOTOR (6ES7 353-1AH00-0AE0). The controller
board occupies one slot in the analog address area of the S7 controller (16 bytes
of inputs and 16 bytes of outputs).
PS
PS
IM
3
Row
IM
3
PS
PS
1
CPU
2
IM
3
IM
3
10
11
640
656
672
688
704
720
736
752
10
11
512
528
544
560
576
592
608
624
10
11
384
400
416
432
448
464
480
496
10
11
256
272
288
304
320
336
352
368
Slot number
Analog address
Column
Figure 4.28: Slot system of S7 300 environment
4.3.1.3
The data area of the S7 300 controller is divided roughly into two areas, the digital
and the analog address area, see Figure 4.30. The lower address area (addresses
0 to 127) of the S7 controller is copied upon every S7 cycle, using special system
calls, into a separate memory area, the PII, PIO area (PII/PIO: process image of
inputs/outputs). This area is preferred for digital hardware cards, as bit-by-bit
INTERBUS Programming
213
access is possible. Addresses in the analog area can only be accessed via load
and transfer commands.
Data is exchanged between the S7 controller and the INTERBUS controller board
in the PII/PIO area via driver blocks from Phoenix Contact. The standard registers
in the analog address area can be accessed directly via the analog address.
The following data areas are available for the exchange of information between the
S7 controller and the S7 300 INTERBUS controller board:
-
Data blocks
Bit memory
Analog area (16 bytes for the INTERBUS standard registers and the
communication register).
INTERBUS
input area
(maximum of
512 bytes
of inputs)*
INTERBUS output
area
I/O area
(process image)
(maximum of
512 bytes of
outputs)*
214
INTERBUS Programming
768, maximum*
752
736
Slot 11/row 3
Slot 10/row 3
304
288
272
256
analog area
.
.
.
.
Slot 6/row 0
Slot 5/row 0
Slot 4/row 0
Reserved
digital area
128, maximum*
PII/PIO (process image of
inputs/outputs)
Data blocks
Bit memories
0
*The size of the process image and of the analog
area is dependent on the CPU
The analog address area of the S7 300 controller is determined via the slot in the
rack of the S7 system, see 4.3.1.2. The analog area contains the INTERBUS
standard registers (a detailed description of these registers can be found in 3
"Diagnostics") and the communication register. Figure 4.31 shows the division of
the analog area.
Offset to base
address
Offset to base
address
IN area
15
12
10
8
6
4
2
0
OUT area
15
12
10
8
6
4
2
0
Figure 4.31: Position of INTERBUS standard registers in the analog area S7 300
INTERBUS Programming
4.3.1.5
215
Data is only exchanged between the controller board and the S7 300 system via
the driver blocks.
OB 100
FC 20
INIT_IB
OB 1
FC 24
IB_DIAG
IBDB
FC 21
MEM_READ
Application
FC 25
IB_SERV
FC 27
IB_FUNCT
FC 22
MEM_WRIT
216
INTERBUS Programming
Function FC 22 writes consistent data blocks (data records) from the specified
address area of the S7 controller to the specified destination area of the controller
board.
It is sufficient to use the three blocks FC 20, FC 21, and FC 22 for basic
communication with the controller board (reading and writing INTERBUS process
data). Only blocks FC 24, FC 25, FC 27, and FC 28 enable you to operate all
functions of the INTERBUS system.
An overview of the driver blocks and a brief description can be found in Section
4.3.2.5. More detailed information about the INTERBUS operating mode
"Asynchronous with synchronization pulse" can be found in this section.
General Data
Address
area
in
controller:
Complete
SIMATIC S7 400 address area. These can be
divided into several coupling area with up to 512
bytes.
INTERBUS Programming
4.3.2.2
217
Slot
10
11
12
13
14
15
16
17
18
10
11
12
13
14
15
16
17
18
UR 1
Universal rack
Slot
UR 2
Universal rack
Slot
ER 1
Expansion rack
Slot
Permissible slots
ER 2
Expansion rack
In direct I/O mode, the controller board can only be operated in the universal rack.
Extended I/O mode is possible in the universal and expansion rack.
The usable I/O address area of the SIMATIC S7 400 is dependent on the CPU
being used. It is divided into an input and output address area, in which the I/O
boards are located. Figure 4.35 shows the division of the address area.
n
128*
127*
Input area of
control system
PII (inputs)
process image of
inputs
128*
127*
Output area of
control system
PIO (outputs)
process image of
outputs
218
INTERBUS Programming
Of particular importance is the process image of the inputs and outputs (PII/PIO).
Within it, system-internal routines are used to automatically copy the input and
output signals to this process image before calling OB 1 or after finishing OB 1.
During the execution of OB 1, the input signals remain unchanged.
PII/PIO is preferred for digital I/Os, since bit operations are permitted here. In
addition to the PII/PIO, only byte or word access is permitted, so that the analog
values are stored here as usual.
4.3.2.4
Operating Modes
The DIP switch on the controller board is used to set the operating mode of the I/O
data traffic. The following operating modes can be selected using the DIP switches:
-
Test mode: This operating mode is used to test the INTERBUS devices. The
connected I/O device is automatically read after a power up or reset and
attempts are made to start INTERBUS. The device numbers and INTERBUS
addresses are automatically assigned in test mode. A project that has been
saved on the parameterization memory of the controller is not used. For this
operating mode there is no acknowledgment of PLC addresses, which means
that inputs cannot be read and outputs cannot be written.
Direct input/output mode: In this operating mode, the user is provided with up
to 4 coupling areas (designation of S5 adapter for the S7 400 board). The I/O
data is exchanged directly between the S7 controller and the INTERBUS
controller board without the use of any special INTERBUS driver blocks.
Extended input/output mode: In this operating mode, the I/O data is transmitted
via special INTERBUS driver blocks to bit memory areas or data blocks of the
S7 controller. The S5 adapter is no longer used on this occasion. This
operating mode is identical to that of S7 300 controller boards.
4.3.2.4.1 Direct Input/Output Mode
The following 4 coupling areas are provided in this operating mode: P, Q, IM3, and
IM4. The areas are to be addressed separately as P, Q, IM3 or IM4 or as P/Q or
IM3/IM4 combinations. Figure 4.36 shows the coupling areas in direct mode.
INTERBUS Programming
219
Address area of S7
controller
n
Communication register
IBS S7 400 DSC/I-T
I/O area (MPM)
2E
Communication register
1E
Coupling areas
(S5 adapter)
Communication register
4 bytes
Communication register
124 bytes
Q / IM4 **
Q / IM4 **
128 bytes
Communication register
128*
127*
4 bytes
Communication register
124 bytes
P / IM3 **
Process image
P / IM3 **
128 bytes
0
* Dependent on the CPU used
As Figure 4.36 shows, areas 1E and 2E can still be used. Which areas are these?
1E and 2E are memory areas on the controller board, which each contain 256
bytes. There is no direct mapping in the S7 system, so that the I/O data is
exchanged with the controller via special driver blocks from Phoenix Contact.
220
INTERBUS Programming
Where a coupling area is used by a controller board, the coupling area is then
reserved exclusively for this controller board. This produces a maximum number of
4 controller boards in direct I/O mode.
Address area of S7
controller
Coupling areas
(S5 adapter)
Communication register
4 bytes
124 bytes
IM4
IM4
128 bytes
Communication register
IM3/IM4
4 bytes
124 bytes
IM3
IM3
128 bytes
Communication register
4 bytes
124 bytes
Q
128 bytes
Communication register
128*
127*
P/Q
4 bytes
124 bytes
P
Process image
P
128 bytes
0
* Dependant on CPU used
INTERBUS Programming
FC 20
INIT_IB
OB 100
221
IBDB
In this operating mode, the I/O data is transmitted via driver blocks to data blocks
or bit memory areas of the S7 controller (like with the S7 300 controller board), see
Figure 4.38.
The controller board must be integrated as S7 hardware components from the
hardware catalog: FM 451 FIXED SPEED POS (6ES7 451-3AL00-0AE0). It
therefore occupies 24 bytes of I/O in the analog area of the S7 400 controller.
The analog area contains the INTERBUS standard registers (a detailed description
of these registers can be found in Section 3 "Diagnostics") and the communication
register.
Figure 4.39 shows the division of the analog area. This operating mode is identical
to that of the S7 300 controller board.
Offset to base
address
Offset to base
address
IN area
15
12
10
8
6
4
2
0
OUT area
15
12
10
8
6
4
2
0
Figure 4.39: Position of INTERBUS standard registers in the analog area S7 400
Software drivers are used to read or write data records created in bit memory
and/or data blocks using CMD. For the S7 300 controller, it was possible to use bit
memories, data blocks, and the I/O area. Only bit memories and data blocks are
permitted here.
222
INTERBUS Programming
Figure 4.40 shows the addressable areas of the S7 400 controller board.
Data block area
INTERBUS
input area
(maximum of
512 bytes of
inputs)*
INTERBUS output
area
(maximum of
512 bytes of
outputs)*
INTERBUS Programming
4.3.2.5
223
OB 100
FC 20
INIT_IB
Initialization FB
OB 1
FC 24
IB_DIAG
INTERBUS diagnostic
function block
IBDB
INTERBUS data block
FC 21
MEM_READ
Reads consistent data
blocks
Application
Application
FC 25
IB_SERV
Operates parameter
channel
FC 27
IB_FUNCT
Executes parameterized
user functions
FC 28
IB_SYNC
Asynchronous with
synchronization pulse
FC 22
MEM_WRIT
Writes consistent data blocks
224
INTERBUS Programming
Figure 4.41 details the standard blocks from Phoenix Contact, see Table 4.30. The
InfoService section on the Phoenix Contact homepage provides a selection of
additional function blocks for the various application purposes. For example, an
even more powerful diagnostic module is available, the FC 126 (DEVMOD). This
block is responsible for the diagnostics and error acknowledgment of the
INTERBUS system and provides easy switching and jumpering of INTERBUS
devices. Faulty INTERBUS devices can be automatically disconnected from FC
126, if the DEVMOD has already been parameterized.
Table 4.30: Brief description of standard function blocks
Standard Function
Description
FC 20: INIT_IB
This block synchronizes the INTERBUS controller board with the S7
system and enters important operating parameters into the
INTERBUS data block. These operating parameter are used by
other INTERBUS function blocks.
FC 21:MEM_READ
The function FC 21 reads consistent data blocks (data records) from
the controller board and copies them to the specified destination
area of the S7 controller.
FC 22:MEM_WRIT
Function FC 22 writes consistent data blocks (data records) from the
specified address area of the S7 controller to the specified
destination area of the controller board.
FC 24: IB_DIAG
This block is used so that the INTERBUS user can manually or
automatically acknowledge INTERBUS errors.
FC 25: IB_SERV
This block enables the PCP and PNM7 channel to be used, i.e., the
parameter channel. Only through using this block can the user
operate the parameter channel.
FC 27: IB_FUNCT
The configuration software CMD enables the user to create user
functions. These may be complex firmware commands, which are
pre-parameterized and launched via a bit in the MPM. Use the
Configuration -> IB Function Blocks menu to create these user
functions.
The FC 27 block can be used to process such user functions.
FC 28: IB_SYNC
The asynchronous mode of the INTERBUS system is not sufficient
for some applications, since the data consistency for the present
application process is insufficient. In this case, you should use
synchronous modes. The FC 28 block should be used for
"Asynchronous with synchronization pulse" mode.
INTERBUS Programming
4.3.2.6
OB 1
225
OB 40
FC 28
IB_SYNC
FC 50
FC 21
MEM_READ
FC 51
FC 22
MEM_WRIT
IBDB
OB 40
FC 28
IB_SYNC
A description of how to start up the controller boards is not included in this section,
as this information can be found in the standard literature from Phoenix Contact.
For a quick introduction, please refer to the Quick Start Guide, which gives a brief
introduction to the startup process (practical tips). For a full introduction, please
refer to the driver software user manual.
User Manual
Quick Start Guide IBS S7 300 DSC-T [26]
Quick Start Guide IBS S7 400 DSC/I-T [27]
User manual for controller board driver software for Siemens SIMATIC S7
300 controllers [28]
User manual for controller board driver software for Siemens SIMATIC S7
400 controllers [29]
226
INTERBUS Programming
The listed user manuals and corresponding driver software can be
downloaded from the download area of the InfoService on the Phoenix
Contact homepage.
Practical tip: Application examples are given in the IBS S7-300 UM E and
IBS S7-400 UM E User Manuals on the supplied disk. These examples are also
available on the Phoenix Contact homepage. The examples are provided in the
form of executable programs, which make the whole setup process easier.
227
Using @utomationXplorer
Page 228
Page 230
Page 231
Page 233
Page 234
Page 235
228
5.1 @utomationXplorer
@utomationXplorer from Phoenix Contact is a software tool used to parameterize
INTERBUS systems with lower-level INTERBUS configurations easily and
effectively. In addition, it is possible to communicate with all INTERBUS devices via
the PCP and PNM7 communication channel. Figure 5.1 illustrates an example of
an INTERBUS configuration with higher and lower-level INTERBUS with the option
of communication. @utomationXplorer acts as the communication platform from
which individual applications (IBS CMD, etc.) can be started directly.
@utomationXplorer
INTERBUS OPC
server
High-level language
application
MS Visual C++ 6.0 (32-bit)
netcfg.dat
communication
strings
Lower-level
INTERBUS
Ethernet
High-level
INTERBUS
229
5.2 IB Loader
The IB loader is an additional tool from Phoenix Contact, which can be used to
send the bus parameterization and/or PC WORX programming to the controller
board. The information to be sent must be available as an SVC file (ASCII format)
so that it can be processed by the IB loader.
Originally the IB loader was developed for INTERBUS controller boards that did not
have a parameterization memory. In practice, the IB loader is also used for
INTERBUS controller boards that have a parameterization memory to execute the
bus parameterization of a high-level language application at a specific point in time.
All available communication paths (serial, Ethernet, ISA bus, etc.) are available to
the IB loader. Even parameterization via INTERBUS (PNM7 channel) is possible.
230
Figure 5.2: Creating the SVC file using IBS CMD of IBS PC WORX 2.0x
When creating the SVC file, the INTERBUS startup procedure, which was
assigned the boot cross under Configuration | Parameterization | Edit, is
used.
The user can decide whether to write to the controller board RAM or to the
parameterization memory via the boot project cross in the "Write SVC
File" dialog box.
231
232
The IB loader also supports the management channel of the INTERBUS system.
The parameterization can be sent to a lower-level INTERBUS system. For this, the
"/PRI" option must be set and the communication reference number attached.
Example MXI device name: IBCOM1#CR02
SVC-Filename
/V
/S
/T:xx
/BRK_IB_ERR
ERR_LOAD_PRI_DLL
ERR_READ_STREAM
ERR_NEG_IBS_CNF
0x08
ERR_TIMEOUT
Meaning
No error
Invalid parameter transferred
A message could not be sent
Exception occurred during data
transmission
The PRI DLL could not be transferred
Error reading data from the file
Negative IBS service confirmation
received
No service confirmation received within
the specified timeout period
233
Application
OUT
IN
Application
OUT
IN
Application
OUT
IN
Application
Host system
MPM
Read OUT data
from the MPM and
write it to the output
modules
Write IN data to
the MPM
IBS cycle
Master
IN
PDP
OUT
IBS cycle
IN
PDP
OUT
IPMS
I/O memory
PDP:
Preprocessing task
Application
PLC program
234
Note: The INTERBUS cycle time is the time between the start of two INTERBUS
cycles including data transfer and preprocessing.
IN
ProConOS
PDP
OUT
Application
Wait
IN
IRQ
IRQ
PDP
OUT
Wait
IRQ
IRQ
Master
INTERBUS cycle
Application
INTERBUS cycle
INTERBUS cycle
t
IN:
IN data of the
INTERBUS master
is read
OUT:
OUT data is
transmitted to the
INTERBUS master
Application
PLC programm
PDP:
Preprocessing task
WAIT:
INTERBUS
cycle
Complete INTERBUS
cycle
IN
PDP
Application
IRQ
235
Wait
OUT
IN
IRQ
PDP
Application
IRQ
Wait
OUT
IN
IRQ
Master
INTERBUS cycle
INTERBUS cycle
IN:
PDP:
IN data of the
INTERBUS master
is read
Preprocessing task
OUT:
OUT data is
transmitted to the
INTERBUS master
Application
SPS program
WAIT:
INTERBUS
cycle
Complete INTERBUS
cycle
Not all PC WORX controllers support both preprocessing types. In general, an M68
controller can only support sequential preprocessing. Both methods can be set for
IPC controllers (Event no. 0: sequential preprocessing; Event no. 1: parallel
preprocessing).
A preprocessing task is created in the PC WORX project tree under the hardware
description.
236
System couplers
Page 239
Page 241
Page 244
Page 247
Page 251
Page 252
Page 253
Page 255
Page 256
Page 257
Page 258
Page 260
237
1.0
1.1
1.2
ILC 200 IB as
Sub master
2.0
0.0
1.0
1.1
1.2
2.0
2.1
2.2
3.0
BK-T
3.0
BK-T
3.1
3.2
DO 16/3
DI 32/2
3.1
AI 4/SF4
3.2
AO 4/SF4
238
239
Parameter channel
240
2.1
2.0
2.1
INTERBUS
devices in the
higher-level
INTERBUS
system
INTERBUS
devices in the
lower-level
INTERBUS
system
The slave process data is updated and exchanged with the higher-level
control system on every INTERBUS cycle very rapid communication
process. The higher-level control system determines the update time for
the process data for the entire system.
241
Access to the default index of the system coupler: The higher-level control
system sends requests to the lower-level system via the default index. The
lower-level system responds to these requests. The user data is contained in
the response. Data management is controlled by the subsystem application
program, i.e., the data is kept in the program memory of the system controller.
The PCP connection controls access to the data. Both systems can be
operated as clients or servers. If the higher-level system performs the client
function, the subsystem must act as the server.
Communication via the PD channel is often preferred to communication via the PCP
channel, as the configuration is easier. Access and handling using process data
objects is far easier and quicker. For data volumes of more than ten words,
communication via the PD channel usually fails because the slave interface can only
be set to 10 words (except for the IBS ST 24 RFC-T, which can be set to 26 words).
Multiplex operation is not advisable in this case, and instead the parameter channel
should be used.
6.3.2.1
The firmware of the INTERBUS master controller from Phoenix Contact contains
two default indices. These indices can be used as an octet string with a length of
240 bytes. During communication, for example, the higher-level control system
(system 1) can access the default index of the lower-level system (system 2) using
a read request. The read request is detected by system 2 as a read indication.
System 2 must process the request and send back the response to system 1 as a
read response. System 1 receives this response as a read confirmation with the
desired data.
Default index: 0x5FFF and 0x5FFE, each an octet string of 240 bytes
242
Tip: To ensure that data is exchanged as quickly as possible, the PCP data width
should not be set too low.
The implementation is based on the use of the relevant service primitive on the
client and server side. The necessary firmware services can be sent via the host
system drivers.
The example shown in Figure 6.4 illustrates the procedure for the INTERBUS
topology shown. The relevant service primitives are shown in the mailbox syntax.
243
0.0
Read_Write
request for
reading/
writing the
index
PCP_SERVER
to reply to the
indication
Byte 1
Byte 2
...
Byte 240
Read indication
0x0081
0x0003
0x0002
0x5FFF
0x0000
Read request
Message_Code
Parameter_Count
Invoke_ID | CR
Index
Subindex | -
Read indication
IBS System 1
IBS System 2
Read confirmation
Read response
Read confirmation
Message_Code
Parameter_Count
Invoke_ID | CR
Result (+)
- | Length
Data (1)
Data (2)
0x4081
0x0003
0x0002
0x5FFF
0x0000
0x8081
0x0005
0x0002
0x0000
0x0004
0x1234
0x5678
Read response
Command_Code
Parameter_Count
Invoke_ID | CR
Result (+)
- | Length
Data (1)
Data (2)
0xC081
0x0005
0x0002
0x0000
0x0004
0x1234
0x5678
244
A demo program for communication via the default index can be found on
the accompanying CD-ROM.
Required software: PC WORX
Project name: ETH_DI (higher-level control system), ILC_DI (lower-level
control system)
6.3.2.2
The communication relationship list for the higher-level control system does not
contain the connection data for a PCP device in the lower-level INTERBUS system.
This is because the higher-level and lower-level INTERBUS systems are treated
separately. The INTERBUS masters are configured separately using the CMD/PC
WORX configuration tool, and it is not possible to read the other project to access
its communication relationship list. However, it is possible to reload a
communication relationship list in the startup sequence. This communication
relationship list is reloaded as a file and must adhere to a specific format. The file
contains the connection data for one or more PCP devices. The higher-level
INTERBUS system then accesses this PCP device directly via the submaster.
Figure 6.5 illustrates the problem using a typical topology.
The only device in the bus configuration of the higher-level control system is the ILC
200 IB system coupler. The system coupler is operating a PCP device at local bus
position 0.3. The aim is to create a logical PCP channel from the higher-level control
system via the system coupler to device 0.3 in the sub-bus. To do this, the higherlevel control system requires the PCP data for the PCP device in the subsystem. In
addition to standard information, such as the connection monitoring time or
supported PCP services, the position in the subsystem and the CR number are
required (routing information). Table 6.2 shows the file (a *.LLS file) for reloading the
PCP connection for INTERBUS device 0.3 in Figure 6.5.
It is not recommended that the user tries to manually configure a PCP connection.
Various tools are provided, which can perform this task more effectively. In PC
WORX Version 3.0x or later, the bus configuration of both INTERBUS systems (the
higher-level and lower-level INTERBUS system) can be mapped in one project.
The higher-level master automatically receives the information from the lower-level
bus system. For users who do not have PC WORX controller boards, the
Automation Explorer performs this function. However, @utomationXplorer is only
approved for certain types of controller board.
245
0.0 / 1.0.0
D1.1.0
1.0 / 2.0.0
PMS-CR 2 / PNM7-CR 3
1.1
1.2
1.3
D0.0.0
(CR 2) / CR 4
CR in the Submaster
246
ASS-CI(1)-(4): VFDpointer-supported:
DUMMY:
Remote address:
Connection type:
Connection attribute:
0 = Defined connection
max. SCC:
max. SAC:
max. RAC:
max. ACI(1)-(4):
247
6.3.3.1
Mailbox Syntax
WRITE_WITH_NAME_REQUEST
Message-Code (0x0097)
Parameter-Counter
Invoke-ID
Communication
reference
Access-Choice
More-Follows
Variable-Name-Length
Variable-Name(1)
Variable-Name(n)
Data-Length
Data(1)
Data(n)
248
for
the
global
variable
"close_doors"
would
be:
For a local variable, the program instance name of the POU should be added. The
POU is instantiated with the name MAIN_I. The local variable is "open_doors", so
the variable name would be: MAIN_I.open_doors.
If you are unsure about the allocation of a variable name, you can use PC
WORX to generate it. To do this, designate the variable as a CSV variable
and compile the project. Then use Windows Explorer to search for the
sr.csv file in the PC WORX project directory. This file has the correct file
name.
249
3. Negative Confirmation
Mailbox Syntax
WRITE_WITH_NAME_CONFIRMATION
Message-Code (0x8097)
Parameter-Counter
Invoke-ID
Communication
reference
Error-Class
Error-Code
Additional-Code
250
Mailbox Syntax
READ_WITH_NAME_REQUEST
Message-Code (0x0098)
Parameter-Counter
Invoke-ID
Communication
reference
Access-Choice
More-Follows
Variable-Name-Length
Variable-Name(1)
Variable-Name(n)
Data (n)
3. Negative Confirmation
Mailbox Syntax
READ_WITH_NAME_CONFIRMATION
Message-Code (0x8098)
Parameter-Counter
Invoke-ID
Communication
reference
Error-Class
Error-Code
Additional-Code
251
More-Follows: This parameter is always 0 for standard data types. For user-defined
data types, which exceed the PDU size, the data must be transmitted in segments.
The More-Follows parameter is then set to TRUE and a value not equal to 0 is set
in the Data-Length parameter. If the variable name is transmitted in segments, the
More-Follows parameter is set to TRUE and the Data-Length is assigned the value
0.
Param-Follows: If the value is set to TRUE, this indicates that the next request
should use the index. An index value of 0xFFFFFFFF or 1 indicates an invalid
index.
Data-Length: Length of the following buffer in bytes.
6.3.3.5
Read/write with
name request
1.0 / CR 2
ILC 200 IB
ProConOS variable
252
2. Request
Mailbox Syntax
WRITE_WITH_NAME_REQUEST
0x0097
0x0009
0x00
0x02
0x00
0x00
0x0B
r
e
n
_
o
e
f
f
n
e
n
0x01
0x01
1. Confirmation
Mailbox Syntax
WRITE_WITH_NAME_CONFIRMATION
0x8097
0x0003
0x00
0x02
0x0000
--0x00
2. Confirmation
Mailbox Syntax
WRITE_WITH_NAME_CONFIRMATION
0x8097
0x0006
0x00
0x02
0x0000
--0xFF
0x00
0x00
0x00
0x09
0x0000
253
1. Confirmation
Mailbox Syntax
READ_WITH_NAME_CONFIRMATION
0x8098
Parameter-Counter
0x00
0x02
0x0000
0x00
0xFF
0x00
0x00
0x00
0x03
0x0000
--0x01
0x01
---
Figure 6.7: Read with name using PC WORX (higher-level control system)
The lower-level control system establishes communication with a PCP_CONNECT
block. The system number (D0.0.0 -> higher-level control system) is transferred as
the partner address (communication reference), as shown in Figure 6.8.
If the MY_ARRAY variable is available in the PDD of ProConOS, the data item is
automatically passed on. This completes the communication for the user.
254
Figure 6.8: Read with name using PC WORX (lower-level control system)
6.3.3.6
Table 6.3 provides an overview of the types of controller from Phoenix Contact
(and their relevant firmware versions), which support communication via variable
names.
Table 6.3: Types of controller for the read/write with name service (as at February, 2002)
Controller Type
All Field Controllers (FC controllers)
All standard controllers (SC controllers)
except for the following controller types:
IBS S7 400 ETH DSC/I-T
IBS ISA RI/I-T
Firmware Version
Firmware version 4.3G or later
Firmware version 4.47 or later
FC controllers are all types of controller board, which include the letters "FC" in the
order designation or are described as Field Controllers in the data sheet. The same
applies for SC controllers.
As this communication mechanism is used frequently in practice, it is unlikely that a
newer firmware version would no longer support the read/write with name service,
certainly not for Field Controllers.
255
To enable the variable to be read by ProConOS, the PDD flag for this
variable must be set.
The slave interface, from the point of view of the higher-level control
system, must have read/write with name activated in the description
dialog box for the supported PCP services.
Practical Tip: Read/write with name directly from the host system to the controller
board
It is not only possible to send read/write with name requests to a PCP device
(controller board), but they can also be sent directly between the host system and
controller board. CR 0 is used as the CR number in the read/write with name
request. This information in the request code ensures that the data is not transferred
to the PCP stack, but is processed directly in the master firmware/ProConOS.
A logical connection establishment between the host system and the controller
board using an initiate request is not necessary/not permitted.
Example: Input data is to be read directly from the MPM. The DTA input area
begins at address 0x1000 and ends at address 0x1FFF. Ten words should be read
from address 0x1000.
256
Service
Code
0x0331
0x0002
0x1000
0x000A
Meaning
READ_MPM_REQUEST
Parameter_Counter
MPM address, DTA input data
10 words are read
How can the READ_MPM service for reading system coupler data objects be
used?
As the firmware services usually have a local effect on the relevant INTERBUS
controller board, there must be an option to execute services remotely. This option
is provided by a remote management connection (PNM7). Only PNM7 services can
be transmitted via this connection; it does not transmit PMS services. However, it is
possible to send commands such as Start_Data_Transfer, Stop_Data_Transfer or
even Read_MPM via this connection. This enables remote control of the system
coupler.
6.3.4.2
CR2 CR3
CR4 / PNM7-CR7
CR5
CR6 / PNM7-CR8
257
6.3.4.3
Negative Confirmation:
Mailbox Syntax
PNM7_Initiate_Confirmation
Message-Code (0x80A0)
Parameter-Counter
--Communication
reference
Error-Class
Error-Code
Additional-Code
PNM7_
PNM7_
PDU_Sending_Low
PDU_Receiving_Low
PNM7_
PNM7_
Services_Supported
Services_Supported
(1)
(2)
PNM7_
PNM7_
Services_Supported
Services_Supported
(3)
(4)
PNM7_
PNM7_
Services_Supported
Services_Supported
(5)
(6)
258
Negative Confirmation:
Mailbox Syntax
Service_Execution_Remote_Confirmation
Message-Code (0x80C1)
Parameter-Counter
Communication reference
Error-Class
Error-Code
Additional-Code
259
The following example shows the use of the SER request in mailbox syntax for the
remote execution of a Stop-Data-Transfer:
Mailbox Syntax
Stop_Data_Transfer_Request
Message-Code (0x0702)
Parameter-Counter
Stop-Type
Mailbox Syntax
Service_Execution_Remote_Request
Message-Code (0x00C1)
Parameter-Counter
Communication reference
Remote-Service
...
6.3.4.5
Users often ask which command interface can be used to send the firmware
services. The CMD/PC WORX (Version 2.0x or earlier) tools are ideal for this task.
The menu item "Configuration / (Controller Board) / Control / Other Services ...",
see Figure 6.10, starts a service editor (Figure 6.11) for sending firmware
commands. If the service code is known, every service can be sent to the controller
board.
260
261
6.4 Questions
for
Concept"Section
the
"Distributed
Control
1.
2.
3.
262
Page 267
Page 269
Page 269
Page 270
Page 273
Page 279
Page 280
263
CALL-E
Figure 7.1 illustrates the OPC architecture with the INTERBUS OPC server from
Phoenix Contact according to the OPC client/server principle.
INTERBUS OPC client,
e.g., Genesis (ICONICS)
INTERBUS OPC
diagnostics client
User-programmed
INTERBUS OPC client
OPC automation
interface
generates
OCI server
ds
re
a
CALL-R
log file
OPC custom
interface
CALL-P
communicates
generates
OPC configurator
IBS PC WORX/CMD
reads INTERBUS
configuration
INTERBUS I/Os
INTERBUS
controller board
264
The OPC server and the OPC client can be installed on the same or different PCs.
Only one OPC server must be operated on a PC at a time. In addition, several
OPC servers and OPC clients can run within the distributed system and can have
communication relationships with one another.
Advantages of OPC
In the past, when detecting and processing I/O data in automation processing, the
user quickly became aware that almost every hardware component had its own
programming interface. As the majority of these interfaces do not have a common
communication standard, different and often numerous drivers had to be installed.
A group of leading manufacturers in the automation sector joined together and
through the OPC standard have eliminated the disadvantages associated with
automation components. Since then OPC has become the standard
communication platform and provides users with the following advantages:
-
Independence from the operating system (at present only Windows operating
systems)
Network compatibility
265
Figure 7.2 shows the various access methods OPC clients use to access the
Phoenix Contact INTERBUS OPC server. It is also possible to update the data
blocks using event-dependent callback functions.
Synchronous writing
Synchronous reading
OPC client
OPC client
OPC server
OPC server
Data cache
Data cache
Control variables
Digital var.
Analog var.
Data cache
Cycle comparison
Group
Callback
Data cache
Data cache
OPC server
OPC server
Asynchronous
callback
Asynchronous
callback
OPC client
OPC client
OPC client
Asynchronous reading
Asynchronous writing
Figure 7.2: Access methods used by the INTERBUS OPC server to access groups
and items
The OPC server provides a custom and automation interface as programming
interfaces, as shown in Figure 7.1. The custom interface is used for programming
languages such as C or C++. The automation interface enables OPC client access
to OPC data for the following programming languages: MS Visual Basic, Borland
Delphi, VB script or MS Excel. The OPC specification shows that an OPC
server does not necessarily have to implement the automation interface. The OPC
Foundation provides an automation interface, the wrapper, which generates an
automation interface.
266
If the INTERBUS OPC server from Phoenix Contact is used, the following software
applications are also required:
-
Softing
Trebing & Himstedt Prozeautomation
USDATA
Wonderware Corporation
267
Product Name
Comsoft Sinec L1 OPC Server, OPC Testclient
Comsoft PROFIBUS DP V1 OPC Server
ETM Server
HIMA OPC Server
Freelance 2000 OPC Server
ABR Driver
Modbus OPC Server, Build 64
SIMATIC WinAC (Soft PLC, Slot PLC),
SIMATIC NET (PROFIBUS DP, FMS, S7,
Send/Receive-S5), SIMATIC WinCC
OPC Server PROFIBUS DP, 4Control,
OPC Server Toolkit, CANopen OPC Server
OPC PROFIBUS Server
FactoryLink
OPCLink, OPCBrowser
268
Feature
Number of ETH controller boards
Signal paths for SC boards
New data types
Password protection for
RFC/486DX/ETH/I-T
OPC server access to process
data outputs for FCs
No
Data Description
8 bits, signed
8 bits, unsigned
16 bits, signed
16 bits, unsigned
32 bits, signed
32 bits, unsigned
32 bits, float
1 bit
80 bytes
The OPC client uses default items to retrieve information about the status of the
OPC server, INTERBUS configuration, the PROGRAM WORX controller, and the
project name. Table 7.4 gives the possible default items of INTERBUS OPC server
2.0x.
Table 7.4: Default items of the INTERBUS OPC server
Default Item Name
Data Type
Function of the Default Item
SERVER_CTRL/
VT_BSTR
Array is divided into: Time stamp, controller
ServerStatus
VT_ARRAY
number, error/information, error code, description
DiagStateReg
VT_UI2
Diagnostic status register
DiagParaReg
VT_UI2
Diagnostic parameter register
DiagParaExtReg
VT_UI2
Extended diagnostic parameter register
StdFktStartReg
VT_UI2
Standard function start register
StdFktStatusReg
VT_UI2
Standard function status register
StdFktParaReg
VT_UI2
Standard function parameter register
PLC_RUN
VT_BOOL
Controller in the RUN state
PLC_ON
VT_BOOL
Status of the controller after a reset
PLC_STOP
VT_BOOL
Controller in the STOP state
PLC_HALT
VT_BOOL
Controller in the HALT state
PLC_TIMEOUT
VT_BOOL
Timeout flag set
PLC_ERROR_ON_PLC VT_BOOL
An error has occurred in the controller
ProjectName
VT_BSTR
Current project name
269
To enable the OPC server to find the configuration file, the following
information
is
stored
in
the
registry
under
KEY_LOCAL_MACHINE/Software/Phoenix Contact/Call-r Server
during server registration of MS Windows NT (path information is
specific to the PC):
ConfigFile
MutexTimeout
ProtocolFile
SN
StartType
e:\PCWORX\Project\OPC.clr
0x000186a0 (100000)
e:\PCWORX\Project\IBSOPC.LOG, 50000, ON
12345678
CONFIG_FILE
The "ConfigFile" parameter contains the name and path of the configuration file
(*.clr) and the "ProtocolFile" parameter contains the name and path of the error log
file (*.log). The "50000" attribute defines the possible file size of the log file in bytes.
The "ON" attribute enables (ON) or disables (OFF) the log file function.
270
AccessLevel = 0
VariableClass = 3
RawValMin =
RawValMax =
PhysValMin =
PhysValMax =
InvertBoolValue = FALSE
271
log file enables you to check communication between the OPC server and the
controller board. The file can be opened with an editor such as Notepad.
Example of a successful *.log error log file for an OPC server 2.0x:
Thu May 10 16:31:03,527 : ***** Call-r Server protocol file *****
Thu May 10 16:31:03,527 : Server File Version V 2, 0, 0, 6
Thu May 10 16:31:03,527 : ActiveCachingOCI = FALSE
Thu May 10 16:31:03,527 : OCIMutexTimeout = 0x186A0
Thu May 10 16:31:03,527 : MaxServerStatusLines = 0x32
Thu May 10 16:31:03,527 : ->StartType: START_CONFIG_FILE
Thu May 10 16:31:03,527 : D:\PCWORX\PROJECT\OPC.CLR
Thu May 10 16:31:03,527 : HostAdaption = 0x24
Thu May 10 16:31:03,527 : IBS PCI SC/I-T
Thu May 10 16:31:03,527 : IBB1N1_M@05
Thu May 10 16:31:03,527 : IBB1N1_D
Thu May 10 16:31:03,527 :
Thu May 10 16:31:03,527 : dwOffsetDTAIn = 0x1000
Thu May 10 16:31:03,527 : dwOffsetDTAOut = 0x0
Thu May 10 16:31:03,527 : dwOffsetXDTAIn = 0xFFFF
Thu May 10 16:31:03,527 : dwOffsetXDTAOut = 0xFFFF
Thu May 10 16:31:03,527 : *1* AutomaticConfiguration = FALSE
Thu May 10 16:31:03,527 : *1* ErrCode = 0x0 (Open Node DTI: IBB1N1_D)
Thu May 10 16:31:03,527 : ItemName, AccRights, PhysLoc, PhysDir, PhysAdr, mask,
VT, arrayType, OCIAccessString
Thu May 10 16:31:03,527 : number of installed controllers = 0x1
Thu May 10 16:31:03,527 : *1* Cache Thread ID: = 0x7B
Thu May 10 16:31:03,527 : *1* OCICache Thread ID: = 0x6E
Thu May 10 16:31:03,527 : Initialize server END
Thu May 10 16:31:03,527 : *1* DTA/XDTA InitUpdateThread
Thu May 10 16:31:03,527 : *1* OCI InitUpdateThread
Thu May 10 16:31:03,527 : *1* OCI Number of entries = 0x0
Thu May 10 16:31:03,537 : *1* OCI Update thread in sleep mode
Thu May 10 16:32:42,239 : *1* Terminate Cache Thread: = 0x84
Thu May 10 16:32:42,289 : *1* DTA/XDTA Update thread killed!
Thu May 10 16:32:42,289 : *1* Terminate OCICache Thread: = 0x88
Thu May 10 16:32:42,289 : *1* OCI Update thread killed!
Thu May 10 16:32:42,389 : Terminate server END
The IBOPCDiag program, see Figure 7.3, is a diagnostic tool for OPC
communication and can be found in the INTERBUS OPC directory. This program is
used to display states, errors, information, and warning messages for the
INTERBUS OPC server and the PD, DA, and CSV variables online.
272
All error codes that appear in the error log file are described in
Appendix A.3 "INTERBUS OPC Server Error Codes".
PC WORX 3.0
Project 1
PC WORX 3.0
Project 2
PC WORX 3.0
Project 3
PC WORX 3.0
Project file 1
(1.vis)
PC WORX 3.0
Project file 2
(2.vis)
PC WORX 3.0
Project file 3
(3.vis)
OPC configurator
Import
Other tools
Figure 7.4: Using the OPC project file (*.vis) in PC WORX 3.0
273
274
275
Custom
interface
Automation
interface
Figure 7.6: Communication interfaces from the OPC client to the OPC server
Developing your own OPC applications requires effort, however it ensures the
highest level of flexibility and adaptable communication speeds. Table 7.5 lists
various OPC toolkits and compatible programming languages.
Example programs in source code for creating your own OPC clients in
MS VB and VBA (MS Excel) can be found on the accompanying CDROM.
Borland Delphi 5
X
X
Borland C++
4.0
X
X
X
X
X
X
X
-
VB
6.0
X
276
Website
www.iconics.com
www.wonderware.de
www.intellution.de
www.gefasoft.de
www.it4industry.de
www.citect.de
www.progea.de
www.visiwin.de
www.rockwell.com
www.ni.com/bridgeview
Visualization monitor
IBS master
PC containing the OPC
server, the OPC client, the
clr file, the controller, and the
control program
Figure 7.7: Configuration with serial/ISA connection between OPC server and
client
DCOM
Visualization
monitor
OPC client
Firewall
VPN internet
DCOM
Firewall
OPC server
IBS RFC450-IB
Diagnostics notebook
Figure 7.8: Configuration with OPC server and Client, connected via a firewall
277
Hub
Visualization
monitor
OPC client
OPC server 2
IBS master 2
Figure 7.9: Configuration with 2 OPC servers and 1 OPC client via Ethernet
Hub
Visualization
monitor
IBS RFC450-IB
IBS RFC450-IB
Figure 7.10: Configuration with 1 OPC server, 1 OPC client, and 2 INTERBUS
controllers
Hub
Visualization
monitor
PC containing the
OPC server, the
OPC client, as
well as the clr
entries and
control programs
(for csv variables)
for both
OPC client
IBS RFC450-IB
Serial
Diagnostics notebook
OPC server
278
A detailed description of the IB loader and its application can be found in Section
5.2 "INTERBUS Specialist Knowledge".
A data write access of 150 KB with DDI functions via a 10-Mbps Ethernet
connection on an IBS RFC ETH 486DX/I-T is therefore shortened from 45 s (OPC)
to 2 s (DDI) including program runtime.
279
The OPC server and the OPC client are installed on different PCs, and a user is
not logged in on the OPC server PC. The following modifications must be made on
the OPC server PC:
-
Call the OPC server settings in DCOM under Start | Run | dcomcnfg
In the "Identity" window, enter a valid user with the rights for starting,
accessing, and configuring the OPC server with a password
In the "Default Security" window of the DCOM properties add the access rights
under all rights, e.g., for "Everyone" (optional).
Tip 5: Adapting the DCOM configuration, when the INTERBUS OPC server is in a
domain and the OPC client is in a workgroup under a local account, which is not
known by the domains of the OPC server.
280
Authentication to "None"
Identity to "Anonymous"
Rights to "Everyone"
If the OPC communication link has been successfully established, the settings can
be modified step-by-step as follows:
-
Authentication to "Connect"
Identity to "Identify"
Please note that the settings made may also affect other
applications (also local).
281
282
283
Page 284
Page 286
Page 291
Page 295
Page 298
Page 300
Page 303
Page 307
284
285
ISO/OSI
model
Layer 7: Application
Layer 6: Presentation
Socket interface:
Protocols for applications such as
TFTP, SNMP, HTTP
Socket interface:
Protocols for applications such
as FTP, SNTP, Telnet
Layer 5: Session
Layer 4: Transport
TCP/IP
Layer 3: Network
IP (Internet Protocol):
Addressing, searches for and uses paths and packets
Layer 1: Physical
Ethernet
Using TCP/IP with Ethernet enables the simultaneous transport of data in both
directions (full duplex).
TCP/IP connects several subnetworks with one another easily and effectively.
TCP/IP has standardized functions and protocols, and offers virtually unlimited
possibilities in the network.
Advantages of Ethernet:
-
Has already been integrated into the office world, since the Ethernet medium
has already been established there. Has been successful as a transmission
medium.
Ethernet can use different transmission media, such as cable, radio, fiber
optics.
286
Ethernet components, which are suitable for use in the industrial sector, are
highly priced with an expensive infrastructure.
For local and worldwide Ethernet networks, the TCP/IP protocol is a de facto
standard, which is therefore supported by all operating system platforms. It
therefore has a full routing capability, i.e., remote networks can be connected with
one another via WAN (Wide Area Network).
Table 8.1 and Table 8.2 provide an overview of the technical data of the 10 Mbps
Ethernet and a comparison of Ethernet and INTERBUS in relation to the data
throughput.
Table 8.1: Technical data of 10 Mbps Ethernet
Standard
Ethernet according to IEEE 802.3
Access method
CSMA/CD (collision detection)
Maximum data length
1500 bytes
Transmission medium
Coaxial cable, twisted pair cable, fiber optic cable
Transmission speed
10 Mbps
Maximum devices
Medium dependant
Network expansion
1500 m (4921.26 ft.) for electrical cabling
4300 m (14107.61 ft.) for optical cabling
Topologies
Line, tree, star, ring, redundant ring
Table 8.2: Comparison of the INTERBUS and Ethernet[12] data throughput
INTERBUS
Ethernet
Useful data
32 x 8 = 256
32 x 8 = 256
Frame data
16+32+38 x 5 = 238
25664 x 8 x 32 x 2 = 32786
Efficiency
256/(256+238) = 52%
256/(256+32768) = 0.77%
Data throughput/
260 kbps at 500 kbps
77 kbps at 10 Mbps
baud rate
1040 kbps at 2 Mbps
770 kbps at 100 Mbps
7700 kbps at 1000 Mbps
287
Surge voltage protection and electrical isolation must protect the user when the
transmission media come into contact with power cables.
Distributed control systems must be protected against downtimes by an
effective redundancy concept.
In potentially explosive areas, the installation should be adapted accordingly.
The extreme and harsh industrial conditions should also be taken into account
when using Ethernet components. Connectors, cables, connections, etc. are
subjected to increased strain and wear which is caused by mechanical and
chemical influences.
When planning Ethernet configurations via TCP/IP for an I/O system in
automation, the realtime capability of the I/O data should be taken into
account. A rule of thumb would be, that I/O systems, which require an
update or cycle time of < 50 ms, ARE NOT suitable for Ethernet with
TCP/IP.
Not all RJ-45 connectors are suitable for use in harsh industrial
environments. Select the appropriate RJ-45 connector for the desired
environment carefully.
The use of twisted pair cables in industrial working environments is, like with the
RJ-45 connector, to be selected depending on the strain and possible
interferences. Shielded cables (STP, Shielded Twisted Pair) which are close to
sources of interference such as spot welding controllers, motor starters, contactors,
drives, induction welding systems, devices with high-frequency radiation,
electrostatic system parts, and high-current devices are compulsory.
288
IBS 24 RFC/486DX/ETH-T
FL Hub Agent
FL IL 24 BK
FL IL 24 BK-B
FL IBS SC/I-T
FL MC 10Base-T/FO POF
Application
SNMPCompatible
Only Ethernet
Components
INTERBUS
Master With
Ethernet
Connection
Components
Table 8.3: Components suitable for Ethernet from Phoenix Contact (as at March 2002)
289
Using its own automatically created Factory Manager files (*.ncf), the Factory
Manager can create a database that other software tools can use. This provides
additional stand-alone software tools such as the "FL IO configurator" and "SNMPOPC configurator", which can import and use these Factory Manager files (*.ncf).
290
Figure 8.4 shows the different ways the Factory Manager can access an OPC
client. This makes communication via a configuration file (*.clr) and an SNMP-OPC
gateway possible.
*.ncf
Factory
Manager
INTERBUS
*.clr OPC server
*.icf
FL IO
browser
FL OPC
configurator
OPC
OPC
*.ncf
SNMP OPC
gateway
OPC client
291
Table 8.4 lists the network classes A to E with all possible IP address areas and
the number of networks and hosts.
292
Number of Hosts
16777214
65534
254
-
293
whether there is a device on the hardware level, then it responds using the echo
reply, also referred to as "Pong". If the echo request is not successful, you will
receive one of the following ICMP messages listed in Table 8.5.
Table 8.5: ICMP messages
Type Message
0
Echo Reply
3
Destination
Unreachable
4
Source Quench
5
Redirect
8
Echo Request
11
Time exceeded
12
Parameter Problem
13
Timestamp
14
Timestamp Reply
15
Information Request
16
Information Reply
Description
Replies to a ping
Destination PC cannot be
reached
Data packet too big
Bad router
Ping is sent
TTL (time-to-live) has expired
Incorrect parameter in header
Request for timestamp
Reply with timestamp
Request for network number
Reply with network number
In Figure 8.6, the echo request with a 32-byte data packet has successfully
reached destination 127.0.0.1, in other words the PC has been answered in less
than 10 ms.
Figure 8.7: Ethernet devices, whose specified IP address does not exist
294
Figure 8.7 shows a negative ICMP reply type 3 (see Table 8.5), for when the
Ethernet device with the specified IP address does not exist or if it does not
correspond to the specified subnet mask.
If the echo reply returned is negative, then this may be due to: If there is a
"Timeout" or if "Request time has been exceeded", the specified IP address of the
target device matches the subnet mask, but cannot be found. Possible causes are
as follows:
-
IP address of the target device does not match the subnet mask or the IP
address of the PC.
Set subnet mask or IP address within the limits of the subnet mask.
Your PC "pings" itself but the LINK LED of the Ethernet adapter does not light
up.
Ethernet cable has not been configured correctly. The cable may not fit, as
the wires of the cable are not properly connected.
Under Windows 95/98, in the Device Manager (under Start | Settings | Control
Panel | System | Network Cards | Properties), the device is not ready to operate.
Under Windows NT/2000/XP, check the ready status under Start | Programs |
Administration | Event Display. Where the network drive fails to start, a red entry
with explanations is given.
Unable to start the driver. Check driver settings and hardware.
The target device can be "pinged" using the IP address, but not using a name.
The DNS server entry probably does not match, and the name is therefore
not resolved in the corresponding IP address.
If the reply from the echo request is still negative, the "netstat -rn" command should
be used to check the TCP/IP connections when the echo request is being
executed. The connection list, or routing table, shows the connections row by row.
Before an echo request is sent, this table is scanned. The "route add address"
command is used to add new IP address connections.
295
in the application
Coaxial cables in particular are very likely to produce errors and are responsible for
a large number of network errors in the lower Layers 1 and 2. The use of twisted
pair cables laid in star formation and RJ-45 connectors has considerably reduced
the error frequency. Should an error however occur, it only affects one network
component and not the whole branch, as is the case with coaxial cabling. By using
twisted pair cables, Ethernet errors are less likely to occur in Layers above 1 and 2,
but are usually found in Layers 3 to 7, and are therefore harder to find.
The Ethernet error hit list [10] states which error sources occur frequently in the
network:
-
296
Which users are affected by the error and who detected the error
Whether the application or device has ever run smoothly and without errors
Whether any attempts have been made to locate the error, and if so what has
been done
297
No
Yes
Establish network
connection
No
Proceed with
troubleshooting
No
No problems
Yes
Yes
Internal computer
problems (memory)
Software error
Step 2: The second step involves using analyzer software, e.g., Ipswitch What's up
Gold 6.0, to set filters to broadcasts and multicasts, and to run for at least 60+1
seconds. All active components such as the router, spanning trees, etc, emit a
signal once every minute, thus allowing them to be detected. The analyzer
software is also used to detect collisions, faulty data packets, CRC (FCS) errors,
and other interference signals such as spikes as part of the error statistics.
298
Step 3: In order to track down the Ethernet error, it is often useful to apply the logic
method when isolating the error. To do so, it is necessary to observe several
Ethernet components at the same time and to record the data flow (frames, bytes,
errors) in both directions. It then becomes evident how many frames produce a
specific number of errors during transmission between two Ethernet components
and how many data bytes are involved. It is extremely helpful to use more than one
measuring device/software package for distributed troubleshooting. The "Ethernet
and INTERBUS" workshop explains the practical methods.
Figure 8.9 shows how measuring devices are assigned to the different layers in
the ISO/OSI model.
ISO/OSI
model
Layer 7
Layer 6
Layer 5
Layer 4
Protocol analyzer
(e.g., Ipswitch what's up Gold 6.0,
FLUKE protocol analyzer)
Layer 3
Layer 2
Layer 1
LAN analyzer
(e.g., FLUKE LAN meter)
Cable tester/optical measuring devices
(e.g., FLUKE DSP 4100)
Figure 8.9: Which measuring device should be used for which ISO/OSI layer?
Sporadic errors only occur temporarily and are difficult to locate. Such
errors are usually dependent on the network load, interference signals,
voltage fluctuations, temperature, compatibility, assembly of cables
and connectors of components.
299
300
-d <ip address>
-s <ip address>
finger
-1 <ip address>
hostname
ipconfig
/all
/renew
/release
net
config
diag
diag /status
time
ver
view
netstat
-a
-e
-n
-s
-p
-r
nslookup
<hostname>
ping
-a <ip address>
-a
-t <ip address>
-n 20 <ip address>
-l package length <ip addr.>
-f <ip address>
-t 128 <ip address>
-v ToS <ip address>
-s amount <ip address>
-r amount <ip address>
-j hostlist <ip address>
-k hostlist <ip address>
-w time value <ip address>
-liste
301
route
without parameters
-f
-print
-add
-delete
-change
tcpdump
-d
-h
-j
-w
302
As the term Simple from SNMP implies, the SNMP manager can easily access the
values of SNMP objects by using simple commands ("get" used for reading, "set"
used for writing). To protect Ethernet components from unauthorized access, a
password or community-string also has to be transmitted to the get and set
commands. There are two community strings: "read only", which only permits read
access and "read/write", which also enables you to configure SNMP objects. New
Ethernet components use the default communities "read-only: public" and
"read/write: private", which should however be changed immediately by the
administrator.
There are currently three versions of the SNMP protocol: SNMPv1, SNMPv2, and
SNMPv3. SNMPv1 is the original SNMP protocol, which offers poor control of
SNMP access. The community string is therefore added to the get and set
commands without any encoding in plain text. This means that the community
string can then be easily read using a protocol analyzer.
SNMP protocols SNMPv2 and SNMPv3 are used to transmit security-related data
using an encoding method. The latest SNMP protocols are not used extensively yet
in industrial and administrative environments. Another disadvantage is the
increased work and management time required during installation in comparison to
the SNMPv1 protocol.
FL IL 24 BK
FL Hub Agent
FL Switch
303
RMON is structured into groups and provides the above mentioned statistical
information. RMON II provides historical statistics and represents them on a graph.
Since the information in the database is stored for a long period of time, the
behavior of Ethernet can be compiled over days, weeks, and months. Errors such
as duplicated network addresses or overloaded network segments can therefore
be easily identified.
RMON in both groups is supported for all Factory Line switches FX/TX as of
firmware Version 3.0 or later and is very useful for preliminary checks in the event
of Ethernet errors. For more complex errors, RMON tends to be less reliable. The
time lost due to individual requests for information does not benefit RMON as a
troubleshooting tool. On the other hand, for random checks and continuous
monitoring purposes, RMON is the perfect tool to be using.
304
30
10Base-T
UTP
100 Mbps
3 - 7 Mbytes/s
10 Mbps
700 kbytes/s
10Base-T
STP
10Base-F
10Base2
10Base5
Null modem
0.5, minimum
30
D-SUB-T
2.5, minimum
100 20
9-pos.
D-SUB
RJ-45
9-pos.
D-SUB
RJ-45
100
Various
cables
RG 58/U
RG 58C/U
RG 58A/U
RG 62
RG 8A/U
UTP3 and >
no shield
100
Fiber
2000
Fiber optic
185
Various
(D-SUB)
Various
(D-SUB)
BNC-T
500
100
10 Mbps
700 kbytes/s
100
10 Mbps
2000
Cable Type
(e.g., UTP 5 = Cat.5)
30
Distance Between
Two Stations (m)
Minimum Bending
Radius (cm)
Connector
Maximum Segment
Length (m)
Data Line
115 kbps
10 kbytes/s
14 kbps
90 kbytes/s
10 Mbps
700 kbytes/s
Maximum Number of
Stations
Serial
cable
Parallel cable
Maximum Transmission
Theoretical/
Practical
Type
100 Mbps
3 - 7 Mbytes/s
100
100Base FX
UTP
100 Mbps
3 - 7 Mbytes/s
400
1000Base-T
UTP
1000 Mbps
25 100
1000Base-LX
1000 Mbps
3000/
single
550/
multi
optic
connector
9-pos.
D-SUB
RJ-45
9-pos.
D-SUB
RJ-45
400 without
repeater;
305 m, 1 rep.
210 m, 2 rep.
25 - 100
9-pos.
D-SUB
RJ-45
Fiber
optic
connector
3000/550
Fiber optic
1300 nm
Cable Type
(e.g., UTP 5 = Cat.5)
100
Distance Between
Two Stations (m)
Minimum Bending
Radius (cm)
100Base-TX
UTP
Maximum Number of
Stations
700 kbytes/s
Connector
Maximum Segment
Length (m)
305
Data Line
Type
Maximum Transmission
Theoretical/
Practical
Table 8.9 shows the relationship between the category classification and the link
classes according to EN 50173. The link classes (A to F) are the transmission
speeds (bandwidth), Cat.X indicates the physical properties (requirements of
cables, sockets, and connectors). The Cat.7 or Class F cable is considered to be
the "fastest" twister pair cable available on the market today.
Cat.1 cabling can be used for alarms, analog speech transmission, Cat.2 cabling
for speech, RS-232 interface, Cat.3 cabling for data transmission up to 16 MHz,
Cat.4 cabling for data transmission up to 20 MHz, and Cat.5 cabling for data
transmission up to 100 MHz. UTP cables (unshielded twisted pair) really belong to
Cat.3 as they have no use in the industrial environment. Today, S/FTP cables
(screened/foil shielded twisted pair) are state-of-the-art cables for installing UTP
sockets. ITP (industrial twisted pair) is the industrial version of S/STP
(screened/shield twisted pair), which is limited to two wire pairs.
Details of the assignment of wire pairs for twisted pair cables and other
important wires can be found on the accompanying CD-ROM.
Application
ISDN based
ISDN multiplex
10Base-T, token ring
100 Mbps Ethernet, CDDI
155 Mbps ATM
Gigabit Ethernet
Cat. 3
2 km (124 mi.)
500m (1640.42ft.)
100m (328.08ft.)
-
Cat. 4
3 km (1.86 mi.)
600 m (1968.50 ft.)
150 m (492.13 ft.)
-
Cat. 5
3 km (1.86 mi.)
700 m (2296.59 ft.)
160 m (524.93 ft.)
90m (295.28ft.)
-
306
Remote maintenance
Remote diagnostics
Service
Router with
ISDN connection
FL switch
Firewall
Visualization computer
(e.g., OPC client)
INTERBUS
controller boards with
Ethernet connection
Planning and management computer
INTERBUS
INTERBUS components
No realtime requirements
307
FL switch
Visualization computer
INTERBUS
master with
Ethernet connection
Company
network
Programming computer
Ethernet
INTERBUS
gateway
Ethernet
INTERBUS
gateway
INTERBUS
INTERBUS
INTERBUS components
FL switch
FL SNMP OPC
gateway
INTERBUS
Ethernet interruption
Sends an
SNMP trap
Genesis 32
visualization
Sends an
OPC event
Sends a text
message
INTERBUS station
Figure 8.12: Ethernet configuration with SNMP traps and SMS messages
Figure 8.12 shows the practical use of SNMP-compatible Ethernet components in
association with the FL SNMP-OPC gateway and Genesis 32 from Iconics Inc. In
308
the event of an Ethernet error, a text message (SMS) is sent to the administrator's
cell phone.
Failure
With FL switch 3, the redundancy
manager is switched to active
The redundancy line (broken line) is only
active if a standard connection fails
FL switch 1
FL switch 2
INTERBUS
system 1
FL switch 3
INTERBUS
system 2
INTERBUS
system 3
309
Frames
AB
7226
754
349607
1049
390
Frames
BA
19234
2539
776332
1544
690
Bytes
AB
582362
60526
178366013
4822
39002
Bytes
BA
7022173
341559
970363645
49672
63948
Errors
AB
326
45
17628
56
92
Errors
BA
0
0
0
0
0
1.2) The second system, same as the first system (task 1.1), reports complaints
about faulty data throughputs between two Ethernet devices, which then creates
Table 8.12.
Table 8.12: Task 1.2
Station Station
A
B
NIC 1
Switch 1
NIC 1
Router 1
NIC 1
NIC 4
NIC 2
NIC 4
NIC 3
NIC 4
Frames
AB
7226
754
349607
1049
390
Frames
BA
19234
2539
776332
1544
690
Bytes
AB
582362
60526
178366013
4822
39002
Bytes
BA
7022173
341559
970363645
49672
63948
Errors
AB
0
0
17628
56
92
Errors
BA
0
0
12563
34
234
1.3) Once the Ethernet cable has been repaired in the second system (task 1.2),
reports continue to be sent about transmission problems. A second measurement
produces Table 8.13.
Table 8.13: Task 1.3
Station Station
A
B
NIC 1
Switch 1
NIC 1
Router 1
NIC 1
NIC 4
NIC 2
NIC 4
NIC 3
NIC 4
Frames
AB
9726
1554
349607
78049
43390
Frames
BA
21934
12339
776332
10544
65690
Bytes
AB
158362
16026
178366013
1141822
2139002
Bytes
BA
1702173
134159
970363645
1112672
6543948
Errors
AB
0
0
17628
3456
592
Errors
BA
0
0
12563
2134
1234
310
Station
A
NIC 1
NIC 1
NIC 1
NIC 1
NIC 2
Station
B
Switch 1
Router 1
NIC 3
Broadcasts
NIC 3
Frames
AB
7226
754
0
1049
390
Frames
BA
19234
2539
0
0
690
Bytes
AB
582362
60526
0
4822
39002
Bytes
BA
7022173
341559
0
0
63948
Errors
AB
0
0
0
0
0
Errors
BA
0
0
0
0
0
311
not the case, then it is extremely likely that data packets are being lost. The loss of
packets can be detected through repeated packets (retransmissions). Using a
protocol analyzer (e.g., LANDecoder32) you can analyze the TCP data flow to the
TCP sequence number. If a smaller TCP sequence number packet is sent again,
even though a higher TCP sequence number packet has already been sent, then
the return to a previous point of the data flow either means that the data has not
been received by the receiver or that it has not been acknowledged by the
receiver.
Tip 6: Faulty Ethernet data communication even though the ping request has had
a positive reply
Even though the device being "pinged" with a ping request is replying successfully,
it may consider the data packets to be too big because of a fragmentation setting,
e.g., for routers. The Whats Up Gold software package from Ipswitch can be used
to easily locate such errors.
Tip 7: Change SNMP community strings (password) as soon as possible
The SNMP community strings: "public" read and "private" read/write, which are
provided by the manufacturer, must be replaced by customized passwords.
"Hackers" are familiar with these passwords and can easily gain access and cause
extensive damage.
The answers to the questions for the "Ethernet" Section can be found
on the accompanying CD-ROM.
312
Appendix
A Appendix
A.1 Error Codes
Error Message
ERR_OK
ERR_INVLD_NODE_HD
ERR_INVLD_NODE_STATE
0087
0088
0089
008A
008C
ERR_NODE_NOT_READY
ERR_WRONG_DEV_TYP
ERR_DEV_NOT_READY
ERR_INVLD_PERM
ERR_INVLD_CMD
008D
0090
0091
0092
0096
0097
009A
ERR_INVLD_PARAM
ERR_NODE_NOT_PRES
ERR_INVLD_DEV_NAME
ERR_NO_MORE_HNDL
ERR_AREA_EXCDED
ERR_INVLD_DATA_CONS
ERR_MSG_TO_LONG
009B
009C
009D
009E
009F
00EB
0100
ERR_NO_MSG
ERR_NO_MORE_MAILBOX
ERR_SVR_IN_USE
ERR_SVR_TIMEOUT
ERR_AVR_TIMEOUT
ERR_DTI_IN_USE
ERR_STATE_CONFLICT
0101
0102
ERR_INVLD_CONN_TYPE
ERR_ACTIVATE_PD_CHK
0103
0200
0201
1001
ERR_DATA_SIZE
ERR_OPT_INVLD_CMD
ERR_OPT_INVLD_PARAM
ERR_ETH_RCV_TIMEOUT
1010
1013
1014
1016
ERR_IBSETH_OPEN
ERR_IBSETH_READ
ERR_IBSETH_NAME
ERR_IBSETH_INTERNET
Cause
The function was executed successfully
Invalid node handle specified
Node handle of a data channel that is already
closed specified
Desired node not ready
Incorrect node handle
INTERBUS master not ready yet
Access type not enabled for channel
Utility function is not supported by driver
Version 0.9
Command contains invalid parameter
Node not present
Unknown device name used
Device driver resources used up
Access exceeds limit of selected data area
Specified data consistency is not permitted
Message or command contains too many
parameters
No message present
No further mailboxes of the required size free
Send vector register in use
Invalid node called
Invalid node called
Access to coupling memory not possible
This service is not permitted in the selected
operating mode of the controller
Service called via an invalid connection
Process IN data monitoring could not be
activated
The data volume is too large
Unknown command
Invalid parameter
Time limit exceeded when receiving the data
telegram
The IBSETHA file cannot be opened
The IBSETHA file cannot be read
The device name cannot be found in the file
The system cannot read the computer
name/host address
Appendix
313
Error Message
ERR_SEV_ERR
ERR_SEV_WARN
ERR_SEV_INFO
ERR_FAC_INIFILE
ERR_ETH
ERR_BASE_API
ERR_INVALID_ITEM_INDEX
E000 0011
E000 0020
E000 0021
E000 0022
ERR_NO_IB_CONNECTED
ERR_NEG_CNF
ERR_TIMEOUT
ERR_ALLOC_MEM
E000 0030
E000 0031
ERR_NO_SYS_ITEM
ERR_WRONG_DIRECTION
E000 0032
E000 0033
E000 0034
ERR_ITEM_NOT_FOUND
ERR_INVALID_RANGES
ERR_NO_MPM_AREA_DEFINED
E000 0040
E000 0041
ERR_OPEN_FILE
ERR_NO_CONTROLLER_SECTION
E000 0042
E000 0043
E000 0044
ERR_INVALID_CONTROLLER_NO
ERR_EMPTY_MXI_STRING
ERR_SVC_SYNTAX
E000 0045
ERR_SVC_SERVICE_FAILED
E000 0046
ERR_NO_HOST_ADAPTION
E000 0050
ERR_XDTA_UNDEFINED
E000 0051
ERR_DATAAREA_TOO_LONG
0000 0001
ERR_NO_MORE_CTRL
0000 0002
ERR_INVALID_
0000 0003
0000 0004
0000 0005
E000 0052
E000 0053
ERR_READ_INI_FILE
ERR_OPEN_INI_FILE
ERR_NO_CFG_UTIL_PTR
ERR_MXI_HD_UNDEFINED
ERR_DTI_HD_UNDEFINED
Cause
Error base for DDI and API errors
The OCS toolkit requested the
parameters of an invalid item
INTERBUS not connected, no items
Negative confirmation received
Timeout elapsed
Memory allocation failed,
all items may not be available
The specified item is not a system item
The read or write operation, respectively
is not permitted for this item (-> access
rights)
The requested item could not be found
The address is out of range
The MPM start address is greater than
the end address, read/write action not
performed
Server cannot open file
The server cannot read the cfg file
correctly, check syntax, especially the
sections [BEGIN_CONTROLLER_
SECTION], etc.
The controller number is out of range
MXI string not found
Syntax error in svc file, execution
aborted
Service
returned
with
negative
confirmation, timeout or SendMsg
request failed
The controller type name is not
recognized by the server
The controller does not know whether
ISA or ETH is the target (for XDTA
access)
The requested data array is too long, INI
file errors
No more controller sections found in the
ini file
One or more entries in the current
controller section are invalid
A line cannot be read correctly
File cannot be opened
314
Appendix
OCI Errors
E000 0060
E000 0061
ERR_OCI_NOT_INIT
ERR_INIT_FAILED
E000 0062
E000 0063
E000 0064
E000 0065
E000 0066
ERR_EXEC_FAILED
ERR_UNKNOWN_DATATYPE
ERR_PLC_STOP
ERR_RESOURCE_STATE_INIT
ERR_CONVERT_VALUE
E000 0067
E000 0068
E0000069
E000 006A
E000 006B
ERR_OCI_WRITE
ERR_OCI_READ
ERR_DOWNLOAD
ERR_OCI_TIMEOUT
ERR_CONTROLLER_RESET
0000 0001
0000 0002
0000 0003
0000 0004
ERR_NO_SOCKET
ERR_NON_BLOCKING
ERR_SEND_DATAGRAM
ERR_ECHO_RECEIVE_TIMEOUT
Physical
DataLink
Network
Transport
Session
Presentation
ISO/OSI Layer
7
Application
Domain
File
Electronic Terminal
Usenet
Diagnostic
name
transfer
mail
emulation
news
applications
service
Domain SimpleNetwork
Simple
Usenet
File
Management
Mail
Telnet
News
Name
Transfer
Service
Protocol
Transfer
Protocol
Transfer
Protocol
Pro tocol
(Telnet)
Protocol
(DNS)
(SNMP)
(FTP)
(UNTP)
RFC
RFC1098,
(SMTP)
RFC854
RFC959
RFC977
1034
1157,1212
RFC821
Transmission ControlProtocol
User Datagram Protocol
(TCP)RFC793
(UDP) RFC768
Internet
Address
Control
Resolution
Message
Internet Protocol
Protocol
(IP) RFC791
Protocol
(ARP) RFC903
(ICMP)
RFC792
Token
Ethernet
DQDB
FDDI
ATM
Ring
Twisted
FO
Coaxialcable
Radio
Laser
Pair
Protocols
Network access
Local
network
Internet
Host-to-host
communication
Application
Type of
communication
DOD Layer
Appendix
315
316
Appendix
WORD address
DWORD address
7
6
5
4
3
2
1
0
3
2
1
0
Appendix
317
A.6 Glossary
This is the ABC guide to INTERBUS [24] and Ethernet networks [23].
1, 2, 3, and 4-wire termination
1, 2, 3, and 4-wire terminations are connection methods for analog IN and OUT
signals of sensors and actuators. Ensure the correct wire termination is used.
100Base-T4
10 Mbps (4 twisted pairs)
The 100Base-T specification has a physical star structure with a hub as the center
point. A Category 3 cable with an impedance of 100 , RJ-45 connectors, and a
maximum length of 100 m (328.08 ft.) is used. The aim is to achieve 10 times the
transmission speed of
100 Mbps, while at the same time maintaining the Category 3 bandwidth of 25 MHz
by using all four wire pairs. In 100Base-T4, three pairs are always used
simultaneously for each data direction.
100Base-TX
100 Mbps (2 twisted pairs)
100Base-TX uses a Category 5 cable with two wire pairs for 100 Mbps
transmission. Cables, RJ-45 wall boxes, patch panels, etc. must be designed
according to this category for a minimum transmission frequency of 100 MHz.
10Base2
10 Mbps (coaxial cable)
Ethernet transmission paths with a transmission rate of 10 Mbps based on coaxial
cables. 10Base2 is also referred to as Cheapernet or Thin Ethernet. The thin and
flexible 10Base2 coaxial cables have an impedance of 50 . The start and end of a
segment (185 m [606.96 ft.], maximum) must be terminated with 50 terminal
resistors. The attenuation of the coaxial cable and the possible number of connectors
(BNC T pieces) limit a 10Base2 segment to 185 m (606.96 ft.) maximum, with a
maximum of 30 connections. A maximum of four repeaters is permitted between two
stations.
The disadvantage of 10Base2 results if the cable is broken, e.g., by removing a
connector, as this causes a downtime of the entire network segment.
10Base5
10 Mbps (coaxial cable)
10Base5 is based on a coaxial bus cable with an impedance of 50 and a
maximum permissible length of 500 m (1640.42 ft.) (yellow cable). Vampir-Krallen
are used to tap the signals directly from the bus cable, without it being interrupted
by a connector or similar. The send, receive, and collision information is received
separately by a transceiver and is made available at a 15-pos. D-SUB connector.
The termination device is connected to this transceiver via an 8-wire TP cable
(50 m [164.04 ft.], maximum). A maximum of four repeaters is permitted between
any two stations and when implementing networks with a tree structure any
number of repeaters can be used. The advantages of 10Base5 are the long
318
Appendix
segment lengths and the high number of possible connections per segment
(maximum of 100). The disadvantages include the use of external transceivers and
the inflexible yellow cable.
10Base-T
10 Mbps (twisted pair)
The 10Base-T cable is designed in a star formation and starts at a hub or switch, the
central components within the network. The cable (Category 3) has at least two
twisted pair wires with an impedance of 100 , whereby the data is transmitted
separately in the transmit and receive direction. 8-pos. RJ-45 connectors are used
with the pairs connected to pins 1/2 and 3/6. The maximum length of a segment
(connection from hub to termination device) is 100 m (328.08 ft.). Cable breaks or
removed connectors, which result in the downtime of the entire segment in all
physical bus architectures, are limited in 10Base-T to just the connection between
the hub and termination device.
7-segment display
The 7-segment display is an indication element and is used for diagnostic purposes.
The
7-segment display is used, for example, on the IBS DCB/I-T controller board.
ActiveX
A software interface technology based on OLE developed by Microsoft. The
disadvantage is that it can only be run on Windows platforms and only enables
access up to the operating system level. ActiveX components from Phoenix
Contact include, for example, DIAG+, which can be integrated into an existing
visualization as ActiveX.
Addressing
In INTERBUS addressing, a distinction is made between physical (automatic) and
logical (user-defined) addressing. Physical addressing is the assignment of
process data to addresses, according to the physical location of the devices in the
INTERBUS system. Logical addressing is the assignment of process data to
memory areas within the INTERBUS controller board by the programmer.
Administrator
The administrator is the system manager or service engineer with unrestricted
access rights in the network/PC. He/she is responsible for network management
and upkeep.
API (Application Program Interface)
API is an interface for programs or applications. It is specific to the programming
language and operating system.
Application program
The application program or application, has been programmed for users and is
used to exchange IN and OUT process data with the controller board via specified
interfaces.
Appendix
319
320
Appendix
Branch
The INTERBUS branch is a subring system that branches off from the remote bus.
A branch is connected using a bus terminal module. The bus terminal module
provides the means for disconnecting the branch.
Broadcast
A broadcast is sent to all (Ethernet) devices. A typical broadcast application is the
ARP request. Other protocols, such as RIP, use broadcast messages. Broadcast
messages are not sent via routers or jumpers.
Bus error
The INTERBUS bus error is a message from the controller board reporting that
INTERBUS has been stopped, because a data cycle could not run without any
errors.
Bus quality
The INTERBUS bus quality is indicated by the bus quality bit in the diagnostic
status register and describes the ratio of error-free and faulty INTERBUS data
cycles.
Bus segment
An INTERBUS bus segment consists of a remote bus device and connected local
bus devices. The incoming INTERBUS remote bus cable is also part of a segment.
Bus segment number
The INTERBUS segment number is assigned during logical addressing and
describes the address position of the segment within the summation frame
protocol.
Bus system
In the bus system, several termination devices share one data line (bus line).
Access methods are used to control the access rights.
Bus terminal module
An INTERBUS bus terminal module is a device, which is connected to the remote
bus and provides a branch to a remote bus or local bus. The bus terminal module
regenerates the data signals using a repeater and isolates the potential of the bus
segments.
Bus timeout
The bus timeout is a time that can be set in the INTERBUS system. If a data cycle
cannot run without any errors within the bus timeout, INTERBUS is stopped.
Bus topology
The bus topology describes the structure of a bus system. The INTERBUS
topology is a ring structure.
Bus warning time
Like the bus timeout, the INTERBUS warning time is a time that can be set in the
Appendix
321
system. If error-free data transmission cannot be ensured within the bus warning
time, the warning bit is set in the diagnostic status register on the controller board.
Byte
The byte is a digital unit, which consists of 8 bits. In total, 256 different states can
be represented in one byte.
Cheapernet
Another name for Ethernet based on 10Base2.
Client
The client is an application, which establishes a connection to a server, to use the
services that are available there. A client is, e.g., the web browser, which connects
to a web server. All services such as mail, FTP, Telnet, OPC, etc. work according
to the client/server principle. The client is the "requester" and the server the
"provider".
Client/server structure
A client/server structure describes a system with "decentral intelligence", whereby
the client requests services or data from the server and the server provides them.
Coincidence factor
The definition of the coincidence factor for an output module is the ratio of the
permissible total current (total output current) to the sum of all maximum rated
currents of a multi-channel output module, which operates in the most unfavorable
combination of permitted operating conditions.
Com server
Com servers are termination devices in TCP/IP Ethernet networks, which provide
interfaces for serial devices and digital I/O points via the network. Com servers can
be used as both servers and clients.
Communication reference (CR)
In the INTERBUS system, the CR or communication reference is used during PCP
communication. The communication reference is a unique number, which is
assigned to each PCP device. It is used during communication between the
INTERBUS controller board and the PCP device. In total, there are 64 possible
communication references, whereby communication reference 1 is assigned to the
controller board itself.
Communication register
The INTERBUS communication register is an input and output address area where
the control system is mapped. It is an interface for driver blocks and management
services, which is used to transmit process data. The communication register is a
two-word address area within the INTERBUS control system.
Communication relationship list (CRL)
The communication relationship list contains all the connection parameters
322
Appendix
Appendix
323
interruption. In the INTERBUS system, data consistency can be set using firmware
commands.
Data transmission integrity
Data transmission integrity ensures the integrity of the INTERBUS system through
use of the loop-back word and the CR check.
DDE (Dynamic Data Exchange)
A DDE is a relatively old system for exchanging data between two Windows
programs. There is a DDE server, e.g., from Wonderware, which is used to access
INTERBUS input and output data. DDE is no longer considered modern and
communication exchange is too slow. DDE was replaced by interfaces such as
OPC or CALL interfaces. DDE was used until about 1997.
Determinism
Determinism is the behavior of INTERBUS in relation to INTERBUS cycles, which
are predictable in terms of time. The length of each INTERBUS cycle is consistent
and can be calculated.
Device code
The INTERBUS device code is a data word consisting of a length code and ID
code and indicates the properties of the INTERBUS device.
Device name
Name of the INTERBUS device to which a data channel is to be opened. The
name defines the INTERBUS controller board (board numbers 1 to 8) and the
MPM accessor (host or INTERBUS master).
DHCP (Dynamic Host Configuration Protocol)
The DHCP is the dynamic, time-limited assignment of IP addresses from an
address pool. It is used to automatically configure PCs centrally and therefore
uniformly in a TCP/IP network, i.e., without manual access. The system
administrator specifies how IP addresses are to be assigned and how long they are
assigned. The result of this method is that each network device receives another IP
address upon every new connection.
Diagnostic parameter register
The diagnostic parameter register contains information about an INTERBUS fault
or an INTERBUS error. The corresponding error location or error code is given in
the diagnostic parameter register.
Diagnostic register
The diagnostic register consists of the diagnostic status register and the diagnostic
parameter register. Both 16-bit words contain information about the INTERBUS
state.
Diagnostic status register
The diagnostic status register contains general information about the state, the
diagnostic parameter register, the error location or error source in the event of an
error.
324
Appendix
Appendix
325
Fieldbus
The fieldbus is a digital communication network used to connect process devices
and control systems.
Firewall
A firewall is an Ethernet network component, which couples an internal network
(e.g., the Intranet) to a public network (e.g., the Internet). Access to the other
network can be limited or completely blocked depending on the access rights, the
service used, and the authentication and identification of the network device.
Another feature is that the data can be encoded, if, for example, the public network
is only used as a transition between two physically separated parts of an Intranet.
Firmware
Firmware is software that is run on INTERBUS controller boards in which hardware
functions are defined.
Frame switching
Frame switching involves store and forward, multi-addressing, address evaluation,
prioritization, and tagging. The Factory Line switch operates in this mode and
saves, learns, and evaluates source and target addresses to achieve an effective
network capacity.
FTP (File Transfer Protocol)
FTP (RFC 959) is a TCP/IP protocol, which transmits files between two network
devices. The FTP operates according to the client/server principle. The FTP
command <IP address of the FTP server> establishes a connection to the FTP
server, the user name and password are then requested. If the connection is
established, the FTP server can be accessed by entering additional commands
and parameters.
Function block
The function block in an application program, such as Step 5 or 7 and PC WORX,
is always used to process constantly recurring functions. Parameters are
transferred and often instantiated in these function blocks.
Function parameter register
The INTERBUS function parameter register is a register that transfers parameters
to the functions.
Function start register
The INTERBUS function start register is a register via which the functions defined
by the user can be started.
Function status register
The INTERBUS function status register is a register that displays the status of
executed functions.
Gateway
Gateways connect various networks with one another and are used to translate
326
Appendix
Appendix
327
Hub
A hub (star coupler) enables several network devices to be actively connected with
one another in a star formation. Data packets that are received at one port are
output at all the other ports at the same time.
Hybrid transmission method
The hybrid transmission method enables process data and parameter data to be
transmitted simultaneously.
I/O voltage
The INTERBUS I/O voltage is supplied directly and separately from the
communications power in the INTERBUS module and is used to supply the I/O
devices.
ICMP (Internet Control Message Protocol)
The ICMP (RFC-792) is used to transmit status information and error messages
between
IP network nodes. ICMP makes it possible to request an echo (ping). In this way, it
is possible to determine whether a destination can be reached.
ID code
Each INTERBUS device has an ID code. This identifies each INTERBUS device by
its type, whether it be, for example, an analog or digital local bus module, a remote
bus device, or even a PCP device.
ID cycle
The connected INTERBUS configuration is transmitted to the controller board using
the ID cycle. For example, the ID code and the process data length are transmitted
to the controller board.
IEC 61131
IEC 61131 is an international standard, which describes the structure and
programming of control systems and the communication between them in five parts
and several supplementary papers.
INA
The subindex of volatile parameters in PCP communication. Has no function.
Index
The index is an INTERBUS parameter in PCP communication and is used to
address a PCP object.
Input/output modules (I/O modules)
INTERBUS I/O modules are INTERBUS local bus devices, which can be installed
as digital or analog sensors and actuators.
328
Appendix
Appendix
329
IP address
The IP address is a 32-bit number, which uniquely identifies every network device
in the Internet or Intranet (e.g., 149.208.16.1). It consists of a network part (net ID)
and a user part (host ID).
ISDN router
ISDN routers enable two networks to be connected with each other via the ISDN
network of a telephone network provider. In addition to the normal functions of a
router,
ISDN routers also handle the ISDN connection.
Jumper
Jumpers connect Ethernet subnetworks with one another and use the Ethernet
address to determine which packets the jumper will or will not allow. The
information required for this is taken from tables, which must be specified by the
administrator according to the model or dynamically created by the jumper itself. A
jumper does not differ from a switch in this respect.
LAN (Local Area Network)
A LAN is a local network within a restricted area, which uses a transmission
medium.
LBST
The LBST is a jumper in the connector for the outgoing interface, which indicates
that another local bus device follows.
Length code
The INTERBUS length code indicates the number and representation format of the
process data of INTERBUS devices.
Local bus (LB)
The INTERBUS local bus connects local bus devices to a remote bus terminal
module. The local bus is available in several versions, e.g., the ST local bus,
installation local bus,
Inline local bus, fiber optic local bus or local bus formerly known as peripheral bus.
The communications power is carried from the bus terminal module to the local bus
devices via the local bus.
MAC ID (Media Access Control)
The MAC ID is the fixed, physical address of a network component.
Master/slave procedure
The master/slave procedure is the access method for INTERBUS data exchange.
The INTERBUS controller board operates according to the master/slave principle
and defines the hierarchy in INTERBUS, i.e., each transmission is initiated by the
master. Each communication from the INTERBUS devices passes via the master.
The master defines the cycles and controls the entire data transmission in the
INTERBUS system. With the master/slave principle, data transmission conflicts do
not occur like in message-oriented transmission.
330
Appendix
Appendix
331
OPC server
The OPC server is, e.g., the link between an INTERBUS controller board and an
OPC client visualization. The INTERBUS OPC server is a non-window-based
software package, which establishes communication links between OPC clients
and INTERBUS controller boards.
Operating mode
The INTERBUS operating modes are synchronous (bus and programsynchronous), asynchronous, and asynchronous with synchronization pulse. These
operating modes define the time when the application program accesses the
INTERBUS controller board.
Outgoing interface
The outgoing INTERBUS interface (OUT 1) is the INTERBUS interface to an
outgoing remote bus device on the same INTERBUS level.
Parameter data
In INTERBUS, parameter data is transmitted via the parameter channel (PCP).
Data records are transmitted to intelligent devices, such as external frequency
inverters or controllers, which, for example, are required in the startup phase of
machines. Parameter data and process data is transmitted at the same time.
However, this is done over several INTERBUS cycles, which means they are
divided into small units. The parameter data is divided by the INTERBUS controller
board.
PCP (Peripherals Communication Protocol)
The PCP belongs to the INTERBUS protocol and controls the transmission of
parameter data. The parameter blocks are transmitted to the process data
simultaneously, but are split for a parameter window in the summation frame
protocol. The INTERBUS system transmits parameter data one INTERBUS cycle
at a time, until it has arrived at the device or controller board. A part of the
parameter record is transmitted in each INTERBUS cycle via PCP. PCP does not
adversely affect the transmission of process data.
Peripheral fault (PF)
The peripheral fault is not an error, but a message indicating that the INTERBUS
device, e.g., the I/O voltage is not present or a short circuit has occurred at its
outputs. The INTERBUS cycle is not interrupted. The INTERBUS system remains
operational.
Ping (Packet Internet Groper)
Ping is used for diagnostics in TCP/IP networks. This function is used to check
whether a specific device exists in the network and whether it can be addressed.
Ping works with the ICMP protocol, which is based on the IP protocol. If a network
device transmits an ICMP request by issuing the ping command, the addressed
station returns an ICMP reply to the sender. The PING <IP address> command
called in the DOS box requests a reply from the network device specified with the
IP address.
332
Appendix
Appendix
333
334
Appendix
Appendix
335
TCP/IP stack
The TCP/IP stack is a part of the operating system or a driver installed in the
operating system, which provides all the functions and drivers required to support
the IP protocol.
Telnet (Terminal over Network)
Telnet (RFC 854) is used, e.g., for remote access to the network on a UNIX server.
Any computer in the network can gain remote access to another computer (Telnet
server) using a Telnet application (Telnet client). Today, Telnet is also used to
configure network components such as IBS RFC IB-450. Telnet is addressed
under TCP/IP as the port no. 23. Other port numbers can be used for special
applications. Telnet uses TCP/IP as its transmission and data link protocol. In the
Windows environment, the addressing parameters for Telnet connections are
specified in the Connect system menu. In the input window, the IP address of the
Telnet server is entered under Hostname and the desired port no. under
Connection. The predefined Telnet entry is port 23.
Terminal resistor
For 10Base5 or 10Base2 (coaxial cable), each network branch must be terminated
at the start and end by a terminal resistor or terminator. The value of the terminal
resistor must correspond to the cable impedance. For 10Base5 or 10Base2 the
terminal resistor has a value of 50 .
TFTP (Trivial File Transfer Protocol)
In addition to FTP, Trivial File Transfer Protocol (RFC 783) is a protocol used to
transmit entire files. TFTP offers only minimum commands, does not support any
complex security measures, and uses UDP as the transmission protocol. As UDP
is an unprotected protocol, the minimum security measures have been
implemented in TFTP.
Topology
The topology is the way in which a network is structured, e.g., ring, tree or star
topology. The INTERBUS system has a ring topology, i.e., a ring structure, which
also acts as a tree structure, because the forward and return lines are in the same
cable.
TP (Twisted Pair)
TP is a data cable with two cable wires that are twisted together. Twisting individual
double wires in pairs greatly reduces the crosstalk ratio between the double wires
in a cable. A distinction is made between twisted pair cables that are UTP cables
(Unshielded Twisted Pair) and STP cables (Shielded Twisted Pair). TP cables are
mainly used in network technology and are categorized according to their
maximum transmission frequencies.
Transceiver
A transceiver is the combination of a transmitter and receiver and implements the
physical network access of a station to Ethernet, and is integrated in the network
card for 10Base2 and 10Base-T. For 10Base5 (AUI), the transceiver is an external
component directly connected on the network cable.
336
Appendix
Transmit buffer
The transmit buffer is used in INTERBUS PCP communication and is a memory,
which temporarily stores data that is to be transmitted sequentially.
UART
UART is a block for data that is to be transmitted asynchronously. In the transmitter
it converts the signals from parallel to serial and in the receiver it converts the
signals from serial to parallel.
UDP (User Datagram Protocol)
UDP is a protocol, which like TCP is based on IP, however in contrast it is
connectionless and does not use any security measures. The advantage of UDP
compared to TCP is the higher transmission speed.
UTP (Unshielded Twisted Pair)
Unshielded data cable with two cable wires that are twisted together.
Watchdog
The watchdog is a monitoring circuit, which can be implemented once on the
hardware or software side. Once activated, the watchdog must be addressed at
regular intervals, otherwise it generates an error message.
WLAN (Wireless Local Area Network)
Network in a restricted area, which uses a wireless transmission medium.
Appendix
337
Support Center
(INTERBUS Implementations)
Factory Line Support
Phone +49 - 52 35 - 30 0
Fax
+49 - 52 35 - 34 12 00
E-mail info@phoenixcontact.com
www.phoenixcontact.com
Phone +49 - 52 35 - 34 18 88
Fax
+49 - 52 35 - 34 14 54
E-mail interbusservice@phoenixcontact.com
Phone +49 - 52 35 - 34
Fax
+49 - 52 35 - 34
E-mail info@phoenixcontact.com
Phone +49 - 52 35 - 34 18 88
Fax
+49 - 52 35 - 34 14 54
E-mail automation@phoenixcontact.com
Phone +49 - 52 35 - 34 18 88
Fax
+49 - 52 35 - 34 14 54
E-mail interbussupport@phoenixcontact.com
www.phoenixcontact.com
www.factoryline.de
Data sheets for all Factory Line
components
Phone: +49 - 72 21 - 55 90 9
Fax:
+49 - 72 21 - 55 69 0
E-mail: info@interbusclub.com
www.interbusclub.com
E-mail: info@ida-group.org
www.ida-group.org
338
Appendix
Phone: +49 - 39 14 - 09 06 55
Fax:
+49 - 39 14 - 09 06 36
E-mail: info@iaona-eu.com
www.iaona-eu.com
Appendix
339
CMD 4.50
(demo)
DIAG+
SNMP/OPC gateway
(demo)
OPC server 2.01
(demo)
OPC clients
SNMPView
(freeware)
DHCP/BOOTP server
IB loader
MPM descriptor,
EXE, and source code
INTERBUS program
examples
340
Appendix
1.6.11(shareware)
TFTP 1.0 server
(shareware)
NETIO
MSWINERR
Appendix
section
341
Answers to questions for the "OPC Communication"
section
[18]
[19]
[20]
[21]
[22]
[23]
[24]
[25]
[26]
[27]
[28]
[29]
342
Appendix
Appendix
343
A.8 Index
@utomationXplorer 228
A
Acceptance reports 73
Access method 20
Actuators 9
Addressing
Absolute 193
Logical 109
Physical 109
Symbolic 193
Application timeout time 59
ASCII 338
AUTODEBUG 73, 149
AUTODIAG 132, 151
Automation 9
B
Bus error 121
Bus timeout 59
Bus warning time 59
C
CALL 262
Cable
Cross sections 88
Type 88
Checking IN/OUT signals 73
Checklists (troubleshooting) 175
Checksum status telegram 24
Client/server structure 262
COM/DCOM 266
Communication hierarchy model 10
Communication reference 34, 256
Communications power
Compact PCP 35
Complicated error descriptions 155
Configuration
Acceptance 73
Excel spreadsheet 73
Planning 73
Configuration frame 47, 73, 132
Control program 73, 163
Controller error 121
Coprocessor 169
Coupling areas 218
Coupling memory 48
Coupling of contaminated
CR check 24
CR line monitoring 28
CR signal 23
Crossover cable 303
Cycle time 68
D
Data cycle 23
Data integrity 24
Data Interface (DTI) 54, 178
Data transmission error (CRC) 24
DCOM platform 266
DEBUG 73, 149
Default cycle time 59
Default index 239
Determinism 20
Device Driver Development Kit (DDK)
182
Device Driver Interface (DDI) 172
Device error 121
Device error 121
Device number
Logical 109
Physical 109
DIAG40 132, 151
Diagnostic display 115
Diagnostic status register 61, 113
Diagnostic tools 151
Diagnostics and report manager 41
Differential signal 98, 20
Distributed control system 236
DPM 48
DRIVECOM 28, 67
Driver block 215
Driver error codes 311
Driver 167, 171
Dual-Port Memory (DPM) 48, 169
E
EMC measures 91
Emergency stop concept 90
Error codes 311
Error correction 19
Ethernet
Cable 73, 303
Community string 300, 309
Configurations 305
Diagnostics 291
General 283
344
-
Appendix
Installation 286
Problem prevention 303
Redundancy 307
Troubleshooting 308
F
Factory Line
General 287
I/O configurator 290
Components 287
SNMP-OPC gateway 290
Factory Manager 289
FC diagnostic status register 118
FC error 121
Fiber optics
Properties 17
Technologies 17, 73
Test report 73
Firmware
Command 28, 47, 110, 132
Differences 47
Error 178
G3/G4 firmware 46
Messages 46
Startup behavior 46
Flowcharts
INTERBUS diagnostics 164
INTERBUS startup 164
PCP structure 164
Troubleshooting 305
Frame Check Sequence (FCS) 22, 24
Full duplex 21
G
G4 error codes 311
Grounding
Star concept 98
H
Hamming distance 12, 28
Handle 178, 248
Higher-level control system 236
High-Level Language Interface (HLI) 172
HLI export filter 182
Hybrid data transmission 33
I
I/O address 73
I/O mode 218
IAONA 337
IB loader 229, 278
K
Keywords 196
L
LCD 115, 148
LED
BA 144
RC 144
ACTIVE 144
RUN 144
E 144
Length codes 28
Local bus (LB) 15
Local bus error 121
Loop-back word (LBW)
Loop-back word time monitoring 24
M
Mailbox Interface (MXI) 54, 178
Mailbox syntax 247
Management bits 28
Master protocol chip 40
Master/slave access method 20
MAU warning 43
Microprocessor interface 40, 41
Microprocessor watchdog error 41, 136
Motorola 314
MPM
Access 169
Address 56, 112
Communication options 53
Coupling 49
Descriptor 56
Device48
Interfaces 49
Memory management 50
Serial data channel 53
Static RAM 51
Status and control registers 52
Structure 49
Timeout 48
345
N
Network analysis 298
Network class 291
Network error 295
Network types of power supply
companies 96
Node 178
Node handle 178
O
On-chip diagnostics 41
OPC
Access 264
Alternative 278
Architecture 262
Automation interface 274
Client 264, 273
Client/server components 265
Configuration file 269
Configurations 276
Configurator 269
Data consistency 279
Data types 268
Diagnostics 273
Diagnostic client 273
Error codes 312
Error log file 270
Foundation 337
General 262
Performance 279
Project file 272
Read items 260
Server 266, 279
Suppliers 275
Operating modes
Asynchronous 61
Asynchronous with signal protocol
63
Asynchronous with
synchronization pulse 64
Bus-synchronous 65
General 57
Program-synchronous 65
Operating systems 168, 170
Optical path diagnostics 43
Oscilloscope 94, 157, 158
Output driver 158
Overswings 101
P
Parameter
Blocks 33
346
Data 33
Data channel 33
Transmission 33
PC WORX
Array 202
Capacity 207, 208
Constants 208
Data types 202
Hardware model 199
Matrixes 202
ST programming language 206
Structures 202
System tick 200
Task 200
PCP communication 34, 239
PCP cycle time 68
Peripheral fault 121
Peripherals Communication Protocol 33
Phoenix Contact 336
PNM7 255
Potential
Electrical isolation 98
Equipotential bonding 98
POU 191
Power cables 73, 91
Power supplies
Linear regulated 84
Non-regulated 87
Parallel connection
on the secondary side 101
Primary switched 86
Selection 89
Series connection
on the secondary side 101
Selective protection 88
Preprocessing
General 233
Parallel 234
Sequential 234
Process data
Channel 33
Length 34
Monitor 73
Parallel and sequential transmission
60
Preprocessing 233
ProConOS 189
ProConOS variable 252
Product descriptions 73
Programming cable
Programming interfaces 168, 170
Programming languages
C, C++, VB, Delphi 178, 181, 186
IEC 1131 197
Appendix
Examples 181
Protocol
Analyzer 161
Efficiency
Header
IPMS 40
Protocol chip
Comparison of properties 45
IBS LPC 1 45
IBS LPC 2 45
IBS SUPI 2 45
IBS SUPI 3 41
IBS SUPI 3 OPC 43
Read 68
Slave protocol chips 41
-
Q
Quality bit 142
R
RBST 160
RC combination 98
Read/write with name 247
Reconfiguration request 28
Redundancy
Power supplies 101
Register
Addresses 112
Diagnostic parameter register 114
Diagnostic status register 113
Extended diagnostic
parameter register 114
Standard function start register 116
Standard function status register 116
Remote bus (RB) 13
Remote bus check (RC) 121
Remote bus error 121
Remote procedure call (RPC) 172
Reset timeout check 28
RMON 301
S
S7 300 211
S7 400 216
S7 standard blocks 223
Safety measures
ESD 96
Lightning 96
Network disturbances 94
Surge voltage 94
Transients 98
Safety regulations 73
Select Line (SL)
Monitoring 28
347
Peaks 94
Ripple 94
Triggering 94
Voltages 94
W
Watchdog 178
Web-based management 290
X
XDTA
Access 68, 182
Basic specifications 54
Programming 68, 182
348
Appendix