omron — TRANSB transformation function

TRANSB transformation function TRANSB transformation function Syntax TRANSB (string, first_char, double_precision ) Function Return a transformation value represented by a 48-byte or 96-byte string. Parameters string String expression that contains the 48 or 96 bytes to be converted. first_char Optional real-valued expression that specifies the position of the first of the 48 bytes in the string. If first_char is omitted or has a value of 0 or 1, the first 48 or 96 bytes of the string are extracted. If first_char is greater than 1, it is interpreted as the character position for the first byte. For example, a value of 2 means that the second through 49th or 97th bytes are extracted.

An error is generated if first_char specifies 48 or 96 bytes that are beyond the end of the input string. double_precision Optional real-valued expression that specifies wether the transformation is represented by a single-precision (48 bytes) or double-precision (96 bytes) string. If double_precision is omitted or has a value of 0, the transformation is represented by a single precision in a 48-byte string, otherwise the transformation is represented by a double precision in a 96-byte string. This parameter is used to offer a full precision mode while maintaining backward compatibility.

Details 48 or 96 sequential bytes of the given string are interpreted as being a set of twelve single- precision (32-bit) or double-precision (64-bit) floating-point numbers in the IEEE standard format. (See the description of the FLTB or DBLB function for details of the floating-point format.) The twelve values are interpreted as the components of a 3-by-4 transformation matrix, stored by column. The main use of this function is to convert the binary representation of a transformation value from an input data record to values that can be used internally by eV+. eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 546