17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DVP</strong>-<strong>ES2</strong>/<strong>SA2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> - Programming<br />

3. Transmit K1M0, K2M0, K3M0 to 16-bit registers. Only the valid bit data will be transmitted<br />

and the upper bits in the 16-bit register will all be filled with 0. The same rule applies when<br />

sending K1M0, K2M0, K3M0, K4M0, K5M0, K6M0, K7M0 to 32-bit registers.<br />

4. When the Kn value is specified as K1~K3 (K4~K7) for a 16-bit (32-bit) operation, the empty<br />

upper bits of the target register will be filled with “0.” Therefore, the operation result in this<br />

case is positive since the MSB(Most significant bit) is 0.<br />

M0<br />

BIN<br />

K2X0<br />

D0<br />

The BCD value combined by X0 to X7 will be<br />

converted to D0 as BIN value.<br />

Assign Continuous Bit Numbers<br />

As already explained, bit devices can be grouped into 4 bit units. The “n” in Kn defines the number<br />

of groups of 4 bits to be combined for data operation. For data register D, consecutive D refers to<br />

D0, D1, D2, D3, D4…; For bit devices with Kn, consecutive No. refers to:<br />

K1X0 K1X4 K1X10 K1X14…<br />

K2Y0 K2Y10 K2Y20 Y2X30…<br />

K3M0 K3M12 K3M24 K3M36…<br />

K4S0 K4S16 K4S32 K4S48…<br />

Note: To avoid errors, please do not skip over the continuous numbers. In additoin, when K4Y0 is<br />

used in 32-bit operation, the upper 16-bit is defined as 0. Therefore, it is recommended to use<br />

K8Y0 in 32bit operation.<br />

Floating Point <strong>Operation</strong><br />

The operations in <strong>DVP</strong>-PLC are conducted in BIN integers. When the integer performs division,<br />

e.g. 40 ÷ 3 = 13, the remainder will be 1. When the integer performs square root operations, the<br />

decimal point will be left out. To obtain the operation result with decimal point, please use floating<br />

point instructions.<br />

Application instructions revelant to floating point:<br />

FLT DECMP DEZCP DMOVR DRAD<br />

DDEG DEBCD DEBIN DEADD DESUB<br />

DEMUL DEDIV DEXP DLN DLOG<br />

DESQR DPOW INT DSIN DCOS<br />

DTAN DASIN DACOS DATAN DADDR<br />

DSUBR DMULR DDIVR<br />

3-20

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!