Accessing Variables in a Function Block from Outside the Function
Block
You can access the input and output variables of a function block from outside the function block. Vari-
ables are written as follows:
InstanceName.VariableName
Example: To Access Output Variable
B
of Function Block Instance
FB1_Instance
FB1_Instance
FB1_Instance.B
FB1_Instance.B
FB1
B
You can access the input and output variables for a function block only within the program that con-
tains the function block.
However, you cannot access these variables from within other function block instances even if they
are in the same program. You cannot access them from other programs.
6-1-6
Details on Functions
You cannot create user-defined functions for Safety Control Units. Only system-defined functions (in-
structions) are allowed.
Structure of Functions
With the FBD language, functions are represented as rectangular boxes as shown below.
A function consists of the following parts.
This function is expressed in the FBD language:
Instruction name
AND
Input parameters
Output parameters
Para1
Para2
Output1
l
Instruction Name
This is the instruction name.
6 Programming
6 - 10
NX-series Safety Control Unit User's Manual (Z930)
Summary of Contents for NX-SIH400
Page 4: ...Introduction 2 NX series Safety Control Unit User s Manual Z930 ...
Page 46: ...Revision History 44 NX series Safety Control Unit User s Manual Z930 ...
Page 108: ...2 Specifications 2 42 NX series Safety Control Unit User s Manual Z930 ...
Page 132: ...3 Installation and Wiring 3 24 NX series Safety Control Unit User s Manual Z930 ...
Page 148: ...4 Safety Control Unit Operation 4 16 NX series Safety Control Unit User s Manual Z930 ...
Page 216: ...5 System Configuration and Setup 5 44 NX series Safety Control Unit User s Manual Z930 ...
Page 306: ...6 Programming 6 90 NX series Safety Control Unit User s Manual Z930 ...
Page 390: ...8 Calculating Safety Reaction Times 8 12 NX series Safety Control Unit User s Manual Z930 ...
Page 412: ...11 Safety Data Logging 11 10 NX series Safety Control Unit User s Manual Z930 ...
Page 504: ...12 Troubleshooting 12 92 NX series Safety Control Unit User s Manual Z930 ...
Page 554: ...l I O Map Settings Appendices A 42 NX series Safety Control Unit User s Manual Z930 ...
Page 623: ...I Index I 1 NX series Safety Control Unit User s Manual Z930 I ...
Page 625: ......