Mitsubishi — 5.3 Handling of Numeric Values

5 Categories & Use of Application Instructions  In the 16-bit (or 32-bit) operation, if the contents of the operand are designated as bit devices K1 ~ K3 (or K4 ~ K7), the vacant high bits will be regarded as “0”. Therefore, the operation is a positive-value one. M0 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: 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 operations in DVP-PLC are conducted in BIN integers. When the integer performs division, e.g. 40 ч 3 = 13 the 32-bit operation, the higher 16 bits will be regarded as “0”. For 32-bit data, please use K8Y0. 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:

DVP-PLC Application Manual 5-12 BIN K2X4 D0 K1X0 K1X4 K1X10 K1X14… K2Y0 K2Y10 K2Y20 Y2X30… K3M0 K3M12 K3M24 K3M36… K4S0 K4S16 K4S32 K4S48…

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) API 275~280 (FLD※) API 281~286 (FAND※) API 287~292 (FOR※)