
FANUC PMC-MODEL SD7
Programming Manual
01 01.11.26
Hanaoka
New
A-78550E
EDIT DATE DESIG.
DESCRIPTION
108/
316
TITLE
DRAW.NO.
3.8.2 BCDx_TO_(type) (x = 4, 8)
Function
When EN is set to ON and is receiving the power flow,
BCDx_TO_(type) converts the 4-, or 8-digit data input to input
parameter IN to integer data and outputs the result to output
parameter Q.
If an invalid BCD value is input to IN, the minimum valid value for that
data type (-128 for SINT, 0 for USINT) is output to Q. In this case,
ENO is not output.
BCDx_TO_(type) instructions
Name Explanation
BCD4_TO_INT Converts from 4-digit BCD to INT
BCD4_TO_UINT Converts from 4-digit BCD to UINT
BCD8_TO_DINT Converts from 8-digit BCD to DINT
Format
BCDx
TO
(type)
IN Q
(EN) (ENO)
??????? ???????
Parameters
Parameter Data type Meaning
EN BOOL Execution of conversion
IN WORD, DWORD Input data
ENO BOOL Normal end flag
Q ANY_INT Result of conversion