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

 
<< < 1 .. 8 9 10 11 12 .. 234 > >> (Page 10 of 234)

Sorting an array CODESYS Forge talk (Thread)
Sorting an array
Last updated: 2021-11-25

Winkelencoder an 750-637 CODESYS Forge talk (Thread)
Winkelencoder an 750-637
Last updated: 2008-12-02

Anschluss an MSSQL CODESYS Forge talk (Thread)
Anschluss an MSSQL
Last updated: 2010-05-11

anschluss an Mysql CODESYS Forge talk (Thread)
anschluss an Mysql
Last updated: 2018-07-24

Operation behind an NAT? CODESYS Forge talk (Thread)
Operation behind an NAT?
Last updated: 2011-01-03

BME 280 an Raspi CODESYS Forge talk (Thread)
BME 280 an Raspi
Last updated: 2018-08-14

Configuring an Encoder CODESYS Forge talk (Thread)
Configuring an Encoder
Last updated: 2015-04-25

Configuring an Encoder CODESYS Forge talk (Thread)
Configuring an Encoder
Last updated: 2024-05-25

Post by alexgooi on Function Blocks and arrays of function blocks CODESYS Forge talk (Post)
Hi Jack, I think you have to look at a FB in a different way. A Function block (Class) can contain its own data. In other words don't define loose data in your GVL, but define a instance of a FB (Object) in your GVL: Example: Function_Block Basic_Class VAR_INPUT Open_Command: BOOL; END_VAR VAR_OUTPUT Opened: BOOL; END_VAR if Open_Command then Opened := TRUE; ELSE Opened := FALSE; END_IF Global Variables Objects: ARRAY[1..100] OF Basic_Class; //Here you ar defining you objects END_VAR In your code you can directly acces the data and couple it to the IO: GVL.Objects[1].Open_Command := %IX0.0; %QX0.0 := GVL.Objects[1].Opened; //To call the code itself use: GVL.Objects[1](); If you want to take this a step further you are also able to add methods and properties to the FB/Class end thereby creating a OOIP program
Last updated: 2024-02-15

Write of address to slave not succesfull CODESYS Forge talk (Thread)
Write of address to slave not succesfull
Last updated: 2020-02-11

How to set TCPClient() Buffer Size? CODESYS Forge talk (Thread)
How to set TCPClient() Buffer Size?
Last updated: 2021-05-19

Set device to simulation mode CODESYS Forge talk (Thread)
Set device to simulation mode
Last updated: 2016-02-08

How to set unit in Axis CODESYS Forge talk (Thread)
How to set unit in Axis
Last updated: 2024-09-02

Where to set parameters of a device in a function block? CODESYS Forge talk (Thread)
Where to set parameters of a device in a function block?
Last updated: 2022-03-30

How to set 6-DOF configuration of Tool kinematics using ISMToolKinematics library[Problem] CODESYS Forge talk (Thread)
How to set 6-DOF configuration of Tool kinematics using ISMToolKinematics library[Problem]
Last updated: 2019-03-21

User Management - REFERENCE TO VisuUserMgmtProvider CODESYS Forge talk (Thread)
User Management - REFERENCE TO VisuUserMgmtProvider
Last updated: 2023-11-17

New to CODESYS - Unresolved reference CODESYS Forge talk (Thread)
New to CODESYS - Unresolved reference
Last updated: 2022-08-10

How to reference a Visual Element? CODESYS Forge talk (Thread)
How to reference a Visual Element?
Last updated: 2014-12-25

Attribute instance-path CODESYS Forge talk (Thread)
Attribute instance-path
Last updated: 2017-02-01

FBlock instance on output CODESYS Forge talk (Thread)
FBlock instance on output
Last updated: 2016-05-11

Webvisu instance CODESYS Forge talk (Thread)
Webvisu instance
Last updated: 2017-02-26

Post by installwhat on C0077 on one machine but not another CODESYS Forge talk (Post)
I have a version of codesys 3.5.16 on my local machine and a vm. The local machine has loads of codesys versions and libraries installed etc. I can open the FPosCR_Example_Project_SP16_patch1 project on my vm without any errors. On the local machine I get the error C0077: unknown type IoDrvEthercatLib.ETC_CO_SdoWrite. I can, on the local machine, declare a var of type IoDrvEthercatLib.ETC_CO_SdoWrite and include it in the code without adding an extra error. The problem only seems to affect the library. This is seems more an issue with my codesys set up rather than something with festo. I would like to know the possible causes. I understand most of the library manager features but it's not clear how to find the cause. Thanks
Last updated: 2024-06-11

Cannot pass array of constant size to a function as a reference CODESYS Forge talk (Thread)
Cannot pass array of constant size to a function as a reference
Last updated: 2024-01-09

Post by dhumphries on No source code available CODESYS Forge talk (Post)
Try using an Ethernet/IP scanner instead of an adapter, I'm guessing the 2 devices you're trying to communicate with are adapters, you have to have a scanner somewhere and Codesys should be a scanner. I don't know why you're getting the error, you should be able to use your Ethernet port as an EthernetIP adapter (although I've never had a reason to try,) but it's probably not what you wanted to do, unless you're connecting to another PLC that is a scanner. Good luck configuring the devices you're trying to connect to, it will be a lot easier if you have an .EDS file instead of starting with a generic module, even with an .EDS it can be tricky getting the communication working.
Last updated: 2024-02-03

Post by timvh on JSON CODESYS Forge talk (Post)
I don't know the details of jsonArrayWriter, but the common behaviour for an xExecute input is that the FB starts on the trigger that it gets TRUE. In your case xExecute is never FALSE, so it is never triggered again to start the jsonArrayWriter. So change the condition from TRUE to a variable which you set to TRUE with the "xFirst". Then when the jsonArrayWriter is done (xDone), or has an error (xError), then set this variable to FALSE.
Last updated: 2024-05-01

<< < 1 .. 8 9 10 11 12 .. 234 > >> (Page 10 of 234)

Showing results of 5839

Sort by relevance or date