beautypg.com

5 categories & use of application instructions – Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 204

background image

5 Categories & Use of Application Instructions

DVP-PLC Application Manual

5-12

M0

BIN K2X4

D0

The BCD value composed of X4 ~ X13 will be converted to BIN

value and sent to D0.

ƒ

You can choose any No. for bit devices, but please make the 1s digit of X and Y “0”, e.g. X0, X10, X20, …Y0, Y10…,

and the 1s digit of M and S “8’s multiple” (“0” is still the best choice), e.g. M0, M10, M20….

ƒ

Designating continuous device No.

Take data register D for example, continuous D refers to D0, D1, D2, D3, D4….

For bit devices with specifically designated digit, continuous No. refers to:

K1X0 K1X4 K1X10 K1X14…

K2Y0 K2Y10 K2Y20

Y2X30…

K3M0 K3M12 K3M24

K3M36…

K4S0 K4S16 K4S32

K4S48…

Please follow the No. in the table and do not skip No. in case confusion may occur. In addition, if you use K4Y0 in

the 32-bit operation, the higher 16 bits will be regarded as “0”. For 32-bit data, please use K8Y0.

The operations in DVP-PLC are conducted in BIN integers. When the integer performs division, e.g. 40 ÷ 3 = 13

and the remainder is 1. When the integer performs square root operations, the decimal point will be left out. Use

decimal point operation instructions to obtain the decimal point.

Application instructions revelant to decimal point:

API 49 (FLT)

API 110 (D ECMP)

API 111 (D EZCP)

API 112 (D MOVR)

API 116 (D RAD)

API 117 (D DEG)

API 118 (D EBCD)

API 119 (D EBIN)

API 120 (D EADD)

API 121 (D ESUB)

API 122 (D EMUL)

API 123 (D EDIV)

API 124 (D EXP)

API 125 (D LN)

API 126 (D LOG)

API 127 (D ESQR)

API 128 (D POW)

API 129 (INT)

API 130 (D SIN)

API 131 (D COS)

API 132 (D TAN)

API 133 (D ASIN)

API 134 (D ACOS)

API 135 (D ATAN)

API 136 (D SINH)

API 137 (D COSH)

API 138 (D TANH)

API 172 (D ADDR)

API 173 (D SUBR)

API 174 (D MULR)

API 175 (D DIVR)

Binary Floating Point

DVP-PLC represents floating points in 32 bits, following the IEEE754 standard:

S

exponent

mantissa

8 bits

23 bits

b

31

b

0

Sign bit

0: positive
1: negative