beautypg.com

Delta Electronics Extension Digital I/O Module DOP-EXIO14RAE User Manual

Page 115

background image

Appendix D Use of Application Instructions|DOP-EXIO Series

D-34

Revision March, 2008, Doc. Name: 2007PDD23000014

Program Example 1:
The 16-bit D0 is multiplied by the 16-bit D10 and stores the result in a 32-bit data(D21, D20). The
higher 16-bit data is stored in D21 and the lower 16-bit data is stored in D20. On/Off of the most left bit
indicates the positive/negative status of the result value.

X0

MUL

D0

D10

D20

MUL

D0

D10

K8M0

Program Example 2:
The 32-bit (D1, D0) is multiplied by the 32-bit (D11, D10) and stores the result in a 64-bit data (D23,
D22, D21, D20). On/Off of the most left bit indicates the positive/negative status of the result value.

X0

DMUL

D0

D10

D20

DMUL

D0

D10

K8Y0