Programming
BC8050 und BC8150
50
Version: 3.0.0
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.
Note
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.
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
PC memory (TwinCAT)
Byte
%..B0
%..B0
INT (1)
%..B2
%..B1
INT (2)
%..B4
%..B3
Содержание BC8050
Страница 2: ......
Страница 44: ...Programming BC8050 und BC8150 44 Version 3 0 0 Fig 45 Build...