2-181

2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Symbol Math Instructions
2
/, /L
/, /L
Applicable Program Areas
Operands
Operand Specifications
Flags
Instruction Mnemonic Variations Function
code Function
SIGNED BINARY DIVIDE / @/ 430 Divides 4-digit (single-word) signed hexadecimal
data and/or constants.
DOUBLE SIGNED BINARY
DIVIDE /L @/L 431 Divides 8-digit (double-word) signed hexadecimal
data and/or constants.
Symbol
//L
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
//L //L
Dd /: Dividend word
/L: First dividend word INT DINT 1 2
Dr /: Divisor word
/L: First divisor word INT DINT 1 2
R First result word DWORD LWORD 2 4
Area Word addresses Indirect DM addresses Constants CF Pulse bits TR bits
CIO WR HR AR T C DM @DM *DM
Dd, Dr OK OK OK OK OK OK OK OK OK OK --- --- ---
R---
Name Label Operation
Error Flag P_ER ON when the divisor is 0.
OFF in all other cases.
Equals Flag P_EQ ON when as a result of the division, R/R+1, R is 0.
OFF in all other cases.
Negative Flag P_N ON when the leftmost bit of the R/R+1, R is 1.
OFF in all other cases.
/(430)
R
Dd
Dr
Dd: Dividend word
Dr: Divisor word
R: Result word
/L(431)
R
Dd
Dr
Dd: 1st dividend word
Dr: 1st divisor word
R: 1st result word