Visu performance / variable references vs. property access
CODESYS Forge
talk
(Thread)
Visu performance / variable references vs. property access
Last updated: 2022-12-03
Variable for the Visualization within the placeholder
CODESYS Forge
talk
(Thread)
Variable for the Visualization within the placeholder
Last updated: 2009-01-11
Writing to a variable in function block
CODESYS Forge
talk
(Thread)
Writing to a variable in function block
Last updated: 2010-04-30
3.5.17, how to show full variable names?
CODESYS Forge
talk
(Thread)
3.5.17, how to show full variable names?
Last updated: 2021-05-20
Any way to access a variable via a string?
CODESYS Forge
talk
(Thread)
Any way to access a variable via a string?
Last updated: 2017-12-04
variable is no valid assignment target error while compiling
CODESYS Forge
talk
(Thread)
variable is no valid assignment target error while compiling
Last updated: 2023-06-23
Access Interface Editor Variable from PLC Logic
CODESYS Forge
talk
(Thread)
Access Interface Editor Variable from PLC Logic
Last updated: 2017-01-17
How to update string variable from the temperature sensor file
CODESYS Forge
talk
(Thread)
How to update string variable from the temperature sensor file
Last updated: 2022-07-01
Using retain variable on WinV3 SL or Linux SL
CODESYS Forge
talk
(Thread)
Using retain variable on WinV3 SL or Linux SL
Last updated: 2021-11-16
Verifying communication between PLCs using Network Variable Lists
CODESYS Forge
talk
(Thread)
Verifying communication between PLCs using Network Variable Lists
Last updated: 2017-01-02
Change Language -> any system variable showing current language?
CODESYS Forge
talk
(Thread)
Change Language -> any system variable showing current language?
Last updated: 2023-08-01
Pragmas "ist ein Teil einer Variable vorhanden = Struktur"
CODESYS Forge
talk
(Thread)
Pragmas "ist ein Teil einer Variable vorhanden = Struktur"
Last updated: 2023-01-16
Modbus TCP Master->Modbus TCP Slave Variable always 0 issue
CODESYS Forge
talk
(Thread)
Modbus TCP Master->Modbus TCP Slave Variable always 0 issue
Last updated: 2018-04-18
Rewire an global variable by other one
CODESYS Forge
talk
(Thread)
Rewire an global variable by other one
Last updated: 2016-02-25
Extracting CANbus variable mapping from Codesys 3.x project.
CODESYS Forge
talk
(Thread)
Extracting CANbus variable mapping from Codesys 3.x project.
Last updated: 2015-01-16
Mit Python Skript eine globale Variable in Codesys beschreiben
CODESYS Forge
talk
(Thread)
Mit Python Skript eine globale Variable in Codesys beschreiben
Last updated: 2017-09-18
Variable Sync Issue In Soft Plc Redundancy
CODESYS Forge
talk
(Thread)
Variable Sync Issue In Soft Plc Redundancy
Last updated: 2024-03-11
Trend recording build error - the variable "arrTraceMgrVariablesImpl" is too large
CODESYS Forge
talk
(Thread)
Trend recording build error - the variable "arrTraceMgrVariablesImpl" is too large
Last updated: 2024-04-10
How to write variable by name
CODESYS Forge
talk
(Thread)
How to write variable by name
Last updated: 2024-06-04
Alarmgruppenvorlage kann über Kontextmenü keine weitere Latch Variable hinzugefügt werden
CODESYS Forge
talk
(Thread)
Alarmgruppenvorlage kann über Kontextmenü keine weitere Latch Variable hinzugefügt werden
Last updated: 2026-01-05
Limitation on OPC UA Variable 100+ variables on raspberry pi
CODESYS Forge
talk
(Thread)
Limitation on OPC UA Variable 100+ variables on raspberry pi
Last updated: 2026-01-22
Post by abuckie on Getting raw value as full resolution for ADS1115
CODESYS Forge
talk
(Post)
I just found this and I am getting a value larger than 16 bit, around 81000 something. I am reading a 5 volt value and I am using level shifters for the i2c bus. This is how I have the channel configured: ADS1115.usiAddress := 16#48; ADS1115.ChannelConfigs[0].Active := TRUE; ADS1115.ChannelConfigs[0].PGA := FSR_6144mV; ADS1115.ChannelConfigs[0].InputMux := Single_0; RawAnalogValue := ADS1115.Channels[0].Value; It looks like every value is a multiple of 3. Any idea where to look to fix this? I think i found what I want to change in UpdateChannels Channels[FChannelNo].Value := INT_TO_REAL(WORD_TO_INT(LValue) * GetFullScaleRange(ChannelConfigs[FChannelNo].PGA)) / 2048.0; I try to edit it but I can't, sorry if this is a basic question, I am new to CODESYS.
Last updated: 2025-05-22
Post by ac-spr on Runtime variable that indicates a user is online to the code
CODESYS Forge
talk
(Post)
Looking to access a variable at runtime that indicates a user is online to the code. essentially want to use this value to feedback to the user on the HMI. we use turck and bosch rexroth devices if this information helps. I was hoping there was a variable at the application level, or a library that could be used but I was unable to find anything. I know there's a pop up when you try to login/ go online to the code when a user is already logged in, so the system does provide an indication that it knows already online, but has no access to a value from what I can see. Any help is appreciated
Last updated: 2024-04-22
Post by tk096 on High Cycle Times for SoftMotion_PlanningTask when using AxisGroup
CODESYS Forge
talk
(Post)
Hi, under this circumstances the performance of a Raspberry Pi 4 should be sufficient to run a Softmotion robotics application. A closer look at the project would be required. Maybe you could contact the codesys support? Usually it is recommended to run the planning task cyclically every 2ms with task priority of 0 on a dedicated core. In the task configuration you can have a look at the average and maximum execution time of the planning task. You could use the function block SMC_TuneCPKernel (https://content.helpme-codesys.com/en/libs/SM3_Robotics/Current/SM3_Robotics/POUs/AdministrativeConfiguration/Computation/SMC_TuneCPKernel.html) to define suitable values for the parameters 'fSyncBufferDuration' and 'fPlanningInterval'. However, as previously mentioned, the performance of a Raspberry Pi 4 with realtime patch should be sufficient. The 'fPlanningInterval' parameter specifies the maximum planning step width in seconds. The cycle time of the planning task should not permanently exceed this value. A higher value reduces the computational effort, but can lead to a violation or no full utilization of the set limit values for velocity, acceleration and jerk. From a starting value of 0.016 seconds, the value should be increased gradually until the performance is acceptable. The parameter 'fSyncBufferDuration' specifies the size (in seconds) of the buffer between the planning and fieldbus task. The cycle time of the planning task must not exceed this value at peak times (this will lead to the error SMC_CP_QUEUE_UNDERRUN). A higher value can compensate for peaks in the cycle time of the planning task. At the same time, however, this also increases the latency for executing interrupts and aborting movements.
Last updated: 2024-03-22
Post by xgongx on What is the insights of IoDrvEtherCAT.DCInSyncWindow?
CODESYS Forge
talk
(Post)
It is well known that you need to increase the value of IoDrvEtherCAT.DCInSyncWindow to solve the "Fieldbus lost synchronicity" issue. In the official document, IoDrvEtherCAT.DCInSyncWindow is explained as the toleration of a certain jitter. But the official document doesn't explain what kind of the jitter is. Is it the jitter of DC sync deviation, master timer or something else? It is very important to know the insights of IoDrvEtherCAT.DCInSyncWindow. For example, if it is the toleration of DC sync deviation, and the official recommending value is 200us for CODESYS SoftMotion. It means maximum of DC sync deviation is 200us. It is unacceptable for some high precision motion control tasks, for example high speed gear task, etc. Increasing the value of IoDrvEtherCAT.DCInSyncWindow will increase the deviation of motor rotation sync if it is the toleration of DC sync deviation. So, would anyone tell me what the insights of IoDrvEtherCAT.DCInSyncWindow is? Thanks.
Last updated: 2024-07-09
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.