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 dogulas on OPC UA C# client connecting to OPC UA CODESYS server
CODESYS Forge
talk
(Post)
Ok, I have a simple test environment. From C#, using OPC UA, I can read DINTs, write DINTs, read Structs, but when I try to write a struct I get BadNotWritable. I am using Communication Manager, OPC UA Server, and IEC Symbol Publishing. I have a struct defined with one single DINT in it. The instance of the struct is in GVL. The struct is marked read/write in IEC Symbol Publishing. Any ideas? Pointers are welcome. public static async Task WriteStructA(byte[] structAData) { if (_session == null) throw new Exception("session is null"); // create a RequestHeader RequestHeader requestHeader = new RequestHeader { Timestamp = DateTime.UtcNow, TimeoutHint = 30000 // timeout in milliseconds }; // create an ExtensionObject to wrap the value to be written ExtensionObject extensionObject = new ExtensionObject( new ExpandedNodeId("GVL_StructA", 5), structAData ); // create a WriteValue object to hold the value to be written WriteValue writeValue = new WriteValue { NodeId = _structANodeId, AttributeId = Attributes.Value, Value = new DataValue(extensionObject) }; // put the WriteValue object into a WriteValueCollection object WriteValueCollection writeValueCollection = new WriteValueCollection() { writeValue }; // perform the write operation asynchronously WriteResponse writeResponse = await _session.WriteAsync( requestHeader, writeValueCollection, CancellationToken.None ); // check the result of the write operation if (writeResponse.Results[0] != StatusCodes.Good) throw new Exception("Write failed: " + writeResponse.Results[0]); }
Last updated: 2024-12-17
'The object GUID 'xxxx' is not valid' message when trying to commit a project to SVN
CODESYS Forge
talk
(Thread)
'The object GUID 'xxxx' is not valid' message when trying to commit a project to SVN
Last updated: 2022-09-14
Find Function: Object reference not set to an instance of an object.
CODESYS Forge
talk
(Thread)
Find Function: Object reference not set to an instance of an object.
Last updated: 2023-10-30
Error - object reference not set to an instance of a object
CODESYS Forge
talk
(Thread)
Error - object reference not set to an instance of a object
Last updated: 2016-06-13
Error: Object reference not set to an instance of an object
CODESYS Forge
talk
(Thread)
Error: Object reference not set to an instance of an object
Last updated: 2017-08-23
codesys "profiler" object reference not set to an instance of an object
CODESYS Forge
talk
(Thread)
codesys "profiler" object reference not set to an instance of an object
Last updated: 2023-01-11
Internal error:System.NullReferenceException: The object reference was not set to an object instance.
CODESYS Forge
talk
(Thread)
Internal error:System.NullReferenceException: The object reference was not set to an object instance.
Last updated: 2024-05-24
Internal error:System.NullReferenceException: The object reference was not set to an object instance.
CODESYS Forge
talk
(Thread)
Internal error:System.NullReferenceException: The object reference was not set to an object instance.
Last updated: 2024-05-24
How to get object attributes
CODESYS Forge
talk
(Thread)
How to get object attributes
Last updated: 2018-01-30
Create dynamically visual object
CODESYS Forge
talk
(Thread)
Create dynamically visual object
Last updated: 2010-06-15
Get active object/ device editor
CODESYS Forge
talk
(Thread)
Get active object/ device editor
Last updated: 2019-02-06
Rotating object in design time
CODESYS Forge
talk
(Thread)
Rotating object in design time
Last updated: 2022-03-14
Object Index Minimum for PDOs
CODESYS Forge
talk
(Thread)
Object Index Minimum for PDOs
Last updated: 2017-02-24
Edit Object Offline not working
CODESYS Forge
talk
(Thread)
Edit Object Offline not working
Last updated: 2023-03-14
Object oriented V3: what hardware ?
CODESYS Forge
talk
(Thread)
Object oriented V3: what hardware ?
Last updated: 2012-03-23
Distinguish object types in project tree
CODESYS Forge
talk
(Thread)
Distinguish object types in project tree
Last updated: 2019-04-11
management object to visualizations
CODESYS Forge
talk
(Thread)
management object to visualizations
Last updated: 2009-07-16
Object oriented Web-Visu
CODESYS Forge
talk
(Thread)
Object oriented Web-Visu
Last updated: 2019-08-23
Cnc Visu object not showing inputs
CODESYS Forge
talk
(Thread)
Cnc Visu object not showing inputs
Last updated: 2021-10-19
Order of synchronisation object creation
CODESYS Forge
talk
(Thread)
Order of synchronisation object creation
Last updated: 2017-11-19
[Solved] Displaying Object Properties to Visualisation
CODESYS Forge
talk
(Thread)
[Solved] Displaying Object Properties to Visualisation
Last updated: 2018-11-05
Visudialog.keypad and webbrowser Object visualization !!
CODESYS Forge
talk
(Thread)
Visudialog.keypad and webbrowser Object visualization !!
Last updated: 2022-03-29
Codesys 3.5.18 No visualization object
CODESYS Forge
talk
(Thread)
Codesys 3.5.18 No visualization object
Last updated: 2022-05-02
exported object annotation documentation
CODESYS Forge
talk
(Thread)
exported object annotation documentation
Last updated: 2012-09-13
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
.