Beckhoff BC7300 User manual

Type
User manual
MODBUS
Bus Terminal Controller
BC7300
Version: 1.5
Last change: 2006-11-06
BC7300
Please note the following
Target group
This description is only intended for the use of trained specialists in control
and automation engineering who are familiar with the applicable national
standards.
Safety requirements
The responsible staff must ensure that the application or use of the
products described satisfy all the requirements for safety, including all the
relevant laws, regulations, guidelines and standards.
The documentation has been prepared with care. The products described
are, however, constantly under development. For that reason the
documentation is not in every case checked for consistency with
performance data, standards or other characteristics, and does not
represent an assurance of characteristics in the sense of § 459, Para. 2 of
the German Civil Code. In the event that it contains technical or editorial
errors, we retain the right to make alterations at any time and without
warning. No claims for the modification of products that have already been
supplied may be made on the basis of the data, diagrams and descriptions
in this documentation.
©
This manual is copyrighted. Any reproduction or third party use of this
protected publication, whether in whole or in part, without the written
permission of Elektro Beckhoff GmbH, is forbidden.
Table of contents
BC7300 3
Table of contents
1. Foreword 5
Notes on the documentation 5
Liability Conditions 5
Delivery conditions 5
Copyright 5
Safety Instructions 6
State at Delivery 6
Description of safety symbols 6
2. Basic Principles 7
Device Description of the BC7300 7
The Beckhoff Bus Terminal System 7
The interfaces 9
Electrical power supply 9
Power contacts feeding points 9
Power contacts 9
Fieldbus connection 9
Configuration and programming interface 10
KS2000 Software 10
TwinCAT BC 10
K-Bus Contacts 10
Electrical isolation 10
Operating Modes of the Bus Terminal Controller 11
Mechanical structure 11
Technical data 14
Peripheral Data in the Process Image 15
Start-up procedure and Diagnostics 16
Fieldbus errors 18
3. MODBUS 19
Basic Principles 19
Bus Topology 19
Process Data and Memory Map 20
MODBUS Process Image 22
BC7300 Process Image 22
Assignment of the Bus Terminals 23
Setting and Parameterisation of the MODBUS 24
Parameterisation Table 25
The MODBUS Protocol 26
ASCII 26
RTU 26
Functions 27
Read Digital Outputs (Function 1) 27
Read Digital Inputs (Function 2) 28
Read Analog In/Outputs (Function 3) 28
Read Analog Inputs (Function 4) 29
Writing a Digital Output (Function 5) 30
Writing an Analog Output (Function 6) 30
Writing a Number of Digital Outputs (Function 15) 31
Writing a Number of Analog Outputs (Function 16) 32
Writing and Reading Analog Outputs and Inputs 33
(Function 23) 33
Echoes a query (Sub-Function 0) 35
Bus Coupler Reset (Sub-Function 1) 35
Delete All Counter Contents (Sub-Function 10) 35
Bus Communication Error Counter (Sub-Function 11) 35
Error Answer Counter (Sub-Function 13) 35
Slave Answers (Sub-Function 14) 36
Table of contents
4 BC7300
Unsent Slave Answers (Sub-Function 15) 36
Number of Error Answers (Sub-Function 16) 36
BC7300 Error Answers 37
4. Bus Terminal Controller 38
PLC Cycle Time 38
PLC Variables 38
Remanent Variables 38
Persistent Data 39
Allocated flags area 40
5. Appendix 41
MODBUS Interface 41
Mapping the Bus Terminals 42
List of references 42
Firmware 42
Table 42
Example Program 43
Explanation of the Program 43
The Program in the Bus Terminal Controller 43
Creating the BOOT Program 44
MODBUS Communication 44
6. Questions and Answers 46
General 46
No communication with the BC7300 46
Mapping of the digital and the byte-oriented Bus Terminals onto a fixed
address 46
Drop of the digital outputs 46
7. Index 47
8. Support and Service 48
Support and Service 48
Beckhoff's branch offices and representatives 48
Beckhoff Headquarters 48
Foreword
BC7300 5
Foreword
Notes on the documentation
This description is only intended for the use of trained specialists in control and automation engineering
who are familiar with the applicable national standards. It is essential that the following notes and
explanations are followed when installing and commissioning these components.
Liability Conditions
The responsible staff must ensure that the application or use of the products described satisfy all the
requirements for safety, including all the relevant laws, regulations, guidelines and standards.
The documentation has been prepared with care. The products described are, however, constantly under
development. For that reason the documentation is not in every case checked for consistency with
performance data, standards or other characteristics. None of the statements of this manual represents a
guarantee (Garantie) in the meaning of § 443 BGB of the German Civil Code or a statement about the
contractually expected fitness for a particular purpose in the meaning of § 434 par. 1 sentence 1 BGB. In
the event that it contains technical or editorial errors, we retain the right to make alterations at any time
and without warning. No claims for the modification of products that have already been supplied may be
made on the basis of the data, diagrams and descriptions in this documentation.
Delivery conditions
In addition, the general delivery conditions of the company Beckhoff Automation GmbH apply.
Copyright
©
This documentation is copyrighted. Any reproduction or third party use of this publication, whether in
whole or in part, without the written permission of Beckhoff Automation GmbH, is forbidden.
Foreword
BC7300 6
Safety Instructions
State at Delivery
All the components are supplied in particular hardware and software configurations appropriate for the
application. Modifications to hardware or software configurations other than those described in the
documentation are not permitted, and nullify the liability of Beckhoff Automation GmbH.
Description of safety symbols
The following safety symbols are used in this documentation. They are intended to alert the reader to the
associated safety instructions..
Danger
This symbol is intended to highlight risks for the life or health of personnel.
Attention
This symbol is intended to highlight risks for equipment, materials or the
environment.
i
Note
This symbol indicates information that contributes to better understanding.
Basic Principles
BC7300 7
Basic Principles
Device Description of the BC7300
The BC7300 Bus Terminal Controller is a Bus Coupler with integrated PLC
functionality and a MODBUS slave interface.
The controller is programmed in IEC 1131-3. Up to 64 terminals belonging
to the Beckhoff Bus Terminal System can be connected to the BC7300.
These include analog signal types for current and voltage, as well as
PT100 and thermocouples, in addition to digital input and output terminals.
The Bus Terminal Controller's MODBUS interface allows a MODBUS
master to be connected.
The Beckhoff Bus Terminal System
Up to 64 Bus Terminals
Each having 2 I/O channels
for each signal form
De-centralised wiring of
each I/O level
IPC as controller
Bus Couplers for all usual
bus systems
Standard C - rail assembly
Modularity
The Bus Terminal system is the universal interface between a fieldbus
system and the sensor / actuator level. A unit consists of a Bus Coupler as
the head station, and up to 64 electronic series terminals, the last one
being an end terminal. For each technical signal form, terminals are
available each having two I/O channels, and these can be mixed in any
order. All the terminal types have the same mechanical construction, so
that difficulties of planning and design are minimised. The height and depth
match the dimensions of compact terminal boxes.
Fieldbus technology allows more compact forms of controller to be used.
The I/O level does not have to be brought to the controller. The sensors
and actuators can be wired de-centrally, using minimum cable lengths. You
can locate the controller installation anywhere within the plant. The use of
an Industrial PC as the controller means that the operating and observing
element can be implemented in the controller’s hardware. The controller
can therefore be located at an operating panel, in a control room, or at
some similar place. The Bus Terminals form the de-centralised input/output
level of the controller in the control cabinet and the subsidiary terminal
boxes. The power sector of the plant is also controlled over the bus system
in addition to the sensor/actuator level. The Bus Terminal replaces the
conventional series terminal as the wiring level in the control cabinet. The
control cabinet can have smaller dimensions.
The Beckhoff Bus Terminal system unites the advantages of a bus system
with the possibilities of the compact series terminal. Bus Terminals can be
driven within all the usual bus systems, thus reducing the controller parts
count. The Bus Terminals then behave like conventional connections for
that bus system. All the performance features of the particular bus system
are supported.
The easy, space-saving assembly on a standard C-rail, and the direct
wiring of actuators and sensors without cross-connections between the
terminals standardises the installation. The consistent labelling scheme
also contributes.
The small physical size and the great flexibility of the Bus Terminal system
allows it to be used wherever a series terminal is also used. Every type of
connection, such as analog, digital, serial or the direct connection of
sensors can be implemented.
The modular assembly of the terminal strip with Bus Terminals of various
functions limits the number of unused channels to a maximum of one per
function. The presence of two channels in one terminal is the optimum
compromise of unused channels and the cost of each channel. The
possibility of galvanic isolation through potential feed terminals also helps
Basic Principles
BC7300 8
Display of the channel state
to keep the number of unused channels low.
The integrated LEDs show the state of each channel at a location close to
the sensors and actuators.
K-Bus
End terminal
Potential feed terminals for
galvanically isolated groups
The K-Bus is the data path within a terminal strip. The K-Bus is led
through from the Bus Coupler through all the terminals via six contacts on
the terminals‘ side walls. The end terminal terminates the K-Bus. The user
does not have to learn anything about the function of the K-Bus or about
the internal workings of the terminals and the Bus Coupler. Many software
tools that can be supplied make project planning, configuration and
operation easy.
The operating voltage is passed on to following terminals via three power
contacts. You can divide the terminal strip into arbitrary galvanically
isolated groups by means of potential feed terminals. The feed terminals
play no part in the control of the terminals, and can be inserted at any
points within the terminal strip.
Up to 64 terminals may be located in a terminal strip, including the potential
feed terminals and end terminal.
The principle of the
Bus Terminal
0201
+ +
PE PE
WD
RX
TX
PLC
MODBUS
BECKHOFF
24V
0V
0
9
8
7
6
5
4
3
2
1
0
9
8
7
6
5
4
3
2
1
K-Bus
End Terminal
Potential
isolation
Potential
input
terminal
Power
contacts
Bus Coupler
BC7300
Bus Coupler
power
supply
Additional characteristics of
the Bus Terminal
Controllers
Bus Terminal Controllers (BC) differ from Bus Couplers (BK) in that, in
addition to K-Bus processing, a real-time PLC task is also running. Unlike
Bus Couplers, the signals from the terminals are processed by the PLC
task, while the fieldbus carries the in- and outputs of the PLC task. It is
possible, however, to subdivide the Bus Terminals to that some Bus
Terminals are pre-processed by the PLC task, while others are sent
directly over the fieldbus to a supervising system.
Bus Terminal Controllers
for various fieldbus systems
Various Bus Terminal Controllers can be used to couple the electronic
terminal strip with integrated PLC task quickly and easily to different
fieldbus systems. It is also possible to convert to another fieldbus system at
a later time. The Bus Terminal Controller performs all the monitoring and
control tasks that are necessary for operation of the connected Bus
Terminals. The operation and configuration of the Bus Terminals is carried
out exclusively by the Bus Terminal Controller. Fieldbus, K-Bus and I/O
level are galvanically isolated.
Basic Principles
BC7300 9
If data exchange over the fieldbus fails, the PLC task continues to run as
an autonomous system.
The interfaces
A Bus Terminal Controller has six different methods of connection. These
interfaces are designed as plug connectors and as spring-loaded terminals.
The MODBUS – Bus
Terminal Controller
BC7300
02
01
+
+
PE PE
WD
RX
TX
MODBUS
BECKHOFF
24V
0V
0
9
8
7
6
5
4
3
2
1
0
9
8
7
6
5
4
3
2
1
BC 7300
Power LEDs
Bus Coupler / power contacts
K-Bus
MODBUS
Configuration and
programming
interface
Bus Coupler power supply
24 V DC / GND
Power contacts
feeding points
Power contacts
PLC
Electrical power supply
24 V DC to the topmost
terminals “24 V” and “0 V”
The Bus Terminal Controllers require a 24 V DC supply for their operation.
The connection is made by means of the upper spring-loaded terminals
labelled “24 V” and “0 V”. This supply voltage feeds not only the Bus
Coupler electronics via the K-Bus, but also the Bus Terminals. The power
supply for the Bus Coupler electronics and that of the K-Bus are electrically
separated from the potential of the field level.
Power contacts feeding points
Lower 3 terminal pairs for
power feed
Maximum 24 V
Maximum 10 A
The bottom six connections with spring-loaded terminals can be used to
feed the supply for the peripherals. The spring-loaded terminals are joined
in pairs to a power contact. The feed for the power contacts has no
connection to the voltage supply for the Bus Coupler. The design of the
feed permits voltages of up to 24 V. The assignment in pairs and the
electrical connection between feed terminal contacts allows the connection
wires to be looped through to various terminal points. The current drawn
from the power contact must not exceed 10 A for long periods. The current
rating between two spring-loaded terminals is identical to that of the
connecting wires.
Power contacts
Spring contacts on the side
On the right hand face of the Bus Terminal Controller there are three spring
contacts for the power contact connections. The spring contacts are hidden
in slots so that they can not be accidentally touched. By attaching a Bus
Terminal the blade contacts on the left hand side of the Bus Terminal are
connected to the spring contacts. The tongue and groove guides on the top
and bottom of the Bus Terminal Controllers and of the Bus Terminals
guarantees that the power contacts mate securely.
Fieldbus connection
9 pin sub-D socket strip
There is a recessed front face on the left hand side. The MODBUS
connection plug can be inserted here. A full description of the fieldbus
interfaces is found elsewhere in this manual. (In the section on The
Medium: Plugs and Cables)
Basic Principles
BC7300 10
Configuration and programming interface
Serial interface under the
front cover
The standard Bus Terminal Controllers have an RS232 interface at the
bottom of the front face. The miniature connector can be joined to a PC
with the aid of a connecting cable and either the KS2000 configuration
software or TwinCAT BC. The interface allows the analog channels to be
configured with the KS2000 software. The BC7300 is programmed via the
same interface.
KS2000 Software
In order to link the MODBUS BK7300 Bus Terminal Controller and the
KS2000 configuration software, the coupler's address selection switch
must be set to "00", and it must be restarted (i.e. the coupler must be
switched off and then on again). The MODBUS must not be connected.
TwinCAT BC
In order to link the MODBUS BK7300 Bus Terminal Controller and the
TwinCAT BC programming software, the coupler's address selection switch
must be set to "00", and it must be restarted (i.e. the coupler must be
switched off and then on again). The MODBUS must not be connected.
K-Bus Contacts
6 contacts on the side
In order to connect the Bus Coupler and Bus Terminals the Bus Coupler
has gold contacts on the right hand side. When the Bus Terminals are
pushed together the gold contacts automatically make the connection
between the Bus Terminals. The voltage supply to the K-Bus electronics in
the Bus Terminals and the data exchange between the Bus Coupler and
the Bus Terminals is carried out by the K-Bus. A part of the data exchange
takes place via a ring structure within the K-Bus. Opening the K-Bus, e.g.
by pulling out one of the Bus Terminals, opens the ring. Data exchange is
no longer possible. Special mechanisms nevertheless allow the Bus
Coupler to identify the location of the interruption and to report it.
Electrical isolation
3 potential groups:
Fieldbus
K-Bus
Peripheral level
The Bus Terminal Controllers operate by means of three independent
potential groups. The supply voltage feeds the K-Bus electronics in the Bus
Terminal Controller and the K-Bus itself, which is electrically separate. The
supply voltage is also used to generate the operating voltage for the
fieldbus.
Remark: All the Bus Terminals are galvanically isolated from the K-Bus.
The K-Bus is thus galvanically isolated from everything else.
Basic Principles
BC7300 11
Operating Modes of the Bus Terminal
Controller
Immediately after being switched on, the Bus Terminal Controller checks,
in the course of a self test”, all the functions of its components and the
communication of the K-Bus. The red I/O LED blinks while this is
happening. After completion of the self-test, the Bus Terminal Controller
starts to test the attached Bus Terminals (in a "Bus Terminal test"), and
reads in the configuration. An internal structure list is created from the Bus
Terminal configuration. In case of an error, the Bus Terminal Controller
enters the STOP“ state. Once the start-up has completed without error,
the Bus Terminal Controller enters the "fieldbus start" state.
Start-up behaviour of the
Bus Terminal Controller
Power On self test
Bus Terminal test
Structure list
PLC start /
Communication start
Stop
OK
Error
Mechanical structure
The system of the Beckhoff Bus Terminals is characterised by low physical
volume and high modularity. When planning a project it must be assumed
that at least one Bus Coupler and a number of Bus Terminals will be used.
The mechanical dimensions of the Bus Couplers are independent of the
fieldbus system. If large plugs are used, such as, for example, certain bus
plugs for the Profibus, the maximum height of the housing can be
exceeded.
Basic Principles
BC7300 12
Dimensions of a Bus
Coupler in mm
02
02
01
01
+
+
+
+
PE
PE
PE
PE
RUN
RX
TX
MODBUS
B
E
C
K
H
O
F
F
24V
24V
0V
0V
0
9
8
7
6
5
4
3
2
1
0
9
8
7
6
5
4
3
2
1
B
C
7
3
0
0
1
0
0
9
4
47
12
PLC
The total width in practical cases is composed of the width of the Bus
Coupler with the bus end terminal and the width of the Bus Terminals in
use. Depending on function, the Bus Terminals are 12 or 24 mm wide. The
front wiring increases the total height of 68 mm by about 5 to 10 mm,
depending on the wire thickness.
Assembly and connection
The Bus Coupler and all the Bus Terminals can be clipped by light
pressure onto a 35 mm C-mounting rail. A locking mechanism prevents
the individual housings from being pulled off again. For removal from the
mounting rail the orange coloured tension strap releases the latching
mechanism, allowing the housing to be pulled off the rail without any force.
Work should only be carried out on the Bus Terminals and the Bus Coupler
when switched off. Pulling out and inserting under power can cause
undefined states to be temporarily caused. (A reset of the Bus Coupler, for
example).
Maximum number of
terminals
Up to 64 Bus Terminals can be attached to the Bus Coupler on the right
hand side. When plugging the components together, be sure to assemble
the housings with groove and tongue against each other. A properly
working connection can not be made by pushing the housings together on
the mounting rail. When correctly assembled, no significant gap can be
seen between the attached housings.
The right hand part of the Bus Coupler can be compared to a Bus
Terminal. Eight connections on the top permit connection with solid or fine
wires. The connection is implemented with the aid of a spring device. The
spring-loaded terminal is opened with a screwdriver or rod, by exerting
gentle pressure in the opening above the terminal. The wire can be
inserted into the terminal without any force. The terminal closes
automatically when the pressure is released, holding the wire securely and
permanently.
The connection between the bus coupler and the bus terminals is
automatically realised by pushing the components together. The transfer of
the data and the supply voltage for the intelligent electronics in the Bus
Terminals is performed by the K-Bus. The supply of the field electronics is
performed for the digital Bus Terminals through the power contacts.
Basic Principles
BC7300 13
Plugging together the power contacts creates a supply rail. Note the circuit
diagrams for the Bus Terminals, since some Bus Terminals do not loop
these power contacts through, or only do so partially (e.g. analog Bus
Terminals or 4 channel digital Bus Terminals). The potential feed terminals
interrupt the power contacts, and represent the start of a new supply rail.
The Bus Coupler can also be made use of to feed the power contacts.
Insulation testing
PE power contacts
The power contact labelled “PE” can be used as a protective earth. For
safety reasons this contact mates first when plugging together, and can
ground short-circuit currents of up to 125 A. Note that, for reasons of
electromagnetic compatibility, the PE contacts are capacitatively coupled to
the mounting rail. This can both lead to misleading results and to damaging
the terminal during insulation testing. (e.g.: breakdown of the insulation
from a 230 V power user to the PE conductor.) The PE conductor to the
Bus Coupler must be disconnected for the insulation testing. In order to
uncouple further feed locations for the purposes of testing, the feed
terminals can be pulled at least 10 mm out from the connected group of
other terminals. In that case, the PE conductors do not have to be
disconnected.
The “PE” power contact must not be used for other potentials.
Basic Principles
BC7300 14
Technical data
The MODBUS the fieldbus-specific electrical data is listed in this section.
The following table gives an overview of all the data:
Technical data BC7300
Supply voltage
24 V DC
Input current
70mA +
(total K-Bus current)/4
500 mA max.
Power-on surge
2.5 x steady operating current
K Bus supply current up to
1750 mA max.
Configuration facility
via KS2000 or the controller
Number of Bus Terminals
64
Digital peripheral signals
256 inputs/outputs
Analog peripheral signals
128 inputs/outputs
Baud rate
From 150 baud to 38400 baud
Protocol
RTU and ASCII
Bus connection
D-Sub RS 485
9-pin
Voltage of the
power contact
24 V DC / AC max.
Power contacts current
drawn
10 A max.
Electric strength
500 Veff (power contact / supply voltage / fieldbus)
none
Typical weight
170 g
Operating temperature
C ... +55°C
Storage temperature
-20°C ... +85°C
Relative humidity
95% without dew formation
Vibrations/Shock resistance
conforms to IEC 68-2-6 / IEC 68-2-27
EMC resistance burst / ESD
conforms to EN 50082 (ESD, Burst) / EN 50081
Installation position
any
Type of protection
IP20
PLC data
Programmability
via programming interface (TwinCAT BC/TwinCAT)
Program size
approx. 3000 PLC statements
Program memory
32 kbytes / 96 kbytes
Data memory
32 kbytes / 64 kbytes
Remanent flags
512 bytes
Runtime system
1 PLC task
PLC cycle time
approx. 3 ms for 1000 instructions (including K-Bus I/O cycle)
Programming languages
IL, LD, FBD, SFC, ST
Station addresses
selectable to 99 via DIP switch
0 Programming mode and configuration mode
1 – 99 Slave address
Baud rate in programming
mode
19,200 baud, 8 data bits, even parity, one stop bit
Current consumption on
the K-Bus
The Bus Terminals require energy for the operation of the K-Bus
electronics, and this is supplied by the Bus Coupler. Find the current
consumption of the K-Bus from the catalogue, or from the appropriate data
sheets for the Bus Terminals. Consider the maximum output current of the
Bus Coupler that is available for supply of the Bus Terminals. A special
power supply terminal (KL9400) can be inserted at any location to insert
more power into the K-Bus. Refer to Beckhoff’s technical support
department regarding the use of a power supply terminal.
Basic Principles
BC7300 15
Peripheral Data in the Process Image
After being switched on, the Bus Coupler determines the configuration of
the inserted input/output terminals. The assignment of the physical slots for
the input/output channels and the addresses in the process image is
carried out automatically by the Bus Coupler.
The Bus Coupler creates an internal assignment list, in which the
input/output channels have a specific position in the process image. A
distinction is made here according to inputs and outputs, and according to
bit-oriented (digital) and byte-oriented (analog or complex) signal
processing.
Two groups are created, one for inputs and the other for outputs. Each
group has the byte-oriented channels in ascending sequence starting from
the lowest address. The bit-oriented channels are placed after this block.
Digital signals
(bit-oriented)
The digital signals are bit-oriented. This means that one bit in the process
image is assigned to each channel. The Bus Coupler creates a memory
area containing the current input bits, and ensures that the bits in a second
memory area dedicated to the output channels are written out immediately.
The details of the assignment of the input and output channels to the
controller's process image is explained fully with the aid of an example in
the appendix.
Analog signals
(byte-oriented)
The processing of all analog signals is always byte-oriented. Analog input
and output values are represented in memory by two bytes each. Values
are represented in SIGNED INTEGER or two‘s complement format. The
number "0" stands for the input/output value "0 V", "0 mA" or "4 mA". The
maximum value of an output or input value is represented, according to the
standard settings, by "7FFF" (hex). Negative input or output values, e.g. -
10 V, are represented from "8000" (hex). The intermediate values are
correspondingly proportional. A range with a resolution of 15 bits is not
achieved for all inputs and outputs. If the actual resolution is 12 bits, the
last three bits have no effect in outputs, while as inputs they are read as
"0". Each channel also has a control and status byte. The control and
status byte is the lowest value byte. The master configuration software
must specify whether the control/status byte is also mapped into the
controller. An analog channel is represented in the process image by 2
bytes of user data.
Special signals and
interface
A Bus Coupler supports Bus Terminals with other interfaces such as
RS232, RS485, incremental encoder and others. These signals can be
considered similarly to the analog signals named above. For some special
signals the bit width of 16 is not sufficient. The Bus Coupler can support
any byte width.
Default assignment of
inputs/outputs to the
process image
Once it has been switched on, the Bus Coupler finds out how many Bus
Terminals are inserted, and creates an assignment list. The analog and
digital channels, divided into inputs and outputs, are assembled into
separate parts of this list. The assignment starts on the left next to the Bus
Coupler. The software in the Bus Coupler collects the individual entries for
each of the channels in order to create the assignment list counting from
left to right.
Basic Principles
BC7300 16
Four groups are distinguished in the assignment:
Functional type of the channel Assignment level
1.
Analog outputs assignment by bytes
2.
Digital outputs assignment by bits
3.
Analog inputs assignment by bytes
4
Digital inputs assignment by bits
Analog inputs and outputs here also represent other Bus Terminals with
complex multi-byte signals (RS232, SSI sensor interface, ...)
Data consistency
Items of data are said to be consistent if their content all belongs together,
and if they are transmitted as a single block. Examples of data items that
belong together are: 1. the high and low bytes of an analog value (word
consistency), and 2. a control/status byte and the associated parameter
word for access to the registers. Data consistency in the interaction of
peripheral devices and their controllers is, in a basic sense, only assured
for a single byte. In other words, the bits of a byte are output or read in
together. Byte consistency is sufficient for handling digital signals.
Whenever values have a length of more than 8 bits, analog values for
instance, the consistency must be extended. The different bus systems
guarantee consistency up to the required length. Correct transfer of the
consistent data from the bus system master to the controller is important.
The corresponding manual for the bus system will provide a detailed
description of the correct procedure, in particular the description of the
used master interfaces. Those chapters of this manual that deal with the
fieldbus refer to the most widespread interfaces.
Complex signal processing
All the byte-oriented signal channels such as RS232, RS485 or
incremental encoders operate to some extent with byte lengths of more
than two. Apart from the difference in length, they are always handled
similarly to the analog signals.
Start-up procedure and Diagnostics
After switching on, the Bus Coupler immediately checks the connected
configuration. Error-free start-up is signalled by extinction of the red LED
“I/O ERR“. If the “I/O ERR” LED blinks, an error in the area of the terminals
is indicated. The error code can be determined from the frequency and
number of blinks. This permits rapid rectification of the error.
The diagnostic LEDs
The Bus Coupler has two groups of LEDs for the display of status. The
upper group with four LEDs indicates the status of the respective fieldbus.
The significance of the “fieldbus status“ LED is explained in the relevant
sections of this manual - it conforms to conventional fieldbus displays.
On the upper right hand side of the Bus Couplers are two more green
LEDs that indicate the supply voltage. The left hand LED indicates the 24 V
supply of the Bus Coupler. The right hand LED signals the supply to the
power contacts.
Local errors
Two LEDs, the I/O LEDs”, in the area below the field bus status LEDs
referred to above, serve to indicate the operating status of the Bus
Terminals and the connections to these terminals. The green LED lights up
in order to indicate fault-free operation. The red LED blinks with two
different frequencies in order to indicate an error.
Basic Principles
BC7300 17
The error is encoded in the blinks as follows:
Fast blinking
Start of the error code
First slow sequence
Error code
Blink code
Second slow sequence
Error code argument
Start of the error code Error type Error location
Error code Error
argument
Description Remedy
Persistent,
continuous
blinking
EMC problems - Check power supply for overvoltage or
undervoltage peaks
- Implement EMC measures
- If a K-Bus error is present, it can be
localised by a restart of the coupler (by
switching it off and then on again)
1 pulse
0
1
2
EEPROM checksum error
Inline code buffer overflow
Unknown data type
- Set manufacturer’s setting with the KS2000
- Connect fewer Bus Terminals; too many
entries in the table for the programmed
configuration
- Software update required for the coupler
2 pulses
0
n (n > 0)
Programmed configuration
Incorrect table entry / Bus Coupler
Incorrect table comparison (Bus
Terminal n)
- Check programmed configuration for
correctness
- Incorrect table entry / Bus Coupler
3 pulses
0 K-Bus command error - No Bus Terminal connected; attach Bus
Terminals.
- One of the Bus Terminals is defective; halve
the number of Bus Terminals attached and
check whether the error is still present with
the remaining Bus Terminals. Repeat until the
defective Bus Terminal is located.
4 pulses
0
n
K-Bus data error
Break behind Bus Terminal n (0:
coupler)
- Check whether the n+1 Bus Terminal is
correctly connected; replace if necessary.
Check whether the Bus End Terminal 9010
is connected.
5 pulses
n K-Bus error with register
communication with Bus Terminal n
Exchange Bus Terminals
9 pulses
0
n (n>0)
Checksum error in program flash
memory
Bus Terminal n is not consistent with
the configuration that existed at boot
image entry
Transmit program to the BC7300 again
Check the n
th
Bus Terminal. If a new Bus
Terminal is to be inserted, delete the boot
project (manufacturer's setting)
14 pulses
n Bus Terminal n has the wrong format - Start the coupler again, and if the error
occurs again then exchange the Bus Terminal
15 pulses
n Number of Bus Terminals is no longer
correct
- Start the coupler again, and if the error
occurs again after this, use the KS2000
software to set manufacturer’s settings
16 pulses
n Length of the K-Bus data is no longer
correct
- Start the coupler again, and if the error
occurs again after this, use the KS2000
software to set manufacturer’s settings
The number of pulses (n) indicates the position of the last Bus Terminal
before the fault. Passive Bus Terminals, such as a power feed terminal, are
not included in the count.
In the case of some errors, rectification does not cause the Bus Coupler to
leave the blink sequence. The Bus Coupler stays in the "Stop" state. The
Bus Coupler can only be re-started either by switching the power supply off
and on again, or by a software reset.
Insertion and removal of Bus Terminals is only permitted when switched
Basic Principles
BC7300 18
off. The electronics in the Bus Terminals and in the Bus Coupler are
protected to a large measure against damage, but incorrect function and
damage cannot be ruled out if they are plugged in under power.
The occurrence of a fault in the course of operation does not immediately
trigger the display of error codes by the LEDs. The Bus Coupler must be
requested to diagnose the Bus Terminals. The diagnostic request is
generated after switching on.
MODBUS LEDs
LED: on off
WD Watchdog is active Watchdog is not yet running
or the watchdog time has elapsed
RX Receive Data
Data is being received
TX Transmit Data
Data is being transmitted
PLC Program running
LED flashes while a boot project is being created
WD
RX
TX
PLC
MODBUS
If a K-Bus error occurs during operation, the procedures for reaction to a K-
Bus error are executed in accordance with the parameterisation. If the K-
Bus error occurs during booting, the slave is not included in the data
exchange.
Fieldbus errors
WD
A fieldbus error only occurs when the watchdog (WD) period has elapsed.
The watchdog is preset to 1000 ms. The WD is activated as soon as a
"write" access has been made to the coupler's process data (WD LED
goes on). After this, another "write" command must be sent to the process
data within the set WD time, in order to start the WD from zero again.
Once a WD error has occurred, data communication can only be restarted
by resetting the coupler (see "Coupler Reset", under Diagnostics).
The maximum watchdog time is 65000 ms, and it can be set by rotary
switch or via the KS2000 software.
BC7300 19
MODBUS
Basic Principles
The MODBUS is a master-slave bus system in which only one device (the
master) actively starts a transaction (queries). The passive device (the
slave) then sends an answer (response) if the telegram was directly
addressed to it and provided that it has no errors.
Bus Topology
The BK7300 uses the RS485 physical data transmission. This means that
a two-wire cable is needed for the data transmission. The communication
structure corresponds to the linear topology. At the beginning and end of
the lines the bus requires termination resistors. The structure of the
Modbus network is similar to that of PROFIBUS.
02
02
01
01
+
+
+
+
PE
PE
PE
PE
RUN
RX
TX
MODBUS
BECKHOFF
24V
0V
0
9
8
7
6
5
4
3
2
1
0
9
8
7
6
5
4
3
2
1
B
K
7
3
0
0
02
01
0201
+
+
PE
PE
02
01
+
+
PE
PE
02
01
+
+
PE
PE
02
02
01
01
+
+
+
+
PE
PE
PE
PE
RUN
RX
TX
MODBUS
BECKHOFF
24V
0V
0
9
8
7
6
5
4
3
2
1
0
9
8
7
6
5
4
3
2
1
BK 7300
02
01
0201
+ +
PE PE
02
01
+ +
PE
PE
02
01
+ +
PE
PE
02
02
01
01
+
+
+
+
PE
PE
PE
PE
RUN
RX
TX
MODBUS
BECKHOFF
24V
0V
0
9
8
7
6
5
4
3
2
1
0
9
8
7
6
5
4
3
2
1
BK 7300
02
01
02
01
+
+
PE
PE
02
01
+
+
PE
PE
02
01
+
+
PE
PE
Broadcast function
Beckhoff Bus Terminal Controllers support the broadcast function. For this
purpose the slave address in the telegram must be set to "00". Slaves do
not answer a broadcast. Not all functions are supported.
Functions that support a broadcast:
5 Force single coil
6 Preset single register
15 Force multiple coils
16 Preset multiple register
PIN assignment
The BC7300 uses RS485 for the data transmission. A screened two-wire
cable is sufficient. The connection to the coupler is a 9-pin sub-D socket.
The data line is connected to PIN 3 and PIN 8.
MODBUS
20 BC7300
Cable
BC7300
TxD/RxD (3)
RxD/TxD (8)
BC7300
RxD/TxD (3)
TxD/RxD (8)
Abschirmung
PE
Sub-D socket
1
6: 5 V
5: GND
3: RxD/TxD
8: RxD/TxD
Bus termination
The MODBUS requires termination resistors at the beginning and end of
the bus lines.
RxD/TxD (3)
TxD/RxD (8)
GND (5)
5 V (6)
Process Data and Memory Map
The following example illustrates how the process image is constructed in
the Bus Terminal Controller, and the functions of the MODBUS telegram
with which digital and analog values can be read.
The Bus Terminal Controller has two process images. One is the fieldbus
interface and the other is the process image on the Bus Terminal
Controller. Bus Terminals can be assigned to one or the other process
image. The PLC variables offer an interface between these two process
images.
MODBUS
The input process image of the BC7300 starts from address 0x0000. All
the byte-oriented Bus Terminals (see Appendix) are entered here into the
process image first. The bit-oriented Bus Terminals them follow, and each
word (16 bit) is filled before starting a new one. The PLC variables are
entered into the process image last.
The output process image starts at address 0x0800. The entry begins
again here with the byte-oriented Bus Terminals, continues with the bit-
oriented Bus Terminals and finally the PLC variables.
All the digital signals can be directly addressed with functions 1, 2, 5 and
15.
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48

Beckhoff BC7300 User manual

Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI