VAR
END_VAR
=============================================
IF ...........
END_IF =============================================
I create an instance of this FB =============================================
PROGRAM PLC_PRG
VAR
MonFB1:FB1;
END_VAR
=============================================
MonFB1(
iValeur1:=iMot1 ,
iValeur2:=iMot2 ,
xCde:=xCde_Moyenne ,
xRaz:=xRazMoyenne ,
rResultat=>rMoyenne );
(Varables iMot1 , iMot2 , xCde_Moyenne , xRazMoyenne , rMoyenne are declared in GVL.) =============================================
When I Click "Generate visualisation" I see a message "FB Visu creator: finalising", but I get no new visualizations...
it seems that I do something wrong, but what ?
Thank you in advance.
Best regards.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried this quite some time ago and it worked perfectly.
What you might have to do is put the FB in the POU pool (not in your device tree).
The idea is that you can create a library containing your FB's and (automatically created) visualizations to easily reuse them in other projects.
Therefore (I think) you should put them in the POU pool to create the visualization(s).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I created a function block with specifications as I understand it in "fbvisucreator_en.pdf".
=============================================
{attribute 'FBVisuCreator'}
FUNCTION_BLOCK FB1
VAR_INPUT
{attribute 'FBVisuCreatorFormatString' := '%d'}
iValeur1: INT;
iValeur2: INT;
xCde: BOOL;
xRaz: BOOL;
END_VAR
VAR_OUTPUT
{attribute 'FBVisuCreatorFormatString' := '%d'}
rResultat: REAL;
END_VAR
VAR
END_VAR
=============================================
IF ...........
END_IF
=============================================
I create an instance of this FB
=============================================
PROGRAM PLC_PRG
VAR
MonFB1:FB1;
END_VAR
=============================================
MonFB1(
iValeur1:=iMot1 ,
iValeur2:=iMot2 ,
xCde:=xCde_Moyenne ,
xRaz:=xRazMoyenne ,
rResultat=>rMoyenne );
(Varables iMot1 , iMot2 , xCde_Moyenne , xRazMoyenne , rMoyenne are declared in GVL.)
=============================================
When I Click "Generate visualisation" I see a message "FB Visu creator: finalising", but I get no new visualizations...
it seems that I do something wrong, but what ?
Thank you in advance.
Best regards.
I tried this quite some time ago and it worked perfectly.
What you might have to do is put the FB in the POU pool (not in your device tree).
The idea is that you can create a library containing your FB's and (automatically created) visualizations to easily reuse them in other projects.
Therefore (I think) you should put them in the POU pool to create the visualization(s).
Thank you Tim.
When I put the FB in the POU pool it's work well.
Best regards.