4-11
4 Understanding Programming
CP2E CPU Unit Software User’s Manual(W614)
4-
3 Fu
nct
ion B
loc
ks
4
4-
3
-
3
F
unction Bloc
k Specifications
When function blocks are used, memory is required for the following two items:
1. Function block definitions
2. Instance generation processing when function blocks are pasted into the user program as function
block instances
Therefore, the number of steps used in memory will increase with the number of instances of function
blocks created in the program (item 2).
Creating instances of function blocks (i.e., calling function block definitions and transferring parameters)
uses user program memory.
Function block definitions use memory in the FB Program Area, a special area for function blocks. If the
capacity of the FB Program Area is exceeded, the user program area is used.
Select
View
−
Memory View
from CX-Programmer.
The following Memory View Dialog Box will be displayed.
Data Types that Can be Used in Function Blocks
Data type
Content
Size
Availability in CP2E
Inputs
Outputs
In Out
Internals
Externals
BOOL
Bit data
1
Yes
Yes
No
Yes
Yes
INT
Integer
16
Yes
Yes
No
Yes
Yes
DINT
Double integer
3
2
Yes
Yes
No
Yes
Yes
LINT
Long (4-word) integer
64
Yes
Yes
No
Yes
Yes
UINT
Unsigned integer
16
Yes
Yes
No
Yes
Yes
UDINT
Unsigned double
integer
3
2
Yes
Yes
No
Yes
Yes
ULINT
Unsigned long (4-word)
integer
64
Yes
Yes
No
Yes
Yes
REAL
Real number
3
2
Yes
Yes
No
Yes
Yes
LREAL
Long real number
64
No
No
No
No
No
WORD
16-bit data
16
Yes
Yes
No
Yes
Yes
DWORD
3
2-bit data
3
2
Yes
Yes
No
Yes
Yes
LWORD
64-bit data
64
Yes
Yes
No
Yes
Yes
STRING
Text string data
Variable
No
No
No
No
No
TIMER
Timer
Flag: 1
PV: 16
No
No
No
Yes
Yes
COUNTER
Counter
Flag: 1
PV: 16
No
No
No
Yes
Yes
Array
-
-
No
No
No
No
No
Structure
-
-
No
No
No
No
No
Number of Steps Used by Function Blocks
Checking Function Block Memory Usage
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......