l
Order of Execution
You can set the order of execution of all programs in a safety task.
You set this order in the
Program Assignment Settings Display of the Task Settings Tab Page
on the Safety CPU Unit Setup and Programming View on the Sysmac Studio. Refer to 6-5 Pro-
gramming Operations on page 6 - 26 for programming operations.
6-1-5
Details on Function Blocks
You can use system-defined function blocks (instructions) and user-defined function blocks in the
Safety Control Unit.
Procedure to Create Function Blocks
A function block consists of a "function block definition" that is made in advance and "instances" that
are used in the actual programs.
Create function blocks in the following order.
1 Create the function block definition.
Create the algorithm.
2 Place an instance of the function block definition in the program.
Call the function block definition from a program or another function block. Y
ou can call the
same function block definition from more than one program or function block. After you place
an instance of a function block definition in a program or in another function block, you can ma-
nipulate and execute it as an independent entity
.
Structure of Function Blocks
With the FBD language, function blocks are represented as rectangular boxes as shown below.
Function blocks consist of the following parts.
In
Q
MyFB
SetValue
S
ET
RESULT
Output variable
Output variable
I
nput variable
Input parameters
Output parameters
R
e
sult
MyFB_instance
Instance name
Input terminals
Output terminal
TRIG
OUT
Input variable
Function block name
or instruction name
• Function Block Settings
When you create an instance of a function block definition, make the following settings.
6 Programming
6 - 6
NX-series Safety Control Unit User's Manual (Z930)