The text of a manual · part 7 of 15
CERI Installation and Programming Manual: 5 Mapper, pages 48 to 55
Pages 48 to 55 of 122, from CERI Installation and Programming Manual
The original document is the PDF (1.9 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the AEG DEP-210
Page 48
Unpack Bytes A>B The Unpack Bytes mapper splits the Most Significant Byte (MSB) of the source register and places that data into the Least Significant Byte (LSB) of the target register. It also takes the LSB of the source register and places that data into the LSB of the target register plus 1. The MSB of each target register is zeroed. The count determines the number of source registers to unpack. This example is a unpack of the MSB data from register 600 into the LSB of 610 and the LSB from 600 into the LSB of 611. This entry also copies the MSB from 601 into the LSB of 612 and the LSB from 601 into the LSB of 613. Table 5.14: Mapper Unpack Bytes Register A Register B 600
610
Source Count 2
(B) Source Drop 0
Mode A>B
Packing Unpack Bytes
Table 5.15: Mapper Unpack Bytes Source Value (hex) Register 600 601
1234 5678
Target Register
Value (hex)
610
0012
611
0034
612
0056
613
0078
Unpack Bytes is used with 8-bit output cards. Figure 5.3 shows a Compact PLC with 5 DAP-208 8-bit relay output cards. Each card is traffic-copped for 8 bits. Table 5.17 shows the PLC memory map. An I/O Scanner entry that would be used to push this output data to a CERI would look something like Table 5.16. The data that would show up in the CER is described in Table 5.18. Table 5.16: I/O Scanner settings to push the DAP-208 data Write From
Write To
0x00001
4x00101
CERI Manual
Write Count 3
5 Mapper 51
Page 49
Table 5.17: DAP-208 Example Rack 1 Slot 3
Slot 4
Rack 2 Slot 5
Slot 1
Slot 2
Coil
Relay
Coil
Relay
Coil
Relay
Coil
Relay
Coil
Relay
0x1
R1
0x9
R9
0x17
R17
0x25
R25
0x33
R33
0x2
R2
0x10
R10
0x18
R18
0x26
R26
0x34
R34
0x3
R3
0x11
R11
0x19
R19
0x27
R27
0x35
R35
0x4
R4
0x12
R12
0x20
R20
0x28
R28
0x36
R36
0x5
R5
0x13
R13
0x21
R21
0x29
R29
0x37
R37
0x6
R6
0x14
R14
0x22
R22
0x30
R30
0x38
R38
0x7
R7
0x15
R15
0x23
R23
0x31
R31
0x39
R39
0x8
R8
0x16
R16
0x24
R24
0x32
R32
0x40
R40
Figure 5.3 DAP-208 8-bit Relay Cards
0x1 - 0x8 R1 - R8
52 Mapper 5
0x25 – 0x32 R25 - R32
0x9 – 0x16 R9 - R16 0x17 – 0x24 R17 - R24
0x33 – 0x40 R33 - R40
CERI Manual
Page 50
Table 5.18: I/O Data pushed from I/O Scanner Bit Number CERI 15 14 13 12 11 10 Register
9
8
7
6
4x0101 4x0102
5
4
3
2
1
0
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15 16
R1
R2
R3
R4
R5
R6
R7
R8
R9
R10 R11 R12 R13 R14 R15 R16
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 R17 R18 R19 R20 R21 R22 R23 R24 R25 R26 R27 R28 R29 R30 R31 R32
4x0103
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 R33 R34 R35 R36 R37 R38 R39 R40 R41 R42 R43 R44 R45 R46 R47 R48
Now add the mapper entry in Table 5.19 to the CERI and the new data is placed in registers 111 through 116 as shown in Table 5.20. Table 5.19: Mapper Unpack Bytes Register A Register B 101
111
Source Count 3
(B) Source
Mode
Drop 0
Packing
A>B
Unpack Bytes
Table 5.20: I/O Data after mapper byte unpack Bit Number CERI 15 14 13 12 11 10 Register 4x0111 4x0112 4x0113
9
8
7
6
5
4
3
2
1
0
1
2
3
4
5
6
7
8
R1
R2
R3
R4
R5
R6
R7
R8
9
10 11 12 13 14 15 16
R9
R10 R11 R12 R13 R14 R15 R16
17 18 19 20 21 22 23 24 R17 R18 R19 R20 R21 R22 R23 R24
4x0114
25 26 27 28 29 30 31 32 R25 R26 R27 R28 R29 R30 R31 R32
4x0115
33 34 35 36 37 38 39 40 R33 R34 R35 R36 R37 R38 R39 R40
4x0116
41 42 43 44 45 46 47 48 R41 R42 R43 R44 R45 R46 R47 R48
The resulting data is now in the proper order for the CERI to use with a DAP-208 CERI Manual
5 Mapper 53
Page 51
module. Now, it is simply required to configure each relay card in the CERI to be assigned to registers 111 through 116.
Pack Nybbles A>B The Pack Nybbles mapper takes the Least Significant Nybble (LSN) of the source register and places that data into the Most Significant Nybble (MSN) of the target register. It then takes the LSN of the source register+1 and places that data into the upper nybble of the LSB of the target register. All other bits in the target register are zeroed. The count determines the number of source registers to compress. This example is a pack of the LSN data from register 700 and the LSN from register 701 into register 710 and the LSN from registers 702 and 703 into register 711. Table 5.21: Mapper Pack Nybbles Register A Register B 700
710
Source Count 4
(B) Source Drop 0
Mode A>B
Packing Pack Nybbles
Table 5.22: Internal Mapper Pack Bytes Source Register
Value (hex)
Target Register
Value (hex)
700
1234
710
4080
701
5678
702
9ABC
711
C010
703
DEF1
Pack Nybbles would be used with a 4-bit input card, but there are no know 4-bit input A120 cards so no example will be shown.
54 Mapper 5
CERI Manual
Page 52
Unpack Nybbles A>B This example is a unpack of the most significant nybble (MSN) data from register 800 into the LSN of 810 and the next to LSN from 800 into the LSN of 811. This entry also copies the MSN from 801 into the LSN of 812 and the next to LSN from 801 into the LSN of 813. Table 5.23: Mapper Unpack Nybbles Register A Register B 800
810
Source Count
(B) Source
2
Drop 0
Mode A>B
Packing Unpack Nybbles
Table 5.24: Mapper Unpack Nybbles Source Register
Value (hex)
Target Register
Value (hex)
800
1234
810
0001
811
0003
812
0005
813
0007
801
5678
Unpack Nybbles is used with 4-bit output cards. Figure 5.4 shows a Compact PLC with 5 DAP-204 4-bit relay output cards. Each card is traffic-copped for 8 bits. Table 5.26 shows the PLC memory map. Notice that each card only uses the first four bits assigned to the slot. An I/O Scanner entry that would be used to push this output data to a CERI would look something like Table 5.25. The data that would show up in the CER is described in Table 5.27. Table 5.25: I/O Scanner settings to push the DAP-204 data Write From
Write To
0x00001
4x00101
CERI Manual
Write Count 3
5 Mapper 55
Page 53
Table 5.26: DAP-204 Example Rack 1 Slot 3
Slot 4
Rack 2 Slot 5
Slot 1
Slot 2
Coil
Relay
Coil
Relay
Coil
Relay
Coil
Relay
Coil
Relay
0x1
R1
0x9
R5
0x17
R9
0x25
R13
0x33
R17
0x2
R2
0x10
R6
0x18
R10
0x26
R14
0x34
R18
0x3
R3
0x11
R7
0x19
R11
0x27
R15
0x35
R19
0x4
R4
0x12
R8
0x20
R12
0x28
R16
0x36
R20
0x5
0x13
0x21
0x29
0x37
0x6
0x14
0x22
0x30
0x38
0x7
0x15
0x23
0x31
0x39
0x8
0x16
0x24
0x32
0x40
Figure 5.4 DAP-204 4-bit Relay Cards
0x1-0x8 R1-R4
56 Mapper 5
0x25 – 0x32 R13-R16
0x9 – 0x16 R5-R8 0x17 – 0x24 R9-R12
0x33 – 0x40 R17-R20
CERI Manual
Page 54
Table 5.27: I/O Data pushed from I/O Scanner Bit Number CERI 15 14 13 12 11 10 Register
9
8
7
6
4x0101
7
8
9
10 11 12 13 14 15 16
R5
R6
4x0102
1
2
3
4
R1
R2
R3
R4
6
R7
4
3
2
1
0
R8
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 R9
4x0103
5
5
R10 R11 R12
R13 R14 R15 R16
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 R17 R18 R19 R20
Now add the mapper entry in Table 5.28 to the CERI and the new data is placed in registers 111 through 116 as shown in Table 5.29. Table 5.28: Mapper Unpack Nybbles Register A Register B 101
111
Source Count 3
(B) Source Drop 0
Mode
Packing
A>B
Unpack Nybbles
Table 5.29: I/O Data after mapper nybble unpack Bit Number CERI 15 14 13 12 11 10 Register 4x0111 4x0112 4x0113
9
8
7
6
5
4
3
2
1
0
1
2
3
4
R1
R2
R3
R4
9
10 11 12
R5
R6
R8
17 18 19 20 R9
4x0114
R7
R10 R11 R12
25 26 27 28 R13 R14 R15 R16
4x0115
33 34 35 36 R17 R18 R19 R20
4x0116
41 42 43 44
The resulting data is now in the proper order for the CERI to use with a DAP-204 CERI Manual
5 Mapper 57
Page 55
module. Now, it is simply required to configure each relay card in the CERI to be assigned to registers 111 through 115. Note that register 116 is reserved for PLC bits 41 through 44 and should not be used elsewhere within the CERI.
58 Mapper 5
CERI Manual