EasyManua.ls Logo

YASKAWA VIPA SPEED7 - FC 98 - BCDCPL - Tens Complement

YASKAWA VIPA SPEED7
1007 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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 WORD I, M, D, L, P, constant Variable to decode
RET_VAL Output DWORD Q, M, D, L, P Value returned
This function does not detect any error conditions.
15.1.7 FC 98 - BCDCPL - Tens Complement
The Tens Complement BCDCPL function returns the Tens complement of a 7-digit BCD
number IN. The mathematical formula for this operation is the following:
10000000 (in BCD) - 7digit BCD value = Tens complement value (in BCD)
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, constant 7-digit BCD number
RET_VAL Output DWORD Q, M, D, L, P Value returned
This function does not detect any error conditions.
15.1.8 FC 99 - BITSUM - Sum Number of Bits
The Sum Number of Bits BITSUM function counts the number of bits that are set to a
value of 1 in the input IN and returns this as the function’s value.
Parameter
Parameter Deklaration Datentyp Speicherbereich Beschreibung
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, constant Variable to count bits in
RET_VAL Output INT Q, M, D, L, P Value returned
Error Information
Description
Error Information
Description
VIPA SPEED7
Standard
Converting > FC 99 - BITSUM - Sum Number of Bits
HB00 | OPL_SP7 | Operation list | en | 18-30 799

Table of Contents

Related product manuals