Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Practices Guide
Importing External Device Variables
Application
NA5-15W□□□□
NA5-12W□□□□
NA5-9W□□□□
NA5-7W□□□□
V417-E1-01
■ Introduction
This guide provides reference information for the use of external devices with the NA. It does not provide
safety information.
Be sure to obtain the NA-series Programmable Terminal User's Manuals, read and understand the safety
points and other information required for use, and test sufficiently before actually using the equipment.
2
Terms and Conditions Agreement
Warranty, Limitations of Liability
Warranties
Exclusive Warranty
Omron’s exclusive warranty is that the Products will be free from defects in materials and
workmanship for a period of twelve months from the date of sale by Omron (or such other period
expressed in writing by Omron). Omron disclaims all other warranties, express or implied.
Limitations
OMRON MAKES NO WARRANTY OR REPRESENTATION, EXPRESS OR IMPLIED,
ABOUT NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
PURPOSE OF THE PRODUCTS. BUYER ACKNOWLEDGES THAT IT ALONE HAS
DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS
OF THEIR INTENDED USE.
Omron further disclaims all warranties and responsibility of any type for claims or expenses
based on infringement by the Products or otherwise of any intellectual property right.
Buyer Remedy
Omron’s sole obligation hereunder shall be, at Omron’s election, to (i) replace (in the form
originally shipped with Buyer responsible for labor charges for removal or replacement
thereof) the non-complying Product, (ii) repair the non-complying Product, or (iii) repay or
credit Buyer an amount equal to the purchase price of the non-complying Product; provided
that in no event shall Omron be responsible for warranty, repair, indemnity or any other
claims or expenses regarding the Products unless Omron’s analysis confirms that the
Products were properly handled, stored, installed and maintained and not subject to
contamination, abuse, misuse or inappropriate modification. Return of any Products by
Buyer must be approved in writing by Omron before shipment. Omron Companies shall not
be liable for the suitability or unsuitability or the results from the use of Products in
combination with any electrical or electronic components, circuits, system assemblies or
any other materials or substances or environments. Any advice, recommendations or
information given orally or in writing, are not to be construed as an amendment or addition
to the above warranty.
3
Application Considerations
Suitability of Use
Omron Companies shall not be responsible for conformity with any standards, codes or
regulations which apply to the combination of the Product in the Buyer’s application or use
of the Product. At Buyer’s request, Omron will provide applicable third party certification
documents identifying ratings and limitations of use which apply to the Product. This
information by itself is not sufficient for a complete determination of the suitability of the
Product in combination with the end product, machine, system, or other application or use.
Buyer shall be solely responsible for determining appropriateness of the particular Product
with respect to Buyer’s application, product or system. Buyer shall take application
responsibility in all cases.
NEVER USE THE PRODUCT FOR AN APPLICATION INVOLVING SERIOUS RISK TO
LIFE OR PROPERTY WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS
BEEN DESIGNED TO ADDRESS THE RISKS, AND THAT THE OMRON PRODUCT(S) IS
PROPERLY RATED AND INSTALLED FOR THE INTENDED USE WITHIN THE
OVERALL EQUIPMENT OR SYSTEM.
Programmable Products
Omron Companies shall not be responsible for the user’s programming of a programmable
Product, or any consequence thereof.
Disclaimers
Performance Data
Data presented in Omron Company websites, catalogs and other materials is provided as a
guide for the user in determining suitability and does not constitute a warranty. It may
represent the result of Omron’s test conditions, and the user must correlate it to actual
application requirements. Actual performance is subject to the Omron’s Warranty and
Limitations of Liability.
Change in Specifications
Product specifications and accessories may be changed at any time based on
improvements and other reasons. It is our practice to change part numbers when published
ratings or features are changed, or when significant construction changes are made.
However, some specifications of the Product may be changed without any notice. When in
doubt, special part numbers may be assigned to fix or establish key specifications for your
application. Please consult with your Omron’s representative at any time to confirm actual
specifications of purchased Product.
4
Contents
5
7-1 WINDOW TO SET CJ- FINS AS EXTERNAL DEVICE ············· 33
7-2 ADDRESS RANGE ···················································· 34
7-3 IMPORTING THE CJ-FINS VARIABLES ···························· 34
7-4 DIRECT ENTRY ······················································· 35
7-5 COPY AND PASTE ···················································· 37
6
1 Related Manuals
The following manuals are related to this manual.
7
2 Preecauttions
(1) W
When building g an actual system,
s cheeck the spec cifications of the componnent devices s of the
syystem, use within
w the ratings and sp pecified perfformance, an nd implemennt safety me easures
suuch as safety circuits to minimize th he possibility
y of an acciddent.
(2) Foor safe use ofo the system m, obtain th e manuals of o the compo onent devicees of the sys stem
annd check the e information n in each ma anual, includding safety precautions,
p , precautions for
saafe use.
(3) It is the respoonsibility of th
he custome r to check all laws, regu ulations, andd standards that the
syystem must comply with h.
(4) Alll rights rese
erved. No pa art of this pu blication maay be reprod duced, storeed in a retrievval
syystem, or traansmitted, in n any form, o or by any means, mechanical, elect ctronic, photoocopying,
re
ecording, or otherwise, without
w the pprior written permission of OMRON..
(5) Thhe informatio on in this guuide is curre nt as of Aprril 2015.
No o patent liab
bility is assumed with re espect to the e use of the information
i contained herein.
h
Moreover, because OMR RON is consttantly strivin ng to improve e its high-quuality produc
cts, the
infformation co ontained in this
t guide iss subject to change
c without notice.
(6) Thhe operation n of each de esign templa ate has testeed using the device conffiguration ind dicated
in section 4-1 of this guide. The operration of scre eens after inncorporationn of the temp plates is
noot guarantee ed.
Precautio
ons for Safe
e Use
Indicates precautions
s on what to
o do and wh
hat not to do
o to ensure safe usage
e of the
product.
P
Precautionss for Correc
ct Use
Indicates precautions
p on what to d
do and whatt not to do to
o ensure prooper operatio
on and
performance.
A
Additional Information
Additional information to read as rrequired.
This inform
mation is pro
ovided to inccrease understanding orr make operration easierr.
Co
opyrights an
nd Tradema
arks
Sysmac an nd SYSMAC C are trademmarks or registered tradeemarks of OOMRON Corrporation
in Japan and
a other countries for O OMRON facttory automation productts.
Screensho ots are used in accordannce with Mic
crosoft Corporation guiddelines.
Windows is a registereed trademarrk of Microsooft Corporation in the US
SA and otheer
countries. EtherCAT® ® is registere
ed trademarrk and patennted technollogy, license
ed by
Beckhoff Automation
A GmbH,
G Germmany. Comp pany names s and producct names in this
document are the traddemarks or rregistered tra
ademarks of their respeective compaanies.
8
3 Introductiion
The NA se eries has thee ability to co
ombine Sys smac devices and manaage them in one project file.
In addition, other devicces includin g the Sysma ac products and CJ seriies in other project files
can be com mmunicated d by importinng the variab bles or addre
esses. Omroon is considering makin ng
the NA serries manage eable with co ontrollers fro
om other commpanies in tthe future. Devices
D in
other proje
ect files are registered aand managed as "Extern nal Device".
This guide
e describes how
h ort settings frrom the connected devicces to perfo
to impo orm
communication between the NA a and the CJ oro NJ/NX serries that is sset as Extern
nal Device.
Sysm
mac Studio project
p
NJJ/NX: Interna
al device NA
Page1
P
Page 1
P
Program1
Local
variable
L
Local variable
Scrip
pt O
Object
C
Command/FB
G
Global
IO
O Global vaariable
Hard
d Variable
ware
e m
map variable mappinng
Device variable
v
*1 tab
ble 2
*2
(device variable
v
colum
mn)
Vaariable import
Variable re
eference path of internal devices
Variable re
eference patth of NA External Device
Variable mapping
m path
h
9
4 Extternal Devicce Tabb Page in Sysma
S ac Studio
The EExternal Devvices are registered und
der “Configu
urations and
Setuup” - “Device
e Referencees” in the Mu
ultiview Explorer of the
Syssmac Studio.
N Name
A nam me of the va stered in the connected External De
ariable regis evice.
You ccan set a vaariable name e by importin
ng the variab bles or adding variabless.
If no variable namme is registe
ered, the co mmunication fails betwe een the NA and Externa al
Devicce.
D Data Type
A varriable data tyype. Since this
t informattion is used to determinee a data sizee, you must enter
the ddata type eveen the addreess is alread
dy assigned to “ AT”.
C Comment
A com mment to vaariable. You do not nece essarily have e to enter a comment foor the contro
ol.
A AT
The iinformation to
t be referreed when the e variable is assigned to the physicaal addressess.
The m memory asssigned to “AT T” is accesssed.
10
4-1 How to Im
mport Extternal De
evice Variables
There are the following
g three meth
hods to impo
ort the variable informattion of the External
E Devvice
with the Syysmac Studio version 1 .13.
1) Importin
ng and upda
ating variable
es directly frrom device
2) Direct entry
e
3) Copy annd paste
Variable
②Dirrect entry
③Co py and paste
Screen traansfer
① Importing and
a
updating variables
directly from device
Mapp
ped variable
External Deviice NA
N series
NJ/NX seriees
CJ series
Direct en
ntry
The user can
c directly enter
e the va
ariable inform e “Device Vaariables” Co
mation in the olumn of the
e
Sysmac Sttudio. Data Type
T and ATT must be entered
e accuurately accorrding to the defined
notation ru
ules.
11
Exceppt the headin
ng lines in th
he Excel, all of the variable informattion must bee copied and
d pasted
to the
e “Device Vaariables” Column of the S Sysmac Stu udio.
A
Additional Information
There is no
o restriction on the num
mber of variables to impoort, but theree is limit to th
he
number of variables too assign to th
he NA globaal variables in the variabble mapping g; 20,000
mapped va ariables per External De evice and 35
5,000 variabbles for the eentire projec ct.
A
Additional Information
When multtiple NA dev vices are reg
gistered in one
o project, the
t Externall Device can n be
referred fro
om the multiple NA deviices.
In this case
e, the variab
bles must bee imported by
b all of the multiple NA devices in the
t
external deevice setting
g.
A
Additional Information
When ente ering a varia
able name in n the “Device
e Variables” Column of the Sysmac c Studio,
the prohibiited characte
er is in acco
ordance withh the prohibitted characteer of the Extternal
Device. Thhe prohibited
d character ffor mapped variables is the same aas for the NA A global
variables.
12
4-2 T
The Merg
ge Device
e Variabl es Dialog
g Box of Sysmac
S S
Studio
Entering th
he IP addresss of the Extternal Devic
ce
enables thhe “Update Variables”
V B
Button of
Import Sta
atus.
The following dialog box appears when the
“Update Vaariables “ Bu
utton is presssed.
On the scrreen, the varriable in the External Deevice is commpared with tthe value in the “Device
e
Variables” Column of the
t Sysmacc Studio, and d the differen
nces can bee applied to the
t “Device
Variables” Column from the Exterrnal Device. But a revers se operationn is impossib
ble (i.e.,
unable to change
c the variable
v info
ormation in the
t Sysmac Studio and apply the diifferences to o
the External Device).
13
Legend
The results of the comparison are displayed in the following colours.
・Red: The name in the target and source devices are the same, but the data types are
different.
・Green:The variable exists in only the target device (Sysmac Studio). This disappears after
the difference is copied and applied.
・Blue:The variable exists in only the source device (External Device). The difference in
variables can be copied to the Sysmac Studio.
・Yellow:The copied variables. In this status, the variables have not been copied to the
“Device Variables” Column of the Sysmac Studio. Therefore, the copied variables are not
applied to the “Device Variables” Column even after the “Merge Device Variable” Dialog Box is
closed. You need to click the ”Apply” Button to apply the results of copying to the “Device
Variables” Column.
“Apply” Button
This button finalizes the copied variables and applies the result to the “Device Variables”
Column. After the result is applied, the colors of ”legend” disappear and the variables in
the ”Target Device Variable” and ”Source Device Variable” Fields become the same.
14
4-3 Supported Devices and Applicable Variable Import Methods
There are the following three methods to import variable information of the External Device.
Applicable methods and restrictions depend on the type of External Device.
The import methods for each External Device are as follows.
Method Importing and updating Direct entry (note 2) Copy and paste( note 2)
variables directly from
Device type device (note 1)
NJ/NX Supported Supported Supported
CJ-CIP Supported Supported Supported
CJ-FINS Not supported Supported (note 3) Supported (note 3)
Note 1)
The following table shows whether “Importing and updating variables directly from device” is
supported by each variable.
System-defined User-defined variables
Variable variables Not published Publish Only Input Output
Device type
NJ/NX Supported Not supported Supported Supported Supported
CJ-CIP Not supported Not supported Supported Supported Supported
(note 4)
Note 2)
A building error occurs if a data type that you entered is not within the “IntelliSense” scope.
For this reason, you cannot neither define structures nor enter the external device variables in
the “Data Type” Field.
Note 3)
For the CJ-FINS, AT (address) must be entered.
For information on how to enter AT (address), refer to the “Address/Value” Field of the CX-
Programmer variable table.
Note 4)
CJ system-defined variables don’t have the “Publish” setting. Also, the user can not add this
setting to the variables. For this reason, the CJ system-defined variables cannot be imported
by any variable import method.
Additional Information
When importing the NJ/NX variables, the user-defined variables and the system-defined
variables are imported together.
The CJ-CIP system-defined variables cannot be imported since this variable cannot be
set as network variable.
15
The following table shows whether the “Device Variables” Column of the Sysmac Studio must be
entered.
Device type Name (variable) Data Type Comment Address/Value (AT)
NJ/NX Required Required Optional Not required
CJ-CIP Required Required Optional Not required
CJ-FINS Required Required Optional Required
Additional Information
A variable name for the CJ-FINS must be entered. If the CJ project file is designed only
with physical address, you must define the variable to the physical address to be
imported to the NA.
16
4-5 Data Typ
pe
The NA usses the Visual Basic datta type. The data name and type are
re different frrom IE61131
that is used in the CJ or
o NJ/NX se
eries.
The “Devicce Variables s” Column off the Sysmaac Studio mu ust be entereed in the IE6
61131 data
type, as sa
ame as the CJ C or NJ/NX X.
When usin ng the “importing and up pdating varia y from devicce “method, the IE61131
ables directly 1
data type set
s by the External Deviice is autom matically load
ded during thhe import. When
W using the
t
"direct entrry" or "copy and paste" method, the e user must manually ennter in the IEE61131 data
a
type. The Visual
V Basic
c data type ccan be assig
gned in the “variable
“ maapping” setting.
Additional Inform
mation
The range of ph esses to be referred dep
hysical addre pends on thee data type.
Exammple) For a LREAL dataa set to DM0
0000, the adddresses froom DM0000 to DM0003
are used
u since the
t LREAL vvariable is 4-word (eightt bytes).
Ima
age of assigned ad
ddress
LREAL variable
e
Additional Inform
mation
If two variables of different d
data types are
a set to thee same addrress, they are normally
operrated respecctively. In thiis case, the two variable
es are shareed. If any change is mad
de
to th
he one, the other
o change es according gly.
Exam mple) When n address is 11, DINT va ariable is 11, WORD va riable is B.
If the
e variable is an array, co
onsecutive addresses
a are
a assignedd starting fro
om the enterred
addrress. The intterval of the
e assigned address depe ends on the data type of
o the array
variaable.
Exam mple) For a DINT variab ble when the
e variable na
ame is "Testt", number of
o array is "3
3",
and set address s is "E0_00000".
In thhis case, the address of array numbber 0 is "E0_
_0000", nummber 1 is "E00_0002", andd
num mber 2 is "E00_0004".
17
Image of assig
gned address
E0_0 _1 _2 _3 _4 _5
4--6 Nota
ation for AT
A (Physical Addre
esses)
This section describes the notation for A AT that is reqquired to import variablees to the CJ-FINS
Exterrnal Devicess using the "direct
" entry"" or "copy an
nd paste" method.
To ennter AT (adddress), referr to the “Add
dress/Value”” Field of thee CX-Prograammer variable table.
F
For the CIO area "CIO 0001",
0 enterr only the nuumerical parts in the adddress. If abo
ove two
d
digits are alll 0, you can omit 0 to en
nter. For "00
001", enter "1".
F
For "E0_000 01", enter "E
E0_0001” ass it is. If abov
ve two digits
s are all 0, yyou can omitt 0 to
e
enter. For "E
E0_0001”, enter "E0_1" .
F
For a BOOL L variable, ennter a value in a range ofo 00 and 155 to two deccimal places of the
a
address.
NJ//NX Im
mporting and ”Array[[start point of array..end point of array] off data type” is automatically entered
uppdating variabbles in the “Data
“ Type” FField.
diirectly from de
evice
Direct entry Enter ”Array[start
” po
oint of array..e
end point of array] of data tyype” in the “Da
ata Type”
Copy and paste e Field.
Examp NT variable is 10 :”Array [0. .9] of DINT”.
ple) number off array for DIN
CJ-CIP Im
mporting and ”Data type
t [number of array]” is automatically entered in the ““Data Type” Field.
F
uppdating variabbles
diirectly from de
evice
Direct entry Enter ”Data
” type [nu
umber of array
y]” in the “Data
a Type” Field.
Copy and paste e Examp ple) For DINT variable whenn number of array is 10 :DIN NT[9]
CJ-FINS Direct entry Enter ”Data
” type [nu
umber of array
y]” in the “Data
a Type” Field.
Copy and paste e Examp ple) For DINT variable whenn number of array is 10 :DIN NT[9]
18
4-8 Import Availability for Data Type Variables
Whether the import is available for each device is as follows.
NJ/NX Importing and Available.
updating variables However, variables of the union and enumeration types cannot be imported.
directly from device
Direct entry Not available because an error occurs if a data type that you entered is not within
the “IntelliSense” scope.
Copy and paste Not available because an error occurs if a data type that you entered is not within
the “IntelliSense” scope.
CJ-CIP Importing and Available.
updating variables However, the system-defined variables cannot be imported.
directly from device
Direct entry Not available because an error occurs if a data type that you entered is not within
the “IntelliSense” scope.
Copy and paste Not available because an error occurs if a data type that you entered is not within
the “IntelliSense” scope.
CJ-FINS Direct entry Not available because an error occurs if a data type that you entered is not within
the “IntelliSense” scope.
Copy and paste Not available because an error occurs if a data type that you entered is not within
the “IntelliSense” scope.
19
5 Whhen NJ/NX
N X is C
Conne
ected
d
This section explains how to o import the variables wh
hen the NJ/N
NX is set ass External De
evice.
Refer to the nextt section for how to impoort NJ/NX va
ariables.
Additional Information
n
As an exam
mple, the following scre
een uses “NJ J” device to explain the procedure.
When you use NX, rep place the de
escription of “NJ” with “N
NX” in the foollowing proc
cedure,
me procedure as “NJ” is used for “NX” to importt variables.
as the sam
5--1 Wind
dow to Se
et NJ/NX as Exterrnal Devic
ce
This section explains the win
ndow that se ets the NJ/N
NX External Device.
The ffollowing win
ndow appea ars by right-cclicking “Dev
vice Referen
nces” -> “Addd” ->
“Exte
ernalDevice””, and selectt “NJ” or “NX
X” for the “Device Series
s” Field.
①
②
③
④
① IP Addrress: Enter the address of the conne ected NJ/NXX. Example )”192.168.250.1”
② Device Series: Seleect the typess of the conn nected External Device from “CJ”,“N NJ”, or
“NX”.
③ Import Status:
S The import resu lt and date are
a shown after
a importinng the variab
ble.
④ Import Variables/
V Update
U Variaables:When the Externa al Device is cconnected with
w an
et cable, click the “Impo
Etherne ort Variables” or “Update Variables”” Button to import or
update the variablees.
⑤ Device Variables: Variables
V thaat are imporrted from the
e External D
Device are sh hown.
5--2 Impo
orting Varriables wh
hen Exte rnal Deviice is NJ//NX
Theree are the folllowing three
e methods to o import varriables when
n the “NJ” orr ”NX” is set as
Exterrnal Device.
IImporting an nd updating variables diirectly from device
d
D Direct entry
C Copy and pa aste from Ex xcel or otherr files
Refer to the nextt page for ea e import method.
ach variable
20
5-3 Importing
g and Upd
dating Va
ariables Directly
D frrom Devicce
This methood directly im
mports the vvariable information fromm the NJ/NXX by connectting the NJ/N NX
to the PC that
t imports the variable es with an Ethernet
E cable.
As the CIPP protocol is used in thiss method, on nly the exposed variablees in publish
h setting (sett
to ”Publish
h Only”, “Input”, or “Outpput”) of syste
em-defined and user-deefined can be imported
among the e NJ/NX glob bal variabless.
Additional Inform
mation
al variables to import is set to “Do not
If all of the globa n publish” iin the NJ/NX
X, only the
NJ/NNX system-d defined varia
ables will be
e imported.
he following procedure to
Perform th d update varriables direcctly from the NJ/NX.
o import and
porting varia
Imp ables from the NJ/NX U nit
1
S
Set the variable
e to the global variable
o n the Sysmac Studio.
of the NJ/NX in
2
S
Set the variable
e to other than
n ”Do
n
not publish”.
3
T
Transfer the se
etting to the NJ/NX.
21
4
Open Neew Project andd click “Device
e
Referencces” -> “Add” ->
“Externa
alDevice” to
add ”ExxternalDevice00”.
5
Select “N
NJ” or “NX” for the “Device
Series” F
Field and ente
er the IP
address of the device.
6
Click the
e “Import Varia
ables” Button.
A
Additional Information
Variables are
a imported d based on C CIP protoco
ol rules, so th
he global vaariables set to
t “Do
not publish
h” in ”Network Publish” ccannot be im
mported.
A
Additional Information
Structure variables
v can be importe
ed in the same way as for
f regular vvariables.
Data variables of unions and enummerations th
hat are not supported
s byy the NA can
nnot be
imported.
22
After the variable
v is im
mported, youu can import only the diffferences in tthe variables that were
changed oro added by the Externa l Device by clicking the “Update Vaariables” Buttton next to the t
“Import Vaariables” Buttton. You do
o not necesssarily have to
o click the “Immport Variables” Buttonn
before “Uppdate Variab bles” Button..
he following procedure to
Perform th o import the
e differences
s in the NJ/N
NX variables
s by clicking
the “Updatte Variables” Button.
“Up
pdate” proceedure
1
OOn the Externa al Device0 Tab b Page,
sselect “NJ” or “NX”
“ for the “D
Device
SSeries” Field and enter the IP
aaddress of the device, and click
c the
“Update Variab bles” Button.
2
AAfter clicking th
he “Update Va
ariables”
BButton, the pop p-up page app
pears as
sshown on the right.
r note 1)
1
S
Select the varia
able on the rigght side
a
and click the
“C
Copy Selected d Right to Leftt” or
“C
Copy All Rightt to Left” Butto
on.
Note1 ) The variables stored in the External Device are displayed at the right sid e of the pop-up page.
At the left side, the “Dev
vice Variable o the connected Externaal Device is displayed.
es” Column of d
3
A
After the variab bles are copied at the
le t ”Apply” Bu
eft side, click the utton to
a
apply the results.
A
After the resultts are applied, click
he ”Close” Bu
th utton to close the pop-
u
up page.
4
T
The copied varriable is added
d in the
“D
Device Variab
bles” Column.
23
5--4 Direcct Entry
In this method, you
y can direc ctly enter va
ariables in th
he “Device Variables”
V Coolumn of thee
Sysm mac Studio. Regardless of the publissh setting in
n the global variable
v tab le of the NJ//NX
variables can be registered.
A
Additional Information
A tag comparison erro or occurs aftter transferring the variable informattion to the NA
N if the
variable information th
hat you ente red is differe
ent from the informationn in the NJ/NNX.
The following items arre checked d during the taag comparison.
・Variable name,
n structures name,, structure member
m namme
・Variable data
d type, sttructure data
a type, struc
cture membe er data typee
・Number ofo array for variables,
v nuumber of arrray for structtures, numbber of array for
f
structure member
m
”Direct en
ntry” proced
dure
1
On the EExternal Devicce0 Tab Page,,
select “N
NJ” or “NX” forr the “Device
Series” F
Field and enteer the IP
address of the device.
2
Enter a vvariable namee for the “Name”
Filed andd the variable data type for
the “Datta Type” Field of the “Devicce
Variabless” Column.
Note 1)
3
After tran
nsferring the data
d to the NA
A,
make su ure that no erro
or occurs and
the screeen starts norm
mally, which
means th he operation ends
e
successffully.
A
Additional Information
When ente ering array variables,
v en
nter ”Array[s
start point of array..end ppoint of arra
ay] of
ame” in the “Data Type ” Field.
variable na
Example) For DINT va ariable whenn number of array is 10: :”Array [0..99] of DINT”
24
5-5 Copy and
d Paste
In addition to the direc
ct entry, you can copy th
he variable information ffrom Excel or
o text files and
a
paste it to the “Device Variables” CColumn of the Sysmac Studio. To ccopy and pa aste the
informationn to the “Deevice Variablles” Column ble informatioon must be placed in the
n, the variab
specified order
o in the file.
f
1
Innput the variab
bles that you want
w to
ccopy to the Syssmac Studio inn the
EExcel sheet.
T
The order is
N
Name-> Data Type->
T Comm ment-> AT,
frrom left to righ
ht.
Y
You do not nee ed to input “C
Comment”
and “AT”.
a
2
C
Copy the variables in the Ex
xcel sheet.
3
In
n the “Device Variables” Co olumn,
riight-click and select “Paste”” or
“CCtrl+V” to passte the variable
es.
25
6 Whhen CJ-CIP
C P is C
Connected
d
This section explains how to o import the variables wh
hen the CJ22 is set as Exxternal Deviice.
Refer to the nextt page for the procedurees to import the CJ-CIP variables.
6--1 Wind
dow to Se
et CJ-CIP
P as Exte rnal Deviice
This section explains the winndow that se ets the CJ-C
CIP External Device.
The ffollowing win
ndow appea ars by right-cclicking “Dev
vice Referen
nces” -> “Addd” ->
“Exte
ernalDevice””, and selectting CJ for th
he “Device Series”
S Field
d, and CIP EEthernet for
the ”C
Communica ation Driver” Field.
①
②
③
④
⑤
① IIP Address: The “IP Add dress” Filed is displayedd for the connnected devvice if the ”IP
P
AAddress” Ch heck Box is selected. E Example)”192.168.250.1”
**Refer to the
e following “Additional Innformation” for information on the “R Route path” Check
BBox.
② DDevice Seriees: Select thhe types of tthe connecteed External Device from m “CJ”, “NJ”, or “NX”.
③ CCommunica ation Driver: Either ”CIP--Ethernet” or ”FINS-Ethe ernet” can bbe chosen fo or the
CCJ. ”CIP-Ethhernet” is seelected here .
④ IImport Statuus: The impo ort result andd date are shown
s after importing
i thee variable.
⑤ IImport Variaables/ Updatte Variables :When the External Device is connnected with an a
EEthernet cab e “Import Va
ble, click the ariables” or “Update Va ariables” Buttton to impoort or
uupdate the variables.
v
⑥ DDevice Variaables: Variables that are e imported from
f the External Devicee are shown n.
A
Additional Information
When the “Route path h” Check Boxx is selected
d in the “Com
mmunicationns Configura
ation”
Column, th
he “IP Addre ess” Field ch
hanges to the “Route Paath” Field.
The “Routee Path” Field
d is used whhen connectting the
External Device
D via router.
The entry format
f is ”Poort No.%add dress”.
Example) 1%192.168..250.30
26
6-2 Importing
g Variable
es when External Device is
s CJ-CIP
There are the following
g three methhods to impo ort variables
s when the C
CJ-CIP is se
et as Externa
al
Device.
Imporrting and upd dating variab
bles directly
y from device e
Directt entry
Copy and paste frrom Excel o or other files
he next page
Refer to th e for each vaariable impoort method.
6-3 Importing
g and Upd
dating Va
ariables Directly
D frrom Devicce
This metho od directly im
mports the vvariable information from
m the CJ by connecting the CJ to thhe
PC that im
mports the va ariables with
h an Etherne et cable.
As the CIPP protocol is used in thiss method, the variable im
mport is avaailable within
n the CIP
function sccope that is supported bby the CJ.
Additional Inform
mation
Unlikke the NJ/NX
X, the CJ ca
annot importt its system--defined variiables. Only
y the variable
es
whose network address is sset and the address
a is allocated by tthe CX-Proggrammer ca an
mported to the Sysmac Studio.
be im
he following procedure to
Perform th d update varriables direcctly from the CJ.
o import and
porting varia
Imp ables from the CJ
1
Click “Device References”
C R - “Add”
->
> “ExternalDe
-> evice” to
a
add ”ExternalDDevice0”.
2
S
Select CJ for th
he “Device Se eries”
F
Field, CIP-Etheernet for the
“C
Communicatio on Driver” Field and
e
enter the IP ad
ddress of the device.
d
27
3
Connectt the CJ with ana Ethernet
cable annd click the “Im
mport Variables”
Button.
4
Make suure that the CJJ variables are
e
automatically entered in the “Devicee
Variable
es” Column, wh hich means th he
operation ends successsfully.
28
After the variable
v is im
mported, youu can import only the diffferences in tthe variables that were
changed oro added by the Externa l Device by clicking the “Update Vaariables” Buttton next to the t
“Import Vaariables” Buttton. You do
o not necesssarily have to
o click the “Immport Variables” Buttonn
before “Uppdate Variab bles” Button..
he following procedure to
Perform th o import the
e differences
s in the CJ vvariables by clicking the
“Update Vaariables” Bu
utton.
“Up
pdate” proceedure
1
OOn the Externa al Device0 Tabb Page,
sselect CJ for th
he “Device Series”
FField, CIP-Etheernet for the
“CCommunicatio on Driver” Field and
eenter the IP adddress of the device.
d
2
AAfter clicking th
he “Update Vaariables”
BButton, the pop p-up page apppears as
sshown on the right.
r note 1))
S
Select the varia
able and click the
“C
Copy Selected d Right to Leftt” or
“C
Copy All Rightt to Left” Butto
on.
3
A
After the variab bles are copied at the
le t ”Apply” Bu
eft side, click the utton to
a
apply the results.
A
After the resultts are applied, click
he ”Close” Bu
th utton to close the pop-
u
up page.
4
T
The copied varriable is added
d in the
“D
Device Variab
bles” Column.
29
6--4 Direcct Entry
In this method, you
y can direc
ctly enter a vvariable nam
me in the “Device Variabbles” Colum
mn of the
Sysm mac Studio. Between thee NA and CJJ is commun nicated with variable naames, so you
u don’t
need t “AT” Fie
d to enter in the eld for the C
CJ-CIP.
A
Additional Information
When com mmunicating with the CJ -CIP, a tag comparison error occurrs after trans sferring
the variable informatio
on to the NA
A if the variab
ble informatiion that you entered is different
d
nformation in
from the in n the CJ Uniit.
The following items arre checked dduring the taag comparison.
・Variable name,
n structure name, sstructure me ember name e
・Variable data
d type, sttructure data
a type, struc
cture membe er data typee
・Number ofo array for variables,
v nuumber of arrray for structtures, numbber of array for
f
structure member
m
”Direct en
ntry” proced
dure
1
Click “D nces” -> “Add”
Device Referen
-> “Exte
ernalDevice” to
o
add ”ExxternalDevice00”.
2
Select C
CJ for the “Devvice Series”
d enter the IP address of the
Field and
device.
3
Enter thee “Name” and “Data Type”
Fields off the “Device Variables”
V
Column..
4
After tran
nsferring the information to
the devicce, make suree that no error
occurs aand the devicee operates
normallyy.
A
Additional Information
For array variables,
v en
nter ”data tyype [number of array]” in
n the “Data T
Type” Field.
Example) For DINT va ariable when n number of array is 10::DINT[9]
30
6-5 Copy and Paste
In addition to the direct entry, you can copy the variable information from Excel or text files and
paste it to the “Device Variables” Column of the Sysmac Studio. To copy and paste the
information to the “Device Variables” Column, the variable information must be placed in the
specified order in the file.
The variable information cannot be copied directly from the CX-Programmer and pasted to the
“Device Variables” Column of the Sysmac Studio. However, the information of the CX-
Programmer can be copied from Excel or text files and pasted.
Perform the following procedure to copy the information of the CX-Programmer from Excel
and paste it to the “Device Variables” Column.
”Copy & paste” procedure
1
Open the variable table of the CX-
Programmer, select the variables,
right-click-> select “Copy” or press
the [Ctrl+C] keys to copy the
variables.
2
Paste the copied data in the Excel
sheet.
3
Change the order of the pasted data
as follows:
“Name-> Data Type-> Comment->
Address/Value”
31
4
Copy the
e variable in th
he Excel shee
et.
*Exclude
e the heading lines on top
such as “Name”, “Dataa Type” etc.,
when yoou copy the va
ariables
information.
5
In the “DDevice Variables” Column,
right-clicck and select “Paste”
“ or pres
ss
the [Ctrl+ +V] key to passte the
variabless.
32
7W
When
n CJ--FINS
S is Conne
ected
This sectio
on explains how
h to impo
ort the variab
bles when th
he CJ2 is seet as Externa
al Device.
Refer to th
he next page
e for the proccedures to import the CJ-FINS
C variaables.
7-1 W
Window to
t Set CJ
J- FINS a
as Externa
al Device
e
This sectio
on explains the
t window that sets the e CJ-FINS External
E Devvice.
The following window appears by right-clickinng “Device References”
R >
-> “Add” ->
Device”, and selecting C
“ExternalD CJ for the “Deevice Series
s” Field, andd FINS Etherrnet for
the ”Commmunication Driver”
D Field..
①
②
③
④
33
7-2 Address Range
When using the FINS for the communication, you must enter the applicable variable address.
The upper limit and the applicable area range of the address depend on the device model.
For the details, refer to the relevant manual of the device used.
When using the “Copy and paste from Excel or other files” method, you can get the source
information from the following two windows of the CX-Programmer.
① Variable table: To copy the physical address with a comment.
② Usage overview with comments: To copy the physical address accessed with the ladder
programming.
Additional Information
For the CJ-FINS, the variable names or data types are not necessary to be the same as
the variables in the CJ, but the accurate address must be entered in AT.
Additional Information
As the FINS protocol is used for the communication, variables that require the definition
of data type such as structure variable are not supported.
34
7-4 Direct En
ntry
In this metthod, you ca
an directly en
nter a variab
ble name in the “Device Variables” Column
C of th
he
Sysmac Sttudio.
Between th he NA and CJ
C is commu unicated witth the physic
cal address, you don’t need
n to enter in
the “AT” Field.
F
You don’t necessarily have to use e the CX-Proogrammer to o set variablees.
1
Click “Device References”
C R - “Add”
->
> “ExternalDe
-> evice” to
a
add ”ExternalDDevice0”.
2
S
Select CJ for th
he “Device Se eries”
F
Field and FINSS Ethernet for the
“C
Communicatio on Driver” Field.
3
E
Enter the “Netw
work Address”” and
“N
Node Addresss” Fields.
4
E
Enter the varia
able informatio
on in the
“D
Device Variabbles” Column.
T
The variable na
ame can be different
frrom the name described in the CX-
P
Programmer.
F
For the variablee that is not se
et in the
C
CX-Programme er, refer to the
e table in
7
7-2 ”Address Range”
R when entering
th
he ”AT” Field.
35
5
Change FINS Settingss on the HMI
Settings Tab.
In the “F
FINS Address”” Column,
enter the
e network adddress value thaat
you enteered in Step 3 to the “Ethern
net
port” Fie
eld of Network.
6
Make suure that no erro
or occurs whe
en
the NA sstarts and the values are
displaye
ed normally, which means thhe
operation ends successsfully.
A
Additional Information
For a BOO OL variable, enter a valu
ue in a rangee of 00 and 15 to two deecimal place
es of the
address.
e of decimal places is no
If the value ot set to the
e address of the BOOL vvariable, a ta
ag
compariso on error occu
urs when thee NA starts.
Example) 0000.00
0
36
7-5 Copy and Paste
In addition to the direct entry, you can copy the variable information of the External Device to
Excel or text files and paste it to the “Device Variables” Column of the Sysmac Studio.
The variable information cannot be copied directly from the CX-Programmer and pasted to the
“Device Variables” Column of the Sysmac Studio. However, the information of the CX-
Programmer can be copied from Excel or text files and pasted.
To copy and paste the information to the “Device Variables” Column, the variable information
must be placed in the specified order in the file.
You can copy AT information from the ”Variable table” or ” Usage overview with comments” in
the CX-Programmer. Use any one of the two methods as appropriate.
Variable table Displays and obtains a list of the variables for all of the memory areas and the
physical address with comments. The address without comment cannot be added to
the list even the address is used in the program.
Usage overview with Displays all of the address used with ladder in the project for each memory area
comments regardless with/without a comment. You need to copy the physical address for each
memory area.
Additional Information
If a comment is given to the address used in the CJ program, it is automatically added to
the variable table as a variable without a name. If no comment is given, the variable is
not added to the variable table.
If you want to refer to the NA communication address with this method, give a comment
to the physical address.
Additional Information
A building error occurs when pasting the variable to the Sysmac Studio, if a variable
name is blank. To avoid the error, a variable name must be added in the Excel sheet.
Additional Information
Only the ”BOOL” or ”CHANNEL” data type can be used for a variable (physical address)
without a name. For this reason, if you want to change the data type as desired, copy
the data type from the CX-Programmer to a file before changing the data type.
37
1
Open the e variable table of the CX-
Program mmer, select th he variables,
right-clicck-> select “Coopy” or press
the [Ctrl+ +C] keys to coopy the
variabless.
2
Paste the copied data
a in the Excel
sheet.
3
Change the order of th
he pasted data
a
ws:
as follow
“Name-> > Data Type->
> Comment->
Addresss/Value”.
4
o “Name” if
Add variable names to
they are blank.
5
Change the data typess as desired in
n
el sheet.
the Exce
If you do
on’t need to make any
change, skip this step.
38
6
C
Copy the variables that you edited in
th
he Excel shee
et.
C
Copy the four columns
c includ
ding
“Name”, “Data a Type”, “Com mment”,
and “Address/V
a Value.
7
Inn the “Device Variables” Co olumn,
riight-click and select “Paste”” or click
thhe [Ctrl+V] keyy to paste the
vvariables.
Additional Inform
mation
For a BOOL varriable, enter a value in a range of 00 0 and 15 to ttwo decimal places of th
he
addrress.
If the
e value of de
ecimal place
es is not set to the addre
ess of the B
BOOL variabble, a tag
comparison erro or occurs wh
hen the NA starts.
s
Exam mple) 0000.00
”Coopy & paste” procedure e” using “us sage overvie ew with com mments”
Thiss section exp
plains how to
o copy the adddress in the
e ” Usage ove erview with ccomments” of
o the CX-
Programmer, ad dd the variab
ble informatio
on, and paste evice Variab les” Column of the Sysm
e it to the “De mac
Studdio.
Additional Inform
mation
The “Usage ove
erview with ccomments” displays
d the used variabbles regardle
ess with or
witho
out a comment. A reporrt can be cre
eated only fo
or each addrress area.
Additional Inform
mation
A bu
uilding error occurs whe
en pasting th
he variable to
o the Sysmaac Studio if a variable
nam
me is blank. To
T avoid the
e error, a varriable name must be addded in the Excel
E sheet.
Additional Inform
mation
The ”BOOL” or ”CHANNEL”
” ” data type only
o can be used for a vvariable (phyysical address)
witho
out a name. For this rea
ason, if you want to change the dataa type as deesired, copy
the data
d type fro
om the CX-PProgrammerr to a file beffore changinng the data type.
t
39
1
Select ”VView” -> “Crosss-Reference
Report” in the CX-Programmer to
display tthe cross-referrence report.
2
Select ”U
Usage overvie ew with
commen nts” from the “R
Report type”
pull-dow
wn list.
3
Select thhe address areea to display
from thee “Memory area” pull-down
list, and click the “Gen
nerate” Button to
display tthe “Usage ovverview with
Commen nts”.
4
Select th
he variable to copy from the e
displayeed list, and righ
ht-click and
Copy” or click the
select “C t [Ctrl+C] ke ey
to copy tthe variables.
40
5
PPaste the copie
ed data in the Excel
ssheet.
6
D
Delete the blan
nks and chang ge the
o
order of the pa
asted data as follows:
f
“N
Name-> Data Type-> Comm ment->
A
Address/Value e”.
7
A
Add variable naames to “Nam
me” if
th
hey are blank..
8
EEnter the data types in the Excel
E
ssheet.
9
C
Copy the variables that you edited in
th
he Excel shee
et.
C
Copy the four columns
c includ
ding
“Name”, “Data a type”, “Commment”,
and “Address/V
a Value.
10
Inn the “Device Variables” Co olumn,
riight-click and select “Paste”” or click
thhe [Ctrl+V] keyy to paste the
vvariables.
41
Additional Information
For a BOOL variable, enter a value in a range of 00 and 15 to two decimal places of the
address.
If the value of decimal places is not set to the address of the BOOL variable, a tag
comparison error occurs when the NA starts.
Example) 0000.00
42
Revision History
Revision code Date Revised content
September Original production
01
2015
43
OMRON AUTOMATION AND SAFETY • THE AMERICAS HEADQUARTERS • Chicago, IL USA • 847.843.7900 • 800.556.6766 • www.omron247.com
OMRON ELECTRONICS DE MEXICO • SALES OFFICE OTHER OMRON LATIN AMERICA SALES
Apodaca, N.L. • 52.81.11.56.99.20 • 01-800-226-6766 • mela@omron.com 54.11.4783.5300
OMRON EUROPE B.V. • Wegalaan 67-69, NL-2132 JD, Hoofddorp, The Netherlands. • +31 (0) 23 568 13 00 • www.industrial.omron.eu
V417-E1-01 09/15 Note: Specifications are subject to change. © 2015 Omron Electronics LLC Printed in U.S.A.