Attention

IronPLC can only run very simple programs. The steps described are accurate but many language features are not yet supported.

WSTRING

Double-byte (wide) character string with a maximum length.

Size

Variable (default max 254 characters)

Default

"" (empty string)

IEC 61131-3

Section 2.3.1

Support

Not yet supported

Literals

"Hello, world!"
"Double-byte string"
WSTRING#"typed literal"

The maximum length can be specified in the declaration:

VAR
    name : WSTRING[50];   (* max 50 characters *)
    msg  : WSTRING;       (* default max length *)
END_VAR

See Also

  • STRING — single-byte character string