02.09.2014 Views

ISPSoft User Manual

ISPSoft User Manual

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

Chapter 11 Structured Text<br />

However, if the data type of one operand is INT and the data type of the other operand is WORD,<br />

the operands can take part in the operation. Likewise, if the data type of one operand is DINT and<br />

the data type of the other operand is DWORD, the operands can take part in the operation. If the<br />

data lengths of the operands in an expression are different, the operands can not take part in the<br />

operation.<br />

• If the data type of a symbol is WORD, DWORD, LWORD, INT, DINT, or LINT, the system regards<br />

it as a signed integer during the operation.<br />

• Although there is no limit on the number of lines, users still have to consider the capacity of the<br />

memory in the PLC.<br />

• The sections of a structured text in <strong>ISPSoft</strong> can be copied/cut/pasted. <strong>User</strong>s can copy the text in a<br />

file edited with a text editor into a structured text in <strong>ISPSoft</strong>.<br />

• The instructions that a structured text supports are as follows.<br />

DVP series PLC<br />

AH500 series CPU module<br />

All the basic instructions are not supported. For example, LD, LDI, OUT, SET, RST, LD&, and<br />

etc are not supported.<br />

All the pulse instructions are not supported. For example, ROLP, RORP, BCDP, TRDP, and etc<br />

are not supported.<br />

PLS, PLF, FOR, NEXT, CJ, MC, MCR, STL,<br />

RET, and etc are not supported.<br />

11.2 Structure of a Statement<br />

11.2.1 Assignment Structure─:=<br />

• Format<br />

The Four Arithmetic Operations instructions,<br />

the Logical Operation instructions, the<br />

Contact Type Logic Operation instructions,<br />

and the Structure Creation instructions are not<br />

supported. PLS, PLF, MOV, DMOV, DFMOV,<br />

$MOV, MC, MCR, CJ, JMP, GOEND, and etc<br />

are not supported.<br />

• Description<br />

The value represented by the expression at the right side of := is assigned to the device or the<br />

symbol at the left side of :=.<br />

• Rules and limits<br />

‣ The expression at the right side of := can be a constant, a device, a symbol, or an arithmetic<br />

expression. Only a device or a symbol can be at the left side of :=.<br />

‣ The operands at both sides of := must conform to the rules listed below.<br />

(a) One operand is an M/S/T/C/HC device, and the other operand is a symbol whose data<br />

type is BOOL/STEP/TIMER/COUNTER. (The device assigned to the operand which is a<br />

symbol is a bit device.)<br />

(b) One operand is a D/L device, and the other operand is a symbol whose data type is not<br />

BOOL/STEP/REAL/STRING.<br />

(c) One operand is a T/C device, and the other operand is a D/L device or a symbol whose<br />

data type is WORD/INT/TIMER/COUNTER.<br />

(d) One operand is a D/L/HC device, or a symbol whose data type is COUNTER, and to which<br />

a HC device is assigned. The other operand is a symbol whose data type is<br />

DWORD/DINT.<br />

11-7

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

Saved successfully!

Ooh no, something went wrong!