02.09.2014 Views

ISPSoft User Manual

ISPSoft User Manual

ISPSoft User 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.

Chapter 11 Structured Text<br />

11.2.7 Applied Instruction Structure<br />

• Format<br />

• Description<br />

The applied instruction is executed.<br />

• Rules and limits<br />

‣ The state of the En pin does not need to be specified in the applied instruction. When the<br />

statement is executed, the applied instruction is executed. An IF statement functioning as an<br />

En pin can be used with the applied instruction.<br />

‣ As long as the structure of the operands and the structure of the keywords are not destroyed,<br />

starting new lines is allowed.<br />

‣ The applied instruction is a statement, and therefore it ends with a semicolon.<br />

‣ The operands specified in the applied instruction must be put in parentheses.<br />

‣ The order in which the operands are arranged can not be changed. Please refer to instruction<br />

manuals for more information.<br />

‣ The applied instructions in <strong>ISPSoft</strong> do not support the assignment of values, and therefore<br />

M0 := CMP(D0, D10, M0);<br />

is an illegal statement.<br />

‣ As long as the structure of the applied instruction is unchanged, starting new lines is allowed.<br />

• Example<br />

Example 1: The instruction CMP is used with an IF statement.<br />

Example 2: The state of the En pin does not need to be specified in an applied instruction. If the<br />

instruction TMR is used, a statement about resetting the timer is required. Otherwise,<br />

the value of the counter will not become zero. For example, line 0004 in the figure<br />

below is a statement about resetting the timer.<br />

11-17

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

Saved successfully!

Ooh no, something went wrong!