Siemens write to string

Hi all,

I have a little issue with writing strings to a Siemens S7-300.

Writing and reading int in the same DB works great. Changing the string in the plc updates the string in Ignition, but when we try to write back to the PLC nothing happens in the PLC. Ignition keeps the new value. Nothing in the logs.

writes '90-1-1' directly to the plc, ignition reads this value. Writing '91-1-1' to the tag, no change in plc, ignition keeps displaying this value until we change the string in the plc. Can this be plc related?

On your picture on the right side where it says Last published value there is a date and time as value...
(then is the quality: Good and then the timestamp)...

It should look like mine:

It looks like something is writing date/time instead of '91-1-1'...

Are you sure that in the DB you have defined as STRING[24]:

Hi, thanks for the reply. I'm writing the formatted value (string) from a date picker to a tag defined as a string in both ignition and the S7.

How are you writing to the tag? Binding, scripting,...?
Show us the code...

We tried to write directly to the tag, and by binding it to formatted date.

Is it true that we need to convert the string to bytes and add something to be able to write to the S7?

No, why?
In my quick example, I also write a string directly to the tag...

1 Like