Personal Data

Username:
davidbo
Joined:
2020-01-17 10:57:08

Projects

  • No projects to display.

User Activity

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

    That might not be enough using CODESYS V3.5 SP20 and CODESYS Control for Raspberry Pi MC SL version: 4.11 I deleted .cmact_license directory. I installed new license and the dialog box said it was done successfully, but in reality it was not. What more should be deleted 5:/var/opt/codesys$ ls -la total 1948 drwxr-xr-x 10 root root 4096 Nov 17 12:29 . drwxr-xr-x 5 root root 4096 Jul 30 2020 .. -rw-r--r-- 1 root root 100014 Nov 17 12:08 .Audit_0.log -rw-r--r-- 1 root root 100040 Nov 17 11:30 .Audit_1.log...

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

    Under Application->"Task Configuration" you can find your task double click on that and you will see a fane to the right. You find the watchdog enable switch it off or increase the time

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

    I have {attribute 'checksumnoinit_override' := '2629838988'} {attribute 'init_related_code' := '5c6efcf8-e0f4-4166-a9fa-17eadd8908df'} VAR_GLOBAL RETAIN PERSISTENT {attribute 'order_in_persistent_editor' := '0'} segmentValue: ARRAY[0..49] OF REAL; {attribute 'order_in_persistent_editor' := '1'} segmentTime: ARRAY[0..49] OF REAL; // Generated instance path of persistent variable PRG.test: INT; // Generated instance path of persistent variable PRG.nw_storage: SysSocket_Implementation.SysSocket_Interfaces.SOCK_ADAPTER_INFORMATION2;...

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

    I have now and it works. I had the idea that it had something to do with codesyscontrol.cfg, but where can I find a description of all the things you can set in codesyscontrol.cfg and its syntax?

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

    I have done: systemctl stop dhcpcd sudo ip addr flush dev eth0 sudo ip link set eth0 up but a call to SysSockSetIpAddressAndNetMask does not give the eth0 an IP address Why?

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

    The reason for why CODESYS halts was a CODESYS watchdog exception. 'sudo ip' takes a long time.

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

    You never stay in a method. You need a block to do that. Something like: VAR button:BOOL:=FALSE; count:UINT:=0; END_VAR IF button THEN //read pressure count:=count+1; IF count>1 THEN button:=FALSE; count:=0; END_IF END_IF

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

    It is stated: "Dynamic ip address, provided by DHCP, BOOTP, etc. Cannot be changed by SysSockSetIpAddressAndNetMask()" Therefore I try to stop dhcpcd and flush the eth0 like this VAR CONSTANT flushIP:STRING:='sudo ip addr flush dev eth0'; stopDHCP:STRING:='sudo systemctl stop dhcpcd'; END_VAR SysProcessExecuteCommand2(pszCommand:=stopDHCP, pszStdOut:=stdout,udiStdOutLen:= SIZEOF(stdout),pResult := ADR(Result)); SysProcessExecuteCommand2(pszCommand:=flushIP, pszStdOut:=stdout,udiStdOutLen:= SIZEOF(stdout),pResult...

View All