
FANUC PMC-MODEL SD7
Programming Manual
01 01.11.26
Hanaoka
New
A-78550E
EDIT DATE DESIG.
DESCRIPTION
128/
316
TITLE
DRAW.NO.
3.10.2 PMC_MOD_BCDx (x = 2, 4, 8)
Function
When EN is set to ON and is receiving the power flow,
PMC_MOD_BCDx divides the BCD data of input parameter IN1 by
that of IN2 (IN1 ÷÷ IN2) and outputs the remainder to output parameter
Q.
IN1, IN2, and Q must all be of the same data type.
If invalid BCD data is input to IN, 0 is output to Q. When the operation
ends with no overflow (such as that caused by division by zero), ENO is
set to ON.
Remainder of BCD data
Name Explanation
PMC_MOD_BCD2 Remainder of 2-digit BCD data
PMC_MOD_BCD4 Remainder of 4-digit BCD data
PMC_MOD_BCD8 Remainder of 8-digit BCD data
Format
PMC
MOD
BCD
x
IN1 Q
IN2
???????
???????
???????
(EN) (ENO)
Parameters
Parameter Data type Meaning
EN BOOL Execution of operation
IN1
BYTE, WORD,
DWORD
Input data 1
IN2 BYTE, WORD,
DWORD
Input data 2
ENO BOOL Normal end flag (set to OFF upon an overflow)
Q
BYTE, WORD,
DWORD
Result of operation