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.

<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 />

X0<br />

M0<br />

M1029<br />

SET M0<br />

DSW X10 Y10 D0 K0<br />

RST M0<br />

When X0 = ON, DSW will be<br />

enabled.<br />

When X0 = OFF, M0 is<br />

latched. M0 will be reset<br />

only when DSW instruction<br />

is completed to activate<br />

M1029.<br />

2. Error <strong>Operation</strong> Flags<br />

Errors occur during the execution of the instruction when the combination of application<br />

instructions is incorrect or the devices designated by the operand exceed their range. Other<br />

than errors, the flags listed in the table below will be On, and error codes will also appear.<br />

3. Flags to Extend Functions<br />

Some instructions can extend their function by using some special flags.<br />

Example: instruction RS can switch transmission mode 8-bit and 16-bit by using M1161.<br />

Device<br />

M1067<br />

D1067<br />

D1069<br />

M1068<br />

D1068<br />

Explanation<br />

When operational errors occur, M1067 = ON. D1067 displays the error code.<br />

D1069 displays the address where the error occurs. Other errors occurring will<br />

update the contents in D1067 and D1069. M1067 will be OFF when the error is<br />

cleared.<br />

When operational errors occur, M1068 = ON. D1068 displays the address<br />

where the error occurs. Other errors occurring wil not update the content in<br />

D1068. RST instruction is required to reset M1068 otherwise M1068 is latched.<br />

Limitations for times of using instructions<br />

Some instructions can only be used a certain number of times in a program. These instructions<br />

can be modified by index registers to extend their functionality.<br />

1. Instructions can be used once in a program:<br />

API 60 (IST) API 155 (DABSR)<br />

2. Instruction can be used twice in a program:<br />

API 77 (PR)<br />

3. Instruction can be used 8 times in a program:<br />

API 64 (TTMR)<br />

4. For counters C232~C242, the total max times for using DHSCS, DHSCR and DHSZ<br />

instructions: 6. DHSZ can only be used less than 6 times.<br />

3-18

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

Saved successfully!

Ooh no, something went wrong!