ads-client | Beckhoff TwinCAT ADS client library for Node.js
    Preparing search index...

    Function encodeStringToPlcStringBuffer

    • Encodes provided string to a Buffer object as plc STRING using cp1252 encoding

      Parameters

      • str: string

        String to encode

      • UTF8: boolean = false

        If true, the value is encoded as UTF-8, otherwise as cp1252.

      Returns Buffer<ArrayBufferLike>