Parameters
Parameter Declaration Data Type Memory Area Description
EN Input BOOL I, Q, M, D, L Enable input with signal state of 1 activates
the box
ENO Output BOOL I, Q, M, D, L Enable output has a signal state of 1 if the
function is executed without error
IN Input Pointer * I, Q, M, D Points to the starting location of the hexa-
decimal digit string
N Input WORD I, Q, M, L, P Number of hex input bytes to be converted
OUT Output Pointer * Q, M, D, L Points to the starting location of the destina-
tion table
*) Double word pointer format for area-crossing register indirect addressing
This function does not detect any error conditions.
15.1.5 FC 96 - ENCO - Encode Binary Position
The Encode Binary Position ENCO function converts the contents of IN to the 5-bit binary
number corresponding to the bit position of the right-most set bit in IN and returns the
result as the function’s value. If IN is either 0000 0001 or 0000 0000, a value of 0 is
returned.
Parameters
Parameter Declaration Data Type Memory Area Description
EN Input BOOL I, Q, M, D, L Enable input with signal state of 1 activates
the box
ENO Output BOOL I, Q, M, D, L Enable output has a signal state of 1 if the
function is executed without error
IN Input DWORD I, M, D, L, P,
or constant
Value to be encoded
RET_VAL Input INT Q, M, D, L, P Value returned (contains 5-bit binary
number)
This function does not detect any error conditions.
15.1.6 FC 97 - DECO - Decode Binary Position
The Decode Binary Position DECO function converts a 5-bit binary number (0 – 31) from
input IN to a value by setting the corresponding bit position in the function’s return value.
If IN is greater than 31, a modulo 32 operation is performed to get a 5-bit binary number.
Error Information
Description
Error Information
Description
VIPA SPEED7
Standard
Converting > FC 97 - DECO - Decode Binary Position
HB00 | OPL_SP7 | Operation list | en | 18-30 798