HW PBpro USB - universal PROFIBUS interface with High Speed Port
CODESYS Forge
talk
(Thread)
HW PBpro USB - universal PROFIBUS interface with High Speed Port
Last updated: 2022-09-21
Execute View Model Function block that is declared in the visualation interface as a VAR?
CODESYS Forge
talk
(Thread)
Execute View Model Function block that is declared in the visualation interface as a VAR?
Last updated: 2022-07-15
Extending a library function in an application and getting Interface conversion errors
CODESYS Forge
talk
(Thread)
Extending a library function in an application and getting Interface conversion errors
Last updated: 2020-06-03
Raspberry pi configuration for dual voltage output Digital-to-Analog converter with SPI Interface
CODESYS Forge
talk
(Thread)
Raspberry pi configuration for dual voltage output Digital-to-Analog converter with SPI Interface
Last updated: 2019-02-21
modified FB interface and I want to update the parameters in all calls
CODESYS Forge
talk
(Thread)
modified FB interface and I want to update the parameters in all calls
Last updated: 2019-06-06
Change IO-Link Device Interface connected to a Profinet-Slave at Runtime
CODESYS Forge
talk
(Thread)
Change IO-Link Device Interface connected to a Profinet-Slave at Runtime
Last updated: 2025-03-19
Eine Nummer (Data Type=Double) Schicken mit TCP Client Server Codesys
CODESYS Forge
talk
(Thread)
Eine Nummer (Data Type=Double) Schicken mit TCP Client Server Codesys
Last updated: 2021-09-08
<identifier>: POINTER TO <data type | function block | program | method | function>;
CODESYS Forge
talk
(Thread)
<identifier>: POINTER TO <data type="" |="" function="" block="" program="" method="">;</data></identifier>
Last updated: 2022-03-23
Why is no more possible use REFERECE OF in return method type?
CODESYS Forge
talk
(Thread)
Why is no more possible use REFERECE OF in return method type?
Last updated: 2021-12-10
addressin an array of byte containing bits of type bool
CODESYS Forge
talk
(Thread)
addressin an array of byte containing bits of type bool
Last updated: 2018-11-14
Eine Nummer (Data Type=Double) Schicken mit TCP Client Server Codesys
CODESYS Forge
talk
(Thread)
Eine Nummer (Data Type=Double) Schicken mit TCP Client Server Codesys
Last updated: 2021-09-08
Modify the 0x1600 access type of CAN Local Device in Codesys
CODESYS Forge
talk
(Thread)
Modify the 0x1600 access type of CAN Local Device in Codesys
Last updated: 2018-11-23
Maximizing Struct type Variable in offline mode and adding comments to each element
CODESYS Forge
talk
(Thread)
Maximizing Struct type Variable in offline mode and adding comments to each element
Last updated: 2021-04-28
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
CmpIecVarAccess to get name of a type, not of a variable (instance)
CODESYS Forge
talk
(Thread)
CmpIecVarAccess to get name of a type, not of a variable (instance)
Last updated: 2016-06-08
How to use Jerk input and Velocity ramp type in MC_MoveAbsolute
CODESYS Forge
talk
(Thread)
How to use Jerk input and Velocity ramp type in MC_MoveAbsolute
Last updated: 2018-07-09
Problem configuring the 750-638 Counter for Hall-type sensor
CODESYS Forge
talk
(Thread)
Problem configuring the 750-638 Counter for Hall-type sensor
Last updated: 2012-10-29
Data Sources Manager causing exception due to float or double type in OPC server
CODESYS Forge
talk
(Thread)
Data Sources Manager causing exception due to float or double type in OPC server
Last updated: 2024-07-01
Problem of assigning physical addresses to variables of type ARRAY OF ARRAY as MW and QW
CODESYS Forge
talk
(Thread)
Problem of assigning physical addresses to variables of type ARRAY OF ARRAY as MW and QW
Last updated: 2025-03-31
How do I fix ";Internal Error (x86-64): Invalid type size" error?
CODESYS Forge
talk
(Thread)
How do I fix ";Internal Error (x86-64): Invalid type size" error?
Last updated: 2025-04-16
Post by smartcoco on Dynamic object release issues
CODESYS Forge
talk
(Post)
It seems that there is no solution to this problem.
Last updated: 2024-03-04
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
Post by arwie on Possibility to deactivate CmpBlkDrvUdp
CODESYS Forge
talk
(Post)
Is it possible to completely deactivate CmpBlkDrvUdp? I managed to practically deactivate it by setting MaxRouters=1 in [CmpRouter], but in the log there are warnings: !!!! No router instance found to assign network interface <interface>ether 6</interface> [CmpRouter] MaxRouters=1 0.MainNet=BlkDrvTcp [CmpBlkDrvTcp] Name=BlkDrvTcp Codesys Runtime 4.10.0.0 Is there a setting in [CmpBlkDrvUdp] which would deactivate it?
Last updated: 2023-12-12
Post by timvh on How to implement an interface (IElement)?
CODESYS Forge
talk
(Post)
See: https://forge.codesys.com/prj/codesys-example/element-collect/home/Home/ This contains an application "OnlineChangeSafeLinkedListExample". What you should do is create a new interface which has your "Priority" property. Then your FB should extend the base element function block and implement your own interface: E.g. FUNCTION_BLOCK MyElement EXTENDS COL.LinkedListElementBase IMPLEMENTS I_MyInterface Then the __QUERYINTERFACE does the magic to check if your "element" also implements your interface. Something like this: // Compares this element with itfElement. // Returns 0 if the elements are equal, < 0 if the element is less than itfElement, // > 0 if the element is greater than itfElement. // This method will be called from sorted collections (e.g. |COL.SortedList|) to sort the elements. // IMPORTANT: The underlying value to be compared with MUST NOT be changed during the lifecycle of the object. METHOD ElementCompareTo : INT VAR_INPUT (* The element to compare*) itfElement : COL.IElement; END_VAR VAR itfIntElement : I_MyInterface; xResult : BOOL; END_VAR // We use integer iInt1 for sorting. xResult := __QUERYINTERFACE(itfElement, itfIntElement); IF xResult THEN IF iInt1 < itfIntElement.Priority THEN ElementCompareTo := -1; ELSIF iInt1 > itfIntElement.Priority THEN ElementCompareTo := 1; ELSE ElementCompareTo := 0; END_IF ELSE ElementCompareTo := -1; END_IF
Last updated: 2024-07-22
Post by atone on Change IO-Link Device Interface connected to a Profinet-Slave at Runtime
CODESYS Forge
talk
(Post)
I need to be able to update (change) the interface of an IO-Link device at runtime. The reason is the connected sensor can be selected at runtime, and some sensors we use have a 2 byte IN interface, others have a 4 byte IN interface, others 16 byte IN, others 16 byte IN/OUT (see attached screenshot). Is it possible at all? When yes, which function should I use? Thank you!
Last updated: 2025-03-18
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
.