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 6 Symbols<br />

6.1.4 Assigning a Device to a Symbol and Setting the Initial<br />

Value of a Symbol<br />

A device is assigned to a symbol according to the data type of the symbol. <strong>User</strong>s can set the initial<br />

value of a symbol. If a project is downloaded, the initial values of the symbols can be written into the<br />

devices assigned to the symbols.<br />

The principle of assigning devices to symbols is as follows. Different models have different<br />

assignment principles.<br />

Model<br />

Assignment principle<br />

• <strong>User</strong>s can assign devices to the global symbols and the local symbols declared in the<br />

POUs of the program type. The system can also automatically assign devices to the<br />

global symbols and the local symbols declared in the POUs of the program type.<br />

• The system automatically assigns devices to the local symbols declared in the<br />

function blocks. <strong>User</strong>s can not assign devices to the local symbols declared in the<br />

AH500<br />

function blocks by themselves.<br />

• The devices assigned by the system are memories reserved by the CPU module, and<br />

are not data registers or auxiliary relays. If the data type of a symbol is STEP, TIMER,<br />

or COUNTER, the system will automatically assign a stepping relay, a timer, or a<br />

counter to the symbol.<br />

• <strong>User</strong>s can assign devices to all the global symbols and the local symbols. The system<br />

can also automatically assign devices to all the global symbols and the local symbols.<br />

DVP<br />

• The devices assigned by the system are usable devices. (<strong>User</strong>s can set a range of<br />

devices which can be assigned automatically.)<br />

The relation between the data types and the device types which can be assigned is described<br />

below.<br />

AH500<br />

DVP<br />

Data<br />

type<br />

Device assigned by Device assigned by Device assigned by Device assigned<br />

users<br />

the system<br />

users by the system<br />

BOOL<br />

Contact M/SM or bit<br />

in the device D/L/X/Y<br />

Internal memory Contact M/X/Y Contact M<br />

WORD D/L/X/Y/E/SR Internal memory D/E/F D<br />

DWORD D/L/X/Y/E/SR Internal memory D/E/F D<br />

LWORD D/L/X/Y/E/SR Internal memory D/E/F D<br />

INT D/L/X/Y Internal memory None<br />

DINT D/L/X/Y Internal memory None<br />

LINT D/L/X/Y Internal memory None<br />

REAL D/L/X/Y Internal memory D D<br />

LREAL D/L/X/Y Internal memory None<br />

STRING D/L/X/Y Internal memory None<br />

STEP S S S S<br />

COUNTER C/HC C C C<br />

TIMER T T T T<br />

The devices assigned to a symbol whose data type is ARRAY depend on the array<br />

type specified. The array is composed of the devices starting from the device<br />

ARRAY<br />

assigned by users or the system, and the number of devices in the array conforms to<br />

the size of the array.<br />

The devices assigned to a symbol whose data type is ARRAY can not be SR/SM/E/F<br />

devices.<br />

*1. If the device assigned to a symbol is an internal memory in an AH500 series CPU module, users can not know the<br />

actual device address.<br />

*2. Please refer to section 6.2.3 for more information about ARRAY and STRING.<br />

*3. Please refer to section 6.2.11 for more information about setting a range of devices which can be assigned<br />

automatically in a DVP series PLC.<br />

6-5

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

Saved successfully!

Ooh no, something went wrong!