Post by haydermsalih on OSCAT Network LIBRARY: FTP_CLIENT
CODESYS Forge
talk
(Post)
Hello I am using FTP_CLIENT to donwnload/Upload a text or CSV file from FTP server. UpLoading from PLC to FTP server is working without any problem but when I try to download from FTP server I get an error. The FTP_CLIENT Block allows me to add URL but I do not where I can specify the direcory to save the downloaded file... is there anyone has an experience with downloading from FTP server using FTP_CLIENT block. Thanks in advance Hayder
Last updated: 2024-01-24
Post by jaspergain on Access to the path *** is denied
CODESYS Forge
talk
(Post)
Hello, Recently I upgraded to 3.5.19.50 and have been having errors/issues when doing a download/online change. The message as seen in the attachment pops up. The file in the path is different every time. However when I login again afterwards all works fine. This issue does not happen on older versions. Any clue what the issue could be? I did an reinstall/repair but the issue reappeared again... Thanks in advance!
Last updated: 2024-01-25
Post by wiresplus on INT_TO_WORD function not working
CODESYS Forge
talk
(Post)
Hello, I need to take an INT input, and convert it to a WORD value. VAR DRV2Speed : WORD; //IO card takes a WORD where 16000 = full 10V output (equivalent to 50Hz) PumpFillSpeed : INT; //Users enter a value between 0 and 50 END_VAR IF <conditions> THEN DRV2Speed :=INT_TO_WORD((PumpFillSpeed/50)*16000); END_IF </conditions> According to me this should work - but it stays at 0, no matter what. What am I doing wrong?
Last updated: 2024-01-26
Post by wiresplus on Cannot get INT_TO_TIME working
CODESYS Forge
talk
(Post)
Hello, I have a simple TON timer. It is watching prime loss for a pump. The operator can set the delay via the HMI, it is an integer (seconds) As the TON uses milliseconds, we then multiply the entry by 1000 to get seconds. Seems simple, but... VAR PrimeTimer : TON; primetime : INT; END_VAR PrimeTimer(in:=State>0 AND FlowRate<MinimumFlow,pt:=INT_TO_TIME(primetime *1000)); For an entered 15 seconds (VAR primetime:=15;) the timer reads 49d17h2m26s760ms !!!! What am I doing wrong?
Last updated: 2024-01-26
Post by ojz0r on INT_TO_WORD function not working
CODESYS Forge
talk
(Post)
That calculation will not work the way you expect it to. If PumpFillSpeed is limitied to 0-50 then the only whole number would be 50/50 = 1 everything else is 0.0-0.9999... and since you are using word and integer only 50 would work since there is no representation for mantissa in integer values. Declare a temporary real variable and do the calculation and then do a REAL_TO_WORD in the DRV2Speed assignment.
Last updated: 2024-01-26
Post by melle17 on Steuerung einer Geschirrspülmaschine
CODESYS Forge
talk
(Post)
Hallo, ich muss im Rahmen einer Hausarbeit die Steuerung einer Geschirrspülmaschine erarbeiten. Leider bin ich mit dem Programm noch nicht so vertraut und habe Probleme bei meinem Zeitschalter und finde leider selber das Problem nicht. Deswegen zu meiner Frage ob mir jemand helfen könnte. Und zwar kommt das meine Variablen nicht deklariert sind und ich finde aber nicht wieso. Die zwei Screenshots zeigen nochmal den Zeitschalter und das Programm wo der Zeitschalter eingesetzt wird. Vielen Dank im Voraus.
Last updated: 2024-01-30
Post by matt-s on HMI Pushbutton/Move Instruction
CODESYS Forge
talk
(Post)
I have not gotten to the bottom of this yet no. I have double check that the variables are correct linked. When online with the program I can see the button and rung going true for the move instruction, yet it does not change. Forcing the bit in the program does change the value in Groov View. I am kind of at a loss here, especially since the other POU(For the pumps) does the same thing fine.
Last updated: 2024-02-02
Post by jshirazi on Restore license on Raspberry Pi
CODESYS Forge
talk
(Post)
Hi, I recently got a license for Raspberry Pi, after license activation I made a backup copy of "CMLicenseNew.WibuCmRaU" file to a safe place. Things got complicated and I tried to downgrade OS for some reason after that I tried several times/ways to restore my license with no luck. the specifications are as follows: Raspberry Pi 4 Model B Rev 1.1 codesyscontrol 4.10.0.0 SDK 3.5.19.30 Logs: **** ERROR: CodeMWriteLicenseFile: 'CMLicenseNew.WibuCmRaU' failed: Container not found or Server dose not support .... So if someone know a solution for this please kindly help me. Regards
Last updated: 2024-02-03
Post by josephbourgeois on Tracking out product
CODESYS Forge
talk
(Post)
Hi everyone! I synchronize the operation of the tripod and the conveyor. I have a problem with the product tracking algorithm on the conveyor (PCS_1). Sometimes I need to stop tracking a product on command without completing the operation. I do this using MC_GroupStop. But when I need to start moving in WCS again (using fb movelinearabsolute), I get a tripod kinematics error - SMC_CP_INVALID_ORIENTATION (Invalid orientation (non-orthonormal matrix or non-unit quaternion, internal error)). MC_ResetGroup does not help. What could be the problem? Has anyone encountered this?
Last updated: 2024-02-05
Post by josephbourgeois on tracking out product
CODESYS Forge
talk
(Post)
Hi everyone! I synchronize the operation of the tripod and the conveyor. I have a problem with the product tracking algorithm on the conveyor (PCS_1). Sometimes I need to stop tracking a product on command without completing the operation. I do this using MC_GroupStop. But when I need to start moving in WCS again (using fb movelinearabsolute), I get a tripod kinematics error - SMC_CP_INVALID_ORIENTATION (Invalid orientation (non-orthonormal matrix or non-unit quaternion, internal error)). MC_ResetGroup does not help. What could be the problem? Has anyone encountered this?
Last updated: 2024-02-05
Post by jinlee on Multiple WebVisu
CODESYS Forge
talk
(Post)
Hi, thank you for replying. Basically, I have a main visu with frame selection. So, under some condition the frame will switch to a specific frame. It used to be controlled by variable using "Switch frame variable". However, I realise it will change all the HMI screen at one time. So I removed the variable, and still looking for a solution to do that. Do you have any idea?
Last updated: 2024-02-06
Post by jinlee on How do you get the CURRENT ClientData?
CODESYS Forge
talk
(Post)
Hi there, I wonder how to use this CURRENTCLIENTID. However, what I am trying to do is to use PLC_PRG.aIndexVisu[CURRENTCLIENTID]. to switch the frame within the mainpage without affecting the other screen same as the first question of this post. However, I failed to do it. Can you tell me how to do it ? Or can you advise me on this issue
Last updated: 2024-02-07
Post by tk096 on SMC_Interpolator + SMC_controAxislbyPos
CODESYS Forge
talk
(Post)
Hi, you can define a start position for your GCode. How the start position can be defined depends on the CompileMode: For File and SMC_CNC_REF: Set the start position input of SMC_NCInterpreter (https://content.helpme-codesys.com/en/libs/SM3_CNC/Current/SM_CNC_POUs/NC2/Interpreter/SMC_NCInterpreter.html) For SMC_OutQueue: * Right-click on the CNC object in the project tree * Select Properties * Select the tab 'CNC' * Set the start position Concerning your second question: If the new set position cannot be reached with the given velocity limit (AXIS_REF_SM3.fSWMaxVelocity), SMC_controlAxisByPos will report bStopIpo and close the 'gap' with the given gap dynamics (SMC_controlAxisByPos.fGap*).
Last updated: 2024-02-07
Post by matthew on New Ladder Diagram conversion does not work due to missing features
CODESYS Forge
talk
(Post)
Hi @eschwellinger, I have been trying out v1.0 of the new ladder and have a few questions. I have warnings Expression or part of it has no effect I can't get rid of them, what do they exactly mean? Using the ST_Block, is there a way when online to open the ST_Block and view the running code? Thanks!
Last updated: 2024-02-09
Post by andrax on Prüfen ob Datei existiert wenn nicht neu erstellen
CODESYS Forge
talk
(Post)
Hi, ich ich möchte prüfen ob eine Datei existiert. Wenn diese nicht existiert, soll eine erstellt werden und dort hinein geschrieben werden. Die Datei wird im Programmlauf mehrfach geöffnet und Daten hinein geschrieben. Ich will hier die Funktion File.MODE.MAPPENDPLUS benutzen, das funktioniert aber nicht. fopen.xDone bleibt false. Hier der Code: fopen.sFileName:=sFileName; fopen.eFileMode:=File.MODE.MAPPENDPLUS; // Neu erstellen und anhängen fopen.xExclusive:=TRUE; fopen( xExecute:=TRUE); IF fopen.xDone THEN hFile:=fopen.hFile; sStringToWrite:=''; writeIndex:=0; SchrittDatenlog:=60; END_IF Wo liegt mein Fehler?
Last updated: 2024-02-11
Post by nmcc on Toggling Visualizations using HMI Physical Buttons
CODESYS Forge
talk
(Post)
Hey thank you for the reply dkugler. I am sorry if this seems like a stupid question. I have the use current visuvariable checkbox enabled. I can see the string names of all my visualizations. I am trying to use ladder logic to be the anser to the button press using "VisuElems.CurrentVisu := 'MainScreen';. This returns an error. Any idea what I am doing wrong or could you point me in the right direction for fixing this. Thanks,
Last updated: 2024-02-13
Post by nmcc on Toggling Visualizations using HMI Physical Buttons
CODESYS Forge
talk
(Post)
Hey thank you for the reply dkugler. I am sorry if this seems like a stupid question. I have the use current visuvariable checkbox enabled. I can see the string names of all my visualizations. I am trying to use ladder logic to be the anser to the button press using "VisuElems.CurrentVisu := 'MainScreen';. This returns an error. Any idea what I am doing wrong or could you point me in the right direction for fixing this. Thanks,
Last updated: 2024-02-13
Post by roccom1910 on variablen inhalt in datei schreiben bei system event CmpApp.EventIDs.EVT_PrepareStop
CODESYS Forge
talk
(Post)
Hallo, ich möchte meine Variablen vor dem stoppen der CPU in eine Datei schreiben. Das schreiben der Datei dauert ca. 1 minute (sehr viele Daten). Ich habe versucht das mittels Szstemevent zu bewerkstelligen leider kreiert er nur die datei sofern nicht vorhanden. Ich vermute das die Zeit nicht ausreicht um die daten zu schreiben. Anbei mal der Entsprechende FB. Kann mir da eventuell jemand weiterhelfen?
Last updated: 2024-02-15
Post by marlutec on [ERROR] The PLCopenXML import is not possible because Device not found. Type: 89, Id: 0000 0005, Version: 3.5.10.0
CODESYS Forge
talk
(Post)
Hello every one. Now i'm instaling a Weintek cMT2108x2(v2) with IR-ETN40R. When I start to import the archive content the code of I/O remote IR-ETN40R, ocurred this error. [ERROR] The PLCopenXML import is not possible because Device not found. Type: 89, Id: 0000 0005, Version: 3.5.10.0 Can someone help me? Marcos Gentil, from Brazil.
Last updated: 2024-02-15
Post by timl on BacNet Server
CODESYS Forge
talk
(Post)
Hallo, für einen BacNet2 Server lassen sich mit zwei Ethernet Schnittstellen auch zwei Bacnet 2 IP Datalinks anlegen. Einen Datalink nutze ich für den UDP Port 47808 und einen für den UDP Port 47809. Dadurch ist der Server aus beiden Netzwerken erreichbar, was so gewollt ist. Allerdings verbindet er die beiden Netze auch miteinander, was zu Kommunikationsproblemen führt, da in beiden Netzwerken bereits gleiche Device ID's vergeben sind und diese sich dann doppeln. Lässt sich diese Verbindung der beiden Netze abschalten? Gruß Tim
Last updated: 2024-02-20
Post by dhumphries on Control for Linux SL on Ubuntu Core
CODESYS Forge
talk
(Post)
Try using a password instead of a public key to log into the controller. I have a video showing how to do this on a default installation of Ubuntu server, it should work the same for Ubuntu Core. https://youtu.be/rj0dOhgnGjs?si=352PmveEP7JXZnO- I sign in to the controller at about 6:40 in the video. I have never tried to remove the public key and revert to signing in using a password, but it looks pretty straightforward https://askubuntu.com/questions/745423/how-to-turn-off-password-less-login-for-ssh
Last updated: 2024-02-28
Post by ewi04 on Recipe Manager - RecipeManCommands, load & write wrong values, Bug?
CODESYS Forge
talk
(Post)
It's good that you've found a workaround. But it's bad that you need one. The array length auf my struct is 16. My struct also contains other arrays of structs. It contains a total of 1716 variables. I have tested saving and loading extensively under version 4.3.0.0. It looks good. I couldn’t find any problems. Maybe it helps to reinstall the update (see previous post). Otherwise you could try my test project (first post). This should work with version 4.3.0.0.
Last updated: 2024-03-04
Post by timvh on IFM CR711S Version Mismatch
CODESYS Forge
talk
(Post)
You should ask IFM to provide you with the correct version of their controller packages. Then after you have installed this, you can select the correct version of the controller by right clicking on it in the device tree, update device, enable the option "Display all versions" and then select the version which matches your controller. Alternatively you can ask IFM to provide an update package which can update the runtime version on your controller to 3.2.0.0.
Last updated: 2024-03-05
Post by bschraud on Zielsystem stimmt nicht mit dem verbundenen Gerät überein
CODESYS Forge
talk
(Post)
Der Eintrag in /etc/CODESYSControl.Usr.cfg war schon vorhanden. Bisher habe ich das Gerät Pi MC SL verwendet. Laut H. Zenker ist das die "Produktionsversion“ der Raspberry-Laufzeitumgebung. Gibt es kein MC SL Runtime Package mehr? Ist dieses in der Standardinstallation nicht mehr vorhanden und muss manuell installiert werden? Beim Wechsel auf Pi 64 kann ich nicht mehr kompilieren wegen folgender Fehlermeldung: "cmperrors interfaces, 3.5.5.0 (system): C0338: Die Bibliothek 'cmperrors interfaces, 3.5.5.0 (system)' wird nur in 32-Bit-Applikationen unterstützt" Vielen Dank für die Hilfe
Last updated: 2024-03-11
Post by niallel on How to change bHiresMode
CODESYS Forge
talk
(Post)
Hi, I'm trying to get Scaling working on my axis. An increment produces 36.6mm of movement, so I want to put the units in application as 36.6. However the docs say that I need to change bHiresMode as it doesn't show me the option for Precision in the User Interface. I'm thinking that I need to change the precision so I can enter decimal places. How can I do this, or is my thinking wrong? Thanks,
Last updated: 2024-03-11
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND
or OR
.