7 Programming
7 - 6
NX-series Safety Control Unit User’s Manual (Z930)
Programs are executed when the safety task they are assigned to is executed.
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 7-5 Programming
Operations on page 7-27 for programming operations.
You can use system-defined function blocks (instructions) and user-defined function blocks in the
Safety Control Unit.
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. You 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 manip-
ulate and execute it as an independent entity.
With the FBD language, function blocks are represented as rectangular boxes as shown below. Func-
tion blocks consist of the following parts.
Program Execution Conditions
7-1-5 Details on Function Blocks
Procedure to Create Function Blocks
Structure of Function Blocks
In
Q
Function block name or instruction name
MyFB
SetValue
SET
RESULT
Output variable
Output variable
Input variable
Input parameters
Output parameters
Result
MyFB_instance
Instance name
Input terminal
Output terminal
TRIG
OUT
Input variable