Post by schnepper on Minor UI bug: cannot create SFC POU after creating a Function POU
CODESYS Forge
talk
(Post)
After creating a Function POU, it is not possible to then create an SFC POU. Steps to recreate: * Create a new Function POU. SFC is not allowed for Functions, so SFC does not show in the Implementation language dropdown. * Click Add Object -> POU... Function is selected for Type. * Select Program * SFC is not present in the Implementation language dropdown
Last updated: 2024-05-23
Post by simond on The required device description is not installed..
CODESYS Forge
talk
(Post)
Hi folks, can someone please tell me how to go about fixing this issue? I am getting this error when I implement an instance of the J1939_Manager. Thanks Simon
Last updated: 2023-10-03
Use an operator keyword as part of an Enum, e.g. 'MOVE'
CODESYS Forge
talk
(Thread)
Use an operator keyword as part of an Enum, e.g. 'MOVE'
Last updated: 2022-07-14
Post by timvh on Array of Program
CODESYS Forge
talk
(Post)
You cannot create an array of Programs. Create a Function Block for this purpose instead of a program. You can create an array of FB instances and call each instance in a loop.
Last updated: 2024-09-03
Post by renezw on Access to a running Codesys instance via Python
CODESYS Forge
talk
(Post)
I have a Codesys environment running and would like to inject code into the running environment at the same time using a code generator with Python via the console. So far I can only start a new Codesys instance with Python, but not access an already running one. How can I access the running Codesys instance?
Last updated: 2024-09-03
Post by narius on OPC-UA object instances preexisting in imported xml information model
CODESYS Forge
talk
(Post)
Hi all, is it possible to use object instances that are not instantiated by codesys itself, e.g. have been defined in UA-Modeler ? When I browse the plc with UA-Expert I see those instances, but I have not seen information in codesys or the web if these are writable in codesys. So far, I am under the impression, that it is not possible, but would like to hear from others. Also, is it correct, that it is not possible to create references inside codesys ? Thanks in advance and kr
Last updated: 2024-08-08
Post by climblinne on Calling OPC UA Methods from UaExpert
CODESYS Forge
talk
(Post)
Hello, I hope someone could help me. I installed the newest Codesys 3.5 SP 20 Patch 1. When loading the demo files from @i-campbell I can upgrade them to the latest version and everthing works on the OPC-UA client side as expected (object "a" is visible, I can use the "ExampleMethod"). Now I * remove the "Information Model", * delete the "OPC_UA_Symbols Objects", * Add "Information Model" again * add "TestRootObjectType" again and "Generate IEC declarations" * and search for mapped instances (to get instance "a" again) Very good still working as expected. Now I delete the OPC_UA_Symbols and add it again referring to the "objecttest" from 16.9.2020. Also I redo the steps from above. The result is now, that I can't see the "a" object in the "Root/Objects" folder. Why ist this and how can I make it running? I think, it could may be a different version of the UA configuration file. I tried to build my own model definition files and got the same problem (but I am really not an expert). When someone has a actual model, which is also running in the actual Codesys I would be very grateful. Or even better, how to make the correct model in e.g. UA Modeler SW (I followed the description https://documentation.unified-automation.com/uamodeler/1.6.0/html/howprojnet_sec.html).
Last updated: 2024-07-01
How to add an own device to the bus-master?
CODESYS Forge
talk
(Thread)
How to add an own device to the bus-master?
Last updated: 2016-04-13
How to add startup parameters to an EtherCAT slave
CODESYS Forge
talk
(Thread)
How to add startup parameters to an EtherCAT slave
Last updated: 2015-09-15
changing the type of an existing POU from FB to PRG
CODESYS Forge
talk
(Thread)
changing the type of an existing POU from FB to PRG
Last updated: 2012-12-14
Post by mtho on JSON Utilities - JSON file written with invalid structure
CODESYS Forge
talk
(Post)
I'm using the JSON Utilities SL library to write configurations in my program to a file. I'm generating the JSON data using the builder function block and all appears to work correctly. When I write the jsondata to file, I'm finding that some of the JSON elements are not being written in the right location in the file. Rather than writing they keys under the parent object, they get written outside the root JSON object at the end of the file. If I then try to read the file back into the program, I get an invalid_structure error. I don't get any errors when populating the JSON data or when writing the file. I attached an example of the JSON writer output. The problems begin with key P200. Each P200 should go under MBR1 through MBR3. Among the rest of the keys, they are supposed to be under different parent objects. I am using default values for wsLineBreak and encoding.
Last updated: 2024-03-06
REFERENCE TO
CODESYS Forge
talk
(Thread)
REFERENCE TO
Last updated: 2021-11-02
VAR_INFO from inside of a FB to get info on the instance.
CODESYS Forge
talk
(Thread)
VAR_INFO from inside of a FB to get info on the instance.
Last updated: 2019-12-04
[OOP] How to implement "HAS A"... that is, instance of class within a class
CODESYS Forge
talk
(Thread)
[OOP] How to implement "HAS A"... that is, instance of class within a class
Last updated: 2017-06-07
C0244: No VAR_PERSISTENT list is part of the application to enter instance path for variable
CODESYS Forge
talk
(Thread)
C0244: No VAR_PERSISTENT list is part of the application to enter instance path for variable
Last updated: 2024-07-17
VAR_IN_OUT, POINTER TO and REFERENCE TO
CODESYS Forge
talk
(Thread)
VAR_IN_OUT, POINTER TO and REFERENCE TO
Last updated: 2021-11-16
Post by corriibme on JSON Utilities and SetArray
CODESYS Forge
talk
(Post)
Hello @florian, Could you please help with how to set an array value? I've been trying to use the with the setKeyWithArray method which creates the key with an empty array value. But I have been unable to set items in this array? objindex:= fb_JBuilder.SetKeyWithArray("Key6", diParentIndex := diRootIndex); objindex2:= fb_JBuilder.SetValue(value:= iValue2, diParentIndex:= objindexx); //iValue: array[0..n] of int; Best regards
Last updated: 2024-05-11
Post by corriibme on Setting array values with JSON Utilities SL
CODESYS Forge
talk
(Post)
It turns out that you can build JSON structures without ever calling the JSONBuilder function block directly. Instead, create a pointer to JSON.JSONData and invoke the necessary methods on its dereference. The parent object has a parent index of -1 (and an index of 0). EVERY other item (including keys, values, empty arrays and sub-objects) created by the setX methods needs the index to increase by 1. Then use the JSONByteArrayWriter FB to generate your JSON string
Last updated: 2024-05-23
Post by androidzz on Json Builder problem?
CODESYS Forge
talk
(Post)
Dear reader, I am using the codesys JSON utilities SL, 1.9.0.0 library. And then specifically the FB JSONBuilder. I need to create a main object with at least 2 objects in it. The first object is no problem, but I cannot insert the second object into the main object. See attached my code and the result I get. I am assuming that I am doing something wrong with the parent index but have tried a lot and can't get it done. Kind regards, Rob
Last updated: 2024-03-11
how to get a list of the cross reference of one variable
CODESYS Forge
talk
(Thread)
how to get a list of the cross reference of one variable
Last updated: 2018-01-17
Post by ellocco on Leitungsverzweigung mit einem existierenden Block (z.B. AND-Glied) zu verbinden
CODESYS Forge
talk
(Post)
Is it possible under CODESYS V3.5 SP18, to connect a split (german Leitungsverzweigung) with an existing block (e.g. AND-module)? Or to connect the output of an existing block to the input of an existing block (e.g. OR-block)? Any ideas? P.S.: Sorry for the german title, I do not know how modify the title.
Last updated: 2024-11-07
Call an output of a function block
CODESYS Forge
talk
(Thread)
Call an output of a function block
Last updated: 2012-11-05
Writing a CSV file from an array of values?
CODESYS Forge
talk
(Thread)
Writing a CSV file from an array of values?
Last updated: 2020-05-27
How can I get the status of an ethercat slave
CODESYS Forge
talk
(Thread)
How can I get the status of an ethercat slave
Last updated: 2018-05-30
Multiple Modbus Read Registers Access by an Array of Elements
CODESYS Forge
talk
(Thread)
Multiple Modbus Read Registers Access by an Array of Elements
Last updated: 2018-04-16
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
.