Omron C200HW-PRM21 Operation Manuals page 72

Profibus-dp master unit
Table of Contents

Advertisement

Unit Settings
Example I/O data mapping
56
Below is an example of user-defined I/O data mapping. The unit number is
set to 0, so the settings start at DM word 1000. The example defines two
output areas and one input area.
DM word
Value
Meaning
1000
0002
Two output areas
1001
0000
Write to output buffer of Unit starting at address 000
1002
B050
Read data from PLC starting at HR50
1003
0020
Transfer 20 words of output data
1004
0520
Write to output buffer of Unit starting at address 520
1005
C000
Read data from PLC starting at LR00
1006
0050
Transfer 50 words of output data
1007
0001
One input area
1008
0400
Read data from input buffer of Unit starting at address 400
1009
A500
Write data to PLC starting at address IR500
1010
0100
Transfer 100 words of input data
1011
any
No 2
1012
any
No 2
1013
any
No 2
The first output area is correctly defined, all values are in range.
The second output area has an incorrect value for the start address in the
output buffer of the Unit (520 > 510). This output area will not be mapped; the
output data will not be transferred to the buffer. This setting error is indicated
in IR n+2 (see section 5-3) and the ERR LED will be flashing.
Also the input area definition causes a setting error. The specified number of
words to be transferred crosses the boundaries of both the available IR area
and the input buffer area. The available input buffer area is 112 bytes (400 ~
511) and the available IR area is 12 words (IR500~IR511). The number of
input words that will be transferred is therefore limited to 12 words = 24 bytes
(the lesser of the two values). This is also a setting error which will be
indicated in IR n+2.
nd
input area
nd
input area
nd
input area
Section 5-1

Advertisement

Table of Contents
loading

Table of Contents