Search talk: how to use interface set property

 
<< < 1 .. 6 7 8 9 10 .. 229 > >> (Page 8 of 229)

Get-Property will crash because it did not evaluate to a valid getter CODESYS Forge talk (Thread)
Get-Property will crash because it did not evaluate to a valid getter
Last updated: 2023-04-29

Post by simotion on Property CODESYS Forge talk (Post)
Why can't a property be of type REFERENCE TO? Plc goes to stop if I try that.
Last updated: 2023-12-14

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

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 fless on How to change bHiresMode CODESYS Forge talk (Post)
you need to set the increments to 10 (the screenshot shows 10000 hex = 65536). all the turn settings to 1. and the application units to 366. But usually you use the resolver resolution per motor turn. Insert the gear ratios (1:1 for no gear) and the last field you put the circumference of your drive wheel.
Last updated: 2024-03-12

Post by pazderai on CanOpen write issue CODESYS Forge talk (Post)
Thank you for an answer. Unfortunatelly, it doesn't work. The slave needs command byte as follows 0x22. It means expedited transfer where s-bit is not set, therefore data length is not specified. If I use segmented mode by CiA405.SDO_WRITE_DATA it produce command byte as follows 0x21 which is unfortunately supported by the slave and it returns with error 0x05040001 - SDO Abort Code -Client/server command specifier not valid or unknown. I can use CAN API low level to overcome this problem where it is possible to set 0x22 as a command byte, but than I can use user interface to set the communication probably, because I thing that machine expert uses library CiA405.SDO_WRITE for setting the slave. Or am I wrong?
Last updated: 2024-07-16

Post by mos89p on how to use UseDataExpanding() in datasource CODESYS Forge talk (Post)
Hi I need to update by software some structures in my datasource, i found this example: https://content.helpme-codesys.com/en/CODESYS%20Communication/_cds_update_data_interface.html it seems that because i use complex variable structure i need to use UseDataExpanding() instead of use data, the question is how to get an instance of IDatasourcesMgr3 i have the global variable g_Datasources is instantiated automatically
Last updated: 2024-06-18

How to configure OPC-UA server CODESYS Forge talk (Thread)
How to configure OPC-UA server
Last updated: 2018-12-03

Device descriptor: how to create... CODESYS Forge talk (Thread)
Device descriptor: how to create...
Last updated: 2018-09-12

How to get object attributes CODESYS Forge talk (Thread)
How to get object attributes
Last updated: 2018-01-30

CNC - How to manipulate SMC_GeoInfo objects CODESYS Forge talk (Thread)
CNC - How to manipulate SMC_GeoInfo objects
Last updated: 2024-07-26

How to generate an "ENI" file CODESYS Forge talk (Thread)
How to generate an "ENI" file
Last updated: 2024-08-09

How to change OPC NodeId IdentifierType CODESYS Forge talk (Thread)
How to change OPC NodeId IdentifierType
Last updated: 2025-01-20

How to implementation Gantry Robot path. CODESYS Forge talk (Thread)
How to implementation Gantry Robot path.
Last updated: 2025-02-14

How to uninstall SVN module CODESYS Forge talk (Thread)
How to uninstall SVN module
Last updated: 2025-02-25

How to get system time CODESYS Forge talk (Thread)
How to get system time
Last updated: 2015-01-30

How to remove boot application CODESYS Forge talk (Thread)
How to remove boot application
Last updated: 2013-03-09

how to disable safety module EL1918? CODESYS Forge talk (Thread)
how to disable safety module EL1918?
Last updated: 2023-01-25

SVN - How to handle image pools CODESYS Forge talk (Thread)
SVN - How to handle image pools
Last updated: 2015-12-03

how to declare network variables? CODESYS Forge talk (Thread)
how to declare network variables?
Last updated: 2010-12-15

How to recognize a sd card CODESYS Forge talk (Thread)
How to recognize a sd card
Last updated: 2019-01-30

How to Parse XML in IEC CODESYS Forge talk (Thread)
How to Parse XML in IEC
Last updated: 2013-10-29

how to import C libraries CODESYS Forge talk (Thread)
how to import C libraries
Last updated: 2017-09-25

How to backup / restore license? CODESYS Forge talk (Thread)
How to backup / restore license?
Last updated: 2016-05-12

How to dynamic an image CODESYS Forge talk (Thread)
How to dynamic an image
Last updated: 2019-04-16

<< < 1 .. 6 7 8 9 10 .. 229 > >> (Page 8 of 229)

Showing results of 5725

Sort by relevance or date