![background image](http://html1.mh-extra.com/html/omron/cj1w-drm21/cj1w-drm21_operation-manual_742341167.webp)
4-27
4 Remote I/O Master Communications
CJ-series DeviceNet Units Operation Manual for NJ-series CPU Unit(W497)
4-4 User
-set A
llocation
s
4
4-4-2 Settings thro
ugh De
vice V
a
riab
les f
o
r CJ-s
er
ies Unit (Master Use
r-set Allocations
S
e
tup
Ta
b
le
)
Step 4: Set the Allocation Size Setup Table
Specify the area and first word l in this table at words
*_MstrAlocTblCfg[4]
(Allocation size setup
table area) and
*_MstrAlocTblCfg[5]
(First word in the allocation size setup table 1).
Allocate user-defined variables to the areas on the allocation size setup table.
After allocating user-defined variables to the areas, IN and OUT sizes for all nodes are set here as
shown in the table below. The setting range for each node is 0 to 200 bytes (0 to 100 words),
although actual size depends on the allocated slaves. The maximum size per block is 500 words. If
the size set here is larger than 1 byte, the start bit for all slaves is bit 00 and size is allocated in
ascending node address order that start from the beginning of the OUT 1 and IN 1 areas in word
units. If the size is set at 0 bytes for a node address, it is skipped the words are allocated to the next
address.
•
Allocation Size Setup Table
l is the start address for the Allocation Size Setup Table specified with
*_MstrAlocTblCfg[4]
(Allocation Size Setup Table Area) and
*_MstrAlocTblCfg[5]
(First Word in Allocation Size Setup
Table 1).
Step 5: Set the Master User-set Allocations Setup Switch to TRUE.
Change
*_Sw1MstrAlocCmd
(Master User-set Allocations Switch) to TRUE. The DeviceNet Unit
performs the following two steps simultaneously to start remote I/O communications with the scan
list enabled: reading allocation result for the above slaves from the NJ-series CPU Unit, and creating
a scan list based on actual connection information of slaves.
Note
The Master User-set Allocations Switch not only reads slave allocation data, but it also
enables the scan list.
Note 1
You can use any order for the OUT 1 and IN 1 blocks.
2
Node addresses do not have to correspond between output block 1 and input block 1.
Bit
Node address 0 OUT size (bytes)
Node address 1 OUT size (bytes)
Node address 62 OUT size (bytes)
Node address 63 OUT size (bytes)
Node address 0 IN size (bytes)
Node address 1 IN size (bytes)
Node address 62 IN size (bytes)
Node address 63 IN size (bytes)
to
to
15
08 07
00
I+0
I+1
I+62
I+63
Master User-set Allocations Setup Table
Allocation Size Setup
Table
Output (OUT) area
15
0
Bit
l wd
l+1wd
l+63wd
Bit 15
0
First word
specified
Output to Slaves
Node address 0
Node address 1
to
Node address 63
Input (IN) area
Bit 15
0
First word
specified
Input from Slaves
Node address 0
Node address 1
to
Node address 63
Address 0
OUT size
Address 0
IN size
Address 1
OUT size
Address 1
IN size
Address 63
OUT size
Address 63
IN size
to
to
to
: Specify the first word.
: Specify the size.
Specify the first word.
Specify the
first word.
Set first word.
Specify the size.
Specify the size.
Name of device variables for CJ-series Unit
*_MstrAlocTblCfg[0]
*_MstrAlocTblCfg[1]
*_MstrAlocTblCfg[2]
*_MstrAlocTblCfg[3]
*_MstrAlocTblCfg[4]
*_MstrAlocTblCfg[5]
Name
OUT block 1 area
First word in OUT block 1
IN block 1 area
First word in IN block 1
Allocation size setup table area
First word in Allocation Size Setup Table 1
Содержание CJ1W-DRM21
Страница 12: ...Manual Structure 10 CJ series DeviceNet Units Operation Manual for NJ series CPU Unit W497 ...
Страница 42: ...Revision History 40 CJ series DeviceNet Units Operation Manual for NJ series CPU Unit W497 ...
Страница 214: ...6 Message Communications 6 26 CJ series DeviceNet Units Operation Manual for NJ series CPU Unit W497 ...
Страница 345: ...Index 1 CJ series DeviceNet Units Operation Manual for NJ series CPU Unit W497 I Index ...
Страница 349: ......