The text of a manual · part 6 of 15
CERI Installation and Programming Manual: 5 Mapper, pages 40 to 47
Pages 40 to 47 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 40
5
Mapper
This chapter explores the Internal Mapper feature in detail.
Figure 5.1: Internal Mapper Example Web Page CERI Manual
43
Page 41
The CERI can support up to 50 entries in its mapping machine (See Drop 255 Register List on page 102). These 50 entries are shared between the Rack Map entries and the Internal Map entries. There are 18 possible A120 Rack entries which means there are a minimum of 32 Internal Map entries available for use.
Mapper Description •
Register A – This value is the starting register in the Drop 0/1 data space for this mapper entry. The valid range is 1 through 10000.
•
Register B – This value is the starting register in either the Drop 0/1 data space or the Drop 255 data space. The valid rage is 1 through 40000.
•
Source Count – This value determines the number of registers moved, packed, or unpacked in this operation. The valid rage is 1 through 255.
•
Mode – There are four choices for the Mode:
•
•
A>B – The value from Register A is moved to Register B. The Source Count and Packing settings determine how many other values are also moved.
•
B<A – The value from Register B is moved to Register A. The Source Count and Packing settings determine how many other values are also moved.
•
A>B Reversed – The value from Register A is moved to Register B with all of the bits reversed. This means that the value of bit 0 (lsb) of “A” is now bit 15 (msb) of “B”. Bit 1 of “A” is now bit 14 of “B” and so on.
•
B<A Reversed – The value from Register B is moved to Register A with all of the bits reversed.
Packing – There are four choices for Packing:
44 Mapper 5
•
None – The data is transferred directly as indicated by the Mode setting.
•
Pack Bytes – The data from the least significant bytes of the source register and source + 1 are compressed into the target register. The source count must be an even number (2, 4, 6, etc.). Pack bytes is typically used with 8-bit input cards when aligning the bit numbers to 1x inputs.
•
Unpack Bytes – The data from the source register is split so the most significant byte of the source is loaded into the least significant byte of the target and the least significant byte of the source is loaded into the least significant byte of the target + 1. Unpack Bytes is typically used with 8-bit output cards when aligning the bit numbers to 0x coils.
•
Pack Nybbles – The data from the least significant nybble of the CERI Manual
Page 42
source register and places this value into the most significant nybble of the target register. Additionally, it places the least significant nybble of the source + 1 register and places this value into the next to least significant nybble of the target register. The Source Count must be an even number (2, 4, 6, etc.). Pack Nybbles would be used with 4-bit input cards. Unpack Nybbles – The most significant nybble from the source register is placed into the least significant nybble of the target register. Additionally, the next to least significant nybble of the source register is placed into the least significant nybble of the target + 1 register. Unpack Nybbles is typically used with 4-bit output cards when aligning the bit numbers to 0x coils.
•
Mapper Examples These examples make no notice of the Default settings and are just concerned with showing how the map entries function.
A>B Copy This example is a simple copy of data from registers 500, 501, and 502 to registers 510, 511, and 512. Table 5.1: Mapper A>B Copy Register A Register B 500
510
Source Count 3
(B) Source Drop 0
Mode A>B
Packing None
Table 5.2: Mapper A>B Copy Source Register
Value (hex)
Target Register
Value (hex)
500
1234
510
1234
501
5678
511
5678
502
ABCD
512
ABCD
B<A Drop 255 Copy The example below copies the “Status Register” and “Scan Time” of the CERI in drop 255 registers 1011 and 1012 to data registers 201 and 202 in drop 0.
CERI Manual
5 Mapper 45
Page 43
Table 5.3: Mapper B<A Drop 255 Copy Register A Register B 201
1011
Source Count 2
(B) Source
Mode
Packing
Drop 255 B>A
None
Table 5.4: Mapper Drop 255 Copy Source Drop Value Register (decimal)
Target Register
Drop
Value (decimal)
1011
255
4
201
0
4
1012
255
51
202
0
51
The value 4 indicates the CERI is running and the 51 indicates a scan time of 5.1mS.
A>B Reversed This example is a copy of data from registers 300, 301, and 302 to 310, 311, and 312 while reversing the bit order. Table 5.5: Mapper A>B Reversed Register A Register B 300
310
Source Count 3
(B) Source
Mode
Drop 0
A>B Reversed
Packing None
Table 5.6: Mapper A>B Reversed Source Value Register (hex)
Value (binary)
Target Value Register (hex)
Value (binary)
300
1234 0001 0010 0011 0100
310
2C48 0010 1100 0100 1000
301
4000 0100 0000 0000 0000
311
0002 0000 0000 0000 0010
302
0001 0000 0000 0000 0001
312
8000 1000 0000 0000 0000
Pack Bytes A>B Pack Bytes takes the Least Significant Bytes from adjacent registers and packs them into a single registers. The count determines the number of register pairs to pack. The Most Significant Byte of each source register is ignored. This example is a pack of the LSB data from registers 400 and 401 into 410 and 46 Mapper 5
CERI Manual
Page 44
from 402 and 403 into 411. Table 5.7: Mapper Pack Bytes Register A Register B 400
410
Source Count 4
(B) Source Drop 0
Mode
Packing
A>B
Pack Bytes
Table 5.8: Mapper Pack Bytes Source Register
Value (hex)
Target Register
Value (hex)
400
1234
410
3478
401
5678
402
9ABC
411
BCF0
403
DEF0
The Pack Bytes mapper is used to compress 8-bit discrete input cards into the same bit order used by the original PLC. Figure 5.2 shows a Compact PLC with 5 DEP-208 8-bit input cards. Each card is traffic-copped for 8 bits. Table 5.9 shows the PLC memory map.
Table 5.9: DEP-208 Original PLC Traffic Cop Rack 1 Slot 3
Slot 4
Rack 2 Slot 5
Slot 1
Slot 2
Bit
Input
Bit
Input
Bit
Input
Bit
Input
Bit
Input
1x1
I1
1x9
I9
1x17
I17
1x25
I25
1x33
I33
1x2
I2
1x10
I10
1x18
I18
1x26
I26
1x34
I34
1x3
I3
1x11
I11
1x19
I19
1x27
I27
1x35
I35
1x4
I4
1x12
I12
1x20
I20
1x28
I28
1x36
I36
1x5
I5
1x13
I13
1x21
I21
1x29
I29
1x37
I37
1x6
I6
1x14
I14
1x22
I22
1x30
I30
1x38
I38
1x7
I7
1x15
I15
1x23
I23
1x31
I31
1x39
I39
1x8
I8
1x16
I16
1x24
I24
1x32
I32
1x40
I40
CERI Manual
5 Mapper 47
Page 45
Figure 5.2 DEP-208 8-bit Input Cards
1x1 - 1x8 I1 - I8
1x25 – 1x32 I25 - I32
1x9 – 1x16 I9 - I16 1x17 – 1x24 I17 - I24
1x33 – 1x40 I33 - I40
It would be convenient for the CERI to provide a mapping of the input data to simply allow an I/O Scanner read from the new PLC to reproduce the original mapping. Table 5.10 shows a typical mapping of a CERI with five DEP-208 cards assigned to registers 101 through 106. If the PLC did an I/O Scan read of these 6 words, the data would end up with 8-bit gaps and the number would not align with the old system.
48 Mapper 5
CERI Manual
Page 46
Table 5.10: I/O Data from normal CERI DEP-208 configuration Bit Number CERI 15 14 13 12 11 10 Register
9
8
4x0101 4x0102 4x0103
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
4x0104
25 26 27 28 29 30 31 32 R25 R26 R27 R28 R29 R30 R31 R32
4x0105
33 34 35 36 37 38 39 40 R33 R34 R35 R36 R37 R38 R39 R40
4x0106
41 42 43 44 45 46 47 48 R41 R42 R43 R44 R45 R46 R47 R48
Adding the mapper entry in Table 5.11 to the CERI results in the data being placed in registers 111 through 113 as shown in Table 5.12. Table 5.11: Mapper Pack Bytes Register A Register B 101
111
Source Count 6
(B) Source Drop 0
Mode
Packing
A>B
Pack Bytes
Table 5.12: I/O Data to be read with I/O Scanner after Pack Bytes Mapper Bit Number CERI 15 14 13 12 11 10 Register
9
8
7
6
4x0111 4x0112
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
4x0113
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
CERI Manual
5 Mapper 49
Page 47
An I/O Scanner entry that would be used to read this input data from a CERI would look something like Table 5.13. The data that would show up in the PLC in the same order as the original system. Table 5.13: I/O Scanner settings to read the DEP-208 data Read From
Read To
4x00111
1x00001
50 Mapper 5
Read Count 3
CERI Manual