Mapping
Type: ETHERNET-MODULE Generic Ethernet Module
Comm Format: SINT, INT or DINT
Assembly Instance:
- Input: 101 Size: 4 x SINT (BYTE) + terminals (2 x INT + terminals or 1 x DINT + terminals)
- Output: 102 Size: 4 x SINT (BYTE) + terminals (2 x INT + terminals or 1 x DINT + terminals)
- Configuration: 100 Size 0
Mapping rules
Complex terminals* (see documentation terminals)
- Word Alignment
- complex mapping
Comm Format: SINT
Offset | Inputs | Outputs |
---|---|---|
0 | Status Byte 0 | Control Byte 0 |
1 | Status Byte 1 | Control Byte 1 |
2 | Status Byte 2 | Control Byte 2 |
3 | Status Byte 3 | Control Byte 3 |
4...x | complex terminals* | complex terminals* |
x...y | digital terminals** | digital terminals** |
*) complex terminals, example KL15xx, KL25xx, KL3xxx, Kl4xxx, KL5xxx, KL6xxx, KL8xxx
**) digital terminals, example KL1xxx, KL2xxx, KM1xxx, KM2xxx
Comm Format: INT
Offset | Inputs | Outputs |
---|---|---|
0 | Status Word 0 | Control Word 0 |
1 | Status Word 1 | Control Word 1 |
2...x | complex terminals* | complex terminals* |
x...y | digital terminals** | digital terminals** |
*) complex terminals, example KL15xx, KL25xx, KL3xxx, Kl4xxx, KL5xxx, KL6xxx, KL8xxx
**) digital terminals, example KL1xxx, KL2xxx, KM1xxx, KM2xxx
Comm Format: DINT
Offset | Inputs | Outputs |
---|---|---|
0 | Status DWord 0 | Control DWord 0 |
1...x | complex terminals* | complex terminals* |
x...y | digital terminals** | digital terminals** |
*) complex terminals, example KL15xx, KL25xx, KL3xxx, Kl4xxx, KL5xxx, KL6xxx, KL8xxx
**) digital terminals, example KL1xxx, KL2xxx, KM1xxx, KM2xxx
Mapping terminals
Example 1: (only digital terminals)
Comm Format INT
Size: 3 x Input, 3 x Output
1 x BK9105
2 x KL1002
2 x KL2012
1 x KL9010
Offset | Name | Inputs | Outputs |
---|---|---|---|
0 | Control/Status Word 0 | DeviceName:I.data[0] | DeviceName:O.data[0] |
1 | Control/Status Word 1 | DeviceName:I.data[1] | DeviceName:O.data[1] |
2 | digital terminals | DeviceName:I.data[2] | DeviceName:O.data[2] |
Example 2:
Comm Format INT
Size: 7 x Input, 7 x Output
1 x BK9105
1 x KL1408
2 x KL2012
1 x KL3312
1 x KL9010
Offset | Name | Inputs | Outputs |
---|---|---|---|
0 | Control/Status Word 0 | DeviceName:I.data[0] | DeviceName:O.data[0] |
1 | Control/Status Word 1 | DeviceName:I.data[1] | DeviceName:O.data[1] |
2 | KL3312 Channel 0 Control/Status | DeviceName:I.data[2] | DeviceName:O.data[2] |
3 | KL3312 Channel 0 | DeviceName:I.data[3] (Bit 0..15) | DeviceName:O.data[3] (Bit 0..15) |
4 | KL3312 Channel 1 Control/Status | DeviceName:I.data[4] | DeviceName:O.data[4] |
5 | KL3312 Channel 1 | DeviceName:I.data[5] (Bit 0..15) | DeviceName:O.data[5] (Bit 0..15) |
6 | digital terminals | DeviceName:I.data[6] | DeviceName:O.data[6] |
BK9105 Control and Status
Status Bits 0 to 31
0 | 1 | 2* | 3* | 4 | 5 | 6 | 7 | 8 to 15* | 16 to 23 | 24 to 31 |
---|---|---|---|---|---|---|---|---|---|---|
K1 | - | L1 | L2 | - | - | - | - | K-Bus Counter | K-Bus Error Code | K-Bus Error argument |
K1 - if K1 = TRUE, K-Bus error, Error Code bit 16-31 (see K-Bus Error LED)
L1 or L2 active
* Firmware version B3 increment if a K-Bus cycle is ready
Control Bits 0 to 31
0 | 1 | 2* | 3* | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 to 23 | 24 to 31 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
K1 | R1 | L1 | L2 | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
K1 - 0->1 rising Trig K-Bus Reset
R1 - 1->0 falling Trig Reboot BK9105
L1 - 1-> Outputs are frozen
L2 - 1-> Leave K-Bus Cycle, if L1 and L2 TRUE then is only L2 active
*) Firmware version B3 necessary