40
Function Blocks
Section 1-5
Easy-to-read “Block Box”
Design
The I/O operands are displayed as local variable names in the program, so
the program is like a “black box” when entering or reading the program and no
extra time is wasted trying to understand the internal algorithm.
Different Processes Easily
Created from a Single
Function Block
Many different processes can be created easily from a single function block by
using input variables for the parameters (such as timer SVs, control con-
stants, speed settings, and travel distances) in the standard process.
Reduced Coding Errors
Coding mistakes can be reduced, because blocks that have already been
debugged can be reused.
Data Protection
The local variables in the function block cannot be accessed directly from the
outside, so the data can be protected. (Data cannot be changed unintention-
ally.)
Improved Reusability
through Programming
with Variables
The function block's I/O is entered as local variables, so the data addresses in
the function block do not have to be changed as they do when copying and
reusing a program section.
Creating Libraries
Processes that are independent and reusable (such as processes for individ-
ual steps, machinery, equipment, or control systems) can be saved as func-
tion block definitions and converted to library functions.
The function blocks are created with local variable names that are not tied to
physical addresses, so new programs can be developed easily just by reading
the definitions from the file and placing them in a new program.
Nesting Multiple
Languages
Mathematical expressions can be entered in structured text (ST) language.
Nesting function blocks is supported for CX-Programmer Ver. 6.0 or higher.
For example, it is possible to express only special operations in ST language
within a function block in a ladder diagram.
For details on using function blocks, refer to the
CX-Programmer Ver. 7.0
Operation Manual: Function Blocks
(Cat. No. W447).
Function block (ladder language)
Call (Nesting)
Function block (ST language)
Содержание CP1H CPU UNITS - PROGRAMMING 05-2007
Страница 2: ......
Страница 3: ...CP1H X40D CP1H XA40D CP1H Y20DT D CP1H CPU Unit Operation Manual Revised March 2009...
Страница 4: ...iv...
Страница 10: ...x...
Страница 18: ...xviii...
Страница 22: ...xxii...
Страница 34: ...xxxiv Conformance to EC Directives 6...
Страница 174: ...140 CP series Expansion I O Unit Wiring Section 3 6...
Страница 370: ...336 Analog I O XA CPU Units Section 5 5...
Страница 552: ...518 Trouble Shooting Section 8 7...
Страница 595: ...561 Sample Application Section 9 12 Network Settings Network Tab Network Settings Driver Tab...
Страница 598: ...564 Sample Application Section 9 12...
Страница 642: ...608 Standard Models Appendix A...
Страница 643: ...609 Appendix B Dimensions Diagrams X XA and Y CPU Units 90 100 110 140 150 8 85 Four 4 5 dia holes...
Страница 652: ...618 Dimensions Diagrams Appendix B...
Страница 745: ...711 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Страница 746: ...712 Connections to Serial Communications Option Boards Appendix F...
Страница 776: ...742 PLC Setup Appendix G...
Страница 778: ...744 Specifications for External Power Supply Expansion Appendix H...
Страница 786: ...752 Revision History...