Personal Data

Username:
krstech
Joined:
2020-01-17 11:54:15

Projects

  • pid   Last Updated:

User Activity

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

    thank you! works for me.

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

    thank you! works for me.

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

    Codesys V3.5 SP17 Patch 3 (64bit) Pi package: 4.2.0.0 PFC200 package: 4.2.0.0 Here's my scripts for implementing local timezone for Eastern Standard Time - Toronto Canada. Using UTIL Functions - getDateTime() and localDateTime() Installed UTIL Library 3.5.17.0 Add declaration to Global Variable List Created POU: prgTimeZone Created Datatype: TimezoneInfo Created custom Function: tzoneDOW Created HMI screen Changed Timezone setting in Global Variable List to test and verify. 1 Install UTIL Library...

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

    Here's a snippet i've used for RS232 ASCII comm on one of my application. I'm hoping you can extract something useful from it for your requirements. It converts the input string "hello" to integer. Play around with it. I hope i understand your question. Also look into: WORD_TO_STRING(); TO_STRING(); -krstech.i code PROGRAM RS232_ReadRegisters VAR hexDataString : ARRAY[0..15] OF STRING[4]; readRegister : ARRAY[0..15] OF WORD; i, x : INT; counter : INT := 8; END_VAR (* Extract Hex data from Read Response...

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

    Here's a snippet i've used for RS232 ASCII comm on one of my application. I'm hoping you can extract something useful from it for your requirements. It converts the input string "hello" to integer. Play around with it... -krstech.i code PROGRAM RS232_ReadRegisters VAR hexDataString : ARRAY[0..15] OF STRING[4]; readRegister : ARRAY[0..15] OF WORD; i, x : INT; counter : INT := 8; END_VAR (* Extract Hex data from Read Response dataString, then convert the hexstring to integer *) FOR i := 0 TO gvl.PFC200.RS232.numReadReg...

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

    oneshot : R_Trig; oneshot(clk:=start1); if oneshot.q then something := true; if something then otherThings := true; end_if end_if if reset then something := false; otherThings := false; end_if Keep in mind, oneshot.q is only ON for one scan once start1 goes true. Oneshot.q goes off after one scan even if start1 remains true. I hope you find this helpful -krstech

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

    oneshot : R_Trig; oneshot(clk:=start1); if oneshot.q then something := true; if something then otherThings := true; end_if end_if if reset then something := false; otherThings := false; end_if I hope you find this helpful -krstech

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

    1) Install Library UTIL 2) Use Function(Word_As_String) iWord : WORD; oString : STRING; oString := WORD_AS_STRING(iWord,FALSE); See attachment for additional information. Hope this is helpful. -krstech

View All