Structure Of The Cpu Program Section - Siemens SIMATIC S5 Manual

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

Advertisement

IP 265
6.3.1

Structure of the CPU Program Section

The CPU program section for controlling the IP 265 consists of 3 nesting levels.
The function blocks called by the OB1 are processed cyclically.
OB21/22
BE
OB1
JU FB 1
BE
Level 1
Figure 6-3. Structure of the CPU Program Section for Control of the IP 265
OB21/22:
The RUN command for the IP 265 is given during restart of the CPU.
FB1 "CONTROL":
The FB1 "CONTROL" checks the operating state of the IP 265. If the IP 265 is not controlled by
COM 265 and switched to RUN, the FB2 "IPPARAM" is processed. For an expansion, the
operating states of both IP 265 modules must additionally be synchronized (operating state
adjustment: Section 12).
FB2 "IPPARAM":
The FB2 "IPPARAM" supports parameter exchange between CPU and IP 265. Parameter
exchange via flag areas is initiated only if the IP 265 is ready. The following happens at one
position in the CPU user program during a CPU program cycle:
-
Output parameters (6 bytes) of the IP 265 are written from the PII into a flag area of the
CPU RAM and
-
Input parameters (6 bytes) of the IP 265 are written from the flag area into the PIQ.
EWA 4NEB 812 6130-02a
Control of the IP 265 by the CPU User Program
FB1
*
Name: CONTROL
JU FB 2
BE
Level 2
FB2
Name: IPPARAM
BE
*
Use the following, depending on the application:
FB1 "CONTROL1" and FB2 "IPPARAM1" for
controlling one IP 265 or
FB1 "CONTROL2" and FB2 "IPPARAM2" for
controlling two expanded IP 265s
Level 3
*
6-5

Advertisement

Table of Contents
loading

Table of Contents