The LENGTH protocol step outputs a packet length field.

The length is computed as the length of the user data string created by the PRINT or WRITE statement in the device driver plus the offset defined as a decimal number. It is coded as a two character hex string.