Personal Data

Username:
kallileo
Joined:
2020-01-17 11:53:22

Projects

  • No projects to display.

User Activity

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

    Unfortunately it doesn't work. I want to read the current COM settings so I found the SysComGetSettings function in the SysCom library. "SysComGetSettings = Get the parameter of the interface specified by handle." But how do I set the hComPort RTS_IEC_HANDLE to the serial port COM1? rtsResult : RTS_IEC_RESULT; stComPortSettings : SysCom.ComSettings; hComPort : RTS_IEC_HANDLE; **hComPort := ????** rtsResult := SysComGetSettings(hCom:= hComPort, pSettings:= ADR(stComPortSettings), pSettingsEx:= 0)...

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

    Unfortunately it doesn't work. I want to read the current COM settings so I found the SysComGetSettings function in the SysCom library. "SysComGetSettings = Get the parameter of the interface specified by handle." But do I set the hComPort RTS_IEC_HANDLE to the serial port COM1? rtsResult : RTS_IEC_RESULT; stComPortSettings : SysCom.ComSettings; hComPort : RTS_IEC_HANDLE; **hComPort := ????** rtsResult := SysComGetSettings(hCom:= hComPort, pSettings:= ADR(stComPortSettings), pSettingsEx:= 0);

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

    Unfortunately it doesn't work. I want to read the current COM settings so I found the SysComGetSettings function in the SysCom library. But do I set the hComPort RTS_IEC_HANDLE to the serial port COM1? rtsResult : RTS_IEC_RESULT; stComPortSettings : SysCom.ComSettings; hComPort : RTS_IEC_HANDLE; **hComPort := ????** rtsResult := SysComGetSettings(hCom:= hComPort, pSettings:= ADR(stComPortSettings), pSettingsEx:= 0);

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

    Hi E.Kislov, I had already tried this method, which is called during every PLC cycle but it doesn't seem to affect/change the COM port settings. Maybe there is something else that needs to be done first. eSmart07_RTU.UpdateComParameters( udiBaudrate:= BaudRate, usiMedium:= 1, usiParity:= 2, usiDataBits:= 8, usiStopBits:= 1, xPolarization:= FALSE, COMPORT:= 1); BTW you make great Codesys videos on YT.

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

    Hi, I want to be able to change the baud rate of the COM port dynamically in runtime. Anyone know how to achieve it?

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

    Thank you! For target version (3.5.16.0) I get a DWORD 50663424 how do I convert it to a readable format? *Update I get it's in HEX with every nimble corresponding to a number. There is also another way https://faq.codesys.com/display/CDSFAQ/Reading+the+Compiler+and+Runtime+Version

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

    Thank you! For target version (3.5.16.0) I get a DWORD 50663424 how do I convert it to a readable format?

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

    Is it possible to find out the Codesys Runtime version running on a specific target? I want to show it on the HMI.

View All