Omron CX-PROGRAMMER V8.1 Operation Manual page 53

Function blocks/ structured text
Table of Contents

Advertisement

Version Upgrade Information
Version 5.0 to 6.0 Upgrade Information
Nesting Function Blocks
Previous version (Ver. 5.0)
A function block could not be called from another
function block. (Nesting not supported.)
I/O Bit Monitor Support for Ladder Programs in Function Blocks
Previous version (Ver. 5.0)
The I/O status of a function block instance's lad-
der diagram could not be monitored while moni-
toring the program online.
(It was only possible to check the program in the
function block definition.)
Registering and Monitoring Function Block Instance Variables in a Watch Window
Previous version (Ver. 5.0)
To register a function block instance's variable in
a Watch Window, it was necessary to display the
Watch Window, double-click the window, and
select the desired variable from a pull-down list.
Other Function Block Improvements
28
A function block can be called from another function block (nested). Up
to 8 nesting levels are supported.
The languages of the calling function block and called function block
can be either ladder language or ST language.
The nesting level relationship between function blocks can be displayed
in a directory tree format. When function blocks are nested, just one
Function Block Library file (.cxf extension) is stored for the calling func-
tion block and its called (nested) function block definitions.
The I/O status of a function block instance's ladder diagram can be
monitored while monitoring the program online.
To monitor the I/O status, either double-click the function block instance
or right-click the instance and select Monitor FB Ladder Instance
from the pop-up menu. At this point, it will be possible to monitor the
status of I/O bits and the content of words, change PVs, force-set/reset
bits, and monitor differentiation (ON/OFF transitions) of bits.
Note Online editing is not supported and timer/counter SVs cannot be
changed.
Multiple variables in a function block instance can be easily registered
together in the Watch Window. The FB variables registration Dialog Box
can be displayed with any of the following methods and the variables
can be registered together in that Dialog Box.
• Right-click the function block instance and select Register in Watch
Window from the pop-up menu.
• Select the desired function block instance in the program or variable
table and either copy/paste or drag/drop the instance into the Watch
Window.
• Move the cursor to an empty line in the Watch Window and select
Register in Watch Window from the pop-up menu.
• The cross-reference pop-up function is supported in ladder programs
within function blocks.
• The ST language help program can be started from the pop-up menu in
ST Editor.
• A function block's definitions can be opened just by double-clicking the
function block instance.
• The cursor automatically moves down after a function block instance's
parameter input is confirmed.
New version (Ver. 6.0)
New version (Ver. 6.0)
New version (Ver. 6.0)
Section 1-6

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac ws02-cxpc1-v8Sysmac cx-programmer 8.1

Table of Contents