I don't find information. All information about fb_init method is there "You can declare additional function block inputs in an FBinit method. Then you have to set these inputs in the declaration of the function block instance." and show example. So when fbinit of method is call.
I don't find information. All information about fb_init method is there "You can declare additional function block inputs in an FBinit method. Then you have to set these inputs in the declaration of the function block instance." and show example. So when fb_init of method is call.
Hi community, "Could you please explain to me how the method FB_init works? The block inside it states, 'the retain variables are initialized (reset warm / reset cold).' Every time I perform a 'cold' reset on the PLC, do I need to call FB_init? Am I thinking correctly?" Then I do that VAR_GLOBAL PERSISTENT x: UINT; END_VAR Create function block {attribute 'call_after_init'} FUNCTION_BLOCK Test VAR_INPUT y: INT; END_VAR VAR output :INT; END_VAR output:=y*y; Create FB_init of function block METHOD...
Hi, "Could you please explain to me how the method FB_init works? The block inside it states, 'the retain variables are initialized (reset warm / reset cold).' Every time I perform a 'cold' reset on the PLC, do I need to call FB_init? Am I thinking correctly?" Then I do that VAR_GLOBAL PERSISTENT x: UINT; END_VAR Create function block {attribute 'call_after_init'} FUNCTION_BLOCK Test VAR_INPUT y: INT; END_VAR VAR output :INT; END_VAR output:=y*y; Create FB_init of function block METHOD FB_init :...
Hello, I have a perhaps stupid question. I've noticed a lot of code where variables are named with an underscore. If I write it like this: VAR ValueToUInt :UINT; END_VAR AND VAR _ValueToUInt :UINT; END_VAR Is it the same or not? Is it nothing means? It is only convention.
Hello, I have a perhaps stupid question. I've noticed a lot of code where variables are named with an underscore. If I write it like this: VAR ValueToUInt :UINT; END_VAR AND VAR _ValueToUInt :UINT; END_VAR Is it the same or not?"
Hello, It is possible to make, that VISU automatic logout timer stop,when a certain program variable is set to true. I try to find information, but I don't find
Hello, I have variable code: FOR n:=1 TO 255 DO CONCAT2(pSrcString1:=ADR(GlobalPersistent.ReadAllEvents[n].sDate),pSrcString2:=ADR(GlobalPersistent.ReadAllEvents[n].STime),pDstString:=ADR(GVariable.WriteToFileString[n]),nDstSize:=255); formatStrg:='%s,%s,%s,%s'; FBFormatString(sFormat:=FormatStrg, arg1:=FSTRING(GlobalPersistent.ReadAllEvents[n].sDate), arg2:=FSTRING(GlobalPersistent.ReadAllEvents[n].STime), arg3:=FSTRING(GlobalPersistent.ReadAllEvents[n].sSource), arg4:=FSTRING(GlobalPersistent.ReadAllEvents[n].sMessageText),...
How need read screen name or something like that. For me read data from visu is deep dark :( need some information that HMI runtime, because I want call dialog popup from PLC, but if HMI is not running and I call dialog then stuck PLC.
Thank you for message. I tried do that, what you suggest to me. I create VisuInit program block I attached it. I don't understand why VisuInit program block is not running.