
(4)Setting of the mask type
Set the item for monitoring or writing only the specified bits of the buffer memory.
HINT
Mask type
The mask type is effective when using for the buffer memories divided per 4 bits, such as an analog input block.
(a)Mask type 0
Monitor and write the buffer memory value directly.
(b)Mask type 1
•(For 16 bits)
Monitor and write only b0 to b3 of the buffer memory.
Example:
The monitor value is 0001H when monitoring BM=4321H as mask type 1.
BM0 4 3
2
1 H
Monitor value 0 0 0 1 | H |
|
BM0=0001H when writing input value 4321H to BM0=0000H as mask type 1.
Input value | 4 | 3 | 2 | 1 | H | ||
BM0 |
|
|
|
|
|
| |
|
|
|
|
|
| ||
0 | 0 | 0 | 0 | H | |||
(Before writing) | |||||||
BM0 |
|
|
|
|
|
| |
0 | 0 | 0 | 1 | H | |||
(After writing) |
(c)Mask type 2
•(For 16 bits)
Monitor and write only b4 to b7 of the buffer memory.
Example:
The monitor value is 0002H when monitoring BM0=4321H as mask type 2.
BM0 4 3
2
1 H
Monitor value 0 0 0 2 | H |
|
BM0=0010H when writing input value 4321H to BM0=0000H as mask type 2.
Input value | 4 | 3 | 2 | 1 | H | ||||
|
|
|
|
|
|
|
| ||
BM0 |
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
| ||
0 | 0 | 0 | 0 | H | |||||
(Before writing) | |||||||||
BM0 |
|
|
|
|
|
|
|
| |
0 | 0 | 1 | 0 |
| |||||
(After writing) | H |
•(For 32 bits)
Monitor and write only b4 to b7 and b20 to 23 of the buffer memory.
Example:
The monitor value is 00060002H when monitoring BM0=87654321H as mask type 2.
BM0 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | H | ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Monitor value | 0 | 0 | 0 | 6 | 0 | 0 | 0 | 2 | H |
BM0=00500010H when writing input value 87654321H to BM0=00000000H as mask type 2.
Input value 8 7 6 5 4 3 2 1 | H |
|
1
PREPARATORYFORPROCEDURESMONITORING 2
RANGESETBE
DEVICE CANTHAT 3
RANGEACCESS MONITORINGFOR 4
MONITORTOREDUNTANTSYSTEM HOW 5
CONNECTION
•(For 32 bits)
Monitor and write only b0 to b3 and b16 to 19 of the buffer memory.
Example:
The monitor value is 00050001H when monitoring BM0=87654321H as mask type 1.
BM0 8 7
6
5
4
3
2
1 H
Monitor value 0 0 0 5 0 0 0 1 | H |
|
BM0=00050001H when writing input value 87654321H to BM0=00000000H as mask type 1.
Input value | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | H | ||
BM0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| |||
(Before writing) | H | ||||||||||
BM0 |
|
|
|
|
|
|
|
|
|
|
|
0 | 0 | 0 | 5 | 0 | 0 | 0 | 1 |
| |||
(After writing) | H |
BM0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
|
(Before writing) | H | ||||||||
BM0 |
|
|
|
|
|
|
|
|
|
0 | 0 | 5 | 0 | 0 | 0 | 1 | 0 |
| |
(After writing) | H |
(d)Mask type 3
•(For 16 bits)
Monitor and write only b8 to b11 of the buffer memory.
Example:
The monitor value is 0003H when monitoring BM0=4321H as mask type 3.
BM0 4 3
2
1 H
Monitor value 0 0 0 3 | H |
|
BM0=0100H when writing input value 4321H to BM0=0000H as mask type 3.
Input value | 4 | 3 | 2 | 1 | H | ||||
BM0 |
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
| ||
0 | 0 | 0 | 0 | H | |||||
(Before writing) | |||||||||
BM0 |
|
|
|
|
|
|
|
| |
0 | 1 | 0 | 0 | H | |||||
(After writing) |
BUS 6
DIRECTTOCONNECTIONCPU 7
LINKCOMPUTER CONNECTION 8
ETHERNETCONNECTION
2. DEVICE RANGE THAT CAN BE SET | 2 - 5 |