5-5-6
Variables in Function Blocks
Programs in function blocks are all written with variables rather than actual addresses. Variables in
function blocks have different variable types and specifications than symbols outside of function blocks.
For details on variables in function blocks, refer to the CX-Programmer Operation Manual: Function
Blocks and Structured Text (Cat. No. W447).
Function Block Variable Fields
EN
ON_TIME
OFF_TIME
Variables (e.g., input variables, output
variables, and I/O variables) for transferring
data between external programming and
programming in function blocks
CJ2 CPU Unit Software User's Manual
Ladder Diagram
CLOCK PULSE
ENO
(BOOL)
(BOOL)
(INT)
5 Understanding Programming
Inside Function Blocks
Algorithm
tim_b
TIMX
tim_a
OFF_TIME
tim_a
TIMX
tim_b
ON_TIME
ENO
Variables used only in function
blocks (internal variables and
external variables)
5
5-55
Need help?
Do you have a question about the CJ2 CPU UNIT SOFTWARE and is the answer not in the manual?
Questions and answers
How do I retrieve fault codes from plc: CJ2M-CPU35