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

 
<< < 1 .. 15 16 17 18 19 .. 234 > >> (Page 17 of 234)

I2C How to set repeated start condition? CODESYS Forge talk (Thread)
I2C How to set repeated start condition?
Last updated: 2017-04-15

Usb-toCan II ixxat how to set up comunication? CODESYS Forge talk (Thread)
Usb-toCan II ixxat how to set up comunication?
Last updated: 2013-06-05

Unable to set function code 0x780 for CANopen rxpdo5 CODESYS Forge talk (Thread)
Unable to set function code 0x780 for CANopen rxpdo5
Last updated: 2017-03-08

How to set IP Master Address inside ModbusTCP_Slave_Device CODESYS Forge talk (Thread)
How to set IP Master Address inside ModbusTCP_Slave_Device
Last updated: 2015-09-01

Scripting access rights to OPC Symbol Set? CODESYS Forge talk (Thread)
Scripting access rights to OPC Symbol Set?
Last updated: 2023-03-15

How To Set TCP_Client Buffer size? CODESYS Forge talk (Thread)
How To Set TCP_Client Buffer size?
Last updated: 2021-05-14

How to set values with a Test Manager Python script CODESYS Forge talk (Thread)
How to set values with a Test Manager Python script
Last updated: 2015-12-04

Post by open on (no subject) CODESYS Forge talk (Post)
Hello, I want my button to be attached image ON_Good when variable true but however when i copied the visualization object into a new visualization screen it become attached image ON_Bad. Anyone know how to make it attached image ON_Good? Warmest regards,
Last updated: 2024-09-03

Post by ofey on Modbus TCP communication CODESYS Forge talk (Post)
Hi! I tried setting up the PLC I'm working with (Beijer GN-9373) to connect to a modbus master running on a laptop. I have an ethernet connection (via USB-C to ethernet) between the laptop and the controller. I have tried following tutorial on how to set this up. I have added an ethernet device with the IP-address of the PLC. Further I added a ModbusTCP_Slave_Device with default settings. I get the error "Failed to open TCP Port: 1" when I try to go online with the PLC. Earlier I tested the exact same set up with the soft PLC from codesys. I can then read/write values correctly with the Modbus master i have running on the laptop. Hope anybody can help me with this, thanks in advance!
Last updated: 2023-10-06

how to make a const reference? CODESYS Forge talk (Thread)
how to make a const reference?
Last updated: 2018-02-08

Bitwise access to a visualization placeholder reference CODESYS Forge talk (Thread)
Bitwise access to a visualization placeholder reference
Last updated: 2011-10-12

HMI access to REFERENCE type variables CODESYS Forge talk (Thread)
HMI access to REFERENCE type variables
Last updated: 2020-12-19

Property that returns REFERENCE TO Interface type? CODESYS Forge talk (Thread)
Property that returns REFERENCE TO Interface type?
Last updated: 2021-11-23

Translation - How to get text as reference in Frames translated? CODESYS Forge talk (Thread)
Translation - How to get text as reference in Frames translated?
Last updated: 2024-01-03

Post by olemart on Set REFERENCE to 0 (null) when no longer used CODESYS Forge talk (Post)
Did you find out if this work?
Last updated: 2024-10-02

Post by micik on ERR_OK not recognized CODESYS Forge talk (Post)
Hello, if I try to use ERR_Ok in my code to check whether the file is open correctly or not, I get an error "Identifier ERR_OK not recognized", I can use plain 0 (zero) instead. But in general, is this a proper way to check for success of file operation since the 4th parameter is a poinmter to RTS_IEC_RESULT, and normally I would expect this to be used somehow. _hFile := SysFileOpen(_sFileName, am:=SysFile.ACCESS_MODE.AM_WRITE, ADR(_result)); IF _result <> 0 THEN udDiag := 100; RETURN;
Last updated: 2024-08-17

Post by eschwellinger on Identifier 'IoDrvGPIO' not defined CODESYS Forge talk (Post)
it is just a precompiler error, login an start the application. Works.This will be fixed hopefully to next version.
Last updated: 2024-04-10

Post by matthew on New Ladder Diagram conversion does not work due to missing features CODESYS Forge talk (Post)
Hi @eschwellinger Just wondering if there is any update when the Expression or part of it has no effect will be fixed? Also have the ability to open an FB when online and offline. It would also be great to be able to view the ST code block when online.
Last updated: 2024-05-14

Post by schnepper on How to delete main action from SFC Step CODESYS Forge talk (Post)
I added a main action to an SFC step, and then tried to delete it. There is no delete option in the SFC menu nor in the right click menu of the step. I deleted the action from the device tree, but building results in and error saying the action is not defined. Is there a way to delete a main action?
Last updated: 2024-05-23

Post by davep on Profinet RPC-call error CODESYS Forge talk (Post)
Solved! Go to Control Panel -> Windows Defender Firewall -> Allow an app or feature Enable the options to change settings. Scroll down the list of applications to CODESYS and CODESYS ControlService. If you do not see this application, add it to the list. Make sure all checkboxes are checked (Domain, Private, and Public).
Last updated: 2024-09-06

Post by toffeebonbon on EL7041-0052 - does it run with EL7041 SoftMotion? CODESYS Forge talk (Post)
I let this project rest for a while and picked it up last week. I have been in contact with the support from beckhoff and got the information that the terminals were identical (communication wise). As the Log of the Axis (not the drive's log) shows the error when trying to write into the register 0x8012 and set the value for an encoder to a value that is the default - at least according to the manual - I was wondering if it is possible to "not write that value" to skip that part? Or am I misunderstanding the way the library communicates with the drive?
Last updated: 2024-07-24

Post by stuartjr on Disabling forcing of specific variables CODESYS Forge talk (Post)
So I think I've found a way to do what I want, but its a not as simple as I thought it would be. Essentially I've got to put my "logic" that decides what the GVL variable should be at the start of every task (rung 1). Then regardless of what the force is the variable will be set to what the logic decides.
Last updated: 2024-03-15

Post by ihatemaryfisher on Sorting array of any-sized structure CODESYS Forge talk (Post)
With that I could make an array of varying size, but would still have to define the array type in the function's declaration VAR_IN_OUT stArray: array [*..*] of <pre-defined data type> END_VAR I wanted a function that could take an array of any type (e.g., a structured VAR) as an input. That way I could call it in multiple POUs to handle different arrays structures.
Last updated: 2023-08-18

Post by riccardo on VisuElems.CurrentUserGroupId is not stable CODESYS Forge talk (Post)
GoodMorning everyone. I have a system that, in case of alarm, have to block. When the operator logs in must have to acknoledge the alarm and should operate in the system freely. To perform this I detect the logged User by (VisuElems.CurrentUserGroupID <> 0) with a similar code to the the following: PROGRAM AlarmMngt VAR alarm : BOOL:= FALSE; Ack : BOOL:= TRUE; PushBottonOpening : BOOL:= FALSE; Valve : BOOL := FALSE; Flag: BOOL := FALSE; END_VAR IF alarm AND Ack AND (NOT Flag) THEN valve := FALSE; PushBottonOpening := FALSE; Ack := FALSE flag := TRUE; ELSIF (NOT alarm) AND Ack THEN flag := FALSE; END_IF (* if the system is in alarm but there is a logged operator that acknowledge the alarm the system allows the valve opening.*) IF (VisuElems.CurrentUserGroupID <> 0) AND Ack AND Alarm AND PushBottonOpening THEN Valve := TRUE; ELSIF (VisuElems.CurrentUserGroupID = 0) AND Alarm THEN valve := FALSE; END_IF The problem I have is in the last 5 lines of the code: Even if there is a logged in user, the GroupID variable is subjected to a refresh that cyclically set for an instant it to 0 and this close the valve making difficult to the user to work Now I solved it creating a time hysteresys cycle but it is not a good solution. Someone is able to explane me why the GroupID variable is sobjected to this refresh and how to stabilize to avoiding it? Thank you in advance, Riccardo
Last updated: 2023-11-10

Post by lukebouchard on NVL generating ADwin packets instead of UDP? CODESYS Forge talk (Post)
Using Codesys 3.5 SP11 32bit to program a pair of IFM CR711S controllers. They each have an NVL sender and are set up to receive each others messages. One is transmitting properly but not receiving, the other is receiving the first's messages just fine. When I look at the traffic in wireshark, I can see the one transmitting properly as UDP packets on the subnet and port I had specified. The Second is transmitting on the right subnet and port, but is sending 'ADwin Config' packets. Has anyone run into anything simmilar? From some reading on ADwin from google, nothing is enlightening. Both are set up in the same way, have their own ports and List Identifiers. I have deleted the NVL files and regenerated them, cycled power, and even deleted and remade the NVL's so many times.
Last updated: 2024-08-24

<< < 1 .. 15 16 17 18 19 .. 234 > >> (Page 17 of 234)

Showing results of 5841

Sort by relevance or date