Post by talhaali on Adding a variable from text list into ST code
CODESYS Forge
talk
(Post)
Hi, can I use a entry of a text list as variable in structured text? for example in attach picture, if i want to use data of first row. I am trying to write: A : STRING := TextList.Default.0; but it is not workings
Last updated: 2023-12-07
Post by manuknecht on Persistence Manager does not save alphabetically first value
CODESYS Forge
talk
(Post)
I have several libraries which contain values that should be saved on a PLC. As apparently no Persistent Variable List is available within Libraries, I use the Persistence Manager to create a Persistence Channel in the Project which imports the library. I then specify the persistence channel in the library using the {attribute 'ac_persist':='PersistenceChannel_CT'} specifier. This generally works very well and gives me exactly the properties I require. However, it came to my attention that the (alphabetially) first value from the library is not saved in the created ASCII file. When checking the content of the Persistence Channel, it shows all the variables as defined in the library. But the created file does not contain the first value and it is not restored after restart or reset. (see attached picture) I disabled Periodic Saving and set xSaveOnChange to TRUE and so the file usually updates immediately after changing one of the values. When changing the first value, it does not update which is consistent with this value not being saved. I also created a sample project and library from scratch which shows the same issue both using a Raspberry Pi and using a Linux machine. Does someone know what the reason for this could be or did someone make similar experiences? Looking forward to hearing your suggestions. Thanks in advance and best wishes Manuel
Last updated: 2023-10-17
IMAGE DISPLAY ACCORDING TO INPUT VARIABLE
CODESYS Forge
talk
(Thread)
IMAGE DISPLAY ACCORDING TO INPUT VARIABLE
Last updated: 2023-09-12
Bitweiser Zugriff auf eine WORD Variable ?
CODESYS Forge
talk
(Thread)
Bitweiser Zugriff auf eine WORD Variable ?
Last updated: 2006-02-13
WORD-Variable in REAL konvertieren
CODESYS Forge
talk
(Thread)
WORD-Variable in REAL konvertieren
Last updated: 2006-05-29
Bit access to DWORD Variable
CODESYS Forge
talk
(Thread)
Bit access to DWORD Variable
Last updated: 2019-12-18
Problem in variable Types
CODESYS Forge
talk
(Thread)
Problem in variable Types
Last updated: 2011-08-18
Feldbus Variable beginnt immer mit 0
CODESYS Forge
talk
(Thread)
Feldbus Variable beginnt immer mit 0
Last updated: 2007-05-21
Backup variable to a file.
CODESYS Forge
talk
(Thread)
Backup variable to a file.
Last updated: 2009-06-29
Variable values into a string
CODESYS Forge
talk
(Thread)
Variable values into a string
Last updated: 2010-02-08
Ausgabe einer Variable (180° drehen)
CODESYS Forge
talk
(Thread)
Ausgabe einer Variable (180° drehen)
Last updated: 2018-02-06
mehrere Eingabewege in eine Variable
CODESYS Forge
talk
(Thread)
mehrere Eingabewege in eine Variable
Last updated: 2008-12-08
Output-Variable mehrfach nutzen in FUP
CODESYS Forge
talk
(Thread)
Output-Variable mehrfach nutzen in FUP
Last updated: 2021-12-09
Netzwerk Variable als Retain deklarieren
CODESYS Forge
talk
(Thread)
Netzwerk Variable als Retain deklarieren
Last updated: 2014-05-28
Quick Network Variable Question
CODESYS Forge
talk
(Thread)
Quick Network Variable Question
Last updated: 2012-05-29
Opus A3 persistence variable problem
CODESYS Forge
talk
(Thread)
Opus A3 persistence variable problem
Last updated: 2021-01-08
Online variable values unavailable
CODESYS Forge
talk
(Thread)
Online variable values unavailable
Last updated: 2010-03-24
OnlineManager error when writing/reading variable
CODESYS Forge
talk
(Thread)
OnlineManager error when writing/reading variable
Last updated: 2014-01-24
text eingabe der variable textausgabe
CODESYS Forge
talk
(Thread)
text eingabe der variable textausgabe
Last updated: 2009-11-01
Date and time to String variable
CODESYS Forge
talk
(Thread)
Date and time to String variable
Last updated: 2022-05-30
globale Variable in FB hochzählen
CODESYS Forge
talk
(Thread)
globale Variable in FB hochzählen
Last updated: 2008-05-30
Werte für Variable DayOfWeek in SysLibTime ?
CODESYS Forge
talk
(Thread)
Werte für Variable DayOfWeek in SysLibTime ?
Last updated: 2007-08-08
Font Colour/Size/Name variable
CODESYS Forge
talk
(Thread)
Font Colour/Size/Name variable
Last updated: 2020-06-17
IMAGE DISPLAY ACCORDING TO INPUT VARIABLE
CODESYS Forge
talk
(Thread)
IMAGE DISPLAY ACCORDING TO INPUT VARIABLE
Last updated: 2023-07-26
Eigenschaft Programm ausführen mit Variable möglich?
CODESYS Forge
talk
(Thread)
Eigenschaft Programm ausführen mit Variable möglich?
Last updated: 2008-10-16
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
.