Вы находитесь на странице: 1из 11

7.

Function Diagram

© Siemens AG 2007
Function Diagram

ƒ Functional sequence in up to 3
independent tasks
Acquisition of
ƒ Periodical processing all process data

Constant cycle time


ƒ Guaranteed reaction times

ƒ Freely programmable control Processing in


Function diagram

ƒ Several programming languages

ƒ Function block diagram language


Output of all process data

ƒ Structured text

ƒ Step sequences
© Siemens AG 2007
Page 2 Juli-07 Chapter_07 ACP-Parametrierung FUP.ppt by M. Nikodym Power Transmission and Distribution
Signals in Function Diagram

ƒ The implementation of control circuits calls for not only the function
diagram, but also for signals from the environment (status information,
measured values, commands, etc.)

ƒ To be able to use these signals in the function diagram there are two
possible ways how to process them.

ƒ 1. Periodical way (the signals are interrogated periodically by the


peripheral element. Therefore, this is possible only from the associated
own periphery)

ƒ 2. Spontaneous way (the spontaneous messages will be entered into


the process image of the control circuit upon changes. From there, they
are read in each task cycle. This is possible for any message)

© Siemens AG 2007
Page 3 Juli-07 Chapter_07 ACP-Parametrierung FUP.ppt by M. Nikodym Power Transmission and Distribution
Signals in Function Diagram

1. Periodical processing
ƒ To make use of a signal periodically, the parameter
“Use_CAEx_Plus” must be enabled in the 1703 ACP link.

ƒ use of CAEx
ƒ 1703 ACP Plus “YES“ (i.e.,
link this data point is
used periodically
at the BSE 020

© Siemens AG 2007
Page 4 Juli-07 Chapter_07 ACP-Parametrierung FUP.ppt by M. Nikodym Power Transmission and Distribution
Signals in Function Diagram

2. Spontaneous processing
If a signal is needed as message in the function diagram, a CAEx Plus
link is to be created and activated ƒ type identification

ƒ destination system
CAEx Plus

ƒ message address

ƒ category needs to be
aligned with the data
type
ƒ CAEx Plus
link ƒ this parameter is to
be enabled only if
periodical signals are
to be sent onward
spontaneously
© Siemens AG 2007
Page 5 Juli-07 Chapter_07 ACP-Parametrierung FUP.ppt by M. Nikodym Power Transmission and Distribution
Signals in Function Diagram

If the necessary links have been parameterized in the images, one can
now generate the signal list for the function diagram.

In the menu: Tools -> CAEx Plus

© Siemens AG 2007
Page 6 Juli-07 Chapter_07 ACP-Parametrierung FUP.ppt by M. Nikodym Power Transmission and Distribution
Signals in Function Diagram

After launching CAEx Plus, the signal list will contain all signals whose
CAEx Plus link has been activated and/or that are used periodically.

ƒ in the case of periodical signals, the


signal list contains only the signal itself

ƒ in the case of spontaneous messages, the


list contains the signal and, always next to it,
also an identical structure having the suffix
“_STATE“, which contains the status bits

ƒ status bits
ƒ S: spontaneous
ƒ GI: general-interrogated
ƒ NT: not topical
ƒ IV: invalid
© Siemens AG 2007
Page 7 Juli-07 Chapter_07 ACP-Parametrierung FUP.ppt by M. Nikodym Power Transmission and Distribution
Signals in Function Diagram

For an application, only a few steps are necessary:


1. Create a type instance (new object)

© Siemens AG 2007
Page 8 Juli-07 Chapter_07 ACP-Parametrierung FUP.ppt by M. Nikodym Power Transmission and Distribution
Signals in Function Diagram

2. Create the function diagram


Drag signals into the type instance
Drag the gate from the library IEC61131-3 into the type instance
Connect the lines

© Siemens AG 2007
Page 9 Juli-07 Chapter_07 ACP-Parametrierung FUP.ppt by M. Nikodym Power Transmission and Distribution
Signals in Function Diagram

3. Code Generation
After the successful code generation, the function diagram can be
loaded into the destination system

© Siemens AG 2007
Page 10 Juli-07 Chapter_07 ACP-Parametrierung FUP.ppt by M. Nikodym Power Transmission and Distribution
Signals in Function Diagram

Task:

Create a simple logic circuit in the function diagram


Code generation and loading
Test the logic circuit

© Siemens AG 2007
Page 11 Juli-07 Chapter_07 ACP-Parametrierung FUP.ppt by M. Nikodym Power Transmission and Distribution

Вам также может понравиться