Search talk: case OF

 
<< < 1 .. 59 60 61 62 63 .. 103 > >> (Page 61 of 103)

Post by rckalex on Changing Trace Variable at Runtime CODESYS Forge talk (Post)
Is it possible to change the variable being traced during runtime? I would like to use the CURRENTCLIENTID in combination with an array of real numbers to alter the traced variable in a display window, without needing to create separate visualizations for each variable.
Last updated: 2025-01-22

Post by trusty-squire on STRING conversions to DWORD CODESYS Forge talk (Post)
I don't fully understand the issue, but if the encoding is a problem you can try testing with WSTRING datatype instead of STRING. https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_datatype_wstring.html
Last updated: 2025-01-30

Post by runtimevictor on virtual plc vPLC configure nics CODESYS Forge talk (Post)
Hello, When I add 2 nics in vPLC this happens to me..., why is it? If I just put one of the two NICs, the vPLC runtime instance starts running correctly...
Last updated: 2025-02-02

Post by timvh on Device diagnosis ( EtherCAT IO card ) CODESYS Forge talk (Post)
You can get the state by just using the name of your node (same name as in device tree): VAR etcState: IoDrvEthercatDriverLib.ETC_SLAVE_STATE; END_VAR etcState := EJ1100.wState; Alternatively, you can iterate through the device tree to get the status of all (Ethercat) nodes. See here an example (no guarantee it works, just give as suggestion): PROGRAM P_IO_State VAR CONSTANT uiMAX_NR_OF_TERMINALS : UINT := 100; END_VAR VAR // general device diagnosis // can only be used when the Device - PLC Settings - Advanced settings - enable diagnosis for devices is enabled // this will add the DED library coupler: DED.INode; terminal: DED.INode; aDeviceState: ARRAY[0..uiMAX_NR_OF_TERMINALS - 1] OF DED.DEVICE_STATE; uiTerminalCount : UINT; uiIndex : UINT; // for each terminal check if it implements device diagnostics xQueryResult: BOOL; itfDevice : DED.IDevice2; xDiagAvailable: BOOL; eError: DED.ERROR; xEverythingOK: BOOL; END_VAR uiTerminalCount := 0; // start at the top of the device tree with the first EtherCAT coupler coupler := EtherCAT_Master.FirstChildNode; WHILE coupler <> 0 DO // for each coupler that is found start at the first terminal terminal := coupler.FirstChildNode; WHILE terminal <> 0 AND uiTerminalCount < uiMAX_NR_OF_TERMINALS - 1 DO // for each terminal that is found get the status through the device diagnosis interface xQueryResult := __QUERYINTERFACE(terminal, itfDevice); IF xQueryResult THEN aDeviceState[uiTerminalCount] := itfDevice.GetDeviceState(xDiagnosisInfoAvailable => xDiagAvailable, eError => eError); uiTerminalCount := uiTerminalCount + 1; END_IF terminal := terminal.NextSiblingNode; END_WHILE coupler := coupler.NextSiblingNode; END_WHILE uiIndex := 0; xEverythingOK := TRUE; WHILE uiIndex < uiTerminalCount DO IF aDeviceState[uiIndex] <> DED.DEVICE_STATE.RUNNING THEN xEverythingOK := FALSE; EXIT; END_IF uiIndex := uiIndex + 1; END_WHILE
Last updated: 2025-02-06

Post by mubeta on Profibus DP master with EL6731 and automatic restart of slaves CODESYS Forge talk (Post)
Solved. The scanner don't like the default DP address 0. It wok properly with PB address different than 0.
Last updated: 2025-02-09

Post by timvh on "Do you really want to perform" dialog boxes CODESYS Forge talk (Post)
Double click on the device (communication settings). At the top of this Window, go to Device -Options. Disable the option "Confirmed online mode".
Last updated: 2025-02-15

Post by eschwellinger on Virtual Control SL Profinet connection CODESYS Forge talk (Post)
means not licensed demo mode.. use the Licenserver on the host and apply a license and add the Ip of the license server then it will be green.
Last updated: 2025-02-28

Post by fabiodasilveira on PLC Shell commands via ST Code CODESYS Forge talk (Post)
Thank you, Bingo. Your idea of adding the change to the start up process works. However, I am still intrigued with the fact that SysSockSetIPAddress(strEthernetPort:= '0', strIPAddress:= '192.168.2.12') is different from PLC Shell (setipaddr 0 192.168.2.12).:-(
Last updated: 2025-03-04

Post by pernockham on Inheritence of struct, CODESYS Forge talk (Post)
Im looking for a way to define predefined version of the same structures through "extends"/inheritance. What I want to do is best shown with an example: TYPE log_item_val_type : ( BOOL_ := 0, INT_, REAL_, STRING_ ); END_TYPE TYPE LOG_DATA_BASE STRUCT val_type : log_item_val_type; (* value, name etc *) ENDSTRUCT ENDTYPE (* this/below is not possible as I understand from the compiler?? *) TYPE LOG_DATA_BOOL extends LOG_DATA_BASE : STRUCT val_type : log_item_val_type := log_item_val_type.BOOL_; END_STRUCT END_TYPE TYPE LOG_DATA_INT extends LOG_DATA_BASE : STRUCT val_type : log_item_val_type := log_item_val_type.INT_; END_STRUCT END_TYPE etc. for LOG_DATA_REAL and ..STRING. The system will not allow me to "re-define" "val_type" however. Instead I must do the work-around of defining four different types with all fields individually defined. The benefit if I could extend the base item would be that Im (more) sure the structures are identical. In usage I can call in a specific type rather use the base type and assign which type. Usage by pointer/ref to log_data_base would also be easier.. (* Usage: *) log_data : log_data_int := (name, value etc.) (* Instead of: *) log_data : log_data_base := (name, value, val_type).. Is this possible to achieve in some way that I have missed?
Last updated: 2025-03-05

Post by pernockham on Inheritence of struct, CODESYS Forge talk (Post)
Easier that I thought, by ALIAS TYPE log_item_val_type : ( BOOL_ := 0, INT_, REAL_, STRING_ ); END_TYPE TYPE LOG_DATA_BASE STRUCT val_type : log_item_val_type; (* value, name etc *) ENDSTRUCT ENDTYPE TYPE LOG_DATA_BOOL : LOG_DATA_BASE := (val_type := log_item_val_type.BOOL_); END_TYPE TYPE LOG_DATA_INT : LOG_DATA_BASE := (val_type := log_item_val_type.INT_); END_TYPE TYPE LOG_DATA_REAL : LOG_DATA_BASE := (val_type := log_item_val_type.REAL_); END_TYPE TYPE LOG_DATA_STRING : LOG_DATA_BASE := (val_type := log_item_val_type.STRING_); END_TYPE
Last updated: 2025-03-05

Post by fil on Using Latch Variable in Alarm as input from text list CODESYS Forge talk (Post)
Good morning, I am currently working on a project where this would be of enormous value. Any input would be very welcome - thanks in advance. Best regards Fil
Last updated: 2025-03-06

Post by felipemsgarcia on DELTA PLC AS228T CODESYS Forge talk (Post)
Hello, You can create a program in ST for AS228T using either DELTA ISPSoft or DELTA DIADesigner. The only DELTA PLCs/Controllers I know of compatible with CODESYS are AX-3 and AX-8 series. You will need to install the proper packages, though. Cheers!
Last updated: 2025-03-07

Post by liai on an not create Symbol Configuration in Codesys V3.5 SP20 Patch 4 CODESYS Forge talk (Post)
Just can not create Symbol Configuration in Codesys V3.5 SP20 Patch 4.Showed in the picture. The same PLC works well in SP19. If it lack of some setting in SP20 ?Thanks a lot.
Last updated: 2025-03-08

Post by julian123 on CodeSysControlWinV3x64 CODESYS Forge talk (Post)
Hello mos89p, I had the same problem. There is a lot of threads about this, but not one up to date. Your solution worked and I was finally able to use my software again. Thank you!
Last updated: 2025-03-12

Post by xlfll on How to use libdoc to implement libraries in multiple languages CODESYS Forge talk (Post)
po file to generate translation file mo, how to mo file into lmd file into the compilation library? This is not clearly described in the codesys help. Does anyone know? codesys help:https://content.helpme-codesys.com/en/LibDevSummary/localization.html#deployment-of-translated-documents
Last updated: 2025-03-13

Post by libichj on Raspberry Pi: List of available drivers / libraries CODESYS Forge talk (Post)
Is it possible to renew the urls in your post? Especially fo "Arduino UNO IO Device Description and Library"? Thank you for reply.
Last updated: 2025-03-15

Post by timvh on SysProcessCreate2 on Linux runtime CODESYS Forge talk (Post)
Maybe it is better to use the functionality of the Extension Package: https://content.helpme-codesys.com/en/CODESYS%20Control/_rtsl_extension.html https://content.helpme-codesys.com/en/CODESYS%20Examples/_ex_extension_package.html
Last updated: 2025-03-17

Post by eschwellinger on Codesys Network driver install for Codesys Control RTE x64 CODESYS Forge talk (Post)
is this latest Control RTE Version? Strange is that the component does not occure in the list of component to add.
Last updated: 2025-03-18

Post by vnlgomez5 on Toolbox missing item CODESYS Forge talk (Post)
Wow, spent a lot of time trying to figure out what my problem was, I was seeing the same limited Toolbox. Thank you so much.
Last updated: 2025-03-25

Post by dkugler on Statusabfrage EtherCAT Device CODESYS Forge talk (Post)
das könnte noch eine Möglichkeit sein, siehe Codesys Hilfe: https://content.helpme-codesys.com/en/libs/IODrvEtherCATDriver/Current/IoDrvEtherCAT.html#chained-list-for-checking-of-all-slaves
Last updated: 2025-04-17

Post by altus22 on Type SM3_Drive is not equal to type SM3_Drive CODESYS Forge talk (Post)
Another way to resolve this is to set Codesys to use a specific version of the offending library under Placeholders in the Library Manager.
Last updated: 2025-04-17

Post by jschu on Switch visualization style at runtime CODESYS Forge talk (Post)
Hello , will this be changed in an upcooming version? The current method is to use all the color Variables for buttons and object as changeable variables but the amount of work for this results in a bad cost-benefi ratio.
Last updated: 2025-05-15

Post by avenue68 on REFERENCE TO in an array CODESYS Forge talk (Post)
That's because the array only contains structures themselves, not references. It doesn't matter that what consists of each struectures unless they are not pointers.
Last updated: 2025-05-21

Post by mariacugnier on Modbus TCP/IP having problems with global variables CODESYS Forge talk (Post)
Are these variables already declared in the IO list? It looks like it's trying to create new variables instead of mapping them to the existing ones.
Last updated: 2025-05-22

Post by mariacugnier on Reading Devices ComState CODESYS Forge talk (Post)
Does anyone know how to access the ModbusTCPSlave_Diag.ComState without declaring each one by the device name? I attached them to an array but since I may have dozens of devices this is still a bad solution.
Last updated: 2025-05-22

<< < 1 .. 59 60 61 62 63 .. 103 > >> (Page 61 of 103)

Showing results of 2553

Sort by relevance or date