Attention

IronPLC implements many parts of the IEC 61131-3 standard and is working toward full Structured Text support. Key features still missing include structures and user defined function blocks.

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