-
Cat. No. W447-E1-08
1
-
Function Blocks/Structured Text
2
-
Part 1: Function Block
6
-
TABLE OF CONTENTS
8
-
About this Manual:
10
-
CS1-H, CJ1-H, and CJ1M CPU Unit Manuals
11
-
NSJ-series NSJ Controller Manual
12
-
FQM1 Series Manuals (Unit Version 3.0 or Later)
13
-
Overview of Contents
14
-
Read and Understand this Manual
16
-
SUITABILITY FOR USE
17
-
CHANGE IN SPECIFICATIONS
18
-
Introduction to Function Blocks
28
-
Introducing the Function Blocks
29
-
Pop-up Menu for Function Block Variable Tables
36
-
■ Reference Information
42
-
Registration of Instances
43
-
Internal Allocation of Variable Addresses
46
-
Function Block Instance Areas
47
-
Version Upgrade Information
50
-
Function Block Specifications
54
-
Data Types Supported in Function Blocks
66
-
Composition of an Instance
67
-
CJ2-series CPU Units
68
-
Function Block Instance
69
-
Function Block Holding Area (H512 to H1535)
70
-
Accessing Function Block
71
-
The data that can be set by the user in the input
72
-
The user can call an instance fr
74
-
Operation when the
75
-
Ladder Programming Restrictions
76
-
Restrictions in Locating Function Block Instances
79
-
Function Block Applications Guidelines
81
-
Instruction Support and Operand Restrictions
93
-
CPU Unit Function Block Specifications
95
-
Creating Function Blocks
104
-
Creating a Project
107
-
Function Block Definitions
109
-
Creating the Algorithm
112
-
Operand: Address and I/O
116
-
Program Circuits That
120
-
Operands with Sizes Affected by Other Operands
122
-
Setting the FB Instance Areas
127
-
DM area of CP1L-L
129
-
Checking Programs within
141
-
Monitoring Input Variables
143
-
3-2-19 Online Editing Function Block Definitions
146
-
Selecting a Transfer Mode
150
-
Source Code and Object Code
151
-
Structured Text (ST)
154
-
Introduction to Structured Text
156
-
Structured Text (ST) Language Specifications
160
-
Structured Text Language Specifications
161
-
Data Types Used in ST Programs
162
-
Inputting ST Programs
163
-
ST Language Configuration
166
-
The left side of the stat
173
-
■ Process Flow Diagram
174
-
ELSE can be omitted.
176
-
■ Processing Flow Chart
178
-
FOR i:=0 TO 100 DO
181
-
■ Reserved Words
182
-
FOR n:=1; TO 50 BY 1 DO
185
-
A: Instance name
186
-
ST-language Program Example
191
-
FOR i:=0 TO 100 BY 1 DO
193
-
Creating ST Programs
194
-
• Name: Input the variable name.
198
-
Comparing ST Programs
200
-
Transferring Source Code
203
-
System-defined external variables supported
206
-
Structured Text Errors
208
-
Text String Functions
212
-
• Arguments and Return Values
213
-
INSERT: Insert Characters
214
-
REPLACE: Replace Characters
215
-
Memory Card Functions
216
-
allocation areas, 42
226
-
monitoring function blocks, 113
227
-
In the interest of product improvement,
231