Omron CJ1W-DRM21 Operation Manual page 82

Machine automation controller cj-series, nj-series cpu unit
Hide thumbs Also See for CJ1W-DRM21:
Table of Contents

Advertisement

3 Data Exchange with the CPU Unit
How to Create User-defined Variables
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:
Words
allocated
CIO 3200
CIO 3201
CIO 3263
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.
3-6
I/O data
OUT slave I/O data (node address 0)
OUT slave I/O data (node address 1)
OUT slave I/O data (node address 63)
CJ-series DeviceNet Units Operation Manual for NJ-series CPU Unit(W497)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents