Omron PLC programming software to use the function block

Omron PLC programming software also increases the function block function block preparation software features to IEC61131-3
A function block call a ladder example
The main purpose is to promote good function block structured programming, function calls; allow complex programs to create less code, more manageable process.
A block from the block header and block body composition
Physique – to be used in the function block program data: as a variable input and output connections, the function block variables, parameters are defined locally within a block – parameters.
Blocks may contain instructions algorithm – this is the actual code for each function block execution. Call, the corresponding input and output variables corresponding to the actual variable substitution. Not all PLC function blocks can be created.
The function block can be established Omron PLC: CJ1M, CJ, CS, CP1H / L, etc;
The number of each type of PLC function blocks that can be created is different. You can define up to 64 function blocks in the PLC, up to 30,000 write statements.
Steps for creating and using function blocks
A, PLC must be a valid PLC type.
Second, the definition of the function block is created. Select the appropriate function block type: ladder or structured text; the new block is created, its name will default to ‘block’.
Third, it is to open the block for editing, including setting a variable using function blocks in the block header; block the use of written algorithms function block ladder structured editor or a text editor to write.
Fourth, created after the function block can be called in the main program using the ladder diagram editor.
If a specific function block already exists, from ‘FB list’ option. If not, the function block is created only need to enter a new name, select the appropriate ‘FB list’ definition. The function block is created automatically in the global symbol table selection (including the allocation of memory for each variable in the function block header is defined); calling function block will be displayed in the ladder.Executive function block calls can be connected to the function block EN input pin through execution conditions. When the execution condition is satisfied (equivalent to True), energy flow reaches the EN pin, the function block is executed. Function Block ENO output pin optional. It is optional; you can connect to perform coil or execution conditions, but the right-most elements must be terminated with a coil or instructions.
V. The function block input and output pins.
These pins must use the [ENTER] key or from [insert] [function block parameters] menu option to select the parameters of the connection; rather than using the contact or coil connection. Left function block input pin; the right side of the function block output pin. Input and output pins connected to the function block is entirely optional.
Sixth, after the setup is complete, CX -P program can compile, download and run.
Establish ways
Select the tree menu [block], right insertOr select the tree menu [block], and then from the drop-down menu [Insert], select the [block]
There are several forms to create
First, the direct import (suffix .CXF) existing function blocks from the file;Second, create your own: structural way to write text; or a ladder to write.
Called
Select the appropriate cell programming area, right call, or use the [Insert] menu [function block call] option.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.