Running Composite Function Blocks in FBDK

23 views
Skip to first unread message

Manuel Vilaça

unread,
Feb 14, 2012, 2:58:54 PM2/14/12
to FBDK
Hello! good night!...

I have two little problems here and I would like very much if someone
can answer or tell me the solutions of my problems.

The problems are:
1 - I built a composite function block (with IN_ANY
function blocks and e_merge function block) and it compiled well with
no errors but, when I'm trying to run it in order to see the result it
doesn't show anything. The processing status bar in the right upper
corner is always indicating that something is being processed.
2 - The IN_BOOL function block (FB) misteriously doesn't
compile in my FBDK. I didn't make any change to it and the Log screen
always shows me the following message:
C:\Users\manuel\Desktop\FBDK\java\fb\rt\hmi
\IN_BOOL.java:11: fb.rt.hmi.IN_BOOL is not abstract and does not
override abstract method itemStateChanged(java.awt.event.ItemEvent) in
java.awt.event.ItemListener public class IN_BOOL extends FBInstance
implements ItemListener {
^
1 error

I thank for your atention.

Manuel Vilaça

Jim Christensen

unread,
Feb 14, 2012, 5:58:34 PM2/14/12
to FBDK
1) Composite FBs that use HMI elements or other Service Interface
Function Blocks (SIFBs) usually don't test well by themselves - you
have to build a "test fixture" System configuration containing at
least a FRAME_DEVICE with a contained PANEL_RESOURCE where you put the
composite FB along with any other HMI elements you need for testing.
As an example, look at the hmi/OUT_QO_US FB and how it is used in the
math/matrix/TEST_MATRIX example, for instance in the
MATRIX_TEST.TEST_OUT resource.

2) IN_BOOL is not compilable. It is a SIFB which is implemented with
manually created Java internals. The compiled code (IN_BOOL.class) is
already present in the fb.rt.hmi package of the fbrt.jar archive file.
--
Best regards,
Jim Christensen
Reply all
Reply to author
Forward
0 new messages