AdvancedHMI Software

General Category => Support Questions => Topic started by: Giarc on June 15, 2020, 12:13:06 PM

Title: Short String
Post by: Giarc on June 15, 2020, 12:13:06 PM
Hello,I ran into an issue trying to write to Custom string types Contrologix processors... Will read with no problem but while trying to write I get an "unknown data type" error.

Changing the data type from the custom "ShortString" to the default "String" datatype. It it will still be able to read but now it will also write without issue..

Just using code. EX: EthCLX1.Write("TestShortStr","Abc")

Adv HMI V. 399

Pictures attached.

Thanks!
Giarc
Title: Re: Short String
Post by: Giarc on June 15, 2020, 01:11:38 PM
Never mind, I figured it out. EthCLX1.WriteCustomString("TestShortStr","Abc",10)