Counting function
Using the editor in “select” mode, enter the instruction CTU (Count Up) into the ladder network:
Drop the IEC Function Block onto the empty Ladder network:
Instances of Function Blocks
Function Blocks can only be called as “
Instances.
” The process of “Instancing,” or making a
copy of a function block, is performed in the header of the POU in which the instance is to be
used. In this header the function block will be declared as a variable and the resulting instance is
given a name. It is possible to declare multiple instances with different names from one and the
same function block within the same POU. The instances are then called in the body of the POU
and the ‘
Actual’
parameters are passed to the ‘
Formal’
parameters. Each instance can be used
more than once.
Entering IEC Function Block CTU
햲
To create a new name for this instance of the CTU Function Block in this POU, click on the
variable name
Instance
above the CTU function block. And press F2 to bring up the
Vari-
able selection
dialogue. Fill in the resulting window as shown on the next page.
Building a Project
Application Program
Training Manual GX IEC Developer
4 - 25
Summary of Contents for FX2N-32CAN
Page 1: ...MITSUBISHI ELECTRIC FACTORY AUTOMATION Programmable Logic Controllers GX IEC Developer ...
Page 2: ......
Page 4: ......
Page 6: ......
Page 10: ...IV MITSUBISHI ELECTRIC ...
Page 18: ...Modular PLC Training Hardware Course Overview and Requirements 1 2 MITSUBISHI ELECTRIC ...
Page 176: ...Device Edit 8 4 MITSUBISHI ELECTRIC ...
Page 190: ...Assigning DUT Variables to Function Blocks Data Unit Types DUT 10 10 MITSUBISHI ELECTRIC ...
Page 198: ...Array Example Single Dimension Array Arrays 11 8 MITSUBISHI ELECTRIC ...
Page 219: ...Sequential Function Chart SFC SFC Elements Training Manual GX IEC Developer 14 3 ...
Page 230: ...Structured Text Program Example IEC Structured Text 16 4 MITSUBISHI ELECTRIC ...
Page 278: ...PLC Components Glossary Appendix A 18 MITSUBISHI ELECTRIC ...
Page 283: ......