Omron CJ1W-ECT21 Operation Manual page 69

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

Advertisement

The example below uses the following data types:
• Slave_OutData_C (union)
• Slave_InData_C (union)
When you use the union, prepare the union data type Mem that you can access with WORD and BOOL
as shown below.
Use one of the data types or multiple data types shown in the examples to create user-defined vari-
ables according to the user program.
When the user program accesses the I/O data only with WORD type, use the WORD-type user-defined
variables Slave_OutData_A and Slave_InData_A defined in the example.
The user-defined variables and I/O data of the EtherCAT Slave Unit are allocated as follows:
I/O data
OUT slave I/O data (Output001)
OUT slave I/O data (Output100)
IN slave I/O data (Input001)
IN slave I/O data (Input100)
The user program accesses the I/O data with WORD-type variables.
When the user program accesses the I/O data only with BOOL type, use the BOOL-type user-defined
variables Slave_OutData_B and Slave_InData_B defined in the example. The user-defined variables
and I/O data of the EtherCAT Slave Unit are allocated as follows:
I/O data
Output001, Bit 0
Output001, Bit 1
Output100, Bit 15
Input001, Bit 0
CJ-series EtherCAT Slave Units Operation Manual for NJ-series CPU Unit (W542)
User-defined variable name
Slave_OutData_A[0]
...
Slave_OutData_A[99]
Slave_InData_A[0]
...
Slave_InData_A[99]
User-defined variable name
Slave_OutData_B[0,0]
Slave_OutData_B[0,1]
...
Slave_OutData_B[99,15]
Slave_InData_B[0,0]
3 Data Exchange with the CPU Unit
Address
3200
...
3299
3300
...
3399
Address
3200.00
3200.01
...
3299.15
3300.00
...
...
...
3 - 7
3

Advertisement

Table of Contents
loading

Table of Contents