Programming Blocks Of The Cpu Program Part - Siemens SIMATIC S5 Manual

Ip 265 high speed sub control
Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

Control of the IP 265 by the CPU User Program
Advantage of parameter exchange via flag areas:
The CPU can access the parameters at any location in the CPU user program without having to
check each time whether the IP 265 is ready.
6.3.2

Programming Blocks of the CPU Program Part

We provide you with the following function blocks:
OB21/22:
OB1:
FB1 "CONTROL1":
FB1 "CONTROL2":
FB2 "IPPARAM1":
FB2 "IPPARAM2":
Control of an IP 265
OB 21/22
Segment 1
0000
:L
0001
:T
0002
:
.
.
.
ABCD
:BE
OB 1
Segment 1
0000
:JU FB 1
0001 NAME
:CONTROL1
0002
:
.
.
.
ABCD
:BE
FB 1
Segment 1
Name :CONTROL1
000A
:A
000B
:AN
000C
:JC
000D NAME
:IPPARAM1
000E
:BE
6-6
Switch the IP 265 to the RUN state at restart
Invoke the control FB (FB1 "CONTROL1" or FB1 "CONTROL2")
STL for control of one IP 265 (slot 2),
STL for control of two IP 265 modules which have ben expanded (slots 2
and 3)
STL for parameter exchange with one IP 265 (slot 2)
STL for parameter exchange between two IP 265 modules which are
expanded (slots 2 and 3)
0000
KH 0200
QW 80
0000
0000
IP 265 in slot 2
I
80.1
I
80.2
FB 2
Set RUN bit of the IP 265
during restart of the CPU
Normal CPU user program:
without processing input
and output data of IP 265
Call of FB 1:
Evaluate status word
Normal CPU user program:
without processing of input
and output data of IP 265
IP 265 in RUN state and
IP 265 not controlled by COM 265:
--> Assign and delete parameters
of IP 265
IP 265
EWA 4NEB 812 6130-02a

Advertisement

Table of Contents
loading

Table of Contents