![background image](http://html1.mh-extra.com/html/omron/cj1w-drm21/cj1w-drm21_operation-manual_742341082.webp)
3 Data Exchange with the CPU Unit
3-6
CJ-series DeviceNet Units Operation Manual for NJ-series CPU Unit(W497)
In this unit, slaves are allocated to the memory used for CJ-series Unit when you use the functions
shown below.
•
Fixed allocations and user-set allocations (Master)
•
Fixed allocations and user-set allocations (Slave)
Use the Sysmac Studio to register user-defined variables to the variable table. Use user-defined
variables to specify the AT specification of the memory used for CJ-series Unit to which the slave is
allocated.
Generally, array variables are created.
Below is an example of allocation to user-defined variables.
•
Used with Master Fixed Allocation 1
•
Used slaves: 16 I/O points; 64 slaves
In this case, I/O data of each slave is allocated as follows:
Allocate the I/O data to the user-defined variables as shown in the example below.
This example uses the following three data types.
•
Slave1_OutData_A (WORD type)
•
Slave1_OutData_B (BOOL type)
•
Slave1_OutData_C (union)
Use one of these data types or multiple data types to create user-defined variables according to the
user program.
When the user program accesses the slave only with WORD type, use the WORD-type user-defined
variables
Slave1_OutData_A
defined in the example.
How to Create User-defined Variables
Words
allocated
I/O data
CIO 3200
OUT slave I/O data (node address 0)
CIO 3201
OUT slave I/O data (node address 1)
…
…
CIO 3263
OUT slave I/O data (node address 63)
Содержание 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: ......