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

X20 start signal<br />

Y20~Y27 data<br />

A B C D H<br />

Y30 scan signal<br />

T<br />

T T<br />

T : scan time(ms)<br />

Y31 being executed<br />

Program Example 2:<br />

1. PR instruction supports ASCII data output of 8-bit data string when M1027 = OFF. When<br />

M1027 = ON, the PR instruction is able to execute an output of 1~16 bit data string.<br />

2. When M1027 = ON and X20 = ON, this instruction will designate Y20 (lowest bit) ~ Y27<br />

(highest bit) as the output points and Y30 as scan signals, Y31 as execution flag. In this mode,<br />

users can execute an output for 16 letters in sequence. In addition, if the drive contact X20 is<br />

OFF during execution, the data output will stop until a full data string is completed.<br />

3. The data 00H (NULL) in a data string indicates the end of the string and the letters coming<br />

after will not be processed.<br />

4. If the drive contact X20 is OFF during execution, the data output will stop until a full data string<br />

is completed. However, if X20 remains ON, execution completed flag M1029 will not be active<br />

as the timing diagram below.<br />

M1002<br />

X20<br />

SET<br />

M1027<br />

PR D0 Y20<br />

X20: drive signal<br />

first letter<br />

T T T<br />

last letter<br />

T : scan time or<br />

interrupt time<br />

Y30: scan signal<br />

Y31: execution status<br />

M1029: execution<br />

completed flag<br />

Points to note:<br />

1. Please use transistor output for the output points designated by this instruction.<br />

2. When using this instruction, please fix the scan time or place this instruction in a timer interrupt<br />

subroutine.<br />

3-199

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

Saved successfully!

Ooh no, something went wrong!