
FANUC PMC-MODEL SD7
Programming Manual
01 01.11.26
Hanaoka
New
A-78550E
EDIT DATE DESIG.
DESCRIPTION
106/
316
TITLE
DRAW.NO.
3.8.1 (type)_TO_BCDx (x = 4, 8)
Function
When EN is set to ON and is receiving the power flow,
(type)_TO_BCDx converts the integer data of input parameter IN to 4-
or 8-digit BCD, then outputs the result to output parameter Q.
When a large value that can not be expressed in BCD (a value greater
than 9999 for a 4-digit BCD, and greater than 99999999 for an 8-digit
BCD) is input to IN, the maximum value that can be expressed in BCD
(9999 for a 4-digit BCD, and 99999999 for an 8-digit BCD) is output to
Q. In such a case, ENO is not output. Also, if a negative value is input
to IN, 0 is output to Q. Again, in such a case ENO is not output.
(type)_TO_BCDx instructions
Name Explanation
INT_TO_BCD4 Converts from INT to 4-digit BCD
UINT_TO_BCD4 Converts from UINT to 4-digit BCD
DINT_TO_BCD8 Converts from DINT to 8-digit BCD
Format
(type)
TO
BCDx
IN Q
(EN) (ENO)
??????? ???????
Parameters
Parameter Data type Meaning
EN BOOL Execution of conversion
IN ANY_INT Input data
ENO BOOL Normal end flag
Q WORD, DWORD Result of conversion