Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
63
Добавлен:
11.10.2020
Размер:
2.21 Mб
Скачать

Fieldbus Controller 750-837, /02x-000, 750-838, /02x-000

• 87

Data Exchange

 

 

 

Example:

512 byte output variables are addressed word-wise with the Unsigned16 data type.

Addressing the 256 data words is in this case done with:

-index 0xA580, sub-index 1 to 255 and

-index 0xA581, sub-index 1.

Index:

 

Sub-

Contents:

 

Description:

 

 

Index:

 

 

 

 

 

 

 

 

 

 

 

0

255

 

number of output variable blocks

0xA580

 

1

D1 *)

 

1. output variable block

 

...

...

 

...

 

 

 

 

 

255

D255 *)

 

255. output variable block

0xA581

 

0

1

 

number of output variable blocks

 

1

D256 *)

 

256. output variable block

*) D1 =

Data

word output variable 1, D255 =

Data word output variable 255, etc.

3.1.5.4.2 Absolute Addresses

The CPU has direct access to the bus terminal data through absolute addresses. Addressing begins with the address 0 both with inputs and outputs. The corresponding addresses for bits, bytes and double words (DWord) are derived from the word addresses.

The structure of the process image is described in chapter 3.1.4 "Process Image". Addressing is done in this structure.

Input data

%IW0

word-orientated data

 

|

 

 

%IWn

 

 

%In+1

bit-orientated data

 

|

 

 

%In+m

 

Output data

%QW0

word-orientated data

 

|

 

 

%QWn

 

 

%Qn+1

bit-orientated data

 

|

 

 

%Qn+m

 

3.1.5.4.3 Calculate Addresses

The word address is the basis for calculation (word).

Bit Address

Word address .0 to .15

Byte Address

1st byte:

2 x Word address

 

2nd byte:

2 x Word address + 1

DWord Address

lower section: Word address (even numbers) / 2

 

upper section: Word address (odd numbers) / 2, rounded off

WAGO-I/O-SYSTEM 750

CANopen

Соседние файлы в папке 750-837