Home
rer-code
wiki
(WikiPage)
Project Members: rer-code (admin)
Last updated: 4 days ago
Post by mqi2r on Newly created texlists wont appear in the selection dropdown
CODESYS Forge
talk
(Post)
For anyone with this issue, you may need to: Open the text list properties (right-click the text list once you create it). Select the Text List tab. Change the Download by option to Visualization. I was fighting this for so long. Once you do that, you should find your text list appears in the drop down when editing a visualisation.
Last updated: 4 days ago
Newly created texlists wont appear in the selection dropdown
CODESYS Forge
talk
(Thread)
Newly created texlists wont appear in the selection dropdown
Last updated: 4 days ago
Post by jonasz on TargetVisu not accepting touch inputs
CODESYS Forge
talk
(Post)
Hi, Did you find a solution to the problem?
Last updated: 4 days ago
Post by viksym on How to get the motor scaling value from code
CODESYS Forge
talk
(Post)
If anybody finds this in the future, I managed to do it like this: scalingValue := EncoderPulseCountPerRev / ABS(AxisName.fScaleFactor); No need to use MC_ReadParameter as I am able to read this value directly from the axis object. Using an absolute value of the fScaleFactor is there in case the axis is set as inverted, in which case it would be a negative value. I was not able to figure out how to get EncoderPulseCountPerRev programatically, but since all my servos use an encoder with pulse count per revolution of 16#800000, the final equation looks like this: scalingValue := 16#800000 / ABS(AxisName.fScaleFactor);
Last updated: 4 days ago
Post by jonasz on TargetVisu not accepting touch inputs
CODESYS Forge
talk
(Post)
So, in my case, the solution is to uncheck the option to support client animation and overlay native elements. Visualisation Manager -> Settings -> General Settings
Last updated: 4 days ago
Post by minstreltesty on IDE chrashes when importing OPC UA ECM model
CODESYS Forge
talk
(Post)
ECM might be heavier or more nested than the others. Try importing it in parts if possible, or check if there’s a “lite” version of the model. https://forge.codesys.com/prj/codesys-example/element-collect/home/Home/doodle baseball
Last updated: 4 days ago
IDE chrashes when importing OPC UA ECM model
CODESYS Forge
talk
(Thread)
IDE chrashes when importing OPC UA ECM model
Last updated: 4 days ago
How to get the motor scaling value from code
CODESYS Forge
talk
(Thread)
How to get the motor scaling value from code
Last updated: 4 days ago
Post by micky on Mail_Service_SL Lib
CODESYS Forge
talk
(Post)
Hallo zusammen, ich habe folgendes Problem. Ich möchte mit der Lib Mail_Service_SL ein Mail versenden. Manchmal funktioniert es auch aber nicht zuverlässig. Wenn ich den Funktionsblock sendmail mit den entsprechenden Daten aufrufe bekomme ich die Fehlermeldung CHECK_RESULT_FAILD. Laut Dokumentation sollte im sServerMessage der Grund stehen, dieser ist aber leer. Was kann der Grund hierfür sein? Gibt es eine ander Lib mit der ich Mails versenden kann? Viele Grüße Micky
Last updated: 4 days ago
Motion 🇬🇧
CODESYS Forge
talk
(Discussion)
Realizing single or multi axis motion control, CAM, CNC and Robotic applications
Last updated: 4 days ago
Post by selim on CNC / G01 Speed is very slow (or go-stop motion) in Continuous short segment .
CODESYS Forge
talk
(Post)
Hi everyone, i face the same problem. The G-code doesn’t maintain the feed rate. If you don’t mind. can you share the final code?
Last updated: 4 days ago
CNC / G01 Speed is very slow (or go-stop motion) in Continuous short segment .
CODESYS Forge
talk
(Thread)
CNC / G01 Speed is very slow (or go-stop motion) in Continuous short segment .
Last updated: 4 days ago
blog Discussion
jzhvymetal77
blog
(Discussion)
Forum for blog comments
Last updated: 4 days ago
Post by jzhvymetal77 on IecVarAccessLibrary.IBaseTreeNode methon
CODESYS Forge
talk
(Post)
I had this code working in a previous version of CoDeSys to read variables from a GVL that were added to the Symbol configuration. The problem now is that when I get the _IBaseTreeNode_Parent, it returns a valid interface, but none of the methods or properties work. If you monitor the _IBaseTreeNode in the watch window, it does show the correct child count. However, it fails at step 30, where the child count incorrectly returns zero. In the image, you can see that the watch window displays the correct value that the property should return. Attached is the full project code. FUNCTION_BLOCK Symbols_TO_STR VAR_INPUT i_sPath : STRING(255); i_diIndexChild : DINT; i_diIndexComponent : DINT; END_VAR VAR_OUTPUT q_diChildCount : DINT; q_diComponentCount : DINT; q_sName : STRING(255); q_sValue : STRING(255); q_sType : STRING(80); q_sErrorResult : STRING(80); END_VAR VAR uiStepCopy : UINT; uiStep : UINT; uiStepProcessCopy : UINT; uiStepProcess : UINT; _IBase : IecVarAccessLibrary.IBase; _pIIecVarAccess5 : POINTER TO IecVarAccessLibrary.IIecVarAccess5; _IIecVarAccess5 : IecVarAccessLibrary.IIecVarAccess5; _RTS_IEC_RESULT : IecVarAccessLibrary.RTS_IEC_RESULT; _udiResult : UDINT; _VariableInformationStruct : IecVarAccessLibrary.VariableInformationStruct; _IBaseTreeNode_Parent : IecVarAccessLibrary.IBaseTreeNode; _IBaseTreeNode_Child : IecVarAccessLibrary.IBaseTreeNode; _ITypeDesc_Child : IecVarAccessLibrary.ITypeDesc; _TypeDescAsUnion_Child : IecVarAccessLibrary.TypeDescAsUnion; _arIBaseTreeNode_Child : ARRAY[0..20] OF IecVarAccessLibrary.IBaseTreeNode; _TypeClass_Child : IecVarAccessLibrary.IBaseLibrary.TypeClass; _psSymbolName_Child : POINTER TO STRING; _sSymbolName_Child : STRING(255); _IBaseTreeNode_Component : REFERENCE TO IecVarAccessLibrary.IBaseTreeNode; _TypeClass_Component : IecVarAccessLibrary.IBaseLibrary.TypeClass; _ByteAddress_Component : __XWORD; _ByteOffset_Component : __XWORD; _sArrayIndexName_Component : STRING(20); _diArrayIndexCalc_Component : DINT; _diArrayIndexValue_Component: DINT; _psSymbolName_Component : POINTER TO STRING; _sSymbolName_Component : STRING(255); END_VAR uiStepCopy:=uiStep; uiStepProcessCopy:=uiStepProcess; CASE uiStep OF 10: // GET IBASE FROM CURRENT APP _IBase:= IecVarAccessLibrary.IecVarAccGetFirstInterface2(0); IF _IBase<>0 THEN uiStep:=20; ELSE q_sErrorResult:=CONCAT(UINT_TO_STRING(uiStep), ': IecVarAccGetFirstInterface2'); uiStep:=9000; END_IF 20: //QueryInterface IIecVarAccess5 from IBASE _pIIecVarAccess5 := _IBase.QueryInterface(IecVarAccessLibrary.ITFID_IIecVarAccess5, ADR(_RTS_IEC_RESULT)); IF _pIIecVarAccess5<>0 AND _RTS_IEC_RESULT=0 THEN _IIecVarAccess5 := _pIIecVarAccess5^; uiStep:=30; ELSE q_sErrorResult:=CONCAT(UINT_TO_STRING(uiStep), ': QueryInterface_IIecVarAccess5'); uiStep:=9000; END_IF 30: // Get IBaseTreeNode_Parent _IBaseTreeNode_Parent := _IIecVarAccess5.VarAccGetNode3(ADR(i_sPath), ADR(_VariableInformationStruct), ADR(_RTS_IEC_RESULT)); IF _IBaseTreeNode_Parent<>0 AND _RTS_IEC_RESULT=0 THEN q_diChildCount:=_IBaseTreeNode_Parent.ChildCount; uiStep:=40; ELSE q_sErrorResult:=CONCAT(UINT_TO_STRING(uiStep), ': IBaseTreeNode_Parent'); uiStep:=9000; END_IF 40: // Get IBaseTreeNod_Child IF(q_diChildCount-1>=i_diIndexChild AND i_diIndexChild >=0) THEN _IBaseTreeNode_Child := _IBaseTreeNode_Parent.GetChild(i_diIndexChild); IF _IBaseTreeNode_Child<>0 THEN uiStep:=50; ELSE q_sErrorResult:=CONCAT(UINT_TO_STRING(uiStep), ': IBaseTreeNode_Parent'); uiStep:=9000; END_IF ELSE q_sErrorResult:=CONCAT(UINT_TO_STRING(uiStep), ': i_diIndexChild OutBounds'); uiStep:=9000; END_IF
Last updated: 4 days ago
IecVarAccessLibrary.IBaseTreeNode methon
CODESYS Forge
talk
(Thread)
IecVarAccessLibrary.IBaseTreeNode methon
Last updated: 4 days ago
wiki Discussion
jzhvymetal77
wiki
(Discussion)
Forum for wiki comments
Last updated: 4 days ago
Home
jzhvymetal77
wiki
(WikiPage)
Project Members: jzhvymetal77 (admin)
Last updated: 4 days ago
(no subject)
jzhvymetal77
wiki
(Thread)
Last updated: 4 days ago
wiki Discussion
dennisgeneralid
wiki
(Discussion)
Forum for wiki comments
Last updated: 3 days ago
blog Discussion
dennisgeneralid
blog
(Discussion)
Forum for blog comments
Last updated: 3 days ago
Home
dennisgeneralid
wiki
(WikiPage)
Project Members: dennisgeneralid (admin)
Last updated: 3 days ago
(no subject)
dennisgeneralid
wiki
(Thread)
Last updated: 3 days ago
Deutsch 🇩🇪
CODESYS Forge
talk
(Discussion)
German forum
Last updated: 3 days ago
Post by dkugler on Mail_Service_SL Lib
CODESYS Forge
talk
(Post)
ich meine mich zu erinnern, dass ich schon FB's hatte, die Fehlermeldungen mit löschen des Enable/Execute Bits abgelöscht haben. Dann würde bei dir sobald das Error Bit gesetzt wird, nichts mehr drin stehen. Vielleicht wäre es ein Versuch wert, den String vor dem zurücksetzen des Execute in eine Variable zu speichern, ob dann was drin steht und danach erst ablöschen?
Last updated: 3 days ago