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

78• Fieldbus Controller 750-837, /02x-000, 750-838, /02x-000 Data Exchange

3.1.5.4 Addressing

3.1.5.4.1 Fieldbus specific Addressing

Upon switching on the supply voltage, the data of the process image is mapped into an object directory (initialization). A CANopen Fieldbus Master uses the 16 bit indexes and 8 bit sub-indexes of the object directory in order to address and to access the data via PDOs or SDOs.

Therefore, the position of the data in the process image is of no direct significance for the CANopen user.

 

 

Programmable fieldbus controller

 

 

 

 

memory area

 

 

 

 

 

for input data

 

 

 

 

Object directory()

word 0

1

 

 

 

 

 

 

 

 

 

 

input

 

 

I/O modules

 

Index

modules

 

 

 

 

 

Sub-

 

 

 

 

 

 

Index

word 255

 

 

 

 

 

 

 

 

 

 

PDO

 

word 256

3

IEC 61131

 

 

 

 

PFC

 

 

 

 

 

 

program

 

 

 

 

input

 

 

 

fieldbus

 

 

 

 

 

 

variables

 

CPU

 

 

master

 

word 511

 

 

 

 

 

 

 

 

 

.

memory area

 

 

 

SDO

for output data

 

 

 

.

 

 

 

 

.

word 0

 

 

 

 

 

 

2

 

 

 

 

 

output

 

 

 

 

 

 

modules

 

 

 

 

 

 

word 255

 

 

 

 

 

 

word 256

4

 

I

O

 

 

PFC

 

 

 

 

 

 

output

 

 

 

 

 

 

variables

 

 

 

 

 

 

word 511

 

 

 

 

Fig. 3-12: Fieldbus specific data exchange for a CANopen fieldbus controller

g012432e

3.1.5.4.1.1Indexing the bus module data

If a customer specific configuration was stored prior to initializing, and if the currently connected module configuration coincides with the one stored last, the initialization is made with this configuration.

More Information

Chapter 3.1.7.6 "Application specific mapping" has an example of how to initialize a customer specific configuration.

In every other case, the object directory is assigned with a default configuration according to the device profile DS 401 when initializing.

Here, the entry into the object directory is made separately according to data width (1 bit, 1 byte, 2 byte, 3 byte, etc.) and input and output.

Any physical arrangement of the bus modules in a node is possible.

Data width = 1 Word / channel

Data width = 1 Bit / channel

 

 

Analog input modules

Digital input modules

Analog output modules

Digital output modules

Input modules for thermal elements

Digital output modules with diagnosis (2 Bit / channel)

Input modules for resistance sensors

Power supply modules with fuse holder / diagnosis

Pulse width output modules

Solid State power relay

Interface module

Relay output modules

Up/down counter

 

I/O modules for angle and path measurement

 

 

 

Table 3-1: I/O module data width

WAGO-I/O-SYSTEM 750

CANopen

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

• 79

Data Exchange

 

 

 

Note

For the number of input and output bits or bytes of the individually activated on I/O modules please refer to the corresponding I/O module description.

The digital module data is taken into consideration first.

CANopen does not transmit the data bit by bit. The digital module data is grouped into bytes and assigned to the corresponding index, digital input data to index 0x2000 (0x6000), digital output data to index 0x2100 (0x6200).

The assignment of bus module data having a width of 1 byte or more, are analog modules and assigned to the individual indexes.

The table shows a review of the indexes of the bus module data.

Data width

input modules

 

output modules

 

 

 

 

Index

 

 

 

 

 

 

 

 

1

Bit digital

0x2000 (0x6000)

 

0x2100 (0x6200)

 

 

 

 

 

1

Byte specialty modules

0x2200

 

0x2300

 

 

 

 

 

2

Byte specialty modules

0x2400 (0x6401)

 

0x2500 (0x6411)

 

 

 

 

 

3

Byte specialty modules

0x2600

 

0x2700

 

 

 

 

 

4

Byte specialty modules

0x2800

 

0x2900

 

 

 

 

 

5

Byte specialty modules

0x3000

 

0x3100

 

 

 

 

 

6

Byte specialty modules

0x3200

 

0x3300

 

 

 

 

 

7

Byte specialty modules

0x3400

 

0x3500

 

 

 

 

 

8

Byte specialty modules

0x3600

 

0x3700

 

 

 

 

 

Table 3-2: Indexing of bus module data in the object directory

Every index has a maximum of 256 sub-indexes (Sub-Index 0-255).

The number of data inputs is indicated in sub-index 0, whereby the data is filled in blocks in the following sub-indexes.

The block size depends on the data width of the specific bus module.

WAGO-I/O-SYSTEM 750

CANopen

80• Fieldbus Controller 750-837, /02x-000, 750-838, /02x-000 Data Exchange

Sub-Index

Contents

 

 

0

Number of Data blocks

1

First Data block with the data width of the I/O module

2

Second Data block with the data width of the I/O module

...

...

Table 3-3: Sub-indexing of the bus module data in the object directory

Note

Please refer to chapter 5.3.4.1 "Initialization" for a detailed description of how to set the default configuration.

Attention

A process image restructuring may result if a node is changed or extended. In this case the process data addresses also change in comparison with earlier ones. In the event of adding modules, take the process data of all previous modules into account.

Example:

The bus module configuration includes:

1)5 digital 2 channel input modules (i.e. 750-400),

2)one digital 4 channel output module (i.e. 750-504) and

3)two 2 channel analog output modules with 2 bytes per channel (i.e. 750-552).

to 1) Indexing the data of the 5 digital 2 channel input modules:

Index:

Sub-

Contents:

 

 

 

 

 

Description:

 

Index:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0x2000

0

2

 

 

 

 

 

 

number of dig. 8 Bit input blocks

1

D4.2 D4.1 D3.2 D3.1 D2.2 D2.1 D1.2

D1.1 *)

1. dig. input block

 

2

0

0

0

0

0

0 D5.2

D5.1 *)

2. dig. input block

*) D1.1 = Data bit module 1 channel 1, D1.2 = Data bit module 1channel 2, etc.

to 2) Indexing the data of the digital 4 channel output module:

Index:

Sub-

Contents:

 

 

Description:

 

Index:

 

 

 

 

 

 

 

 

 

 

 

 

0x2100

0

1

 

 

 

number of dig. 8 Bit input blocks

1

0

0

0

0 D1.4 D1.3 D1.2 D1.1 *)

dig. output block

*) D1.1 = Data bit module 1 channel 1, D1.2 = Data bit module 1 channel 2, etc.

to 3) Indexing the data of the 2 analog 2 channel output modules:

Index:

Sub-

Contents:

Description:

 

Index:

 

 

 

 

 

 

 

0

4

number of 2 Byte specialty channels

0x2900

1

D1.1 *)

1. output channel

2

D1.2 *)

2. output channel

 

3

D2.1 *)

3. output channel

 

4

D2.2 *)

4. output channel

*) D1.1 = Data word module 1 channel 1, D1.2 = Data word module 1 channel 2, etc.

3.1.5.4.1.2Indexing the PFC Variables

The entry of the PFC variables into the object directory is made separate according to data type (Integer8, Unsigned8, Boolean, Integer16, etc...) and input and output.

WAGO-I/O-SYSTEM 750

CANopen

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

• 81

Data Exchange

 

 

 

Due to the fact that CANopen does not transmit the data bit by bit, the variables data of the Boolean data type are grouped into bytes and assigned to the corresponding index, input variables data of the Boolean type to index 0xA080, output variables data of the Boolean type to index 0xA500.

The assignment of variables data having a data width of 1 byte or more, are analog modules and assigned to the individual indexes.

Note

The IEC 61131-3 input variables are defined from the point of view of the CAN bus, meaning that they are regarded as output variables by the PFCs. According to this, the IEC 61131-3 output variables are regarded as input variables by the PFC.

Data type

IEC 61131-3 output variables

IEC 61131-3 input variables

 

 

Index

 

 

 

 

Integer8

0xA000

0xA480

 

 

 

Unsigned8

0xA040

0xA4C0

 

 

 

Boolean

0xA080

0xA500

 

 

 

Integer16

0xA0C0

0xA540

 

 

 

Unsigned16

0xA100

0xA580

 

 

 

Integer24

0xA140

0xA5C0

 

 

 

Unsigned24

0xA180

0xA600

 

 

 

Integer32

0xA1C0

0xA640

 

 

 

Unsigned32

0xA200

0xA680

 

 

 

Float32

0xA240

0xA6C0

 

 

 

Unsigned40

0xA280

0xA700

 

 

 

Integer40

0xA2C0

0xA740

 

 

 

Unsigned48

0xA300

0xA780

 

 

 

Integer48

0xA340

0xA7C0

 

 

 

Unsigned56

0xA380

0xA800

 

 

 

Integer56

0xA3C0

0xA840

 

 

 

Integer64

0xA400

0xA880

 

 

 

Unsigned64

0xA440

0xA8C0

 

 

 

Table 3-4: Indexing the IEC 61131-3 variables data in the object directory

Every index has a maximum of 256 sub-indexes (sub-index 0-255).

The number of data inputs is indicated in sub-index 0, whereas the data is filled in blocks in the following sub-indexes.

The block size depends on the data width of the specific data type.

Sub-Index

Contents

 

 

0

Number of Data blocks

1

First Data block with the data width of the Data type

2

Second Data block with the data width of the Data type

...

...

Tab 3-1: Sub-indexing of the IEC 61131-3 variables data in the object directory

More Information

Please refer to chapter 5.3.4.1 "Initialization" for a detailed description of how to set the default configuration.

Example:

The following IEC 61131-3 variables were defined:

WAGO-I/O-SYSTEM 750

CANopen

82• Fieldbus Controller 750-837, /02x-000, 750-838, /02x-000 Data Exchange

1)11 input variables of the Boolean data type and

2)5 output variables of the Integer24 data type.

to 1) Indexing the data of the 11 Boolean input variables:

Index:

 

Sub-

Contents:

 

 

 

 

 

 

Description:

 

 

Index:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0xA080

 

0

2

 

 

 

 

 

 

 

number of 8 Bit Boolean input blocks

 

1

D8

D7

D6

D5

D4

D3

D2

D1 *)

1. Boolean input block

 

 

2

0

0

0

0

0

D11

D10

D9 *)

2. Boolean input block

*) D1 =

Data

bit input

variable 1, D2 =

Data bit input variable 2, etc.

 

to 2) Indexing the data of the 5 output variables, type Integer24 :

Index:

 

Sub-

Contents:

 

Description:

 

 

Index:

 

 

 

 

 

 

 

 

 

 

 

0

5

 

number of 3 Byte output blocks

 

 

1

D1 *)

 

1. output block

0xA5C0

 

2

D2 *)

 

2. output block

 

3

D3 *)

 

3. output block

 

 

4

D4 *)

 

4. output block

 

 

5

D5 *)

 

5. output block

*) D1 =

3 Bytes Data of the output variable 1, D2 =

3 Bytes Data of the output variable 2, etc.

3.1.5.4.1.3Access to the PFC variables data from the fieldbus

The program permits the byte-wise access to the data contained in the controller memory by means of the specific indexes for data types having a data width of 1 byte (Integer8, Unsigned8 and Boolean).

A specific byte for each is selected in the sub-index.

When using indexes for larger data blocks, the simultaneous access to several bytes is possible.

The index for Integer16 (0xA0C0) or for Unsigned16 (0xA100) permits for instance, to access the written PFC output variables data word-wise, the index 0xA140 for Integer24 3 byte-wise etc.

Example:

Access from the fieldbus to the PFC output data byte 512, byte 513 and byte 514 is made with the Integer or with the Unsigned data type:

Data access

PFC output data

read data with Index

Sub-

 

 

 

(Integer / Unsigned)

Index

 

 

 

 

 

Byte-wise

(with Integer8 / Unsigned8)

Byte 512:

(0xA000 / 0xA040)

1

 

 

Byte 513:

(0xA000 / 0xA040)

2

 

 

Byte 514:

(0xA000 / 0xA040)

3

Word-wise (with Integer16 / Unsigned16)

Word 256 (Byte 512/513):

(0xA0C0 / 0xA100)

1

 

 

Word 257 (Byte 514/515):

(0xA0C0 / 0xA100)

2

3 Bytes

(with Integer24 / Unsigned24)

Bytes 512 - 514:

(0xA140 / 0xA180)

1

The following tables show a review of addressing data having different data widths.

For this purpose, the memory space reserved for the variable’s data in the fieldbus controller (byte 512 to byte 1023) is assigned the individual indexing depending on the data width.

WAGO-I/O-SYSTEM 750

CANopen

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

• 83

Data Exchange

 

 

 

The indexing mentioned in the tables is continued up to the individual maximum index and sub-index.

Note

From the point of view of the programmable fieldbus controller, the PFC output variables are defined, whereas from the point of view of the CAN fieldbus, these are deemed as input variables. Correspondingly, the PFC input variables are deemed as output variables for the IEC 61131-3 access by the fieldbus.

In other words: IEC 61131-3 input variable = PFC output variable

PFC input variable = IEC 61131-3 output variable.

fieldbus

PLC

input

variables

PLC

output

variables

Programmable fieldbus controller

PFC

input

variables

PFC

output

variables

Fig. 3-13: Correlation of IEC 61131-3 variables and PFC variables g012444e

WAGO-I/O-SYSTEM 750

CANopen

84• Fieldbus Controller 750-837, /02x-000, 750-838, /02x-000 Data Exchange

Addressing for access on PFC output variables

Memory area of

 

 

 

Addressing the data with data width of

 

 

the PFC output

1 Byte

1 Word

3 Bytes

1 D. word

5 Bytes

6 Bytes

7 Bytes

8 Bytes

variables in the

Index

Sub

Index Sub

Index Sub

Index Sub

Index Sub

Index Sub

Index Sub

Index Sub

controller

 

-

-

-

-

-

-

-

-

(Offset)

 

in-

in-

in-

in-

in-

in-

in-

in-

 

 

dex

dex

dex

dex

dex

dex

dex

dex

512

A000

LSB

 

LSB

 

LSB

 

 

 

LSB

 

 

 

LSB

 

LSB

A040

 

 

 

LSB

 

 

LSB

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

A080

MSB

A0C0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

A000

 

A100

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

513

A040

2

 

 

A140

1

 

 

 

 

 

 

 

 

 

 

 

A080

 

 

MSB

 

 

 

 

 

 

 

 

 

 

 

 

 

A180

 

A1C0

1

 

 

 

 

 

 

 

 

 

*

 

 

 

 

 

A200

 

 

 

 

 

 

 

 

 

A000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

514

3

 

 

 

 

A240

 

A280

 

 

 

 

 

 

 

A040

 

 

 

 

 

 

1

 

 

 

 

 

 

 

A080

 

 

 

 

MSB

 

 

A2C0

 

 

 

 

 

 

 

 

A0C0

 

 

 

 

 

A300

1

 

 

 

 

 

*

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

A340

 

 

 

 

 

 

 

 

A100

 

 

 

 

 

 

 

A380

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

515

etc.

 

 

 

 

 

MSB

 

 

 

 

A3C0

 

A400

1

 

 

 

 

 

 

 

 

 

 

 

 

A440

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

516

.

 

 

 

A140

2

 

 

 

MSB

 

 

 

 

 

 

.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A180

 

 

 

 

 

 

 

 

 

 

.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

etc.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MSB

 

 

 

 

517

 

 

 

 

 

 

A1C0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A200

2

 

 

 

 

 

 

 

 

 

 

 

.

 

 

 

A240

 

 

 

 

 

 

 

 

518

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.

 

 

 

 

 

 

 

 

 

 

MSB

 

 

 

 

 

.

 

 

 

 

 

A280

 

 

 

 

 

 

 

 

 

 

 

 

etc.

 

 

2

 

 

 

 

 

MSB

519

 

 

 

 

 

 

 

 

A2C0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

520

 

 

 

 

 

.

 

 

 

 

A300

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

521

 

 

 

 

 

 

 

 

 

A340

 

 

 

 

 

 

 

 

 

.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.

etc.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A380

 

 

 

522

 

 

 

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A3C0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

523

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

524

 

 

 

 

 

 

 

.

 

 

 

 

 

 

A400

 

 

 

 

 

 

 

 

.

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

.

etc.

 

 

 

 

 

A440

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

525

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

526

 

 

 

 

 

 

 

 

 

 

etc.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

527

 

 

 

 

 

 

 

 

.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.

 

 

 

 

 

 

 

528

 

 

 

 

 

 

 

 

 

 

 

 

etc

etc.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

1022

 

 

 

 

 

 

 

 

max

 

 

max

 

max

 

max

 

max

 

max

max

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

max.

 

 

Sub-

 

max.

Sub-

max.

Sub-

max.

Sub-

max.

Sub-

max.

Submax.

Sub-

1023

 

 

 

max

 

Index

 

 

In-

 

Index

In-

Index

In-

Index

In-

Index

In-

Index

InIndex

In-

 

 

max.

 

Sub-

 

 

 

 

dex

 

 

dex

 

dex

 

dex

 

dex

 

dex

dex

 

 

Index

 

In-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

dex

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

* A maximum of 8 Boolean values can be stored in one byte (1 sub-index), i.e. there is no bit resolution per sub-index.

WAGO-I/O-SYSTEM 750

CANopen

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

• 85

Data Exchange

 

 

 

Addressing for access on PFC input variables

Memory area of

 

 

Addressing the data with data width of

 

 

the PFC input

1 Byte

1 Word

3 Bytes

1 D. word

5 Bytes

6 Bytes

7 Bytes

8 Bytes

variables in the

Index Sub

Index Sub

Index Sub

Index Sub

Index Sub

Index Sub

Index Sub

Index Sub-

controller

-

-

-

-

-

-

-

index

(Offset)

in-

in-

in-

in-

in-

in-

in-

 

 

dex

dex

dex

dex

dex

dex

dex

 

 

A480

LSB

 

LSB

 

LSB

 

LSB

 

LSB

 

LSB

 

LSB

 

LSB

512

A4C0

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A500

MS

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

B

A540

1

 

 

 

 

 

 

 

 

 

 

 

 

 

A480

 

 

 

1

 

 

 

 

 

 

 

 

 

 

513

2

A580

 

A5C0

A640

 

 

 

 

 

 

 

 

 

A4C0

 

 

 

 

 

 

 

 

 

 

 

 

 

A500

 

 

MSB

A600

 

A680

1

 

 

 

 

 

 

 

 

 

*

 

 

 

 

 

A6C0

 

A700

 

 

 

 

 

 

 

 

A480

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MSB

 

 

A740

1

A780

 

 

 

 

 

514

A4C0

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A7C0

1

 

 

 

 

 

A500

 

A540

 

 

 

 

 

 

 

A800

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

A580

 

 

 

MSB

 

 

 

 

A840

1

A880

 

 

etc.

 

 

 

 

 

 

 

 

 

 

515

 

 

 

 

 

 

 

 

 

 

 

 

 

A8C0

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

516

.

 

 

 

A5C0

2

 

 

 

MSB

 

 

 

 

 

 

.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A600

 

 

 

 

 

 

 

 

 

 

.

 

etc.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MSB

 

 

 

 

 

 

 

 

 

 

 

A640

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

517

 

 

 

 

 

 

A680

2

 

 

 

 

 

 

 

 

 

 

 

 

.

 

 

A6C0

 

 

 

 

 

 

 

 

518

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.

 

 

 

 

 

 

 

 

 

MSB

 

 

 

 

 

 

.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

etc.

 

 

 

A700

2

 

 

 

 

 

MSB

519

 

 

 

 

 

 

 

 

A740

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

520

 

 

 

 

 

 

 

 

 

 

A780

2

 

 

 

 

 

 

 

 

.

 

 

 

 

 

A7C0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

521

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.

 

etc.

 

 

 

 

 

 

 

 

 

 

 

 

 

.

 

 

 

 

 

 

 

 

 

522

 

 

 

 

 

 

 

 

 

 

 

 

A800

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A840

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

523

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

524

 

 

 

 

 

 

 

.

 

 

 

 

 

 

A880

2

 

 

 

 

 

 

 

.

 

 

 

 

 

 

A8C0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.

etc.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

525

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

526

 

 

 

 

 

 

 

 

 

 

etc.

 

 

 

 

527

 

 

 

 

 

 

 

 

 

.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.

 

 

etc.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

528

 

 

 

 

 

 

 

 

 

 

 

 

 

 

etc.

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

1022

 

 

 

 

 

 

 

 

 

max

 

 

max

 

max

 

max

 

max

 

max

 

max-

 

 

 

 

 

 

 

max.

 

 

Sub-

 

max.

Sub-

max.

Sub-

max.

Sub-

max.

Sub-

max.

Sub-

max.

 

 

 

 

 

 

 

 

 

 

Sub-

 

 

 

 

 

 

 

Index

 

 

In-

 

Index

In-

Index

In-

Index

In-

Index

In-

Index

In-

Index

1023

 

 

 

 

max

 

 

 

 

Index

 

 

 

 

 

 

 

 

dex

 

 

dex

 

dex

 

dex

 

dex

 

dex

 

 

 

max.

 

 

Sub-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Index

 

 

In-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

dex

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

* A maximum of 8 Boolean values can be stored in one byte (1 sub-index), i.e. there is no bit resolution per sub-index.

WAGO-I/O-SYSTEM 750

CANopen

86• Fieldbus Controller 750-837, /02x-000, 750-838, /02x-000 Data Exchange

Examples of how to define PFC fieldbus variables

The following examples show some definitions for PFC variables with different data types, compared to the specific object directory entries.

Data type

PFC input variables

 

PFC output variables

 

 

Index

 

Index

 

 

of PFC

Definition according to IEC

 

variables

/Sub-

Definition according to IEC 61131-3

/Sub-

61131-3

 

Index

 

Index

 

 

 

 

 

 

 

 

Unsigned8

InByte0 AT%IB512 : BYTE;

0xA4C0/1

OutByte0 AT%QB512 : BYTE;

0xA040/1

 

InByte0 AT%IB513 : BYTE;

0xA4C0/2

OutByte0 AT%QB513 : BYTE;

0xA040/2

Integer16

InInt0 AT %IW256 : INT;

0xA540/1

InInt0 AT %QW256 : INT;

0xA0C0/1

 

InInt1 AT %IW257 : INT;

0xA540/2

InInt1 AT %QW257 : INT;

0xA0C0/2

Unsigned16

InWord0 AT %IW256 : WORD;

0xA580/1

OutWord0 AT %QW256 : WORD;

0xA100/1

 

InWord0 AT %IW257 : WORD;

0xA580/2

OutWord0 AT %QW257 : WORD;

0xA100/2

Unsigned32

InDWord0 AT %ID128 : DWORD;

0xA680/1

OutDWord0 AT %QD128 : DWORD;

0xA200/1

 

InDWord0 AT %ID129 : DWORD;

0xA680/2

OutDWord0 AT %QD129 : DWORD;

0xA200/2

Table 3-5: Examples for variable definitions with the specific object directory entries

3.1.5.4.1.4Maximum indexes

The maximum indexes and sub-indexes result from the memory size of the fieldbus controller of 512 bytes and the individual data width of the data types.

The table shows a review of the maximum indexes and sub-indexes of the IEC 61131-3 variable.

Data type

IEC 61131-3 input variables

IEC 61131-3 output variables

 

 

 

 

max. Index

max. Sub-Index

Max. Index

max. Sub-Index

 

 

 

 

 

 

Integer8

0xA002

2

0xA482

2

 

 

 

 

 

Unsigned8

0xA042

2

0xA4C2

2

 

 

 

 

 

Boolean

0xA082

2

0xA502

2

 

 

 

 

 

Integer16

0xA0C1

1

0xA541

1

 

 

 

 

 

Unsigned16

0xA101

1

0xA581

1

 

 

 

 

 

Integer24

0xA140

AA

0xA5C0

AA

 

 

 

 

 

Unsigned24

0xA180

AA

0xA600

AA

 

 

 

 

 

Integer32

0xA1C0

80

0xA640

80

 

 

 

 

 

Unsigned32

0xA200

80

0xA680

80

 

 

 

 

 

Float32

0xA240

80

0xA6C0

80

 

 

 

 

 

Unsigned40

0xA280

66

0xA700

66

 

 

 

 

 

Integer40

0xA2C0

66

0xA740

66

 

 

 

 

 

Unsigned48

0xA300

55

0xA780

55

 

 

 

 

 

Integer48

0xA340

55

0xA7C0

55

 

 

 

 

 

Unsigned56

0xA380

49

0xA800

49

 

 

 

 

 

Integer56

0xA3C0

49

0xA840

49

 

 

 

 

 

Integer64

0xA400

40

0xA880

40

 

 

 

 

 

Unsigned64

0xA440

40

0xA8C0

40

 

 

 

 

 

Table 3-6: Maximum indexes and sub-indexes for the definition of IEC 61131-3 variables

WAGO-I/O-SYSTEM 750

CANopen

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