Search talk: Object reference not set to an instance of an object

 
<< < 1 .. 45 46 47 48 49 .. 287 > >> (Page 47 of 287)

Post by paulpotat on Project size increasing continuously CODESYS Forge talk (Post)
I still have the same problem with Codesys 3.5 SP18. Initially, my project is ~5 Mo. I work on it for like 3-4 days and it goes up to ~10Mo. If I make an export of the project and import it in a new empty project, it goes back to approximately 5 Mo. Why is it doing this ?
Last updated: 2023-08-23

Post by madskaizer on Exception when OPCUA datasource disconnects from Server CODESYS Forge talk (Post)
We have similar issues, with crashing PLCs, but this ranges from 3.5.16.40 to 3.5.19.70. Which log made you confirm the exception crash? I am currently looking for evidence of what causes our PLCs to crash. Network stability could be an issue with latest security roll-outs like 802.1X and segregation.
Last updated: 2025-03-31

Post by sandro66 on Application-based license Modbus Channels CODESYS Forge talk (Post)
Hi, I imported an old project created with version 3.51.20.50 into the new version 3.51.21.20. I'm using ModbusFB.ClientTCP v4.5.0.0. Strangely, I can no longer download the project due to a licensing issue I didn't have before. The number of Modbus channels has gone from 1 to 54!, and there's no license that would work. Can anyone tell me where I'm going wrong? Thanks Sandro
Last updated: 2025-08-27

Post by davidbo on Is it possible in the log to see previous shutdown CODESYS Forge talk (Post)
If my application does some kind of violation which makes it cast an exception it will trigger my real watchdog which results in a reboot. Unfortunately the log it seems only shows the boot sequence. Is it possible to see what happen before reboot?
Last updated: 2024-02-08

Post by camilloo on Control for Linux SL on Ubuntu Core CODESYS Forge talk (Post)
Hello, Has anyone tried running CODESYS Linux on Ubuntu Core? I'm having problems installing the runtime. The connection to UC cannot be established. I used the instruction: https://content.helpme-codesys.com/en/CODESYS%20Control/_rtsl_linux_public_key_authentification.html I can connect to UC using SSH (putty, shell). Codesys can't. Do any of you have an idea?
Last updated: 2024-02-24

Post by kuegerls on SysProcessExecuteCommand2 and CANopen Device CODESYS Forge talk (Post)
I have now conducted some tests. The problem occurs when the Python script establishes an OPCUA connection, even if I only establish the connection without reading or writing any data. Is there another way to exchange data between Python and CODESYS without having to put in a lot of effort?
Last updated: 2024-06-24

Post by matteodigani on Error using function block "Write alias address" CODESYS Forge talk (Post)
Hi, I've got a problem using the function block "Write alias address" (ETCStack library 4.9.0.0). this is the code: EtherCAT_1(); IF EtherCAT_1.ConfigRead AND enable THEN CASE seq OF 0: exec := FALSE; T.IN := TRUE; T.PT := T#10S; T(); IF T.Q THEN seq := 1; T.IN := FALSE; END_IF ; 1: T.IN := FALSE; T(); //THIS ONE WORK CORRECTLY! WrAliasAdd.xAbort := FALSE; WrAliasAdd.usiCom := DWORD_TO_USINT(EtherCAT_1.InstanceNumber); WrAliasAdd.wSlaveAddress := 1002; WrAliasAdd.xAutoIncAdr := FALSE; WrAliasAdd.uiAliasAddress := 19; WrAliasAdd.udiTimeOut := 3000; IF start THEN exec := TRUE; ELSE IF NOT error THEN start := TRUE; END_IF END_IF IF WrAliasAdd.xDone THEN start := FALSE; done := TRUE; error := FALSE; exec := FALSE; seq := 5; END_IF IF WrAliasAdd.xError THEN start := FALSE; done := FALSE; error := TRUE; exec := FALSE; END_IF ; 5: exec := FALSE; T.IN := TRUE; T.PT := T#1S; T(); IF T.Q THEN seq := 10; END_IF ; 10: T.IN := FALSE; T(); //THIS ONE GIVES ME AN ERROR! WrAliasAdd.xAbort := FALSE; WrAliasAdd.usiCom := DWORD_TO_USINT(EtherCAT_1.InstanceNumber); WrAliasAdd.wSlaveAddress := 1006; WrAliasAdd.xAutoIncAdr := FALSE; WrAliasAdd.uiAliasAddress := 25; WrAliasAdd.udiTimeOut := 1000; IF start THEN exec := TRUE; ELSE IF NOT error THEN start := TRUE; END_IF END_IF IF WrAliasAdd.xDone THEN start := FALSE; done := TRUE; error := FALSE; exec := FALSE; seq := 99; END_IF IF WrAliasAdd.xError THEN start := FALSE; done := FALSE; error := TRUE; exec := FALSE; END_IF ; ELSE ; END_CASE WrAliasAdd(xExecute := exec); END_IF The first one slave ethercat works correctly, but the other one gives me an error. Attached the ethercat configuration of the devices. All the devices are set "Optional". So my idea is to enable only the first one (1002) and the fifth one (1006).
Last updated: 2025-10-01

Post by joep on overruling kinematic limits of [-90Β°, 90Β°] in bipod_rotary CODESYS Forge talk (Post)
Hi All, for my robotics application we are building a 2-axis parallel scara using the kin_bipod_rotary kinematics. Codesys implemented limits of [-90Β°, 90Β°] according to the documentation: https://content.helpme-codesys.com/en/libs/SM3_Transformation/Current/SM3_Transformation/Function-Blocks/Positioning-Kinematics/Parallel-Systems/Kin_Bipod_Rotary.html Would it be possible to overrule these limits somehow, our mechanical limits are more in the range of [-110Β°, 135Β°] In this range we also don't encounter point where singularity is an issue. Hopeful someone knows a solution, Best regards, Joep
Last updated: 2024-09-04

Post by jzhvymetal77 on VarAccGetAddress does not return the correct address for TYPE_ARRAY or TYPE_USERDEF. CODESYS Forge talk (Post)
VarAccGetAddress does not return the correct address for TYPE_ARRAY or TYPE_USERDEF. When you use VarAccGetNode, it returns a proper IBaseTreeNode if you provide the full path of an array element or structure element, and it even provides the correct data type. The problem is that with TYPE_ARRAY, it returns the start address of the array rather than the indexed element. With TYPE_USERDEF, it only returns the offset of the element instead of the actual address. This causes many issues with nested structures or arrays of structures, since it requires manually calculating the address based on the parent IBaseTreeNode. See attached image and example.
Last updated: 2025-08-28

Post by cihangur on C0138: No matching 'FB_Init' method found for instantiation of VisuClientObjectMgr CODESYS Forge talk (Post)
This "FB_Init" error has become very annoying lately. It's usually related to webvisu and is resolved by deleting all objects and related libraries. Of course, you need to re-add the deleted objects. Lately, we've generally been managing by not upgrading, but this problem persists in every version since SP20 and should be resolved. I updated a project from SP 19 to SP 21 and found 116 similar errors. [ERROR] alarmmanager, 4.7.0.0 (intern): ReplaceAlarmPlaceholdersConverted: C0138: No matching 'FB_Init' method found for instantiation of CharBufferString [ERROR] visuelemsalarm, 4.7.0.0 (system): protDrawRowHeader [VisuFbElemAlarmTable]: C0138: No matching 'FB_Init' method found for instantiation of CharBufferString [ERROR] alarmmanager, 4.7.0.0 (intern): AnalyzePlaceholders2 [Alarm]: C0138: No matching 'FB_Init' method found for instantiation of CharBufferString If you have an ERROR related VisuClientObjectMgr you can try to disable "Visualization Manager - Settings - Support client animations and overlay of native elements " selection "C0138: No matching 'FB_Init' method found for instantiation of VisuClientObjectMgr" etc
Last updated: 2025-10-10

Transparency of element rectangle works only in simulation not in WebVisu CODESYS Forge talk (Thread)
Transparency of element rectangle works only in simulation not in WebVisu
Last updated: 2023-05-25

ST Condition " CASE... OF" is not working in CoDesys SP RTE CODESYS Forge talk (Thread)
ST Condition " CASE... OF" is not working in CoDesys SP RTE
Last updated: 2023-06-30

The selected PLC profile does not match the profile of .... CODESYS Forge talk (Thread)
The selected PLC profile does not match the profile of ....
Last updated: 2010-10-28

Identifier ioConfigConnector not defined. CODESYS IDE V3.5SP6 corruption after installation of CODESYS IDE V3.5SP10 CODESYS Forge talk (Thread)
Identifier ioConfigConnector not defined. CODESYS IDE V3.5SP6 corruption after installation of CODESYS IDE V3.5SP10
Last updated: 2017-10-20

Post by sturmghost on Initialization of visualization variables and cyclic code execution CODESYS Forge talk (Post)
I'm looking for a smart and short way to implement initialization of visualization variables depending on the visualization input. For an easy example consider a rectangle which rests at XPos := 0 when the input state is false and at XPos := 50 when the input state is true. My visualization variables look like this: VAR_IN_OUT State : BOOL; END_VAR VAR XPos : INT; END_VAR I put this rectangle via a visualization frame element into another visualization and link a frame reference variable with the state to it. If the variable is true, the rectangle should rest at XPos := 50 and false at XPos := 0 at visualization init but how should I assign the 50 or 0 to the internal visualization variable XPos? I would need some init-methode for the visualization but I dont want a global init-method for such tasks. I want to do it inside of the visualization element but I can't see any solution for this? It would be good to be able to define ST-code within the visualization element which runs cyclic at each VISU_TASK task-cycle then I could just check the input state and change the XPos accordingly. Does someone have a solution?
Last updated: 2023-10-01

Post by ryusoup on JSONByteArrayWriter problem? CODESYS Forge talk (Post)
Hello, I am trying to implement a FB to make JSON formatted WSTRING type message using JSON Utilities 1.9.0.0 included in the IIoT library. In my case, I want to set some objects or arrays and set values to them later. But when I wrote as the sample below, // init builder builder(pJsonData:=pJsonData, diRootObj=>diRootObj); // set the 1st key to root diKey1 := builder.SetKeyWithArray(wsKey:="key1", diParentIndex:=diRootObj, eError=>eError); // set a value to the 1st key wsValue:="value01"; builder.SetValue(Value:=wsValue, diParentIndex:=diKey1, eError=>eError); // set the 2nd key to root diKey2 := builder.SetKeyWithArray(wsKey:="key2", diParentIndex:=diRootObj, eError=>eError); // set a value to the 2nd key wsValue:="value02"; builder.SetValue(Value:=wsValue, diParentIndex:=diKey2, eError=>eError); // set a value to the 1st key again wsValue:="value03"; builder.SetValue(Value:=wsValue, diParentIndex:=diKey1, eError=>eError); // set a value to the 2nd key again wsValue:="value04"; builder.SetValue(Value:=wsValue, diParentIndex:=diKey2, eError=>eError); // write build result writer(xExecute:=TRUE, pwData:=ADR(wsResult), udiSize:=SIZEOF(wsResult), xAsyncMode:=FALSE, jsonData:=pJsonData^); the result was: { "key1": ["value01"], "key2": ["value02", "value03", "value04"] } while my expection was: { "key1": ["value01", "value03"], "key2": ["value02", "value04"] } Inspecting pJsonData^, JSONData itself seems to be ok, so I believe the issue is something caused by the writer FB. Does anyone know how to fix it? Thanks,
Last updated: 2023-10-04

Post by k2saki on Open dialog from ST , how to set parameters (vars) to dialog CODESYS Forge talk (Post)
Hi, I have a question regarding this. https://forge.codesys.com/forge/talk/Engineering/thread/8be0f6f14a/ But, How do I set parameters (var input, output ) to a dialog ?
Last updated: 2024-06-05

Adding a scaling factor to text sizes of different languages CODESYS Forge talk (Thread)
Adding a scaling factor to text sizes of different languages
Last updated: 2017-03-31

How to read effective version of libraries? CODESYS Forge talk (Thread)
How to read effective version of libraries?
Last updated: 2024-07-25

Number of Connections to Modbus TCP Slave CODESYS Forge talk (Thread)
Number of Connections to Modbus TCP Slave
Last updated: 2024-08-01

Number of Connections to Modbus TCP Slave CODESYS Forge talk (Thread)
Number of Connections to Modbus TCP Slave
Last updated: 2024-08-01

Number of Connections to Modbus TCP Slave CODESYS Forge talk (Thread)
Number of Connections to Modbus TCP Slave
Last updated: 2024-08-01

Number of Connections to Modbus TCP Slave CODESYS Forge talk (Thread)
Number of Connections to Modbus TCP Slave
Last updated: 2024-08-01

How to get component name and IDs of enumeration? CODESYS Forge talk (Thread)
How to get component name and IDs of enumeration?
Last updated: 2022-11-21

How to ensure a clean, consistent install of Codesys 3.5.4? CODESYS Forge talk (Thread)
How to ensure a clean, consistent install of Codesys 3.5.4?
Last updated: 2014-01-13

<< < 1 .. 45 46 47 48 49 .. 287 > >> (Page 47 of 287)

Showing results of 7157

Sort by relevance or date