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

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,227
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
73
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
414
I am trying to get Codesys to work with a couple of Moxa ioLogik E1200 series DIO devices (E1210 and E1211). I am able to write to the E1211 DOs...
Replies
2
Views
114
Hi Guys, I am trying to establish communication over profinet between Siemens S7-1200 PLC as IO device and codesys plc as IO controller. But I am...
Replies
39
Views
2,076
Back
Top Bottom