Plc Runtime System - Beckhoff BC2000 Technical Documentation Manual

Bus terminal controller
Table of Contents

Advertisement

Port 800
Index Group / Index Offset
Example
21
registers of the bus terminal controller and the terminals.

PLC Runtime System

The port number in the BC2000 for the PLC is fixed at 800.
Index Group
Meaning
16#4020
Allocated flags area
%MB
16#4021
Allocated bit flags area
%MX
16#4080
Cycle time and basic settings
16#F020
Input
%IB
16#F021
Input bit
%IX
16#F030
Output
%QB
16#F031
Output bit
%QX
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".
Settings in the TwinCAT System Manager
Index Offset
0 .. 511
0 .. 4095
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
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
0 .. 511
0 .. 4095
0 .. 511
0 .. 4095
time
in
ms
BC2000

Advertisement

Table of Contents
loading

Table of Contents