7 - 7
7 Programming
NX-series Safety Control Unit User’s Manual (Z930)
7-1 POUs (Program Organization Units)
7
7-1-5 Details on Function Blocks
• Function Block Settings
When you create an instance of a function block definition, make the following settings.
Function Block Name or Instruction Name
This is the name of the user-defined function block or the instruction.
Instance Name
You give an instance name to a function block instance in a program to enable managing it. You
specify an instance name when you call a function block definition from a program or another func-
tion block.
Algorithm
Algorithms are programmed in the FBD language. You cannot use the ladder diagram language
(LD) or the structured text language (ST). You can use any instructions or user-defined function
blocks in the algorithm.
Local Variable Table
The local variable table contains the definitions for input variables, output variables, and internal
variables.
Parameters
• Input Parameters to Input Variables
An input parameter passes a value to an input variable in a function block when function block
execution begins. An input parameter can be either a variable or a constant.
• Output Parameters from Output Variables
An output parameter receives a value from an output variable in a function block when function
block execution is completed. A variable is given as the parameter.
You can omit input and output parameters. Refer to the NX-series Safety Control Unit Instruc-
tions Reference Manual (Cat. No. Z931) for details on the operation.
Settings of a function block instance in a program
Function block name
Instance name
Input variables
Output variables
Internal variables
Output parameters
Input parameters
Created in the function definitions.
Algorithm
Local variable table
• Programming in the FBD language.
• Any instructions and user-defined
function blocks can be used.