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 #58 background imageLoading...
Page #58 background image
Programming
BC315058 Version: 2.1.0
5.4 Remanent data
2000kbyte of remanent data are available for the BX controller. These data are declared as VARRETAIN in
PLC Control:
Example
VARRETAIN
Test:BOOL;
Count:INT;
END_VAR
Retain data are located between VAR RETAIN and END_VAR. These data are stored in a NOVRAM and
are consistent across the whole 2kbyte range. The RETAIN data are stored in the NOVRAM after each
cycle. For 2kbyte approx. 2ms are required (for 1kbyte approx. 1ms). The variables can be configured
locally or globally. Allocated variables (%MB, %QB, %IB) cannot be used as remanent data.
Note
Do not use VAR_RETAIN in function blocks
VAR_RETAIN should not be used in function blocks. All FB data are copied into the retain
memory. This leads to an unnecessary increase in cycle time, and the retain memory is
filled with unnecessary data.
Note
Do not use variables with address as remanent data
Variables that have been assigned an address (%MB, %QB, %IB) must not be used as re-
manent data.
Example for remanent data in the function block
This should be avoided, if possible, since all the data of a function block, in which even just a single
remanent bit is found, are stored by default. A program sample can be found below.
Function block test (no program code required - in ST semicolon is sufficient)
FUNCTION_BLOCKTest
VAR_INPUT
END_VAR
VAR_OUTPUT
END_VAR
VAR
END_VAR
VAR_IN_OUT
Counter:INT;
END_VAR
MAIN program
PROGRAMMAIN
VAR
fb_Test:Test;
END_VAR
VARRETAIN
iCounter1:INT;
END_VAR
fb_Test(Counter:=iCounter1);

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