Codesys dynamic text list

dbozic

Lifetime Supporting Member
Join Date
Oct 2013
Location
Zagreb
Posts
74
Hi,

I am new to Codesys programming environment so I started introducing myself and try some functions I use with other vendors like Siemens.
So I tried to make a text list which would show the string value based on the integer status.
I made a sample program (see attachment). I have two button which increase INT counter and use it like ID for text list. With the current settings I cannot show the next to the ID from the text list based on the value. I tried with numerous combinations of settings and no luck.
Can someone help me to guide me to the solution?
If there is not enough info I will upload more from the program part if needed..
 
Try this: Take "%s" away from the text field and do the same thing for the text variable field (remove "Outputs.step").You should leave these fields empty if you are using dynamic texts.


Then use your integer value in the text index field under dynamic texts menu.


Rebuild, activate your configuration and try again. Hope this helps...
 
Try this: Take "%s" away from the text field and do the same thing for the text variable field (remove "Outputs.step").You should leave these fields empty if you are using dynamic texts.


Then use your integer value in the text index field under dynamic texts menu.


Rebuild, activate your configuration and try again. Hope this helps...

Thank you! It works. I would swear I tried this and it didn't work in one of my iterations but obviously I missed something..

To use this topic for one more question. I work with Somachine v4.3 which is based on Codesys. I tried to simulate system bits (clock bit from PLC_GVL.PLC_R.i_x1sClk). but it looks like you cannot test the program with system bits in simulation or I must "enable" it somehow?
The program code does work on real PLC but in simulation the clock is not giving pulses.
 

Similar Topics

Hello, I have a requirement to manage the text alignment dynamically. So, for example: 1. English Texts should be displayed from Left in...
Replies
0
Views
86
How can I trigger the web browser to refresh based on a variable? ie when I receive a new image have FF / Chrome refresh. What I'm trying to do...
Replies
5
Views
4,293
Hello, I am using a Hitachi Micro EHV+ for a small project, and I wanted to have a Web visu, done with Codesys V3.5 SP13 Patch 2. I test the...
Replies
6
Views
267
Hello, I am new to Codesys, and am trying to learn about it for a project we're developing. I've got a couple questions, but first a little...
Replies
1
Views
133
Hi everyone, as this is my first experience with Rockwell Software i would like to know what's the best way to make Enumerations?
Replies
10
Views
490
Back
Top Bottom