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

 
<< < 1 .. 47 48 49 50 51 .. 299 > >> (Page 49 of 299)

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

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 imdatatas on SMC_ERROR.SMC_AXIS_NOT_READY_FOR_MOTION when using Drive Virtual CODESYS Forge talk (Post)
@ducng, Another possible situation could be that normally there are 3 inputs for MC_Power. In your above images, I can't see the "bDriveStart" input activated. As Mr. @gseidel mentioned, you need to make sure MC_Power.Status output should be TRUE. Issuing any movement command without activating the axis would naturally result in an error. For MC_Power; You can set the Enable and bDriveStart inputs to TRUE and try turning the axis activation on and off using only the bRegulatorOn input. Regards, Imdat
Last updated: 2025-11-28

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

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

Transfer array of byte to i2c-device CODESYS Forge talk (Thread)
Transfer array of byte to i2c-device
Last updated: 2022-08-12

Add to EL2521 AXIS ENCODDER FEEDBACK of EL5101 CODESYS Forge talk (Thread)
Add to EL2521 AXIS ENCODDER FEEDBACK of EL5101
Last updated: 2018-02-08

Access to device via IP instead of codesys address CODESYS Forge talk (Thread)
Access to device via IP instead of codesys address
Last updated: 2014-02-13

Ladder: how to use second output of FB CODESYS Forge talk (Thread)
Ladder: how to use second output of FB
Last updated: 2015-05-29

how to use the function block of MC_ProfilePosition CODESYS Forge talk (Thread)
how to use the function block of MC_ProfilePosition
Last updated: 2013-05-17

Address components of variable to IO-addresses CODESYS Forge talk (Thread)
Address components of variable to IO-addresses
Last updated: 2014-04-01

How to tweak the performance of BeagleBone Black (with realtime) CODESYS Forge talk (Thread)
How to tweak the performance of BeagleBone Black (with realtime)
Last updated: 2021-04-26

How to specify the font name of a visu element? CODESYS Forge talk (Thread)
How to specify the font name of a visu element?
Last updated: 2013-09-24

User permission to view/ hide parts of offline program CODESYS Forge talk (Thread)
User permission to view/ hide parts of offline program
Last updated: 2023-04-17

How do I convert string to array of bytes? CODESYS Forge talk (Thread)
How do I convert string to array of bytes?
Last updated: 2010-04-09

Convert 2 diff type of int to real type CODESYS Forge talk (Thread)
Convert 2 diff type of int to real type
Last updated: 2021-08-17

<< < 1 .. 47 48 49 50 51 .. 299 > >> (Page 49 of 299)

Showing results of 7460

Sort by relevance or date