Access Methods From User Program - Omron CJ Series Operation Manual

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

Advertisement

5-1-2

Access Methods from User Program

Use variables to access the I/O ports from the user program.
Differences in Access Methods for Each Type of Data
The following table shows how different types of data are exchanged between the CPU Unit and the
CompoNet Master Unit depending on the communications mode.
Communications
mode number
0 to 3
8
Access with Device Variables for the CJ-series Unit
Use the I/O Map in the Sysmac Studio to assign device variables for the CJ-series Unit to I/O ports. Use
one of the following methods to assign the variables.
(1) Select an existing variable to assign it.
(2) Enter a new variable.
(3) Automatically create the variables with the Create Device Variable menu command.
The format of the variable names that are created automatically with method 3 is described below.
Device Variables for the CJ-series Unit
*_ SlavAllCommErr
(Refer to 5-3 Device Variables for the CJ-series Unit for details on device variables for the CJ-series
Unit.)
Hereafter, the automatically created names of the device variables for the CJ-series Unit, such as
*_ SlavAllCnctSta, are used.
CJ-series CompoNet Master Unit Operation Manual for NJ-series CPU Unit (Cat. No. W493)
OUT Data, IN Data, Connect Flags, and Communication Error
Flags
Status information (Status and Setting)
OUT Data, IN Data, Connect Flags, and Communication Error
Flags
Status information (Status and Setting)
This is the I/O port name. This name indicates the function, status, or
parameter of the Unit.
This is the device name that was used when the CompoNet Master Unit
was registered in the Unit Configuration.
(The default names are J01, J02, J03, etc. They are assigned in the
order that the Units are registered in the Unit Configuration.)
The device names are used to identify individual Units.
5 Remote I/O Communications
Type of data
Access method
Device variables for the
CJ-series Unit
User-defined variables
Device variables for the
CJ-series Unit
5-5
5

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Nj seriesCj1w-crm21

Table of Contents