: The dividend.
: Divisor.
: Quotient.
The quotient obtained by dividing
by
is stored in
. The data involved in the operation are all unsigned
16-bit binary numbers.
Only the integer part of the quotient is stored in and the remainder is not stored. When the divisor is 0, M8023 is 1.
When X0 is ON, the data of D0 is divided by the data of D10, and the quotient obtained is stored in D20.
: Target operand.
If the point before INC is not a pulse, it will be automatically incremented by 1 every scan period.
This command generally uses pulse-type execution commands.
The INC instruction has only one operand and does not affect the zero flag.
The calculated data is an unsigned 16-bit binary number.
D0 will automatically increase by 1 when X0 OFF→ON.