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

 
<< < 1 .. 138 139 140 141 142 .. 293 > >> (Page 140 of 293)

Post by pernockham on Gateway in China - "Gateway not connected" CODESYS Forge talk (Post)
Trying to communicate (from Europe) with/to a unit located in china, the communication seems blocked/stopped. The edge gateway is installed in a linux environment and was possible to link to my Automation server account using the "Automation service tool". However it seems the unit cannot communicate with the Automation server (a Network scan will give the message "Gateway not connected"). (I have tested the eq. setup with units locally which works.) Anyone having experience situation similar to this and if its possible to make this work? Will a VPN be needed possibly? Other tips?
Last updated: 2025-09-04

Post by ewi04 on How to upload application file to remote controller (offline) ? CODESYS Forge talk (Post)
Hi, I am looking for a good way to update a decice remotely. The devices are distributed worldwide and have normally no connection to the internet. The CODESYS Automation Server can't help here. So I want to update the decices via USB stick. I have written my own code* to update the files that are created with ‘Create boot application’. But sometimes strange things happen: visu elements are present, but are not found the application is no longer registered and therefore no longer starts I have not yet found out why these errors occur. Has anyone had similar problems or found a better way? Is there perhaps a CODESYS library or something else? Many thanks! *the code deletes the directories on the device and copies the new directories from the USB stick while the system is running (goes without saying)
Last updated: 2024-02-05

Post by manuknecht on Opening a Dialog on a specific Client from ST CODESYS Forge talk (Post)
I managed to find a solution that seems to work reliably. As the VU.Globals.CurrentClient-filter accesses the CURRENTCLIENTID or at least a similar, internal variable it can only be used if called from a certain client (e.g. from a button in a visualization). My solution works by implementing a new client filter that compares the client ID of all clients to the ID of the last client that was used. The variable containing the data of the last client is defined as: G_LastClient : VU.IVisualizationClient; // Copy of last client that detected click This last client is then updated every time a button is pressed using the Execute ST-Code input configuration of the button: G_LastClient := VU.PublicVariables.Clients.Current; Next, I created a function block that implements the client filter interface as so: FUNCTION_BLOCK FB_LastClientFilter IMPLEMENTS VU.IVisualizationClientFilter VAR_INPUT END_VAR VAR_OUTPUT END_VAR VAR END_VAR Then i added a method to the FB called IsAccepted which is used to filter out the client. When creating the method, it should automatically be filled with the according variable declaration, as it is defined in the interface: (* For every client can be desided, if it is accepted. ``TRUE``: Client is accepted*) METHOD IsAccepted : BOOL VAR_INPUT (* The client, to check*) itfClient : VU.IVisualizationClient; END_VAR Now the client can be compared to the last used client as such: // check if clientID corresponds to clientID of last recorderd client IF itfCLient.ClientId = G_LastClient.ClientId THEN IsAccepted := TRUE; ELSE IsAccepted := FALSE; END_IF To make use of this custom client filter, initialize a variable with the client filter: LastClient : FB_LastClientFilter; // Client filter to find last used client Then use this client filter when opening or closing a dialog from ST: fbOpenMyDialog(itfClientFilter:=LastClient,xExecute:=TRUE,sDialogName:='VIS_MyDialog_DLG');
Last updated: 2023-09-27

Post by andre-luis on Check if Codesys runtime is on 'Running' or 'Stopped' state? CODESYS Forge talk (Post)
It's already there, the service get started as default. I missed to say that sometimes it happens w/o even the system get restarted. Anyway, the main issue here is to know the state of the runtime. We collect a lot of informations about the whole system, and it would be nice to have a way to detect the runtime state.
Last updated: 2024-07-02

Post by agentcousto on (no subject) CODESYS Forge talk (Post)
Hello, I have developed a Python script that I run to import XML files into my project. For this, I use the Python function import_xml(). Everything was working fine when I was using Codesys platform plugins version 2.6.1.2320, but since I upgraded to versions 2.7 and even 2.8, some files are no longer imported correctly. After some research, I identified that all the files containing variables of the type "POINTER TO" are affected. I have attached a screenshot of the error I am encountering. Do you know about this bug? Do you plan to fix it?
Last updated: 2025-03-26

Post by simover on TCP/IP client CODESYS Forge talk (Post)
I want to send a string to a tics TCP/IP server. I got i working with the Net Base lib. for communication good with this tcis i need to by array of byte I want to include a string in the third position of the array TCIS_Send[1] :=254; //this valus is fix for evry communication TCIS_Send[2] :=80; //this valus is fix for evry communication TCIS_Send[3] := ; here I put my and my string is lik this 5806509-DRAP10#AB#3452302073 TCIS_Send[4] :=252; //this valus is fix for evry communication
Last updated: 2023-12-18

Post by danieldiaz on Problem with FB execution CODESYS Forge talk (Post)
Hello everyone, I've been working on a system which needs an error function, with this purpose I've created a FB programmed in LD, after debugging I run the simulation. It seems that the variable linked to a coil doesn't change the value when the contacts are associated to input variables. When I use internal variables the logic works properly. I don't know if the problem is related to the variables definition or with the logic program. As you can see in the image, I1 and I2 are variables declared on the FB, the rest are input variables. If I force the eStop and Reset signals to TRUE the coil value should change, but it doesn't. However in the second network if I1 is TRUE the coil change to TRUE as it has to be. To sum up, my doubt is why that coil doesn't change its value? I would like someone to shed a light on this. Thanks!
Last updated: 2024-04-02

Post by timvh on Get the numer of day CODESYS Forge talk (Post)
For a demo application related to date/time, see: https://forge.codesys.com/prj/codesys-example/date-and-time/home/Home/
Last updated: 2023-09-14

Post by arnaud on eCockpit - unable to start simulation CODESYS Forge talk (Post)
Thanks for your help. Seems like one of these libraries are the root cause indeed.
Last updated: 2023-10-20

Post by snhatton on Saving variable values on power cycle (RevPi Connect) CODESYS Forge talk (Post)
Have you tried using the persistence manager which uses the file system of the controller to store persistent variables?
Last updated: 2023-12-04

Post by dkugler on Alarm Management - Import and Export of AlarmGroup CODESYS Forge talk (Post)
without the knowledge which error occures, it's difficult to help?!
Last updated: 2023-12-06

Post by faceplant on Get the .git folder path via scripting CODESYS Forge talk (Post)
Using the git scripting API, is there any way to get the file path of the project's .git/ folder?
Last updated: 2024-08-08

Post by tk096 on SMC_NCDecoder very slow to decode lines CODESYS Forge talk (Post)
Hi, you can call the decoder function block in a loop and/or decrease the task cycle interval of Task_PATH.
Last updated: 2024-08-23

Post by fraziersedge on ModbusServer became unreachable if reach maximum of 16 byClientConnections CODESYS Forge talk (Post)
Frédéric did you ever find a solution to this problem? I am experiencing the same thing.
Last updated: 2024-08-27

Post by ben1 on C0007 Errors CODESYS Forge talk (Post)
It appears you have some incorrect syntax. Are you able to post a snip of the code where the error occurs?
Last updated: 2024-10-08

Post by ojz0r on Leitungsverzweigung mit einem existierenden Block (z.B. AND-Glied) zu verbinden CODESYS Forge talk (Post)
What you want is to use the CFC language instead of FB.
Last updated: 2024-11-11

Post by marks on Siemens G120X via Ethernet/IP CODESYS Forge talk (Post)
Does anyone know the internals of Codesys well enough to interpret the diagnostic string?
Last updated: 2025-05-13

Post by tk096 on Max lines of code, codesys CNC ? CODESYS Forge talk (Post)
Hi, is it possible to attach the project and g-code?
Last updated: 2025-06-03

Post by laurits on Max lines of code, codesys CNC ? CODESYS Forge talk (Post)
I have now tried with larger segments, and everything seems to be working now, thank you.
Last updated: 2025-06-07

Post by sigurdrb on Network log messages CODESYS Forge talk (Post)
I can also add the kernel log messages from the same time. Seems like some kind of packet storm to the PLC?
Last updated: 2025-09-11

Post by haroonkh on Toolbox missing item CODESYS Forge talk (Post)
Hi I am new to Codesys. My toolbar has missing alot of components. Can someone help with it?
Last updated: 2024-02-22

Post by haroonkh on Toolbox missing item CODESYS Forge talk (Post)
Hi I am new to Codesys. My toolbar has missing alot of components. Can someone help with it?
Last updated: 2024-02-22

Post by markosrod on License problem gateway CODESYS Forge talk (Post)
i have the same error with when i try to validate de license of the libraries. can you help me?
Last updated: 2024-04-02

Post by squiggleypuff on Can't Add New Version of Modbus TCP Master CODESYS Forge talk (Post)
Bumping for visibility, still unable to get Modbus working on this thing.
Last updated: 2024-04-08

Post by kislov on Signature verification faited fro the following package CODESYS Forge talk (Post)
Try to use newer version of CODESYS Installer: https://store.codesys.com/de/codesys-installer.html
Last updated: 2024-06-11

<< < 1 .. 138 139 140 141 142 .. 293 > >> (Page 140 of 293)

Showing results of 7322

Sort by relevance or date