Post by reinier-geers on Ping By Name
CODESYS Forge
talk
(Post)
How can i ping my computer by name ? My controler uses SysSockPing , But seems only by IP adres, not by name. IP adres changes. So how can i ping by name or know that im connected
Last updated: 2023-08-24
Post by fless on See only variable
CODESYS Forge
talk
(Post)
either you have "Insert with namespace" enabled in the SmartCoding options or your GVL_GLOBAL starts with {attribute 'qualified_only'} btw it's considered good practice to put the namespace in front of the variable. you could have variable with the same name in your PRG or FB.
Last updated: 2024-03-14
Post by installwhat on How to access to variable value through symbolic string name
CODESYS Forge
talk
(Post)
https://help.codesys.com/api-content/2/codesys/3.5.12.0/en/_cds_operator_string_to/ Something like this?
Last updated: 2024-06-13
Post by installwhat on How to access to variable value through symbolic string name
CODESYS Forge
talk
(Post)
https://help.codesys.com/api-content/2/codesys/3.5.12.0/en/_cds_operator_string_to/ Something like this?
Last updated: 2024-06-13
Post by andrebrandt on how to extract the name of an FB to a variable
CODESYS Forge
talk
(Post)
Hi mr. Do you have the script? Cause the link is down.
Last updated: 2024-09-27
Post by andrebrandt on how to extract the name of an FB to a variable
CODESYS Forge
talk
(Post)
Hi mr. Do you have the script? Cause the link is down.
Last updated: 2024-09-27
Post by andrebrandt on how to extract the name of an FB to a variable
CODESYS Forge
talk
(Post)
Hi mr. Do you have the script? Cause the link is down.
Last updated: 2024-09-27
Post by timvh on how to extract the name of an FB to a variable
CODESYS Forge
talk
(Post)
https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_pragma_attribute_instance_path.html
Last updated: 2024-10-01
Post by arwie on Eoe issues with Windows and Linux
CODESYS Forge
talk
(Post)
You can select the tap name with this environment variable: RTS_EOE_DEV=tap3
Last updated: 2024-10-07
Unterschied zwischen normaler Variable und Merker Variable?
CODESYS Forge
talk
(Thread)
Unterschied zwischen normaler Variable und Merker Variable?
Last updated: 2008-11-24
Image variable / invisible - not boolean variable (expression)
CODESYS Forge
talk
(Thread)
Image variable / invisible - not boolean variable (expression)
Last updated: 2019-02-15
Pack TWO INT variable to one DINT variable
CODESYS Forge
talk
(Thread)
Pack TWO INT variable to one DINT variable
Last updated: 2024-05-07
How to create Network Variable by Script
CODESYS Forge
talk
(Thread)
How to create Network Variable by Script
Last updated: 2017-12-08
Rewire an global variable by other one
CODESYS Forge
talk
(Thread)
Rewire an global variable by other one
Last updated: 2016-02-25
Post by davidbo on Modbus: Is there a way to get the channel index from the channel name?
CODESYS Forge
talk
(Post)
When I use the FUNCTION_BLOCK ModbusChannel I have to sepcify the integer iChannelIndex It can easily go wrong if one has many channels. It would be better if one could use the name. Is that possible? Attached a snippet of the channel name and the channel index to the left.
Last updated: 2024-10-21
Post by caprez95 on Trace Restart Visuelement
CODESYS Forge
talk
(Post)
Hello everyone. I've been struggling with the problem for a long time that I can't reset (restart) a trend (visual element). With the example I have now managed to control the trace recording via the CmpTraceMgr library. But how do I get this trace recording into a visual element? The code looks like this: // Configure trace IF xInit THEN // Create a trace packet PacketConfig.pszName := ADR('IECTraceConfiguration.Trace1'); // Name of trace PacketConfig.pszApplicationName := ADR('IECTraceConfiguration'); // Name of the application PacketConfig.pszIecTaskName := ADR('Task'); // Name of the task PacketConfig.pszComment := ADR('Demo packet'); PacketConfig.ulEveryNCycles := 1; PacketConfig.ulBufferEntries := 1000; PacketConfig.ulFlags := TRACE_PACKET_FLAGS.TRACE_PACKET_FLAGS_TIMESTAMP_MS AND TRACE_PACKET_FLAGS.TRACE_PACKET_FLAGS_AUTOSTART; IF (NOT fbTraceManager.CreatePacket(PacketConfig := PacketConfig, hPacket=>hPacket1)) THEN xError := TRUE; END_IF // Create a trace record RecordConfig.pszVariable := ADR('iSignal'); // This is the name of variable to record RecordConfig.tcClass := INT_TO_UDINT(TypeClass.TYPE_INT); // Type of the recording variable RecordConfig.ulSize := SIZEOF(iSignal); // Size of the recording variable pApp := AppFindApplicationByName('IECTraceConfiguration', 0); AppGetAreaOffsetByAddress(pApp, ADR(iSignal), ADR(RecordConfig.tvaAddress.taAddress.Area.usArea), ADR(RecordConfig.tvaAddress.taAddress.Area.ulOffset)); // Get and set area offsets RecordConfig.tvaAddress.ulAddressFlags := TRACE_VAR_ADDRESS_FLAGS_IEC OR TRACE_VAR_ADDRESS_FLAGS_AREA_OFFSET; RecordConfig.ulGraphColor := 16#FF00FF00; // green RecordConfig.ulGraphType := 1; // Line with points IF (NOT fbTraceManager.AddRecord(RecordConfig := RecordConfig, hPacket := hPacket1, hRecord => hRecord1)) THEN xError := TRUE; END_IF xInit := FALSE; END_IF // Starts the recording IF xStart THEN IF (NOT fbTraceManager.StartPacket(hPacket := hPacket1)) THEN xError := TRUE; END_IF xStart := FALSE; END_IF // Stop the recording IF xStop THEN IF (NOT fbTraceManager.StopPacket(hPacket := hPacket1)) THEN xError := TRUE; END_IF xStop := FALSE; END_IF // Reset the recording IF xReset THEN IF (NOT fbTraceManager.ResetPacket(hPacket := hPacket1)) THEN xError := TRUE; END_IF xReset := FALSE; END_IF
Last updated: 2024-06-04
htm file name not updating
CODESYS Forge
talk
(Thread)
htm file name not updating
Last updated: 2020-04-21
detect file name in usb drive
CODESYS Forge
talk
(Thread)
detect file name in usb drive
Last updated: 2023-08-16
Find the name of the dialog
CODESYS Forge
talk
(Thread)
Find the name of the dialog
Last updated: 2021-12-14
detect file name in usb drive
CODESYS Forge
talk
(Thread)
detect file name in usb drive
Last updated: 2023-07-28
Read "Application Name" via IEC Code
CODESYS Forge
talk
(Thread)
Read "Application Name" via IEC Code
Last updated: 2020-01-03
give a Name to array cell
CODESYS Forge
talk
(Thread)
give a Name to array cell
Last updated: 2017-06-03
Ambigious use of name - CO136
CODESYS Forge
talk
(Thread)
Ambigious use of name - CO136
Last updated: 2020-02-26
WebVisualization name of htm case sensitive?
CODESYS Forge
talk
(Thread)
WebVisualization name of htm case sensitive?
Last updated: 2017-03-16
Ambiguous use of name - CO136
CODESYS Forge
talk
(Thread)
Ambiguous use of name - CO136
Last updated: 2024-07-06
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
.