3-11
3 Data Exchange with the CPU Unit
CJ-series PROFIBUS Slave Unit Operation Manual for NJ-series CPU Unit (W510)
3-5 Dat
a Exch
ang
e with t
h
e C
P
U
Unit
3
3-
5-2 Accessing Fr
om the User Pr
ogram
These variables are defined by the user and can be used to exchange data with PROFIBUS slave
devices from a user program. User-defined Variables are specified to access user-allocated areas des-
ignated with CX-ConfiguratorFDT for slave devices.
To use this area from the user program, you need to create user-defined variables of AT specification.
From the user program, various types of information are exchanged using AT specified device vari-
ables for CJ-series Unit that are allocated to the I/O ports, and AT specified user-defined variables
that are allocated to slave allocation areas.
Use I/O Map in Sysmac Studio to allocate device variables for CJ-series Unit to the 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 "Device variable creation".
The following shows the structure of a variable name created automatically with method 3.
For details on Device Variables for CJ-series Unit, refer to the following:
•
3-6 Device Variables for CJ-series Unit (Software Switches, Statuses)
•
3-7 Device Variables for CJ-series Unit (Configuration)
In the explanations throughout this manual, the default device name automatically created is used
as the device variable name for CJ-series Unit, for example *_StartCommCmd.
For details on the CJ Unit memory, refer to
NJ-series CPU Unit Software User’s Manual
(Cat. No.
W501)
Sysmac Studio is used to register user-defined variables to the variable table. Specify the user-defined
variables in memory used for CJ-series Unit to which slaves can be allocated.
Below is an example of allocation to user-defined variables.
CJ1W-PRT21 Slave Unit Configuration
•
Machine Number 1
•
Station Address 2
•
1 Word In (to master) from host CPU memory area CIO 150
User-defined Variable
3-5-2
Accessing From the User Program
How to Create Device Variables for CJ-series Unit
Name of Device Variable for CJ-series Unit
Type
*_StartCommCmd
BOOL
Part that identifies the individual Unit.
Part that the user can change and identifies unit func-
tions, statuses and parameters.
How to Create User-defined Variables
Содержание CJ1W-PRT21
Страница 2: ......
Страница 15: ...17 CJ series PROFIBUS Slave Unit Operation Manual for NJ series CPU Unit W510 ...
Страница 108: ...4 Troubleshooting and Maintenance 4 12 CJ series PROFIBUS Slave Unit Operation Manual for NJ series CPU Unit W510 ...
Страница 123: ...Index 1 CJ series PROFIBUS Master Unit Operation Manual for NJ series CPU Unit W509 I Index ...