![background image](http://html1.mh-extra.com/html/omron/cj1w-drm21/cj1w-drm21_operation-manual_742341131.webp)
3-55
3 Data Exchange with the CPU Unit
CJ-series DeviceNet Units Operation Manual for NJ-series CPU Unit(W497)
3-3 De
vic
e
V
a
riab
les f
o
r CJ-series Un
it (Allocation
s
Set
tin
g T
a
b
le
, Sla
ve Deta
iled Sta
tus)
3
3-3-2 Ma
ster User-set
Allocations Setup T
a
b
le
Set the following allocation size setup tables in the memory used for CJ-series Units of the CPU Unit to
use the Master User-set Allocations Setup Table.
The number of bytes set in the allocation size setup table are allocated in word units in order of node
addresses for OUT block 1 and then IN block 1. Set the sizes within a range from 0 to 200 bytes (100
words).
To set the tables shown below from the user program, allocate user-defined variables in the following
areas.
For details on allocating user-defined variables, refer to
Sysmac Studio Version 1 Operation Manual
(Cat. No. W504).
Additional Information
The areas and first word in the memory used for CJ-series Unit used for setting up the allocation
size setup table are set by using the following device variable for CJ-series Unit.
Allocation Size Setup Table Area
*_MstrAlocTblCfg[4]
First Word In The Allocation Size Setup Table 1
*_MstrAlocTblCfg[5]
Setting Example
The following example shows the allocation when the size (bytes) for OUT block 1 and IN block 1 is
set in the allocation size setup table using the specified values.
Node address 0: OUT size: 1 byte, IN size: 5 bytes
Node address 1: OUT size: 4 byte, IN size: 3 bytes
Node address 2: OUT size: 1 byte, IN size: 2 bytes
Note 1
The numbers in the OUT 1 and IN 1 blocks represent node addresses.
2
Bytes are allocated in the blocks in word units in the order of node addresses. If the allo-
cated size is 1 byte, the rightmost byte is used, but the leftmost byte cannot be used.
Allocation Size Setup Table
Word
0
0
t
i
B
7
0
t
i
B
8
0
t
i
B
5
1
t
i
B
Node address 0 OUT size (bytes)
Node address 0 IN size (bytes)
I
Node address 1 OUT size (bytes)
Node address 1 IN size (bytes)
I+1
Node address 63 OUT size (bytes)
Node address 63 IN size (bytes)
I+63
:
:
Allocation size setup table
1
5
4
3
1
2
:
:
I
I+1
I+2
OUT block 1
Not usable
00
01
01
01
01
02
s
s+1
s+2
s+3
15
00
Not usable
:
:
IN block 1
Not usable
00
00
00
01
00
01
k
k+1
k+2
k+3
15
00
:
:
00
Not usable
01
02
02
k+4
k+5
l: First word in allocation size setup table
s: First word in OUT block 1
k: First word in IN block 1
Summary of Contents for CJ1W-DRM21
Page 12: ...Manual Structure 10 CJ series DeviceNet Units Operation Manual for NJ series CPU Unit W497 ...
Page 42: ...Revision History 40 CJ series DeviceNet Units Operation Manual for NJ series CPU Unit W497 ...
Page 345: ...Index 1 CJ series DeviceNet Units Operation Manual for NJ series CPU Unit W497 I Index ...
Page 349: ......