Personal Data

Username:
peterned
Joined:
2022-02-25 11:24:50

Projects

  • No projects to display.

User Activity

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

    Hi, I have a XY system and use a CNC file to move it. Everything works OK, except for the following: when CNC execution starts, the system rushes at high speed to (X=0, Y=0) point, and only then goes to the first line of the CNC file. If one of the axes is near 0, the system jumps and immediately stops with an error. In the CNC file settings (screenshot attached) I specified low default values for speed/acceleration and a start position different from 0,0 - but all that is ignored. Any idea how to...

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

    Okay I found the problem. In case someone else has it .. I had to add a webserver component under one of the ethernet adapters (and OPC-UA server also has to be added manually). I can't remember that being necessary in any other brand of PLC, adding a webvisu usually adds whatever is necessary. But it's mentioned in the docs. So that's just another RTFM case.

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

    if the IF condition is not satisfied, it's simply skipped and the FOR loop continues with the next iteration. So you call cmd_LinuxSysCallAsync() in 5 successive scans. Try to do in steps with a CASE, e.g. CASE x OF 10: count := 0; x := 20; 20: cmd_LinuxSysCallAsync(xExecute:=TRUE,sCommand('touch txt.txt'); x := 30; 30: if cmd_LinuxSysCallAsync.xDone = TRUE THEN do_something(); count := count + 1; if count >= 5 then x := 40;//exit else x := 20; end_if; end_if; 40://end ; END_CASE;

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

    if the IF condition is not satisfied, it's simply skipped and the FOR loop continues with the next iteration. So you call cmd_LinuxSysCallAsync() in 5 successive scans. Try to do in with steps with a CASE, e.g. CASE x OF 10: count := 0; x := 20; 20: cmd_LinuxSysCallAsync(xExecute:=TRUE,sCommand('touch txt.txt'); x := 30; 30: if cmd_LinuxSysCallAsync.xDone = TRUE THEN do_something(); count := count + 1; if count >= 5 then x := 40;//exit else x := 20; end_if; end_if; 40://end ; END_CASE;

  • Modified a comment on discussion Codesys V2.3 πŸ‡¬πŸ‡§ on CODESYS Forge

    I think you can simply declare both at the same fixed memory address, e.g. aWhole AT %MB100: ARRAY [0..Main.Length] OF REAL; aDivided AT %MB100: ARRAY [0..Main.Width,0..Main.Groups] OF REAL; and use whichever you want, a change in one will automatically be reflected in the other.

  • Posted a comment on discussion Codesys V2.3 πŸ‡¬πŸ‡§ on CODESYS Forge

    I think you can simply declare both at the same fixed memory address, e.g. aWhole AT %MB100: ARRAY [0..Main.Length] OF REAL; aDivided AT %MB100: ARRAY [0..Main.Width,0..Main.Groups] OF REAL; and use whichever you want, a change in one will automatically be reflected in the other.

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

    Hi, I have a project with web visualization, but can't connect to it. PLC is ABB AC_500v3 PM5630-2ETH, Codesys version is 3.5.15 (ABB Automation builder 2.4). I tried connecting from different computers with different browsers, but it doesn't work. Chrome shows ERR_CONNECTION_REFUSED, other browsers show similar messages. I tried all possible forms of webvisu URL with port 8080 or without port, http:// or https:// , with or without webvisu. htm at the end etc. Time of PLC and PCs is correct. It's...

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

    Hi, I have a project with web visualization, but can't connect to it. PLC is ABB AC_500v3 PM5630-2ETH, Codesys version is 3.5.15 (ABB Automation builder 2.4). I tried connecting from different computers with different browsers, but it doesn't work. Chrome shows ERR_CONNECTION_REFUSED, other browsers show similar messages. I tried all possible forms of webvisu URL with port 8080 or without port, http:// or https:// , with or without webvisu. htm at the end etc. Time of PLC and PCs is correct It's...

View All