Plc runtime system – BECKHOFF BC2000 User Manual

Page 22

Advertising
background image

Settings in the TwinCAT System Manager

21

BC2000

registers of the bus terminal controller and the terminals.

PLC Runtime System

Port 800

The port number in the BC2000 for the PLC is fixed at 800.

Index Group

Meaning

Index Offset

16#4020

Allocated flags area

%MB

0 .. 511

16#4021

Allocated bit flags area

%MX

0 .. 4095

16#4080

Cycle time and basic settings

0: minimum cycle time in 1/125

ms WORD

1: maximum cycle time in 1/125

ms WORD

2: current cycle time in 1/125 ms

WORD

3: mean cycle time in 1/125 ms

WORD

4: Number of PLC cycles after the

start DWORD

5: Nominal cycle time in ms

WORD

6: Background time in ms WORD

7: Length of the remanent flags

from %MB0 WORD

8: Start(1)/Stop(0) of the cycle

time measurement WORD

9: Time of the terminal bus cycle

WORD

0: Double Cycle

1: Before Cycle

2: After Cycle

16#F020

Input

%IB

0 .. 511

16#F021

Input bit

%IX

0 .. 4095

16#F030

Output

%QB

0 .. 511

Index Group / Index Offset

16#F031

Output bit

%QX

0 .. 4095

Example

The variable in the flags area %MB10 is read directly by the PLC
programme in TwinCAT. The NetId of the target system is given for this
purpose. This number is found in the system manager, and is entered as a
string. The variable „Var1“ is declared as a 2 byte variable (INT or WORD).
As soon as Go_ADSREAD is switched to TRUE, the function block is
active, and the value contained in the BC2000 at %MB10 and %MB11 is
returned in „Var1“.

Advertising