Previous Topic

Next Topic

OCL (Operator's Control Language)


Misc microblock

 

The OCL microblock allows you to create your own microblock when the existing EIKON for WebCTRL microblocks are not suitablefor your application. You define the microblock's inputs, outputs, and internal calculations.

An OCL program is made up of two parts: the variable declaration section and the body of the program itself. The variable declaration section allows you to define features that are unique to the microblock and variables that are used in the body of the program. OCL also provides a number of terms, variables, mathematical functions, and programming commands you can use to complete your program.

Note that although OCL has a great deal of flexibility, you should not try to program an entire control program into a single microblock. The program will function more efficiently if you break it up into smaller sections, using wires and other microblocks whenever possible. This way, you will also be able to easily see the components of the control program, which will make the program easier to troubleshoot if necessary.

The OCL program is not case-sensitive, but there are certain characters that have a special meaning, and there are cases in which a certain syntax must be used for the command to be understood.

When you click OK in the OCL microblock dialog box, the program is saved and checked for errors.

To create a custom microblock

Sample program

Variable declaration section

Predefined symbols

System variables

Special characters

Mathematical functions

Programming structures