Creating A Boot Project; Communication Between Twincat And Bx/Bcxx50 - Beckhoff BC3150 Documentation

Bus terminal controller for profibus-dp
Table of Contents

Advertisement

5.9

Creating a boot project

The following memory resources are available for generating the boot project
• approx. 250 kbyte flash on the Bus Terminal controllers of the BX series;
• approx. 48 kbyte flash on the Bus Terminal controllers of the BCxx50 series.
PLC Control
After logging into TwinCAT PLC Control, a boot project can be created.
• Opening a PLC project
• Selecting the target system (or selection the serial interface)
• Logging into the BX/BCxx50
• Creating a boot project (Online\Create boot project)
The PLC LED lights up green once a valid boot project is available on the BX/BCxx50.
In the Bus Terminal controllers of the BX series, the PLC LED flashes orange while boot project is created.
The PLC LED lights up orange if no boot project is available on the BX.
Deleting a boot project
The boot project can be deleted from the Bus Terminal Controller. The following steps must be followed:
• Opening the project
• Logging into the Bus Terminal Controller
• Deleting the boot project (Online\Delete boot project)
The PLC LED lights up orange when the boot project is deleted.
Using the current project as boot project
After an online change the old project is still shown as boot project. To use the current
project (after the online change) as the boot project, the boot project has to be recreated.
Note
Bypassing the start of the boot project*
With the Bus Terminal controllers of the BX series, starting of the boot project during booting can be
prevented by pressing the Navi button. This does not delete the boot project. The project is reloaded when
the Bus Terminal Controller is rebooted.
* from version 0.85
5.10

Communication between TwinCAT and BX/BCxx50

For transferring data from TwinCAT to the Bus Terminal Controller, it makes sense to organize the data in a
structure. Please note the following to account for the differences in data management on the two systems.
• If two different data types are sent in sequence (e.g. byte and INT), the following variable is set to the
next even address offset
• Boolean variables should never be allocated individually within a structure, since they would invariably
occupy 1 byte. Boolean expressions should always be masked in a byte or word.
Example 1: A structure on the BX/BCxx50 and on the PC
Variable
BX/BCxx50 memory
Byte
%..B0
INT (1)
%..B2
INT (2)
%..B4
BC3150
PC memory (TwinCAT)
%..B0
%..B1
%..B3
Version: 2.1.0
Programming
63

Advertisement

Table of Contents
loading

Table of Contents