AdsBinaryWriter.WritePlcUnicodeStringFixedLength Method

Writes the PLC UNICODE string into a data block of the specified size.

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public void WritePlcUnicodeStringFixedLength(
    string value,
    int byteSize
)

VB

Public Sub WritePlcUnicodeStringFixedLength ( 
    value As String,
    byteSize As Integer
)

Parameters

value

Type: System.String
The value.

byteSize

Type: System.Int32
Size of the String including the '\0' terminator.

Reference

AdsBinaryWriter Class

TwinCAT.Ads Namespace

AdsBinaryWriter.WritePlcAnsiStringFixedLength(String, Int32)

AdsBinaryWriter.WritePlcUnicodeString(String, Int32)

AdsBinaryWriter.WritePlcAnsiString(String, Int32)