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 |
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
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 |
|
||
|
et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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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