![background image](http://html.mh-extra.com/html/omron/cj1w-pnt21/cj1w-pnt21_operation-manuals_742351112.webp)
4-5
4 Data Exchange with the CPU Unit
CJ-series PROFINET IO Controller Unit Operation Manual for NJ-series CPU Unit (W511)
4
-1 Dat
a Exch
ang
e wi
th t
h
e C
P
U
Unit
4
4-
1-2 Accessin
g Fro
m
the User Pr
ogram
Use I/O Map in Sysmac Studio to allocate device variables for CJ-series Unit to an I/O port. Specify
variable names using one of the methods shown below.
1. Select and allocate existing variables.
2. Input a new variable name.
3. Automatically create with "Create Device Variable".
For details on device variables for CJ-series Unit, refer to the following:
4-2 Device Variables for CJ-series Unit (Software Switches, Statuses)
In the explanations from here on, the device name automatically created is used as the device vari-
able name for CJ-series Unit, for example *_SwCmd.
For details on the memory for CJ-series Unit, refer to NJ-series CPU Unit Software User's Manual
(Cat. No. W501).
In this unit, IO Devices are allocated to the memory used for CJ-series Unit.
Sysmac Studio is used to register user-defined variables that specify the memory used for CJ-series
Unit with IO Devices allocated as AT specification in the variable table.
Generally, array variables are created.
Below is an example of allocation to user-defined variables.
•
Used IO Devices: GRT1-PNT with ID4-1 and OD4-1 installed.
In this case, data of the IO Device are allocated as follows using CX-ConfiguratorFDT.
How to Create Device Variable for CJ-series Unit
Name of Device Variable for CJ-series Unit
*_SwCmd
This is the device name when this unit is registered in
the Unit Configuration. (By default, a device name is
assigned from “J01” in the order of the registration in
the Unit Configuration.) This identifies the individual
unit.
This is an I/O port name. The name indicates unit
functions, statuses and parameters.
How to Create User-defined Variables