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 #59 background imageLoading...
Page #59 background image
Programming
BC3150 59Version: 2.1.0
5.5 Allocated flags
4kbyte of allocated flags are available. They can be used to assign different variable types to the same
address, e.g. for converting strings to bytes. Data can also be placed here that can be read or written via
ADS by the controller.
Note
Allocated variables are not remanent data
For the Bus Terminal Controllers of the BX series and the BCxx50 the allocated variables
are not saved as remanent data.
Reading/writing of allocated flags via ADS
The flags may also be read via the controller and ADS. In PROFIBUS, the DPV-1 services are used for this
purpose, in CANopen SDO communication is used.
The AmsNetID can be obtained from the System Manager, or it can be displayed via the Bus Terminal
Controller menu.
The PLC port number is 800.
Index group Meaning Index offset (value range)
0x4020 Flag (only BXxxx0) 0..4096
Example
BX program
VAR
Flag_01AT%MB0:WORD;
END_VAR
TwinCAT PC/CX master program
VAR
fbADRSREAD:ADSREAD;
Flag_M:WORD;
END_VAR
fbADRSREAD(
NETID:='172.16.3.0.2.3',(*AMSNetIdBX*)
PORT:=800,(*800-PLC*)
IDXGRP:=16#4020,(*0x4020hexfalgs*)
IDXOFFS:=0,(*byteoffset*)
LEN:=2,(*Lenghtbyte*)
DESTADDR:=ADR(Merker),
READ:=TRUE,
TMOUT:=t#1s);
IFNOTfbADRSREAD.BUSYTHEN
fbADRSREAD(READ:=FALSE);
END_IF
5.6 Local process image in delivery state
The process image of the Bus Terminal Controller consists of input, output and flag area. In addition, there
are unallocated data without fixed address. They are created without specifying an address. For these
variable types the memory allocation is as follows:
BCxx50 48kbyte,
BC9x20 128kbyte,
BXxx00 256kbyte.
The maximum size of a variable or structure (array) is 16kbyte. For the allocated data 2048 bytes of input
data and 2048 bytes of output data are available. The Bus Terminal Controller has 4kbyte of memory
allocated for the flag area.

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