Unable to Connect to Modbus RTU Device
CODESYS Forge
talk
(Thread)
Unable to Connect to Modbus RTU Device
Last updated: 2024-08-26
Unable to Connect to Modbus RTU Device
CODESYS Forge
talk
(Thread)
Unable to Connect to Modbus RTU Device
Last updated: 2024-08-26
Unable to Connect to Modbus RTU Device
CODESYS Forge
talk
(Thread)
Unable to Connect to Modbus RTU Device
Last updated: 2024-08-26
Unable to Connect to Modbus RTU Device
CODESYS Forge
talk
(Thread)
Unable to Connect to Modbus RTU Device
Last updated: 2024-08-26
Unable to Connect to Modbus RTU Device
CODESYS Forge
talk
(Thread)
Unable to Connect to Modbus RTU Device
Last updated: 2024-08-26
Unable to Connect to Modbus RTU Device
CODESYS Forge
talk
(Thread)
Unable to Connect to Modbus RTU Device
Last updated: 2024-08-26
Unable to Connect to Modbus RTU Device
CODESYS Forge
talk
(Thread)
Unable to Connect to Modbus RTU Device
Last updated: 2024-09-03
Unable to Connect to Modbus RTU Device
CODESYS Forge
talk
(Thread)
Unable to Connect to Modbus RTU Device
Last updated: 2024-09-04
How to revert to previous version library
CODESYS Forge
talk
(Thread)
How to revert to previous version library
Last updated: 2024-09-06
Unable to add alarm configuration object to project
CODESYS Forge
talk
(Thread)
Unable to add alarm configuration object to project
Last updated: 2024-09-27
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
Connection to device closed
CODESYS Forge
talk
(Thread)
Connection to device closed
Last updated: 2023-08-25
Sysmac Studio to Codesys
CODESYS Forge
talk
(Thread)
Sysmac Studio to Codesys
Last updated: 2023-09-20
OPC UA Client unable to connect to CeDeSys OPC UA Server but able to connect to other OPC UA Server
CODESYS Forge
talk
(Thread)
OPC UA Client unable to connect to CeDeSys OPC UA Server but able to connect to other OPC UA Server
Last updated: 2018-10-30
Pointer To
CODESYS Forge
talk
(Thread)
Pointer To
Last updated: 2009-01-23
Sysfile copy to server
CODESYS Forge
talk
(Thread)
Sysfile copy to server
Last updated: 2012-01-13
Pointer to Softmotion axis
CODESYS Forge
talk
(Thread)
Pointer to Softmotion axis
Last updated: 2023-11-23
CoDeSys to access
CODESYS Forge
talk
(Thread)
CoDeSys to access
Last updated: 2007-01-15
How to remove user ?
CODESYS Forge
talk
(Thread)
How to remove user ?
Last updated: 2018-07-03
string to time
CODESYS Forge
talk
(Thread)
string to time
Last updated: 2010-03-08
how to add TextList
CODESYS Forge
talk
(Thread)
how to add TextList
Last updated: 2012-07-06
Button to close browser
CODESYS Forge
talk
(Thread)
Button to close browser
Last updated: 2022-09-22
Connect to MCP 3008
CODESYS Forge
talk
(Thread)
Connect to MCP 3008
Last updated: 2018-09-16
How to implement IVisuStreamReader
CODESYS Forge
talk
(Thread)
How to implement IVisuStreamReader
Last updated: 2023-03-02
Convertion Dint to Word
CODESYS Forge
talk
(Thread)
Convertion Dint to Word
Last updated: 2023-08-07
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
.