Function Block Applications Guidelines
Note
2-5
Function Block Applications Guidelines
2-5-1
Deciding on Variable Data Types
Integer Data Types
(1, 2, or 4-word Data)
Note
Word Data Types
(1, 2, or 4-word Data)
Text String Data
56
CP-series CPU Units
Function block instance
area
Non-retained
Retained
Timer
Counter
DM area of CP1L-L
Address
D0000 to D9999
D10000 to D31999
D32000 to D32767
If there is an instruction in the user program that accesses an address in an
FB instance area, the CX-Programmer will output an error in the following
cases.
• When a program check is performed by the user by selecting Program -
Compile from the Program Menu or Compile All Programs from the
PLC Menu.
• When attempting to write the program through online editing (writing is
not possible).
This section provides guidelines for using function blocks with the CX-Pro-
grammer.
Use the following data types when handling single numbers in 1, 2, or 4-word
units.
• INT and UINT
• DINT and DINT
• LINT and ULINT
Use signed integers if the numbers being used will fit in the range.
Use the following data types when handling groups of data (non-numeric
data) in 1, 2, or 4-word units.
• WORD
• DWORD
• LWORD
Use the following data type for text string data.
• STRING
Initial value of
Initial value
start address
of size
H512
896
H1408
128
T3072
1024
C3072
1024
CP1L-L
Provided
Not Provided
Provided
Section 2-5
Allowed data areas
CIO, WR, HR, DM
(See note.)
HR, DM (See note.)
TIM
CNT
Need help?
Do you have a question about the CX-PROGRAMMER V8.1 and is the answer not in the manual?