beautypg.com

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

Page 117

background image

Appendix D Use of Application Instructions|DOP-EXIO Series

D-36

Revision March, 2008, Doc. Name: 2007PDD23000014

Program Example 1:
When X0 = On, D0 will be divided by D10 and the quotient will be stored in D20 and remainder in D21.
On/Off of the highest bit indicates the positive/negative status of the result value.

X0

DIV

D0

D10

D20

D0

D10

K4Y0

DIV

Program Example 2:
When X0 = On, (D1, D0) will be divided by (D11, D10) and the quotient will be stored in (D21, D20) and
remainder in (D23, D22). On/Off of the highest bit indicates the positive/negative status of the result
value.

X0

DDIV

D0

D10

D20

D0

D10

K8Y0

DDIV