GE GFK-1918D Computer Accessories User Manual


 
Logic Editors
C Blocks
86 CIMPLICITY Logic Developer - PLC Version 4.00 GFK-1918D
5
C BLOCKS
A C block is an independent section of executable code written in the C
programming language, that is downloaded to and executed on the target PLC. C
blocks are created externally using GE Fanuc’s C Programming Toolkit and then
imported into a project. A C block compiled for PACSystems™ has a .gefelf
extension. A C block compiled for Series 90™-70 or Series 90™-30 has a .exe
extension. C Blocks can be called as a subroutine from another block (LD or IL) but
cannot call another block.
For more information on developing C Blocks, refer to C Programmer’s Toolkit for
Series 90 PLCs (GFK-0646) and
PACSystems RX7i C Toolkit User’s Guide (GFK-
2259).
Working with C blocks
To import a C block
1. In the Projects tab of the Navigator, right-click the Program Blocks folder and choose Add C block.
The Open dialog box appears.
2. Browse to the .exe or .gefelf file you want to import and click Open.
The selected file is added to the Program Blocks folder with the same name as
the .exe or gefelf file.
Note: You can then move the C Block to a user-defined folder.
Want to know more?
In the Help Index, choose “C” and "User-Defined Folder".
Navigator: Project tab
A C Block