EasyManua.ls Logo

Beckhoff BC3150 User Manual

Beckhoff BC3150
104 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #64 background imageLoading...
Page #64 background image
Programming
BC315064 Version: 2.1.0
Due to the fact that another variable type (INT) follows the first byte, in the BX/BCxx50 it was assigned the
next free even address. In order to achieve the same data structure on both systems, a dummy byte has to
be inserted in the PC project (see example2).
Example 2: A structure on the BX/BCxx50 and on the PC with the same memory allocation
Variable BX/BCxx50 memory PC memory (TwinCAT)
Byte %..B0 %..B0
Byte
(dummy)
%..B1 (not necessarily required, since the system
deals with this itself if the variable does not exist)
%..B1
INT (1) %..B2 %..B2
INT (2) %..B4 %..B4
Data structure
TypePB_Data
STRUCT
wVar_1:WORD;
iValue_1:INT;
iValue_2:INT;
iValue_3:INT;
END_STRUCT
END_TYPE
Creating a variable structure
VAR_Global
strData_OutAT%QB1000:PB_Data;(*PLCVariables*)
bInput_01AT%IX0.0:BOOL;(*Inputfromaterminal*)
END_VAR
Small programming example
strData_Out.wVar_1.0:=bInput_01;
Note
Do not use real values in a mixed data structure
A mixed data structure should not contain real values. If this is nevertheless the case, the
high and low words must be swapped in the BX/BCxx50 or in the TwinCAT master project.
It is better to use an array of Real values or to transfer the Real values individually.
Note
Larger fieldbus data blocks
You can transfer larger fieldbus data blocks, in order to have a reserve for your structure.
Disadvantage: These reserves are then transferred with each fieldbus telegram, resulting in
overload of the fieldbus communication.
5.11 Up- and downloading of programs
The Bus Terminal Controller has a memory for the source code. It can be used for storing the program, the
task configuration, and the libraries. Should the memory be insufficient, the source code may be stored
without task configuration and libraries. This takes up significant less memory space!
General settings
The timing of the source code download to the target system can be specified via Edit/Options. Open the
options menu.

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Beckhoff BC3150 and is the answer not in the manual?

Beckhoff BC3150 Specifications

General IconGeneral
BrandBeckhoff
ModelBC3150
CategoryController
LanguageEnglish

Summary

Foreword and Documentation

Notes on Documentation

Information regarding documentation usage, audience, disclaimers, trademarks, and patents.

Safety Instructions and Precautions

Essential safety regulations, liability exclusion, personnel qualification, and symbol explanations.

Documentation Issue Status

Details on document version history, changes made, and firmware information.

Product Overview and Technical Data

BCxx50 Overview and Bus Terminal Principle

Introduction to BCxx50 controllers, their features, and the basic structure of the Bus Terminal system.

Technical Specifications

Detailed technical data for BCxx50, PROFIBUS-DP, and PLC functionalities.

The Beckhoff Bus Terminal System

Overview of the system, including modularity, mounting, and bus coupler types.

Mounting and Wiring Guide

Mounting Procedures

Guidance on mounting the Bus Terminal system components, including dimensions and installation.

Wiring and Connection Details

Instructions for wiring, covering potential groups, power supply, PROFIBUS, and ATEX conditions.

Parameterization and Commissioning

Start-up Behavior

Describes the sequence of operations and checks performed by the controller upon startup.

Configuration and Setup Procedures

Covers TwinCAT config, ADS, PROFIBUS, K-bus, PLC setup, and slave addressing.

Configuration Software and Programming Cable

Details on using KS2000 software and the programming cable for setup.

Programming Guide

PLC Features and TwinCAT Setup

BCxx50 PLC features, TwinCAT PLC introduction, and initial setup.

PLC Error Handling and Data Management

Managing TwinCAT PLC errors, remanent data, and allocated flags.

Process Image, Terminal Mapping, and Boot Projects

Configuring process image, mapping terminals, and creating boot projects.

Program Transfer, Communication, and PROFIBUS

Methods for program transfer, communication, libraries, and PROFIBUS setup.

PROFIBUS System Introduction

Fieldbus Overview and PROFIBUS DP

Overview of PROFIBUS as an open standard and details on PROFIBUS DP for data exchange.

PROFIBUS DPV1 and Connections

Explanation of PROFIBUS DPV1 for acyclic telegrams and details on connectors and cables.

PROFIBUS Topology and Addressing

Guidelines for PROFIBUS topology and procedures for setting slave addresses.

Error Handling and Diagnostics

Diagnostics and Status Monitoring

Methods for diagnosing PROFIBUS state, reading fieldbus status via ADS, and K-bus status.

Diagnostic LEDs and K-Bus Error Codes

Explanation of diagnostic LEDs and a table of K-Bus error codes with remedies.

Appendix and Support

Getting Started and Controller Migration

Initial setup guide for BC3150 and instructions for switching between controllers.

Firmware Update and Operating Conditions

Procedures for firmware updates and general operating conditions for fieldbus components.

Device Testing Standards and References

Test standards for devices and bibliography of relevant technical resources.

Abbreviations and Support

List of abbreviations and information on Beckhoff support and service contacts.

Related product manuals