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.

<strong>ISPSoft</strong> <strong>User</strong> <strong>Manual</strong><br />

the bit number must be within the range between 0 and 15. Besides, the bits in a device represented<br />

by a symbol whose data type is BOOL, STEP, COUNTER, TIMER, a function block, HC_POINTER,<br />

C_POINTER, or T_POINTER can not be manipulated.<br />

In the figure below, the data type of VB is WORD. Suppose the present value of VB is 0. When M0 is<br />

ON, the value of bit 2 in the device represented by VB is 1, that is, the value of VB is 4.<br />

In an AH500 series CPU module, an index register can be used with the manipulation of the bits in a<br />

device. If an index register is used with the manipulation of the bits in a device, the mark @ has high<br />

priority. Please refer to the following example. The data type of VB is WORD.<br />

Example 1: VB.1@E0 (VB represents D100. The value in E0 is 3.)<br />

1@E0 is interpreted first. As a result, VB.1@E0 is equivalent to VB.4. The bit which is actually<br />

manipulated is bit 4 in D100.<br />

Example 2: VB@E0.1 (VB represents D100. The value in E0 is 3.)<br />

VB@E0 is interpreted first. As a result, VB@E0.1 represents D103.1. The bit which is actually<br />

manipulated is bit 1 in D103.<br />

Example 3: VB@E0.1@E1 (VB represents D100. The value in E0 is 3, and the value in E1 is 2.)<br />

VB@E0 and 1@E1 are interpreted separately. As a result, VB@E0 represents D103, and 1@E1<br />

represents 3. VB@E0.1@E1 represents D103.3. The bit which is actually manipulated is bit 3 in<br />

D103.<br />

*1. If a bit in a device is manipulated, the system will faithfully get the state of the bit. <strong>User</strong>s have to judge whether<br />

the state of the bit is significant by themselves.<br />

*2. In the present version of <strong>ISPSoft</strong>, a bit number must be within the range between 0 and 15. However, in the future<br />

version of <strong>ISPSoft</strong>, the data length of a symbol will allow the bit number to be within the range between 0 and 31,<br />

or between 0 and 63, and a symbol will represent a bit, e.g. VB.VC.<br />

6.2 Managing the Symbols in <strong>ISPSoft</strong><br />

6.2.1 Symbol Tables<br />

• Global symbol table<br />

Double-click Global Symbols in the project management area to open the Global Symbols<br />

window.<br />

6-8

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

Saved successfully!

Ooh no, something went wrong!