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

 
<< < 1 2 3 4 5 6 .. 268 > >> (Page 4 of 268)

CmpIecVarAccess to get name of a type, not of a variable (instance) CODESYS Forge talk (Thread)
CmpIecVarAccess to get name of a type, not of a variable (instance)
Last updated: 2016-06-08

Post by fless on Release SP20 - Changes in behaviour? CODESYS Forge talk (Post)
use this to set an invalid reference Add_EVT_OUT REF= 0;
Last updated: 2024-03-24

Post by clarenced on Multiple applications on one device sharing variables. CODESYS Forge talk (Post)
Sounds feasible, but how would I create this object so that both applications would use the same instance of it. If this did work, it's still not really the solution I am looking for as it would mean mapping every variable I want to use on the hmi through this object vs I was hopping all the GVL variables would be available.
Last updated: 2025-02-20

Post by manuknecht on Using SMC_MOVTYP.INITPOS without specifying the start position CODESYS Forge talk (Post)
I am using the object SMC_GEOINFO to generate a trajectory and move a system accordingly using the SMC_INTERPOLATOR function block similar to the sample project CNC10_DynamicPath.project. According to the documentation, the movement type INITPOS does not require a start position in the SMC_GEOINFO object, which is confirmed in the documentation of the SMC_GEOINFO object. When using the movement type INITPOS however, the motion will still start from the starting point defined in the SMC_GEOINFO object (0,0,0 if not specified otherwise). Does someone know how to resolve this or is there an example project that makes use of the INITPOS movement type without specifying the starting point? Thanks in advance!
Last updated: 2023-12-15

Post by struccc on Release SP20 - Changes in behaviour? CODESYS Forge talk (Post)
Dear all, I've just started to migrate some of my ancient projects to SP20. There is one strange error (?) I have noticed so far. In a method call, depending on the circumstances I would like to return reference to an object, or an invalid reference: METHOD Add_EVT_OUT : REFERENCE TO FB_MSG VAR END_VAR IF __ISVALIDREF(refMSG_Entry) THEN Add_EVT_OUT REF= MANAGER.AddMsg_EVT_OUT( refMSG_Entry, _Get_EVT_Message(MSG_EVENT.OUT), _Get_EVT_AddCode(MSG_EVENT.OUT) )^; ELSE Add_EVT_OUT := 0; END_IF So far setting a reference variable to 0, did this. But now, the expression Add_EVT_OUT := 0; gives an error: [ERROR] DB_WTP_370: Add_EVT_ACK MSG_TRIGGER_EXT: C0032: Cannot convert type 'BIT' to type 'REFERENCE TO FB_MSG' Naturally... I can write: Add_EVT_OUT := DWORD#0; But is this the correct way? Is there any constant I could use instead, like "NULL"? Or this is totally wrong and to be avoided?
Last updated: 2024-03-24

ENI server: Object type registry not found in the database CODESYS Forge talk (Thread)
ENI server: Object type registry not found in the database
Last updated: 2010-02-19

How to Calculate Checksum of an array of bytes? CODESYS Forge talk (Thread)
How to Calculate Checksum of an array of bytes?
Last updated: 2016-05-08

Post by timvh on Sensor not set CODESYS Forge talk (Post)
Your function block instance is not called, so the code is not executed to set the light on when the button is pressed.
Last updated: 2024-05-27

[OOP] Use extended interface instead of base interface as a method return object CODESYS Forge talk (Thread)
[OOP] Use extended interface instead of base interface as a method return object
Last updated: 2017-03-02

Set REFERENCE to 0 (null) when no longer used CODESYS Forge talk (Thread)
Set REFERENCE to 0 (null) when no longer used
Last updated: 2024-10-07

Post by ojz0r on Multiple applications on one device sharing variables. CODESYS Forge talk (Post)
One thing you could do is create an object with the variable as field with a function and procedure to get the variable (read) and set the variable (write). These are then called from your program and the vizualization.
Last updated: 2025-02-20

Post by alez on CANOpen SDO to write VISIBLE STRING CODESYS Forge talk (Post)
Hello, I am experiencing difficulties in configuring a CANopen device by sending SDOs. In particular I am attempting to write an Object Dictionary that has VISIBLE STRING as the Data Type. When I try to configure the sending of an SDO from Codesys to configure this parameter I am not allowed to enter a string value. In my particular case I am trying to change the Manufacturer Device Name ( Index 0x1008 ). Could it be that Codesys doesn't manage these types of variables?
Last updated: 2024-04-29

Post by benediktenger on Access project information of references library by script CODESYS Forge talk (Post)
Hi, I need to accesss to project information of a referenced library in the project. At least I need the "Released" flag from these information to check that no project gets shipped with unreleased libraries. Unfortunally, I do not get this information by script. I archieved to get the library reference object and the managed library object but both won't give me this flag but only basic information like company, name, version, etc. Here is my code: # get the library refernces proj = projects.primary objects = proj.get_children(recursive=True) for object in objects: if object.is_libman: for libref in iter(object): if libref.is_placeholder and isinstance(libref.effective_resolution,str): print(libref) print(libref.name) # get the managed libraries libs = librarymanager.get_all_libraries() for lib in libs: print(lib.displayname) print(lib.version) Does somebody know how do get these information?
Last updated: 2023-10-23

Viewing Source Code for Visualization Object CODESYS Forge talk (Thread)
Viewing Source Code for Visualization Object
Last updated: 2007-07-03

Accessing a library object without using the namespace CODESYS Forge talk (Thread)
Accessing a library object without using the namespace
Last updated: 2018-08-17

zoom and navigation object in trace or reset trends CODESYS Forge talk (Thread)
zoom and navigation object in trace or reset trends
Last updated: 2021-11-04

String type object length in CANopen OD? CODESYS Forge talk (Thread)
String type object length in CANopen OD?
Last updated: 2010-01-09

JSON parsing and composing library: null object CODESYS Forge talk (Thread)
JSON parsing and composing library: null object
Last updated: 2023-08-14

Print text and time in the same object CODESYS Forge talk (Thread)
Print text and time in the same object
Last updated: 2022-05-19

Depictor Library Missing in Depictor-Object-Selection CODESYS Forge talk (Thread)
Depictor Library Missing in Depictor-Object-Selection
Last updated: 2019-07-10

Error SA0027 : Object name is already used in library CODESYS Forge talk (Thread)
Error SA0027 : Object name is already used in library
Last updated: 2014-06-26

Configuring a CIP object for Explicit Message CODESYS Forge talk (Thread)
Configuring a CIP object for Explicit Message
Last updated: 2023-04-05

SoftMotion, accessing PDO input data via object ref/pointer CODESYS Forge talk (Thread)
SoftMotion, accessing PDO input data via object ref/pointer
Last updated: 2015-07-14

Search and replace doesn't work in visualation object? CODESYS Forge talk (Thread)
Search and replace doesn't work in visualation object?
Last updated: 2016-11-26

Object Oriented extensions for IEC61131 - Bernhard Werner CODESYS Forge talk (Thread)
Object Oriented extensions for IEC61131 - Bernhard Werner
Last updated: 2017-01-31

<< < 1 2 3 4 5 6 .. 268 > >> (Page 4 of 268)

Showing results of 6676

Sort by relevance or date