Build and Test a Service Interface Function Block Type
Start the FBDK.
Import library elements if and as needed.
Create a new Service Interface FB (SIFB) type in the editor by
double-clicking on the
FB type of the
template folder in the Library Navigator.
Edit the function block's elements:
When your editing is complete, save your work with the Save As...
It is a good idea to save your
work from time to time while editing, too!
Generate and compile a Java® source file with the Save As...
Compiled code will run but do nothing
Use a text editor or Integrated Development Environment (IDE) such
as Eclipse to fill in the
service_XXX(...) methods in the generated
file, including any additional instance variables, supporting
methods, etc., as required.
Don't forget to set the
field as appropriate and invoke the
method on the appropriate event output, e.g.,
INITO.serviceEvent(this) when leaving the
.class file with an appropriate compiler.
Test the FB type.
Document your work. It's not done until