Omron CJ Series Operation Manual page 158

Machine automation controller
Hide thumbs Also See for CJ Series:
Table of Contents

Advertisement

5 Remote I/O Communications
Access with User-defined Variables (Communications Mode Number
8)
If you set communications mode number 8 (Software Setting Mode), user-defined variables are
required to access the I/O data, Connect Flags, and Communication Error Flags of the CompoNet Mas-
ter Unit. The following two operations are performed.
(1) Use the CX-Integrator to make the software settings. Set the first addresses to allo-
cate in the memory used for CJ-series Units and set the number of nodes for alloca-
tion.
(2) Use the Sysmac Studio to create the user-defined variables. Create the user-defined
variables with AT specifications to the memory used for the CJ-series Unit that was
specified above with the CX-Integrator, and register them in a variable table.
Examples of assigning memory to user-defined variables are given below.
Example 1: In this example, the data for 12 nodes (nodes 0 to 11) for the WORD OUT areas of Word
Slave Units are assigned to the OutData
The first address
is set to D1850
in the software
settings.
*1 You can use any name for the array variable. The data type of the array is WORD because each WORD OUT
Data is one word. The number of elements in the array is 12, so the array variable is WORD OutData[12]. Use
the Sysmac Studio to allocate addresses starting from D01850 to this array.
OutData[0]
OutData[1]
OutData[2]
OutData[9]
OutData[10]
OutData[11]
Refer to the NJ-series CPU Unit Software User's Manual (Cat. No. W501) for details on memory for CJ-
series Units, to the Sysmac Studio Version 1 Operation Manual (Cat. No. W504) for how to assign vari-
ables and register user-defined variables, and to the CX-Integrator Version 2.
No. W464) for the procedure to make the software settings from the CX-Integrator.
5-6
Word address Bit 15
+0
+1
+2
:
+11
:
+63
D01850
OUT 0
OUT 1
OUT 2
:
OUT 9
OUT 10
OUT 11
D01861
CJ-series CompoNet Master Unit Operation Manual for NJ-series CPU Unit (Cat. No. W493)
*1
array variable.
Bit 0
[ WORD OUT0 ]
[ WORD OUT1 ]
[ WORD OUT2 ]
:
[ WORD OUT11]
Not allocated.
Not allocated.
12 words
Set the
number of
nodes to 12.
@
Operation Manual (Cat.

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Nj seriesCj1w-crm21

Table of Contents