Bloques Diagram
Bloques Diagram
TABLE OF CONTENTS
9.1.1 Objectives
9.1.2 Legend
AC 800M Configuration
AC 800M Planning
Declaration Pane
Code Pane
You can change the execution order later by moving the selected
function blocks and functions "up" or "down" within the structure pane.
Just drag-and-drop the function block within the code pane.
Assignments
Function Description
Move, := Assigns the value (number, logical or string) of the input
parameter to the output parameter.
Boolean Operators
Function Description
NOT Negates the Boolean value (1/0, on/off or True/False)
AND, & Boolean AND
XOR, =2k+1 Boolean XOR
OR, >=1 Boolean OR
Arithmetic Operators
Function Description
EXPT, ** Exponential, i.e. raising to the power
MUL, * Multiplication
DIV, / Division
ADD, + Addition
SUB, - Subtraction
MOD Modulus
ABS Absolute value
Relational Operators
Function Description
LT, < Less than
GT, > Greater than
LE, <= Less than or equal to
GE, >= Greater than or equal to
EQ, = Equal to
NE, <> Not equal to
The FBD panes are the right upper and lower sub panes within the
code pane if you are working with the FBD editor. They contain the
function block diagram of the POU you are programming.
New Object
Properties
By clicking with the right mouse button on a function (box) you will see
a menu.
Delete
Press “OK” to close the dialog window and apply the connection of the
parameter.
If the user enters a name that is not recognized by the system (i.e. not
declared) and presses “OK”, the system will ask the user if the
unknown name should be declared by the system.
Fill in the name of the variable in the actual “Parameter” field. Use the
By this, you select the second parameter, though the selection of the
first one remains, and you open the context menu. Select “Connect to
Previous Selection” from the context menu to accomplish the
connection.
If you want to add a comment for a page in FBD, just right click and
select “Pages” and selection “Page Description” from the context
menu.
You can open one or several new online editor windows from the
Project Explorer by double-clicking on the Diagram Organization Unit
you want to view.
Exercise 9.1
Search For:
Enter the text to search for. Search options (see below) can be selected
for the entered text. An empty text or an asterisk (*) character in the
text field search for all texts. All texts are case-insensitive, that is, a
search for the texts "my", "My", "mY" and "MY" gives the same search
results.
Search In:
The selection in the drop-down list specifies the scope of the search. By
default it searches in the POU where you started the search.
In the references pane you can double click on the blue texts. A POU
editor opens on the right code pane. If the code is written in for
instance FBD you will also be shown the right page of this code tab. On
the page you will have to look for the exact location. If necessary you
can do a “Find” to find it on the page.
It is possible to change the layout of the FBD pane by just right click
and selecting “Page” and selecting “Setting…”. The settings in this
page determine the page layout of the currently displayed code block.
The FBD editor inserts the page break above this function block or
function and repaginates the Function Block Diagram code block.
Select a line that connects the pins of function blocks and functions.
Right click or double click to the variable that is assigned “Go To
Related Page Connector” command to navigate to the source of the
variable that is assigned to the selected parameter.
Exercise 9.2