Personal Data

Username:
sarunas
Joined:
2020-01-17 12:18:28

Projects

  • No projects to display.

User Activity

  • Modified a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    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.

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    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.

  • Modified a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    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...

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    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 :...

  • Modified a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    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.

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    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?"

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    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

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    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),...

View All