22
Function Block Specifications
Section 2-1
Language
Select either ladder programming language or structured text (ST language).
For details refer to
Appendix B Structured Text (ST Language) Specifications
.
Variable Definitions
Define the operands and variables used in the function block definition.
Variable Names
• Variable names can be up to 30,000 characters long.
• Variables name cannot contain spaces or any of the following characters:
! “
# $ % & ‘ ( ) = - ~ ^ \ | ‘ @ { [ + ; * : } ] < , > . ? /
• Variable names cannot start with a number (0 to 9).
• Variable names cannot contain two underscore characters in a row.
•
The following characters cannot be used to indicate addresses in I/O
memory.
A, W, H (or HR), D (or DM), E (or EM), T (or TIM), C (or CNT) followed
by the numeric value (word address)
Variable Notation
Variable Type (Usage)
CLOCK PULSE
EN
ENO
(BOOL) (BOOL)
ON_TIME
(INT)
OFF_TIME
(INT)
TIMX tim_a OFF_TIME
tim_b
TIMX tim_b OFF_TIME
tim_a
ENO
tim_a
TIMER
tim_b
TIMER
ON_TIME
INT
OFF_TIME
INT
Input variables
Output variables
Internal
variables
Variable table
Name
Internal
Internal
Input
Input
Type
Usage
Item
Variable type
Inputs
Outputs
Internals
Externals
Definition
Operands to the
instance
Return values from the
instance
Variables used only
within instance
Global symbols regis-
tered as variables
beforehand with the
CX-Programmer or
user-defined global
symbols.
Status of value at next
execution
The value is not
passed on to the next
execution.
The value is passed on
to the next execution.
The value is passed on
to the next execution.
The value is not
passed on to the next
execution.
Display
Displayed on the left
side of the instance.
Displayed on the right
side of the instance.
Not displayed.
Not displayed.
Number allowed
64 max. per function
block (excluding EN)
64 max. per function
block (excluding ENO)
Unlimited
Unlimited
AT setting
No
No
Supported
No
Array setting
No
No
Supported
No
Summary of Contents for CS1-H Series
Page 3: ...iv...
Page 5: ...vi...
Page 7: ...viii TABLE OF CONTENTS...
Page 15: ...xvi Application Precautions 4...
Page 151: ...136 Procedures Section 3 2...
Page 153: ...138 Data Types Appendix A...
Page 177: ...162 External Variables Appendix C...
Page 181: ...166 Revision History...