Personal Data

Username:
ray1981
Joined:
2022-04-21 11:01:11

Projects

  • No projects to display.

User Activity

  • Posted a comment on discussion Runtime 🇬🇧 on CODESYS Forge

    Hello All, Im trying to make a timed loop with a TON and place each second a value in a array. So the counter of the for loop with add each second the new value to the array. But when I run in simmulation mode I would expect to see the array getting new values each second. Unfortunately I only see after a couple of seconds (i.e. the interval loop time) all values appearing. Is this normal behaviour? Im using CodesysV2.3.

  • Posted a comment on discussion Codesys V2.3 🇬🇧 on CODESYS Forge

    Hello All, Im new to the forum and to CoDeSYS. Im trying to create a function block which needs a timer unfortunately all examples I have found do not work I guess I make a beginner error. I hope someone want to help me FOR vCount := 0 TO 1999 DO vVsample[vCount] := INT_TO_REAL(WORD_TO_INT(vVin)); Delay(IN:=TRUE, PT:=T#1S); IF NOT(Delay.Q) THEN RETURN; END_IF Delay(IN:=FALSE); vCount := vCount + 1; END_FOR I use here a delay of 1s for testing purposes at the end it should sample faster. This code...

View All