Home (version 1) discussion
tommytyler
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-06-16
Home (version 1) discussion
tygernaut
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-06-16
Home
berkdan
wiki
(WikiPage)
Project Members: berkdan (admin)
Last updated: 2025-06-16
Post by berkdan on SMC_ReadNCFile2 is always busy
CODESYS Forge
talk
(Post)
Hello, I’m using CODESYS V3.5 SP18. When I try to use SMC_ReadNCFile2 to read the file /PlcLogic/gcode.nc, the function block's bBusy output remains TRUE indefinitely. Can you help me understand what I might be doing wrong? Here is how I’m calling the function block. The value of strFileName is 'gcode.nc'. fbReadFile( bExecute := bExecute, sFileName := strFileName, bAbort := bCycleStop, fDefaultVel := RetainVariables.xSlowVelocity, fDefaultAccel := RetainVariables.xAcc, fDefaultDecel := RetainVariables.xDec, b3DMode := TRUE, bParenthesesAsComments := TRUE, fDefaultVelFF := RetainVariables.xFastVelocity, fDefaultAccelFF := RetainVariables.xAcc, fDefaultDecelFF := RetainVariables.xDec, ErrorID => gCNC.eErrorId, errorPos => gCNC.eErrorPos, ErrorProgramName => gCNC.eErrorProgName, bBusy => bReadFileBusy, sentences => sentencesss ); Thanks in advance for your help.
Last updated: 2025-06-16
Home (version 1) discussion
lance3345678
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-06-16
Home (version 1) discussion
swells1234
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-06-16
Home (version 1) discussion
kenvin0122
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-06-16
Home (version 1) discussion
stefanog11
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-06-16
Home (version 1) discussion
dirk2007
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-06-16
Home (version 1) discussion
tom245
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-06-16
Home (version 1) discussion
michelebsp
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-06-17
Home (version 1) discussion
sean1shen1
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-06-16
Home (version 1) discussion
herringbur
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-06-16
Home (version 1) discussion
fctraining
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-06-17
Home (version 1) discussion
itsthefabs
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-06-17
Post by tk096 on SMC_ReadNCFile2 is always busy
CODESYS Forge
talk
(Post)
Hi, do you process the sentences subsequently? If not, the function block fills the sentences (queue) and waits for the sentences to be processed, so that new sentences can be read and filled to the queue.
Last updated: 2025-06-17
wiki Discussion
duncan
wiki
(Discussion)
Forum for wiki comments
Last updated: 2025-06-17
blog Discussion
duncan
blog
(Discussion)
Forum for blog comments
Last updated: 2025-06-17
(no subject)
duncan
wiki
(Thread)
Last updated: 2025-06-17
Home
duncan
wiki
(WikiPage)
Project Members: duncan (admin)
Last updated: 2025-06-17
Post by dkugler on CoDeSys V3.5.19.7 Code erzeugen dauert extrem lange
CODESYS Forge
talk
(Post)
Ich hatte einige Jahre Codesys in einer VM laufen. Das habe ich vor allem wegen den sehr langen Compilierungs- und "Projekt speichern"-Zeiten wieder aufgegeben. Mein Hauptprojekt hat eine Größe von 14MB, erzeugter Code ist bei 20MB und enthält über 50 Visualisierungsseiten. Bei mir dauert das Code erzeugen mit SP20 P4 ca. 1 Minute. Mein Laptop ist ein i7 3.1GHz 16BG RAM und 5-6 Jahre alt, also wahrlich keine Rennmaschine. Ich denke dass die Übersetzungszeit extrem vom Projekt, den notwendigen Bibliotheken, Virenscanner(temporär abschalten, besser? schlechter? gleich?), gleichzeitig laufende Windows-Programme etc. abhängt. Ich schließe generell während dem Programmieren alle anderen nicht absolut notwendigen Anwendungen, um Codesys den Zugriff auf möglichst viel RAM und CPU-Leistung zu ermöglichen. Viel Erfolg bei der Suche nach dem Flaschenhals!
Last updated: 2025-06-17
Post by berkdan on SMC_ReadNCFile2 is always busy
CODESYS Forge
talk
(Post)
Hey tk96 Thank you for your help. I have found the reason why fbreader stuck. It was not the program but it was the gcode itself. G21 command blocks the reader. And multiple G codes in a line also blocks the reader. My code was: N010 G21 G17 G90 -> Blocked the reader When i change it to: N010 G90 N020 G17 Then it worked. The only thing i did not get is why the reader did not thwor error. ErrorId was SMC_NO_ERROR. Anyway, it is now working. Thanks again.
Last updated: 2025-06-17
CoDeSys V3.5.19.7 Code erzeugen dauert extrem lange
CODESYS Forge
talk
(Thread)
CoDeSys V3.5.19.7 Code erzeugen dauert extrem lange
Last updated: 2025-06-17
Post by tk096 on SMC_ReadNCFile2 is always busy
CODESYS Forge
talk
(Post)
Hi, the subsequent interpreter should report an error? The reader is just reading the file without checking the syntax.
Last updated: 2025-06-17
SMC_ReadNCFile2 is always busy
CODESYS Forge
talk
(Thread)
SMC_ReadNCFile2 is always busy
Last updated: 2025-06-17