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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. Instruction Set<br />

5. For counters C243, C245~C248, C251, C252, the total max times for using DHSCS, DHSCR<br />

and DHSZ instructions: 4. DHSZ takes up 2 times of the total available times.<br />

6. For counters C244, C249, C250, C253, C254, the total max times for using DHSCS, DHSCR<br />

and DHSZ instructions: 4. DHSZ takes up 2 times of the total available times.<br />

Limitation of synchronized execution<br />

Most instructions have no limitation on the times to be used in a program, but there are limitations<br />

on the number of instruction to be executed in the same scan cycle.<br />

1. Only 1 instruction can be executed at the same scan cycle: API 52 MTR, API 69 SORT, API<br />

70 TKY, API 71 HKY, API 72 DSW, API 74 SEGL, API 75 ARWS.<br />

2. Only 4 instruction can be executed at the same scan cycle: API 56 SPD, API 169 HOUR.<br />

3. There is no limitation on the times of using the high-speed output instructions API 57 PLSY,<br />

API 58 PWM, API 59 PLSR, API 156DZRN, API 158 DDRVI, API 159 DDRVA and API 195<br />

DPTPO, but only one high-speed output instruction will be executed in the same scan time.<br />

4. There is no limitation on the times of using the communication instructions API 80 RS, API<br />

100 MODRD, API 101 MODWR, API 102 FWD, API 103 REV, API 104 STOP, API 105 RDST,<br />

API 106 RSTEF , API 150 MODRW, but only one communication instruction will be executed<br />

on single COM port during the same scan cycle.<br />

Numeric Values<br />

1. Devices indicates ON/OFF status are called bit devices, e.g. X, Y, M and S. Devices used for<br />

storing values are called word devices, e.g. T, C, D, E and F. Although bit device can only be<br />

ON/OFF for a single point, they can also be used as numeric values in the operands of<br />

instructions if the data type declaration device Kn is added in front of the bit device.<br />

2. For 16-bit data, K1~K4 are applicable. For 32-bit data, K1~K8 are applicable. For example,<br />

K2M0 refers to a 8-bit value composed of M0 ~ M7.<br />

Valid data<br />

M15 M14 M13 M12 M11 M10 M9 M8 M7 M6 M5 M4 M3 M2 M1 M0<br />

0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1<br />

Low byte<br />

Reset to 0<br />

Transmit to<br />

D1<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0 1 0 1 0 1 0 1<br />

b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0<br />

Equals<br />

Low byte<br />

D1 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1<br />

3-19

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

Saved successfully!

Ooh no, something went wrong!