V092 PDF
V092 PDF
V092 PDF
V092-E1-13
NS-Series
NS15-TX01(□)-V2
NS12-TS0□(B)-V1/V2, NS10-TV0□(B)-V1/V2
NS8-TV□□(B)-V1/V2, NS5-TQ□□(B)-V2
NS5-SQ□□(B)-V1/V2, NS5-MQ□□(B)-V2
NSJ12-SQ0□(B)-G5D, NSJ10-TV0□(B)-G5D
NSJ8-TV0□(B)-G5D, NSJ5-TQ□□(B)-G5D
NSJ5-SQ□□(B)-G5D
NSH5-SQR□0B-V2
Programmable Terminals
Intended Audience
This manual is intended for the following personnel, who must also have knowledge
of electrical systems (an electrical engineer or the equivalent).
・ Personnel in charge of introducing FA systems into production facilities.
・ Personnel in charge of designing FA systems.
・ Personnel in charge of installing and connecting FA systems.
・ Personnel in charge of managing FA systems and facilities.
General Precautions
・ The user must operate the product according to the general specifications described
in the Setup Manuals.
・ Do not use the PT touch switch input functions for applications where danger to
human life or serious property damage is possible, or for emergency switch
applications.
・ Before using the product under the following conditions, make sure that the
ratings and performance characteristics of the product are sufficient for the
systems, machines and equipment, and be sure to provide them with a fail safe
circuit, and then consult your OMRON representative.
・ This manual provides information for connecting and setting up an NS-Series PT.
Be sure to read this manual before attempting to use the PT and keep this manual
close at hand for reference.
1
Safety Precaution
2
Precautions and Suitability for use
Installation precautions
・ When unpacking the Units, check carefully for any external scratches or other
damage. Also, shake the Units gently and check for any abnormal sound.
・ Do not touch the surface of the circuit board or the components mounted on it with
your bare hands. Discharge any static electricity from your body before handling
the board.
・ Do not install the PT in any of the following locations:
・ Provide proper shielding measures when installing in the following locations:
・ Use of the product under conditions and environments that are not described
in the manual.
・ Application of the product to nuclear control systems, railroad systems,
aviation systems, vehicles, combustion systems, medical equipment,
amusement machines, safety equipment, and other systems.
・ Use that may have a serious influence on lives and property if used improperly
and requires the extra safety.
・ Locations subject to extreme temperature changes.
・ Locations subject to temperatures or humidity outside the ranges in the
specifications.
・ Locations subject to high humidity that may result in condensation.
・ Locations that would subject the PT to chemicals.
・ Locations that would subject the PT to oil.
・ Locations subject to corrosive or flammable gases.
・ Locations that would subject the PT to direct shock or vibration.
・ Locations that would directly expose the PT to wind or rain.
・ Locations subject to strong ultraviolet light.
・ Locations subject to static electricity or other sources of noise.
・ Locations subject to strong electromagnetic fields.
・ Locations near to power supply lines.
・ Locations subject to possible exposure to radiation.
・ Ground the Unit correctly to prevent operational errors caused by noise.
・ Confirm that the current capacity of the connected device is 250 mA or less before
using the +5V power supply from pin 6 of the serial port A, B connectors. The +5V
output of the PT is 250 mA max. at 5 V±5%.
・ The mounting panel must be between 1.6 and 4.8 mm thick. Tighten the Mounting
3
Brackets evenly to a torque of between 0.5 and 0.6 N・m to maintain water and dust
resistance. The front sheet may become distorted if the tightening torque is more
than the specified limit or not uniform. Make sure the panel is not dirty or warped
and that it is strong enough to hold the Units.
・ Do not let metal particles enter the Units when preparing the panel.
・ The connector's pull load is 30 N. Do not subject the connectors to a greater load
than that specified.
・ Turn OFF the power supply before connecting or disconnecting cables.
・ Always tighten the connector screws after connecting communications cables.
Power precautions
・ If conformance to EC Directives (Low Voltage Directive) is required, use reinforced
insulation for the power supplies.
・ Do not connect an AC power supply to the power terminals.
・ Use a DC power supply with minimal fluctuation voltage.
・ Do not perform a dielectric voltage test.
・ Check the power supply voltage and supply at the recommended voltage. For power
consumptions of NS-series PT, refer to the NS-Series Setup Manual and the NSJ
Series Setup Manual and NSH-series Setup Manual.
・ Use a twisted-pair cable with a cross-sectional area of at least 2 mm2 to connect to
the power terminals and always use M3.5 crimp terminals. Tighten the terminal
screws to a torque of 0.8 N・m. Make sure the screws are properly tightened.
4
periodically read signals to confirm that the PT is normally operating.
Operating precautions
・ Do not press the touch switch with a force greater than 30 N.
・ Confirm the safety of the system before pressing touch switches.
・ Do not accidentally press touch switches when the backlight is not lit or when the
display does not appear.
・ Signals from the touch switches may not be input if the switches are pressed
consecutively at high speed. Confirm each input before proceeding to the next one.
・ Before initializing screen data, confirm that existing data is backed up at the other
sites such as a computer.
・ When changing the password with the system menu, do not reset or turn OFF the
power supply until writing is finished (i.e., until the Write Button returns to its
original condition). It may become impossible to manipulate screens if the
password is not set correctly.
5
Terminology
The following terminology is used in this manual.
All brand names and product names are trademarks or registered trademarks of their
respective companies.
6
Related Manuals
For CX-Designer Programmable Terminal Operating Procedures
CX-Designer User's Manual .................................................................................. V074-E1[]
Refer to this manual to confirm operation procedures and setting items of
CX-Designer while you are creating screens. The online help is also available from
CX-Designer. When you do not know an operating procedure, press the F1 key in a
screen to view the specific online help information.
7
Contents
INTRODUCTION ...................................................................................................................... 1
TERMINOLOGY ....................................................................................................................... 6
CONTENTS ............................................................................................................................... 8
8
2-4 ACCESSIBLE ADDRESS RANGE ...................................................................................... 25
2-5 DATA FORMAT ............................................................................................................... 27
2-5-1 Numerals ............................................................................................................. 27
2-5-2 Strings.................................................................................................................. 27
2-6 ADDRESS CONVERSION WHEN CHANGING HOST TYPES .............................................. 28
2-7 PRECAUTIONS ............................................................................................................... 29
2-7-1 Macro functions ................................................................................................... 29
9
4-3 APPLICABLE COMMUNICATION CABLES ....................................................................... 46
4-3-1 For NS-series PTs Excluding NSH-series PTs .................................................. 46
4-3-2 For NSH-series PTs............................................................................................. 46
4-4 ACCESSIBLE ADDRESS RANGE ...................................................................................... 47
4-5 DATA FORMAT ............................................................................................................... 49
4-5-1 Numerals ............................................................................................................. 49
4-5-2 Strings.................................................................................................................. 49
4-6 ADDRESS CONVERSION WHEN CHANGING HOST TYPES .............................................. 50
4-7 PRECAUTIONS ............................................................................................................... 51
4-7-1 Macro Functions .................................................................................................. 51
4-7-2 Limitation of Communication Restoration ........................................................ 51
4-7-3 Address Replacement.......................................................................................... 52
4-8 TIPS ON CREATING SCREEN DATA ................................................................................ 53
4-8-1 How to Avoid Inputting Invalid Values as COUNTER in the Numeral Display
& Input Functional Objects ............................................................................................... 53
4-8-2 How to Display a Value of SIMATIC_TIME Type by its Original Mean ......... 54
10
6-1-3 Connection Structure .......................................................................................... 64
6-2 SYSTEM CONFIGURATION ............................................................................................. 65
6-2-1 Connection Method and Wire Connection ......................................................... 65
6-2-2 Communications Settings for MP Series Controller ......................................... 66
6-2-3 Communications Settings for Project (NS screen data) ................................... 66
6-3 COMMUNICATION CABLES ............................................................................................ 69
6-3-1 Using NS-series PTs Other Than NSH-series PTs ........................................... 69
6-3-2 Using NSH-series PTs ........................................................................................ 71
6-4 ACCESSIBLE ADDRESS RANGE ...................................................................................... 72
11
8-5 PLC DATA FORMAT....................................................................................................... 98
8-5-1 Numerals ............................................................................................................. 98
8-5-2 Strings.................................................................................................................. 98
8-6 ADDRESS CONVERSION WHEN CHANGING HOST TYPES .............................................. 99
12
11-2-1 Communication Settings of the PLC (Personal Computer Link Module) ..... 139
11-2-2 Recommended Setting Examples ..................................................................... 139
11-3 COMMUNICATION CABLES .......................................................................................... 141
11-3-1 Using NS-series PTs Other than NSH-series PTs .......................................... 141
11-3-2 Using NSH-series PTs ...................................................................................... 143
11-4 ACCESSIBLE ADDRESS RANGES .................................................................................. 145
11-5 ADDRESS CONVERSION WHEN CHANGING HOST TYPES ............................................ 147
13
Chapter 1 Preparation and Screen Data Creation
1-1 Preparation
The followings items are required in order to use functions explained in this manual.
Please prepare them before you use.
・ CX-Designer Version 2.00 or later
・ NS-V1, NS-V2, NSJ or NSH-series PT
・ PT system program Version 6.60 or later
14
How to check the version of PT system program
1) Power on the PT.
2) Press any 2 corners of the PT screen at the same time to proceed to the system
menu.
3) Touch the Special screen Tab.
4) Touch the System Version Button.
5) The screen as shown right will be displayed.
Check the circled number.
This example shows the system version
6.60. (Note: Do NOT confuse with "Project
Data Version". It is NOT the version of the
PT system program.)
15
1-2 Creating Screen Data
This section provides general procedures of how to create screen data, providing an
example of connecting to Mitsubishi FX Series sequencer to PORTA on a PT. Even
when connecting other PLC to PT, you can create screen data in the same way.
1) Start up CX-Designer and select File Menu -
New Project.
16
With the procedures above,
the preparations for
creating screens are
completed. Now you can
create screens using
extensive ranges of
functional objects including
lamps and buttons.
For the general usages of CX-Designer and the method of transferring screen data to a
PT, refer to CX-Designer User's Manual, CX-Designer Introduction Guide and
CX-Designer Online Help.
17
1-3 Restrictions and Notes on Connecting Non-OMRON PLCs
Please read the following restrictions and notes carefully and make sure them when
you connect the host (except SYSMAC PLC) to NS-series PT. Here, only general
restrictions and notes are provided. For instructions of each host type, refer to the
chapter that describes each host type.
1-3-1 Notes and Restrictions When Changing Host Types
When converting host type using Comm. Setting Dialog Box, please pay attention to
the following.
1) When any addresses of the host before converting are already used, host types can
be converted only between SYSMAC PLC and other host types. Conversion
between host types (except SYSMAC PLC) is not allowed.
2) When host type being converted, addresses are automatically converted by
predetermined rule. Details of the rule are described in the chapter of each host
type.
3) When addresses being converted automatically, addresses which cannot be
mapped to new host type are not converted. This may cause invalid addresses, so
please search and modify such addresses after host conversion by the following
procedure.
18
1-3-2 Restrictions on Macro Functions
The following macro functions are NOT supported for any host types except SYSMAC
PLC.
・ READHOSTB
・ READHOSTW
・ WRITEHOSTB
・ WRITEHOSTW
1-3-3 Differences of Data Format in PLCs, and Restrictions Caused by Them
Data format depends on host type. For such reason, be careful when using macro
functions that read/write data from/to non-SYSMAC.
For details on each host type, refer to Data format and Notes sections in the
corresponding chapters of each.
1-3-4 Restriction on Using Functions Monitoring a Large Number of Addresses
When connecting to a host except SYSMAC PLC, functions which monitor large
number of addresses ―Data Log, Alarm/Event, and so on― may slow responses.
Moreover, monitoring inconsecutive addresses may make it worse. This is caused by a
performance limitation of communicating with the host. Therefore, when using these
functions, please minimize the number of monitoring addresses, and design the system
to be able to monitor consecutive addresses as possible as you can.
1-3-5 Notes for Using RS-232C of NSH-series PTs
Use the cable NSH 5-232UL-[]M for connecting NSH-series PT and any type of host
except SYSMAC PLC. If NSH 5-232CW-[]M is used, an NSH-Series PT cannot
communicate with the host which uses RS/CS signals.
1-3-6 Notes for Using Function Switches of NSH-series PTs
Function Switches of NSH-series PT whose status is notified to the host by
communication is supported by ONLY SYSMAC PLCs. Any type of host described on
this manual does NOT support these function switches.
Hard-wired function switches are supported any type of hosts.
1-3-7 System Memory Compatibility with the NT Series
This function will not work when connected to a PLC that is not manufactured by
OMRON.
1-3-8 Restriction on Using Functions Connecting Except for a Serial Port Where a
Communication Error Occurs
This function will not work when connected to a PLC that is not manufactured by
OMRON.Please select No in the Comm. Setting Dialog Box.
19
Chapter 2 Connecting to Mitsubishi A sequencers
20
2-2 Connection configuration
2-2-1 Overview of Connection Method
Connect NS-Series PT to Mitsubishi A Series as illustrated below. Make cable
according to the connection diagram. For detailed information of cables, please refer to
2-3 Communication Cables.
21
2-2-3 Communication Setting for NS project (screen data)
1) Click PT Menu - Communication Setting
22
2-3 Communication Cables
2-3-1 For NS-series PTs Excluding NSH-series PTs
Using 9-pin RS-232C interface on the computer link unit
Make cable according to the connection diagram below. Bold line with an asterisk mark
('*') can be omitted when the computer link unit is configured not to check CD signal.
PT Serial Port Mitsubishi A series Computer Link Unit
(excluding NSH) (RS-232C, 9pin)
Connector Signal Pin No. Pin No. Signal Connector
FG 1 * 1 CD
SD 2 2 RD
RD 3 3 SD
RS 4 4 DTR
D-Sub D-Sub
CS 5 5 SG
9 pin 9 pin
+5V 6 6 DSR
Male Male
7 7 RS
8 8 CS
SG 9 9
Shield
Hood Hood
RS-232C/RS-422A Converter
Mitsubishi A Series Computer Link Unit
model NS-AL002
(RS-422)
Connector Signal No.
FG 1 Signal Connector
RDB(+) 2 RDA(+)
SDB(+) 3 RDB(-)
RS-422A RSB(+) 4 SDA(+)
Terminal block
Terminal block 5 SDB(-)
RDA(-) 6 SG
SDA(-) 7 FG
RSA(-) 8 Shield * Connect to FG which is class D grounded.
Note: If NS cannot be grounded for some reason, shield wire also needs to be connected
to FG of NS-AL002.
23
2-3-2 For NSH-series PTs
Using 9-pin RS-232C interface on the computer link unit
Use the NSH 5-232UL-[]M cable for NSH-series, and connect its D-Sub connector to
the computer link unit using the cable below.
Loopback connecters are mounted on the CN7 and CN8 connecters of the NSH cable.
Remove the connecters and connect the CN7 and CN8.
24
2-4 Accessible Address Range
Screen data can access the following addresses of A series sequencer. The devices with
YES in the table can be accessed with all range of devices' numbers that your
sequencer supports. Read carefully the restrictions and notes below the table.
25
sequencer rewrites word that contains bits which PT is also going to rewrite.
This is because bit writing for word devices is implemented by reading 1 word that
contains those bits and then writing it back to the sequencer.
4) M, L, and S share same area and any device number of M, L and S can be accessed
with any device name of M, L and S. However, please avoid accessing same
address with different notation, because it makes communication slower.
5) Bit device can be specified where word device is usually specified (except for Timer
contact and Counter contact). In this case, only addresses that are divisible by 16
can be specified, and address number must be suffixed by 'W', which means word
access. For example, addresses such as X0W, Y10W, S16W and M224W can be
specified for Numeral Display & Inputs object.
Make sure that device numbers of X, Y, and B are noted by hexadecimal. Therefore,
addresses such as X0, X10, X20, X30 and X100 etc. are divisible by 16. Please note
that X16 and X32 are not divisible by 16.
6) Word devices can be specified into address input columns where bit device is
usually specified. To do so, suffix a period to the device number and specify the bit
position (0 to 15) after that. For example, D123.12 can be specified for a display
address of a bit lamp.
7) Even M8992 to 8999 and M9256 to 9263 do not exist, word access from M8992 and
M9248 are exceptionally accepted. When reading, not existing addresses are
always 0. When writing, they are ignored.
8) Do not allocate devices T and C to the String Display & Input object.
9) When specifying "Timer contact" or "Counter contact" on CX-Designer, use "TU" or
"CU" as a device name.
10) Expansion file register (00R to 64R) can be used. To specify device numbers of
them, write "R<block #>_<device #>" (e.g. "R04_00012").
26
2-5 Data Format
2-5-1 Numerals
NS treats the numeric data stored in A sequencer as little-endianed.
For example, when 16bit integer
Address D0
value 0x1234 is written into D0 from Bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Value 0 0 1 0 1 1 0 0 0 1 0 0 1 0 0 0
NS, sequencer's memory becomes Value(hex) 0x1234
like right.
Another example, 32bit integer value 0x12345678 is written, sequencer's memory
becomes like below.
Address D0 D1
Bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Value 0 0 0 1 1 1 1 0 0 1 1 0 1 0 1 0 0 0 1 0 1 1 0 0 0 1 0 0 1 0 0 0
Value(hex) 0x5678 0x1234
Even when NS accesses bit devices as a word device, the rule is as same as above.
For example, when the status of M Device M
2-5-2 Strings
ASCII String
For example, when an ASCII string Address D0 D1 D2 D3
Value(char) "AB" "CD" "EF" NULL NULL
"ABCDEF" is written from NS, sequencer's Value(hex) 0x4241 0x4443 0x4645 0x0000
Unicode String
For example, when a Unicode string "ABCDEF" is written from NS, sequencer's
memory becomes like below.
Address D0 D1 D2 D3 D4 D5 D6
Value(char) A B C D E F NULL
Value(hex) 0x0041 0x0042 0x0043 0x0044 0x0045 0x0046 0x0000
27
2-6 Address Conversion When Changing Host Types
Changing host types between OMRON PLCs
When host type is changed between SYSMAC PLC and A series PLC, address types
(areas / devices) are automatically changed according to the table shown right (see the
figure below). SYSMAC PLC MELSEC-A
CS, CJ, etc… A Series sequencer
SERIALA:HR00000.7 SERIALA:L00007
CIO M
HR L
AR ―
LR B
TIM T
CNT C
SERIALA:DM00123 SERIALA:D00123 DM D
WR W
"―" in the right table means those addresses EM ―
cannot be mapped to new PLC's address, so they EM0~EMC ―
TU TU
will not be changed. This may cause invalid CU CU
addresses (see the figure below), so you have to ― X
―
modify such invalid addresses by yourself. Refer
Y
― F
to 1-3-1 Notes and Restrictions When Changing ― S
―
Host Type for how to find and modify them. R
― xxR
SERIALA:AR00000.7 SERIALA:AR00000.7 ― TC
― CC
SERIALA:EM00123 SERIALA:EM00123
Noottee:: Address numbers will be changed to make their bit offsets equal. For example,
N
HR00003.12 is the 60th bit (60=16×3+12), so will be converted to L00060.
The opposite is same. L00080W of MELSEC-A will be changed to HR00005 of SYSMAC,
and L00084 to HR00005.4.
28
2-7 Precautions
See also instructions shown in 2-4 Accessible Address Range.
2-7-1 Macro functions
Precaution for Macro function (READCMEM/WRITECMEM)
Data length that can be read/written at once with READCMEM/WRITECMEM
depends on your sequencer and computer link unit. Please see Mitsubishi's manuals
that describe details of computer link. The limitation will be written as "Number of
points processed in one-time update" in those manuals.
If too large data length is specified, a macro error will occur.
Noottee:: Some models of sequencer rejects 32 words reading command. In such a case,
N
please divide 32 words into some pieces, and execute READCMEM some times.
When writing 64 bytes length of ASCII string from NS's $W1000 to FX's D0, program
as follows (adapt mitsubishi_a_hostname to your environment). The program below
first changes the byte-order to sequencer's format, then writes it to sequencer, and
finally re-changes to NS-format.
SWAP($W1000,32);
WRITECMEM([mitsubishi_a_hostname:D00000],$W1000,32);
SWAP($W1000,32);
Noottee:: Some models of sequencer rejects 32 words writing command. In such a case,
N
please divide 32 words into some pieces, and execute WRITECMEM some times.
29
Chapter 3 Connecting to Mitsubishi FX Sequencers
3-1-2 Protocol
Computer Link is supported. Use a communication expansion board or communication
expansion unit when necessary. For further information, refer to 3-2 Connection
Configuration.
30
3-2 Connection Configuration
3-2-1 Overview of Connection Method
Connect NS-series PT to Mitsubishi FX Series as illustrated below. Use a
recommended model of cable or make cable according to the connection diagram. For
detailed information of cables, please refer to 3-3 Communication Cables.
NS series PT
Mitsubishi FX series
RS-232C Port
CPU unit
PORT A or PORT Cable (converter may be required
in some cases)
31
3-2-3 Communication Setting for NS project (screen data)
1) Click PT Menu - Communication
Setting….
32
3-3 Communication Cables
An applicable communication cable depends on the communication method of Serial
communication expansion board and the adapter. Prepare a cable applicable to your
configuration.
3-3-1 For NS-series PTs Excluding NSH-series PTs
Using 9-pin RS-232C Communication expansion board (FX[][]-232-BD) or 9-pin
RS-232C Communication special adapter (FX3U-232-ADP, FX2NC-232ADP)
Make cable according to the connection diagram below.
OMRON XW2Z-S002 (2m long) cable is also applicable. Even cable connection of
XW2Z-S002 is not same as the connection diagram above, it is applicable because both
NS and FX do not check control signals.
33
Using RS-485 Communication expansion board or Communication special unit
To communicate using RS-485 Communication expansion board or Communication
special unit on a sequencer, the PT requires an RS-232C/RS-422A Converter (OMRON
NS-AL002). Applicable cable is as illustrated below. Connect cable to NS-AL002, then
mount it on a serial port of the NS (Be sure to complete the connection before mounting
a NS-AL002 on a PT).
Set the DIP switch of NS-AL002 to 4-wire and enable terminator if necessary (see also
NS-AL002's instruction sheet). Enable the terminating resistance on the NS-AL002
when necessary. (To enable the terminating resistance, turn ON the DIP switch 4.)
If NS cannot be grounded for some reason, shield wire also needs to be connected to FG
of NS-AL002.
34
3-3-2 For NSH-series PTs
Using 9-pin RS-232C Communication expansion board (FX[][]-232-BD) or 9 pin
RS-232C Communication special adapter (FX3U-232-ADP, FX2NC-232ADP)
Use the NSH 5-232UL-[]M cable for NSH-series, and connect its D-Sub connector to
the computer link unit using the cable below.
35
Using RS-485 Communication expansion board or Communication special unit
Use the NSH 422UL-10M cable for NSH-series, and connect its loose wires with forked
terminal to the communication expansion board. Enable NSH-series and
communication expansion board/adapter's terminating resistor if necessary.
Please cut fork terminals if you do not need them.
36
3-4 Accessible Address Range
When Mitsubishi FX Series is used as a host, screen data can access the following
addresses. The devices with YES in the table can be accessed with all range of devices'
numbers that your sequencer supports. Read carefully the Restrictions and Notes
below the table.
37
X32 are not divisible by 16.
3) Word devices can be specified into address input columns where bit device is
usually specified. To do so, suffix a period to the device number and specify the bit
position after that (0 to 15). For example, D123.12 can be specified for a display
address of a bit lamp.
4) Avoid that both PT and sequencer write data to the same address. Otherwise, the
value changes that are made by a sequencer may be lost when a sequencer rewrites
word that contains bits which PT is also going to rewrite.
This is because bit writing is implemented by reading 1 word that contains those
bits and then writing it back to the sequencer.
5) Exceptionally, word access from S992 is accepted for sequencer whose device S is
up to 999. When reading, the higher 8 bits are always set to 0. When writing, lower
8 bits will be written to S992 to 999 and higher 8 bits will be ignored.
6) Each D and M has two types of areas ― normal area (0 to 7999) and special area
(8000 and above). These areas are internally treated as different devices. Therefore,
make sure not to place functional objects which access across these ranges.
Otherwise, errors will occur.
For example, if [Storage Type] is set to [UDINT (unsigned, 2 words)] for the
Numeral Display & Input object and D7999 is specified for [Address], error occurs.
Because this object reads data across D7999 and D8000. Also ensure that for the
String Display & Input setting, the ends of areas in which strings are stored are
not across the ranges.
7) Do not allocate devices T and C to the String Display & Input object.
8) Device name TU and CU are used in CX-Designer for the timer contact and the
counter contact respectively.
9) If functional objects which access across the C199-C200 range are placed, error will
occur when operating the project on PT.
For example, if a storage type is set to DINT (signed, 2 words) for the Numeral
Display & Input and C199 is specified for an address, an error occurs, because this
object reads data across C199 and C200.
10) When using 32 bit counters (C200 and above) for screen data, it is recommended
that the setting be made to access as 2 words.
It is also possible to make a setting as 1 word. But in this case, when writing, a PT
writes lower 16 bits and changes the higher 16 bits to 0.
For example, if the Storage Type is set to DINT or UDINT for the Numeral Display
& Input object (Recommendation setting for when using 32 bits counter) a PT
38
accesses a sequencer as 2 words. Note that if the Storage Type is set to INT or
UINT, not only higher 16 bits are ignored but also they are set to 0 when written.
39
3-5 Data Format
3-5-1 Numerals
The NS-series PT treats the numeric data stored in FX sequencer as little-endianed.
For example, when 16bit integer value 0x1234 is written into D0 from NS, sequencer's
memory becomes like right. Address D0
Bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Another example, 32bit integer Value 0 0 1 0 1 1 0 0 0 1 0 0 1 0 0 0
value 0x12345678 is written, Value(hex) 0x1234
3-5-2 Strings
ASCII String
For example, when an ASCII string
Address D0 D1 D2 D3
"ABCDEF" is written from NS, sequencer's Value(char) "AB" "CD" "EF" NULL NULL
Please make sure that NS handles string data by 1 word. So when the length of the
string is even, two byte of null characters will be appended.
Unicode String
For example, when a Unicode string "ABCDEF" is written from NS, sequencer's
memory becomes like below.
Address D0 D1 D2 D3 D4 D5 D6
Value(char) A B C D E F NULL
Value(hex) 0x0041 0x0042 0x0043 0x0044 0x0045 0x0046 0x0000
40
3-6 Address Conversion When Changing Host Types
"―" in the right table means those addresses cannot be mapped to new PLC's address,
and they are not changed. This may cause invalid addresses (see the figure below), so
please modify such invalid addresses by yourself. Refer to 1-3-1 Notes and Restrictions
When Changing Host Type for how to find and modify them.
SERIALA:HR00000.7 SERIALA:HR00000.7
SERIALA:EM00123 SERIALA:EM00123
Note: Address numbers will be changed to make their bit offsets equal. For example,
AR00003.12 is the 60th bit (60=16×3+12), so will be changed to AR00005 of SYSMAC,
and S00084 to AR00005.4.
41
3-7 Precautions
See also instructions shown in "3-4 Accessible Address Range".
3-7-1 Macro Functions
Precaution for Macro function (READCMEM/WRITECMEM)
Data length that can be read/written at once with READCMEM/WRITECMEM is
limited to the limitation of computer-link specification. It depends on model of
sequencer, so please see Mitsubishi's manuals that describe details of computer-Link.
The limitation will be written as "Number of points processed in one-time update" in
those manual.
If too large data length is specified, a macro error will occur.
When writing 64 bytes length of ASCII string from NS's $W1000 to FX's D0, program
as follows (adapt fx_hostname to your environment). The program below first changes
the byte-order to FX-format, then writes it to FX, and finally re-changes to NS-format.
SWAP($W1000,32);
WRITECMEM([fx_hostname:D00000],$W1000,32);
SWAP($W1000,32);
Note: Some models of sequencer rejects 32 words writing command. In such a case,
please divide 32 words into some pieces, and execute WRITECMEM some times.
42
Chapter 4 Connecting to Siemens S7-300 PLCs
43
4-2 Connection Configuration
4-2-1 Overview of Connection Method
Connect a PT to Siemens S7-300 series in the following methods. A Siemens SIMATIC
S7 HMI Adapter (6ES7 972-0CA11-0XA0) or Renu Gateway MPI Adapter is required.
Use a recommended model of cable or make it yourself according to the connection
diagram. For details on cables refer to 4-3 Applicable Communication Cables.
NS series PT
Cable
Siemens S7-300 Series
Serial Port
PLC
PORT A or PORT B
44
4-2-3 Communication Setting for NS Project (screen data)
1) Click PT Menu - Communication
Setting….
45
4-3 Applicable Communication Cables
Compatible cable depends on the combination of devices you use. Please use
appropriate cable depending on the devices used.
4-3-1 For NS-series PTs Excluding NSH-series PTs
OMRON XW2Z-S002 (2m long) cable is applicable.
When you make cables yourself, follow the connection diagram below.
PT Serial Port
SIMATIC HMI Adapter
(for excluding NSH)
46
4-4 Accessible Address Range
When using Siemens S7-300 series as a host, accessible addresses in screen data are as
follows. Devices with Yes in the following table can be used. Also read carefully the
Restrictions and Notes below the table.
3 4)) 3)
Address area name 1) Double word access Word access Bit access
(E, A, Z are German notation) Read Write Read Write Read Write
I (E) 2) YES No 5) YES No 5) YES No 5)
2) 5) 5)
Q (A) YES No YES No YES No 5)
M YES YES YES YES YES YES
DB 8) YES YES YES YES YES YES
6)
T (Present value) No No YES YES No No
C (Z) 2) (Present value) No No YES YES 7) No No
47
will be displayed.
6) When using C, make sure that
invalid values as COUNTER type
cannot be written. When writing
an invalid value, an error dialog
like right (error code may be
different) will be displayed.
7) Do not use nonexistent data block numbers.
48
4-5 Data Format
4-5-1 Numerals
I, Q, M, DB area
The PT treats the numeric data stored in S7-300 PLC as big-endianed.
For example, when 16bit integer Address M0 M1
Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
value 0x1234 is written into MW0
Value 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
from NS, PLC's memory becomes Value(hex) 0x12 0x34
like right.
Another example, 32bit integer value 0x12345678 is written, PLC's memory becomes
like below.
Address M0 M1 M2 M3
Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
Value 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0
Value(hex) 0x12 0x34 0x56 0x78
T area
Data format of T is pursuant to SIMATIC_TIME type format.
C area
Data format of C is pursuant to COUNTER type format.
4-5-2 Strings
ASCII String
For example, when an ASCII string Address M0 M1 M2 M3 M4 M5 M6 M7
"ABCDEF" is written from NS into MW0, Value(char) A B C D E F NULL NULL
Please make sure that NS handles string data by 1 word. So when the length of the
string is even, two byte of null characters will be appended.
Unicode String
For example, when a Unicode string "ABCDEF" is written from NS into MW0, PLC's
memory becomes like below. One Unicode character consists of 2 bytes. Higher byte
will be stored into prior address, and lower into posterior.
49
4-6 Address Conversion When Changing Host Types
Changing host types between OMRON PLCs
When host type is changed between OMRON PLC
and S7-300 series PLC, address types (areas /
SYSMAC PLC
SIMATIC S7-300
CS, CJ, etc…
devices) are automatically changed according to the CIO M
―
table shown right (see also the figure below).
HR
AR ―
In case changing host type of SERIALA from SYSMAC PLC to MELSEC-A LR ―
SERIALA:HR00000.7 SERIALA:L00007 TIM T
CNT C (Z)
DM ―
WR ―
EM ―
EM0~EMC ―
TU ―
SERIALA:DM00123 SERIALA:D00123
CU ―
― I (E)
"―" in the right table means those addresses cannot ― Q (A)
―
be mapped to new PLC's address, and they are not DBxxxx
changed. This may cause invalid addresses (see the figure below), so you have to
modify such invalid addresses by yourself. Refer to 1-3-1 Notes and Restrictions When
Changing Host Type for information on how to find and modify them.
SERIALA:HR00000.7 SERIALA:HR00000.7
SERIALA:EM00123 SERIALA:EM00123
Note: Address numbers will be changed to make their bit offsets equal. For example,
CIO00003.12 is the 60th bit (60=16×3+12) of CIO, so will be converted to M00007.4
(60=7×8+4).
It is same in reverse case. MW00004 of S7-300 will be converted to CIO00002 of
SYSMAC, and M00005.7 to CIO00002.15.
Note: When host type being changed from S7-300 to SYSMAC PLC, word access from
odd address (MW1, MW303, etc.) will not be changed automatically. This is because
they cannot be mapped to addresses of new PLC.
50
4-7 Precautions
See also instructions shown in 4-4 Accessible Address Range.
4-7-1 Macro Functions
Precaution of Macro function (READCMEM/WRITECMEM)
Data length that can be read at once with READCMEM is limited to 110, and writable
length at once with WRITECMEM is limited to 80.
If too large data length is specified, a macro error will occur.
Precaution when handling 32 bit length numeric data with macro function
Because of the difference of numeric format between NS and S7-300 series PLC,
word-order must be changed after reading 32 bit length data with READCMEM, and
also must be changed before writing with WRITECMEM. Otherwise, strange data
will be seen on NS or S7-300 PLC.
When reading 32 bit integer value from S7-300's MW0 to NS's $W1000, program as
follows (adapt s7_300_hostname to your environment).
READCMEM($W1000,[s7_300_hostname:MW00000],2);
SWAPL($W1000,1);
When writing 32 bit integer value from NS's $W1000 to S7-300's MW0, program as
follows. The program below first changes the word-order to S7-300-format, then writes
it to PLC, and finally re-changes to NS-format.
SWAPL($W1000,1);
WRITECMEM([s7_300_hostname:MW00000],$W1000,2);
SWAPL($W1000,1);
51
4-7-3 Address Replacement
When addresses are replaced between hosts for which SIMATIC S7-300 is set and
hosts for which other host types are set, the address numbers will be replaced in
principle considering bit absolute positions.
Addresses will not be replaced when there is no corresponding address in the
destination.
For example, when SERIALA is set to SYSMAC PLC, SERIALB is SIMATIC S7-300,
and when replacing SERAILA:DM0 to 99 with SERIALB:MW100, each DM0, DM1,
DM2, … will be replaced with MW100, MW102, MW104, ….
For another example, when SERIALB:MW0 to MW5 are replaced with SERIALA:D100,
each MW0, MW2 and MW4 will be replaced with DM100, D101 and D102. However
MW1, MW3 and MW5 will not be replaced since they do not have corresponding
addresses.
MW1 and MW3 are not replaced because there are no corresponding addresses
MW1 MW3
M0 M1 M2 M3 M4 M5 …
Before Replacing
MW0 MW2 MW4
After Replaced
DM100 DM101 DM102 …
For another example, when SERIALB:MW5 to MW9 are replaced with SERIALA:D100,
each MW5, MW7 and MW9 will be replaced with DM100, D101 and D102. However
MW6 and MW8 will not be replaced.
MW6 and MW8 are not replaced because there are no corresponding addresses
MW6 MW8
M5 M6 M7 M8 M9 M10 …
Before Replacing
MW5 MW7 MW9
After Replaced
DM100 DM101 DM102 …
52
4-8 Tips on Creating Screen Data
4-8-1 How to Avoid Inputting Invalid Values as COUNTER in the Numeral Display &
Input Functional Objects
For the S7-300 series, BCD values of 999 or less are valid as a counter. When writing
invalid values from a PT, an error dialog box will be displayed. However, making some
settings can avoid inputting invalid values. The procedure is described below.
1) Place numeral display & input object and double-click it.
2) A dialog box as shown right will be
displayed. Set the Display Type to 4
Decimal and the Storage Type to
BCD2 (unsigned 1 word).
3) Set Integer in Format group box to
3.
4) Click the Max/Min Tab.
5) Check Maximum Input Limit checkbox
and set the Value to 999.
6) Check Minimum Input Limit checkbox
and set the Value to 0.
5
53
4-8-2 How to Display a Value of SIMATIC_TIME Type by its Original Mean
A SIMATIC_TIME value consists of 16 bits. A set of higher four bits represents timer
unit (0000=10ms, 0001=100ms, 0010=1s, 0011=10s), and a set of lower 12 bits
represents significant (BCD). For example, SIMATIC_TIME value "0x3124" means 10
× 124 = 1240 seconds.
To display SIMATIC_TIME value by its original mean, do the followings.
The procedure consists of three parts ― "Unit setting", "Screen macro programming",
and "Numerical Display & Input functional objects setting". Unit setting is required for
each project only once on which you want to place "SIMATIC_TIME display & input
objects". Screen macro programming is required for each screen or sheet, and
Numerical Display & Input functional objects setting for each object you want to
display SIMATIC_TIME value by its mean.
This example describes how to monitor a SIMATIC_TIME value of SERIALA:T23.
Please make sure that following procedure requires a word temporary memory
($W1023 is used in this example), and four continuous unit/scale numbers (20 to 23 are
used in this example).
Unit Setting
1) Click PT Menu - Unit/Scale from menu,
or double-click Unit/Scale on Common
Setting Tab of project workspace.
54
Screen macro programming
1) Open the screen or sheet on which you want to place the numerical display & input
object that displays SIMATIC_TIME data by its original mean.
2) Right-click the blank area of the
screen, then click Screen/Sheet
Property.
4) Edit Macro Dialog Box will be displayed. Type the following program into the edit
box.
Please adapt bolded and underlined $W1023, SERIALA:T23, 20 to your
environment (20 is the head number which we set the unit/scales for
SIMATIC_TIME.
READCMEM($W1023,[SERIALA:T23],1);
$W1023=($W1023>>12)+20;
55
Numerical Display & Input functional objects setting
1) Place a Numerical Display & Input object on the screen.
2) Set parameters as the right figure in property list.
If property list window is hidden, it can be show
by pressing [Alt]+[3].
3) Click Macro Tab in the property list, then check on
Before Writing and click.
4) Edit Macro Dialog will be displayed. Type the
following program into the edit box.
Adapt bolded and underlined $W1023,
SERIALA:T23, and 20 to your environment (20 is
the head number which we set the unit/scales for
SIMATIC_TIME.
$W1023=($W1023>>12)+20;
That's all. Following pictures show examples of objects which are applied vs. which are
NOT applied this settings.
56
Chapter 5 Connecting Yasukawa Electric Varispeed series inverters
57
5-2 Connection Configuration
Configure each device as follows to connect the NS-series PT with the Varispeed series
inverter.
5-2-1 Overview of Connection Method and Wire Connection
Using RS-485(4-wire) / RS-422
The RS-232C/RS-422A converter (NS-AL002 or NT-AL001, which also support RS-485)
is required for the NS-series PT. Wire the converter and communication terminal on
the inverter as illustrated in the diagram below. Then install the converter in a serial
port on the NS-series PT. Also, set the DIP Switch on the converter to the 4-wire type.
The RS-232C and the RS-422A/485 of the NS-AL002 are not insulated. Therefore, if
differences in ground potential or effects from noise are of concern, it is recommended
that an insulated NT-AL001 converter be used.
S- S+ R- R+ S- S+ R- R+ S- S+ R- R+
58
Using RS-485 (2-wire)
The RS-232C/RS-422A converter (NS-AL002, NT-AL001 or CJ1W-CIF11 which also
support RS-485) is required for the NS-series PT. Wire the converter and
communication terminal as illustrated in the diagram below. Then install the
converter in a serial port on the NS-series PT.
Set the DIP Switch of the converter as follows.
>>NOTE<<
Use shielded wire and ground shield line properly
S- S+ R- R+ S- S+ R- R+ S- S+ R- R+
59
5-2-3 Communication Setting for the Project (NS screen data)
1) From CX-Designer, click PT
Menu - Communication Setting.
60
6) When connecting multiple
inverters to a single serial port,
click either the Serial PortA or
Serial PortB in the left pane.
Then click Add.
61
5-3 Communication Cables
Refer to 5-2-1 Overview of Connection Method and Wire Connection.
62
5-5 Restrictions
5-5-1 Restrictions on Host Type Changing
When the Varispeed / VS mini is
registered with the host, the host
type cannot be changed except for
when any addresses of the host
have never been used. Also the
host cannot be replaced. The
address, however, can be replaced
with another host type.
63
Chapter 6 Connecting Yaskawa Electric MP Series Motion Controllers
6-1-2 Protocol
The Memobus TCP protocol can be used to connect.
64
6-2 System Configuration
6-2-1 Connection Method and Wire Connection
To connect the Yaskawa Electric MP Series controller with the NS-series PT, use
RS-232C or RS485. Configure each device as follows. The dot lines or devices indicate
that the connection depends on the configuration.
NS series PT
MP Series Controller
RS-232C or RS-485 port of
CPU unit or
Communication Module
Cable .
MP Series Controller
RS-232C or RS-485 port of
CPU unit or
Communication Module
Use RS-485
when using multidrop
(* 4-wired is recommended)
MP Series Controller
RS-232C or RS-485 port of
CPU unit or
Communication Module
65
6-2-2 Communications Settings for MP Series Controller
Set the communication port on the MP Series controller to be connected to the
NS-series PT as follows.
・ Transmission protocol: MEMOBUS
・ Master/Slave: Slave
・ Transmission Mode: TCP
・ Data Length: 8 Bits
Please make settings other than above according to your environment.
"Device address" is referred to as "Slave address" with CX-Designer. Communication
speed 76800 bps supported by some MP series is not supported by NS series. Please
use 57600 bps instead of 76800 bps.
66
4) A confirmation will be displayed. Press Yes Button.
67
7) A host will be added as shown
in the dialog box. Click a
displayed host in the left pane
to change settings of the host
in the right pane.
68
6-3 Communication Cables
6-3-1 Using NS-series PTs Other Than NSH-series PTs
Using RS-232C
Make cable according to the connection diagram below.
69
Using RS-422 / RS-485 (4-wire)
The RS-232C/RS-422A converter (NS-AL002, NT-AL001 or CJ1W-CIF11) is required
for the NS-series PT. Wire the converter and MP Series Controller and set the DIP
Switch on the converter as illustrated in the figure below. Also install the converter in
the serial port on the NS-series PT.
The RS-232C and the RS-422A/485 of the NS-AL002 are not insulated. Therefore, if
differences in ground potential or effects from noise are of concern, it is recommended
that an insulated NT-AL001 converter be used.
Shield Wire
Class D gounding
1) Connect them to enable the built-in teminal resistance of MP series.
2) Connect one of the pin. Use another pin to connect next controller for multi-drop connection.
70
6-3-2 Using NSH-series PTs
Using RS-232C
Use a cable for NSH-series PT (NSH-232UL-[]M). Connect D-Sub 9 pin connector of
the cable to MP Series Controller using the cable below.
Cable for NSH MP Series Controller Serial Port
(NSH5-232UL-[]M) RS-232C (9 pins)
Connector Signal Pin No. Pin No. Signal Connector
FG 1 1 FG
RD 2 2 SD
SD 3 3 RD
CS 4 4 RS
D-Sub D-Sub
RS 5 5 CS
9pin 9pin
+5V 6 6 DR
Female Male
7 7 SG
8 8 CD
SG 9 9 ER
Shield Wire
Connector Hood Connector Hood
Shield Wire
Class D gounding
1) Connect them to enable the built-in teminal resistance of MP series.
2) Connect one of the pin. Use another pin to connect next controller for multi-drop connection.
71
6-4 Accessible Address Range
Addresses listed in the table below can be specified. Be sure to carefully read notes
below the table and the Offset Specification and Absolute Specification.
Offset Specification and Absolute Specification
The NS-series PTs support 2 addressing methods (offset and absolute specification) for
the MP Series registers. Use the offset specification unless necessary.
With the offset specification, an address to be accessed is specified using an offset from
an address set for the Start REG of MP series. For example, when attempting to access
GIW1000 in MP series whose input register start REG is set to IW00A0, IW10A0
(IW(00A0+1000)) will be accessed.
With the absolute specification, if IW1000 is specified, IW1000 is always accessed
regardless of how the Start REG is set. Note that the start REG data set with the MP
Series needs to be specified correctly in the Comm. Setting Dialog Box of CX-Designer
in order to work the absolute specification properly.
Word access Bit access Restrictions and Notes
Register Type
Read Write Read Write
Input register (Input relay)
GIB No No Yes No See note 2)
(Offset reference, Bit access)
Input register (Input register)
GIW Yes No No No
(Offset reference, Word access)
Data register (Coil)
GMB No No Yes Yes See note 2)
(Offset reference, Bit access)
Data register (Hold register)
GMW Yes Yes No No
(Offset reference, Word access)
Input register (Absolute reference, Bit
IB No No Yes No See note 1) 3)
access)
Input register (Absolute reference,
IW Yes No No No See note 1)
Word access)
Data register (Absolute reference, Bit
MB No No Yes Yes See note 1) 3)
access)
Data register (Absolute reference,
MW Yes Yes No No See note 1)
Word access)
72
Chapter 7 Connecting Trajexia motion controllers
73
2) Comm. Setting Dialog Box will
be displayed. Click Ethernet in
the left pane and set the
Ethernet port in the right pane.
The Network Address and
Node Address are for the
OMRON FINS Network
settings. Set them as shown
right unless there is a special
circumstance.
Set the IP address and Sub-net Mask according to the Ethernet environment used.
Referemce:
Set as follows in order to make remaining settings easier.
The first three segments of the IP Address (Underlined parts of "192.168.0.1")
--- > The Trajexia's IP Address
The forth segment of the IP Address (Underlined parts of "192.168.0.1")
--- > The Node Address
74
4) A host will be added. Confirm the added host is displayed in reverse. Then set
Trajexia in the Type field.
Change the host name if
necessary.
Referemce:
Set as follows unless there is a special situation.
The Network Address --- > The NS Network Address set at step 2
The Node Address --- > The forth segment of the IP Address set with Trajexia
This completes the procedure if settings described in the Reference at the step 2 and 4
have been made. When not made, the following settings are additionally required.
5) Setting the address conversion table. Click Ethernet in the left pane.
6) The Conversion Table will be shown in the right pane. Click the Add Button.
7) The IP Address Setting Dialog Box will be displayed.
Input the Node Address set with Trajexia in the
Node Address field and Trajexia IP Address in the IP
Address field. Press the OK Button.
75
8) Settings will be made for the
Conversion table as shown in
the right. When connecting
more than 2 Trajexia units,
repeat the step 7 as many
times as the number of
Trajexia units used.
76
7-2 Accessible Address Range
Addresses listed in the table below can be used. Also confirm the restrictions and notes
under the table.
1) The VRR cannot be used due to Trajexia functional restriction. (As of July 2007). If
the VRR is allocated to a functional object, a communications error will occur. The
VRR will be supported in the future.
2) When allocating TBR and VRR,
always set REAL (Real number) for
the Storage Type. (See the right
dialog.) Setting other than REAL
(Real number) can cause
malfunctions such as displaying an
unintended value and a
communication error.
3) Do not allocate TBR and VRR for
fields including string display & Always set REAL (Real number) in
input object where values are not Storage
treated as a floating-point format.
4) Specify the following combination in Display Type and Storage Type field when
allocating TB and VR.
Even when the No.2 is specified, Trajexia treats 0x8000 to 0xFFFF as negative
numbers.
77
5) When writing a number to Trajexia from a functional object for which TB or VR is
allocated, Trajexia may not recognize negative numbers properly if Trajexia
firmware version is old. In this case use TBR or VRR, or include a program that
turns a corresponding number to a negative number when bit 215 is 1 so that
Trajexia can recognize negative numbers properly.
6) When allocating TB or VR, do not set 2 words such as REAL, UDINT and DINT, for
the storage type. Allocate TBR or VRR when accessing as 32-bit IEEE 754 floating
point. (See below dialog)
78
7) When allocating TB or VR for a String display & input object, set Unicode for the
String Display Type. (See below dialog) With an NS, no terminating NULL will be
added when writing if characters are entered up to the specified number of
characters. Make sure there always is a terminating NULL for the Trajexia.
Always make settings in the below dialog box so that TABLE(8) is equal to 0.
79
7-3 PLC Data Storage Type
7-3-1 Numerals
The Trajexia's table memory and VR memory are originally represented in 32-bit IEEE
754 floating-point format. Functional objects for which TBR or VRR are allocated
refers to numerals as a floating-point format.
On the other hand, Trajexia can also treat table memory and VR memory as 24-bit
signed integer. NS-series-PT can access the integer by specifying TB or VR. However,
NS-series-PT treats TB and VR as 16-bit signed integer. Thus, NS-series-PT accesses
the sign bit and rightmost 15 bits (a total of 16 bits). (See the diagram below)
Reference:
1. Refer to “7-2 Accessible Address Range.”
2. When the Trajexia firmware version is old, the rightmost 16 bits may simply
be accessed which is different to the operations above.
Trajexia Trajexia
TABLE(0) = 194168.8 TABLE(1) = -50.257
(0x02F678 in 24-bit signed interger) (0xFFFFCE in 24-bit signed integer)
The sign bit is 0 because 0x02F678 is The sign bit is 1 because 0xFFFFCE is
positive and the lower 15 bits is 0x7678, negative and lower 15bits is 0x7FCE, so
so 0x7678 = 30328 will be displayed. 0xFFCE = -51 will be displayed
NS NS
80
7-4 Converting Addresses When Changing Host Types
Changing host types between OMRON PLCs (SYSMAC PLCs).
When host types are changed between OMRON PLCs, address types will be converted
according to the relationship listed in the table below.
Trajexia SYSMAC
TBR EM
TB DM
VRR WR
VR CIO
81
7-5 Notes and Restrictions
7-5-1 When Accessing TBR or VRR Using a Macro Function
When executing macro functions READCMEM and WRITECMEM for TBR and VRR,
specify points to be written and read in words.
<Example>
When reading TBR00003 to TBR00007 to $W1000, 5 TBRs (2 words per 1) will be read.
Therefore, specify 10 for the points as follows. (Change "HOST_TRAJEXIA" according
to your host name.)
READCMEM($W1000,[HOST_TRAJEXIA:TBR00003],10);
Always read or write TBR and VRR in even word. A communication error will occur if
reading or writing them in odd word.
82
Example: Replacing SYSMAC DM0-DM7 with Trajexia TBR10- and vise versa.
Example: Replacing Siemens M0-M15 with Trajexia TBR10- and vise versa.
83
Chapter 8 Connecting to Mitsubishi Q/QnA Series Sequencers
84
85
8-2 Connection Configuration
8-2-1 Overview of Connection Method
RS232C or RS485 is
used to connect the
Mitsubishi Q/QnA
series sequencer to the
NS-series PT using a
Q/QnA series serial
communications
module.
Configure each device
as illustrated on the
right.
When connecting
multiple sequencers to
one serial port using
RS-485, Q series and
QnA series sequencers can be connected on one communication line.
86
8-2-2 Communication Settings for NS Project (Screen Data)
1) Click PT Menu -
Communication Setting…
with CX-Designer.
4) A confirmation message will be displayed. Press Yes to continue to the next step.
87
6) Confirm the Type of the
host is MELSEC-Q/QnA.
Set the Station No.
according to the sequencer
used.
Note2: Setting the communication speed (Comm Speed) to high will improve the
communications performance, but the users must be aware of the following points.
-You can select high speed only with the System version V8.6 or later.
-Normal communications may be hindered if you connect plural NS PTs of high
communications mode setting to one sequencer.
-Normal communications may be hindered if you replace or reboot a sequencer while it
is communicating with NS PT.
This completes settings required for when connecting only one sequencer. Press OK
Button to close Comm. Setting Dialog Box.
When connecting multiple sequencers to one serial port on the PT using RS-485, please
follow the procedure below.
88
8) To connect multiple
sequencers with one serial
port, right-click Serial
Port A or Serial Port B in
the left pane. Then click
Add.
89
8-2-3 Communication Settings for Sequencers (Serial Communications Modules)
Serial Port on Q series Q00CPU and Q01CPU
Set the serial communication setting to the same as the communication settings of the
PT, using GX Developer or other programming software.
For setting example, refer to 8-2-4.
90
8-2-4 Setting Example
When using the serial port on the PT with the CX-Designer default settings, set the
CPU on the port or the serial communications module to be connected to the PT as
follows.
Note: Settings may change depending on the specification changes of the sequencer
and serial communications module. Please check the manuals for devices used as well.
91
Switch Switch No. Setting Value Remarks
Mode Switch 5 MC Protocol (Format 5)
Transmission specifications switch SW01 Off Independent mode
SW02 ON 8 data bits
SW03 ON Parity: Yes
SW04 Off Odd parity
SW05 Off 1 stop bit
SW06 ON Sum check: Yes
SW07 ON Write during RUN allowed
SW08 Off Setting change disabled
SW09 ON
SW10 ON
SW11 Off
SW12 ON Transmission speed 115.2 Kbps
92
8-3 Communication Cables
8-3-1 For NS-series PTs Excluding NSH-series PTs
Connecting to the 9-pin RS-232C interface on the serial communications module
Make cable according to the connection diagram below.
If the functional ground (FG) of the PT cannot be grounded for some reason, the
shielding wire needs to be connected to the FG of NS-AL002.
93
Connecting to the serial port of Q00CPU or Q01CPU
Use a Mitsubishi connection cable QC30R2 to connect the conversion cable between
the 9-pin on the Mitsubishi connection cable and the serial port on the PT as
illustrated below.
Q/QnA series
NSH Special Cable Serial Communications Module
(NSH5-232UL-[]M) (RS-232C, 9-pin type)
Connector Signal Pin No. Pin No. Signal Connector
FG 1 1 CD
RD 2 2 RD
D-Sub SD 3 3 SD
9-pin CS 4 4 DTR
male D-Sub
RS 5 5 SG
9-pin
mm +V5 6 6 DSR male
Screw, 7 7 RS
Female 8 8 CS
SG 9 9
Sheiding
Connector Hood Connector Hood
94
Connecting to the RS-422/485 terminal block on the serial communications module
Use an NSH5-422UL-10M cable and wire it as shown below.
When necessary, enable the terminating resistance on the NSH and connect this
terminating resistance to the serial communications module.
Q/QnA series
NSH Cable Serial communications module
NSH5-422UL-10M (RS-422/485)
Forked loose wires Signal Connector
SDB(+) RDA(+)
SDA(-) RDB(-)
RDB(+) SDA(+)
Terminal Block
RDA(-) SDB(-)
SG
FG FG (See note)
Note:Connect to FG which is class D grounded.
95
8-4 Accessible Address Range
Addresses listed in the table below can be used. Be sure to carefully read the
restrictions and notes below the table.
96
4) Most bit devices can be specified in address input fields that are used to specify
word devices. In this case, addresses that are divisible by 16 can only be specified.
The address numbers must be suffixed by "W". This "W" means word access. For
example, addresses such as X0W, Y30W, S16W and M224W can be specified. The
device numbers of X, Y, B and SB are hexadecimal. Therefore, addresses such as X0,
X10, X20, X30 and X40 etc. are divisible by 16. Please note that X16 and X32 are
not divisible by 16.
5) Most word devices can be specified in address input fields that are used to specify
bit devices. To do so, suffix a period to the device number and then specify the bit
position (0 to 15). For example, D123.12 can be specified for a display address of a
bit lamp.
Reference:
With the future version of CX-Designer, bit positions must be specified in one digit
hexadecimal. (The same as the method used for specifying the bit position with GX
Developer.) With the future version of CX-Designer, screen data created with
CX-Designer V2.102A can be used without any modification. When the screens are
open with the future version, the bit position will be automatically displayed in one
digit hexadecimal.
6) Do not allocate devices T, C and SN to String Display & Input objects.
7) Input "TU" or "CU" with CX-Designer as the device name "Timer contact" or
"Counter contract" respectively.
8) Expansion file register (00R to 31R) can be used. To specify these device numbers,
write "R<block#>_<device#>" so the block number comes last.
9) Input at least one zero between the device name and the device number when
inputting addressees whose most significant digits of the device numbers are A to F.
(e.g. "W0FFF")
97
8-5 PLC Data Format
8-5-1 Numerals
The PT treats the numeric data Address D0
The example on the right shows the PLC memory of when the PT writes 0x1234 (word
width) to D0.
The example below shows the PLC memory of when the PT writes 0x12345678 (double
word) to D0.
Address D0 D1
Bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Value 0 0 0 1 1 1 1 0 0 1 1 0 1 0 1 0 0 0 1 0 1 1 0 0 0 1 0 0 1 0 0 0
Value(hex) 0x5678 0x1234
When the PT accesses bit devices as word devices, the PT also treats the numeric data
as little-endianed.
For example, when each bit of M Device M
8-5-2 Strings
ASCII Strings
The example on the right shows the Address D0 D1 D2 D3
Unicode Strings
The example below shows the sequencer memory of when the PT writes a Unicode
string "ABCDEF" to D0.
Address D0 D1 D2 D3 D4 D5 D6
Value(char) A B C D E F NULL
Value(hex) 0x0041 0x0042 0x0043 0x0044 0x0045 0x0046 0x0000
98
8-6 Address Conversion When Changing Host Types
Changing host types between OMRON PLCs
When the host type is changed between an OMRON PLC and MELSEC Q/QnA,
address types (areas/devices) are automatically converted according to the table on the
right. (See the figure below)
*Changing a host type of SERIALA from SYSMAC PLC to MELSEC-Q
X ―
Y ―
M CIO
SM ―
L HR
S ―
SERIALA:DM00123 SERIALA:D00123
V ―
Note: When SYSMAC PLC address are replaced with MELSEC-Q/QnA bit devices,
address numbers will be converted to make their bit offsets equal. For example,
HR00003.12 is the 60th bit (60=16×3+12), so will be converted to L00060.
The opposite is same. L00080W of MELSEC-A will be converted to HR00005 of
SYSMAC, and L00084 to HR00005.4.
99
Chapter 9 Connecting to Rockwell (Allen-Bradley) PLCs
Important Restriction
If a serial port is set in order to connect the PT to a Rockwell PLC, that serial port
cannot be used to transfer (both download and upload) project data. Other transfer
methods (USB, Ethernet, CLK and Memory Card) can be used normally.
100
9-1 Compatible PLCs
The following models and connection methods are supported.
Connection method: OK: Operation checked, -: Operation not checked, NG: Not supported.
N:1: Multiple hosts can be connected to one port on PT
1:N: Multiple PTs can be connected to one port on host
N
Noottee
1) A Rockwell (Allen-Bradley) cable (1761-CBL-PM02) is required.
2) An OMRON RS-232C/422A Converter (NS-AL002, NT-AL001 or CJ1W-CIF11) is
required. (Except for NSH-series PTs)
Connection Diagram 9-3 Communication Cables
Setting Examples 9-2-2 Recommended PLC Communications Settings
9-2-3 Recommended CX-Designer Communication Settings
101
9-2 Connection Configuration
9-2-1 Communication Settings for NS Project (Screen Data)
1) Click PT Menu - Communication Setting…
with CX-Designer.
102
6) In the left pane, click
Serial Port A or Serial
Port B. In the left pane,
select Allen-Bradley DF1
from Protocol option.
103
This completes settings required for when connecting only one PLC. Press OK Button
to close Comm. Setting Dialog Box.
When connecting multiple PLCs to one serial port on the PT using RS-485, please
follow the procedure below.
9) To connect multiple
sequencers with one serial
port, right-click Serial
Port A or Serial Port B in
the left pane. Then click
Add option.
104
9-2-2 Recommended PLC Communications Settings
Use Rockwell (Allen-Bradley) support software to make communications settings for
the PLC.
The following are examples OMRON recommends.
105
Setting Example 2 - CompactLogix, ControlLogix
Start support software (RSLogix 5000). In the Controller Organizer, right-click your
controller and select Properties. The Controller Properties Dialog Box appears. Open
the Serial Port and System Protocol Tab Page and set each item as follows.
106
Setting Example 3 - PLC-5 Series
Start support software (RSLogix 5) and select Project - Controller from the project tree.
Double click Channel Configuration. Then open a tab page of a port to which the PT is
connected and make the settings as follows.
107
9-2-3 Recommended CX-Designer Communication Settings
Setting Example 1 - SLC500, MicroLogix Series
Make settings using CX-Designer as follows.
Full-duplex
Configuration Item Recommended Setting
Baud Rate 19200
Data Bits 8
Stop Bits 1
Parity None
Duplex Mode Full-Duplex
ErrorCheck CRC-16
Local Node Address 0
Half-duplex
Configuration Item Recommended Setting
Baud Rate 19200
Data Bits 8
Stop Bits 1
Parity None
Duplex Mode Half-Duplex Master
ErrorCheck CRC-16
Local Node Address 0
* When using half-duplex, the Node Address of the host must be the same as the Node
Address of the controller.
108
Setting Example 2 - CompactLogix, ControlLogix series
Make settings using CX-Designer as follows.
Full-duplex
Configuration Item Recommended Setting
Baud Rate 19200
Data Bits 8
Stop Bits 1
Parity None
Duplex Mode Full-Duplex
ErrorCheck BCC
Local Node Address 0
Half-duplex
Configuration Item Recommended Setting
Baud Rate 19200
Data Bits 8
Stop Bits 1
Parity None
Duplex Mode Half-Duplex Master
ErrorCheck BCC
Local Node Address 0
* When using half-duplex, the Node Address of the host must be the same as the Node
Address of the controller.
109
Setting Example 3 - PLC-5 series
Make settings using CX-Designer as follows.
Full-duplex
Configuration Item Recommended Setting
Baud Rate 19200
Data Bits 8
Stop Bits 1
Parity None
Duplex Mode Full-Duplex
ErrorCheck BCC
Local Node Address 0
Half-duplex
Configuration Item Recommended Setting
Baud Rate 19200
Data Bits 8
Stop Bits 1
Parity None
Duplex Mode Half-Duplex Master
ErrorCheck BCC
Local Node Address 0
* When using half-duplex, the Node Address of the host must be the same as the Node
Address of the controller.
110
9-3 Communication Cables
Connection Diagram 1 (NS-series PTs excluding NSH-series PTs)
Omron XW2Z-S002, XW2Z-200S-V and XW2Z-500S-V cables are compatible. To make
a cable, make the following wiring connection.
* The following wiring connection differs in detail from that of OMRON cables.
SLC500, CompactLogix, ControlLogix
SLC500 / CompactLogix /
PT Serial Port
ControlLogix
(for excluding NSH)
Serial Port on the CPU (RS-232C)
Connector Signal Pin No. Pin No. Signal Connector
FG 1 1 CD
SD 2 2 RD
RD 3 3 SD
RS 4 4 DTR
D-Sub D-Sub
CS 5 5 SG
9 pins 9 pins
+5V 6 6 DSR
Male Male
7 7 RS
8 8 CS
SG 9 9
Shield
Hood Hood
SLC500 / CompactLogix /
NSH Cable
ControlLogix
(Model: NSH5-232UL-□M)
Serial Port on the CPU (RS-232C)
Connector Signal Pin No. Pin No. Signal Connector
FG 1 1 CD
RD 2 2 RD
SD 3 3 SD
D-Sub CS 4 4 DTR
D-Sub
9 pins RS 5 5 SG
9 pins
Female +5V 6 6 DSR
Male
(mm screw) 7 7 RS
8 8 CS
SG 9 9
Shield
Hood Hood
111
Connection Diagram 2 (NS-series PTs excluding NSH-series PTs)
A Rockwell (Allen-Bradley) 1761-CBL-PM02 cable is required. Connect the
1761-CBL-PM02 cable to the port on MicroLogix. Then connect the PT to D-Sub 9-pin
connecter of the 1761-CBL-PM02 cable using the cable as shown below.
MicroLogix (RS-232C)
112
Connection Diagram 3 (NS-series PTs excluding NSH-series PTs)
OMRON XW2Z-200S (2m length) and XW2Z-500S (5m length) are compatible. To
make a cable, make the following wiring connection.
* The following wiring connection differs in detail from that of OMRON cables.
PLC-5
PLC-5
PT Serial Port
Serial Port on the CPU
(for excluding NSH)
(RS-232C)
Connector Signal Pin No. Pin No. Signal Connector
FG 1
2 SD
SD 2
3 RD
RD 3
4 RS
CS 4
D-Sub 5 CS D-Sub
RS 5
9 pins 6 DSR 25 pins
+5V 6
Male 7 SG Male
7
8 CD
8
SG 9 20 DTR
Shield
Hood Hood
PLC-5
NSH Cable
Serial Port on the CPU
(Model: NSH5-232UL-□M)
(RS-232C)
Connector Signal Pin No. Pin No. Signal Connector
FG 1
2 SD
RD 2
3 RD
SD 3
4 RS
D-Sub CS 4
5 CS D-Sub
9 pins RS 5
6 DSR 25 pins
Female +5V 6
7 SG Male
(mm screw) 7
8 CD
8
SG 9 20 DTR
Shield
Hood Hood
113
Connection Diagram 4 (NS-series PTs excluding NSH-series PTs)
Connect the serial port of the NS to RS-232C/RS422A converter (NS-AL002, NT-AL011
or CJ1W-CIF11). Then connect the converter to the serial port on PLC-5 as shown
below.
The RS-232C and the RS-422A/485 of the NS-AL002 are not insulated. Therefore, if
differences in ground potential or effects from noise are of concern, it is recommended
that an insulated NT-AL001 converter be used.
PLC-5 (RS-485)
RS-232C/RS-422A Converter PLC-5
NS-AL002, NT-AL001, or Serial Port on CPU
CJ1W-CIF11 (RS-232C)
Connector Signal Pin No. Shielding Pin No. Signal Connector
1 FG
RDB(+) 2 2 SDA(-)
D-Sub
SDB(+) 3 3 RDA(+)
25-pin
Terminal RSB(+) 4 male
Block 14 SDB(-)
RDA(-) 6 16 RDB(-)
SDA(-) 7
RSA(-) 8
114
Connection Diagram 4 (NSH-series PTs)
Use an NSH5-422UL-10M cable and wire it as shown below. When necessary, enable
the terminating resistance on the NSH.
PLC-5 (RS-485)
115
9-4 Accessible Address Range
Addresses listed in the table below can be used. Be sure to carefully read the
Restrictions and Notes.
116
4) It is not possible to use for storing strings. For example allocating to a String
Display & Input object is not possible.
5) Please omit the file number for O, I, S when using CX-Designer. Omit the file
number even when directly typing addresses in an address input field.
6) Symbols cannot be used to specify bits and sub-elements of Timer and Counter.
Please reference these tables when specifying sub-element numbers and bit
numbers.
8) For information on operations for when allocating ST file addresses to objects, refer
to 9-6 ST File processed by the PT.
9) Even when a bit is specified, index specification will affect an element number. For
example, when $SW27 is 5 (Offset of index 0 is 5), [T4:10.0/13i0] will become
[T4:15.0/13].
10) Always use "REAL" as the "Storage Type" of numeral.
11) File numbers must be allocated to tags in advance using support software (RSLogix
5000).
12) The PT access data by one word. Thus, it will read and write by two elements.
13) Specify addresses considering the fact that BL treats 32 bits as 1 element. The
quotient that is obtained by dividing the target bit index by 32 is the element
number, and the remainder is the bit position.
117
9-5 Changing Host Types
A host type can be changed to/from a SYSMAC PLC only when a Rockwell PLC is
connected to one serial port.
Addresses for a Rockwell PLC will become invalid when changing the host type to/from
Rockwell PLC. After changing the addresses, fix the invalid addresses. For how to fix
them, refer to 1-3-1 Notes and Restrictions When Changing Host Types.
A Rockwell PLC, which has been registered as a host type, cannot be directly changed
to other Rockwell PLC.
To change the host type in this situation, change it to SYSMAC PLC first and then to
other Rockwell PLC. Or add a new host and replace all old host addresses with new
host addresses. Then delete the old host.
118
9-6 ST File Processed by the PT
The PT processes the ST file differently.
119
9-7 Macro Function READCMEM and WRITECMEM Operation
READCMEM and WRITECMEM will write and read the internal expression of the
controller as they are. In some cases, endian needs to be converted by using SWAP
function in order to read values correctly. See the following examples.
Example 1
The following Macro reads 10 words from N7:8 of "MICROLOGIX" to $W2000. As a
result, the value of N7:8 is read to $W2000, the value of N7:9 is read to $W2001…, and
the value of N7:17 is read to $W2009
READCMEM($W2000,[MICROLOGIX:N7:8],10);
Example 2
The following Macro reads 5 words from T4:0.0 of the host "SLC500" to $W1000. As a
result, the flag word of T4:0 is read to $W1000, the set value of T4:0 is read to $W1001,
the current value of T4:0 is read to $W1002, the flag word of T4:1 is read to $W1003
and the set value of T4:1 is read to $W1004.
READCMEM($W1000,[SLC500:T4:0.0],5);
Example 3
The following Macro reads the element 5 of the F file (file number 8) of the host "PLC5"
and stores it to from $W1000 to 1001. However, the word endian is opposite, so SWAPL
function is used.
When reading to/writing from "the F file of PLC-5" and "the REAL file of
ControlLogix/CompactLogix", endian must be converted by using SWAPL function.
READCMEM($W1000,[PLC5:F8:5],2);
SWAPL($W1000,1);
Example 4
This is a writing example, opposite from Example 3. The endian is converted before
writing. After writing, the endian is converted again to adjust it to the PT's endian.
SWAPL($W1000,1);
WRITECMEM([PLC5:F8:5],W1000,2);
SWAPL($W1000,1);
120
Chapter 10 Connecting to Modbus Devices
The devices to be connected must conform to "Modbus Serial Line Protocol and
Implementation Guide V1.02" issued by Modbus-IDA (http://modbus.org/). To check
whether the devices conform to it or not, refer to the manuals for these devices or
contact the manufactures.
When the RS-485 is used, up to 32 devices can be connected to one serial port on the PT.
When connecting to a number of devices, please note that there may be an interruption
of communication due to a decline in the performance of the PT and degraded signal.
When the RS-232C is used, only one Modbus device can be connected to one serial port
on the PT.
121
10-2 Connection Configuration
10-2-1 Communication Setting for NS Project (screen data)
1) Create screen data of the project version 7.0
or higher with CX-Designer. Select PT
Menu - Communication Setting.
122
6) Make the settings in
Maximum Data Length
per Command according
to the device you connect.
Reading Words: Specify
the number of words that
can be read at once by the
function codes 01h to 04h.
Writing Words: Specify
the number of words that
can be read at once by the
function code 10h. When a device not supporting the function code 10h is connected,
1 word must be set. If 1 word is set, the PT uses the function code 06h instead of
10h.
Reading Bits: Specify the number of bits that can be read at once by the function
codes 01h and 04h.
Writing Bits: Specify the number of bits that can be read at once by the function
code 0Fh. When a device not supporting the function code 0Fh is connected, 1 bit
must be set. If 1 bit is set, the PT uses the function code 05h instead of 0Fh.
7) Make the settings in Endian according to the device you connect. If the settings
here are incorrect, double word values (DINT, UDINT, REAL, etc.) and multi-byte
strings are not displayed properly. When an unexpected value or string is displayed,
please check these settings first.
8) When connecting multiple
devices to one serial port,
right-click Serial Port A or
Serial Port B in the left
pane. Then click Add.
123
9) A host is added as shown
on the right. Click the host
name in the left pane.
Then change the settings
of the selected host in the
right pane.
124
10-2-2 Communication Settings
It is recommended that the PT and devices use the following default settings of
CX-Designer. These settings meet the default communication conditions of the most
Modbus devices. When the communication settings of the device are changed, change
these settings accordingly.
To change the settings of each host, click on the host name in the left pane. For details
on how to make settings, refer to No.6 of 10-2-1.
You must change these settings according to the device you connect.
For example, to connect to measuring equipment not expecting to exchange a large
amount of data, you must set a smaller value in Maximum Data Length per Command.
Otherwise a communications error may occur. Also, to connect the PT to a PLC, you
must make settings correctly in the Endian. Otherwise double word numeral or
multi-byte strings may not be displayed correctly.
Make settings appropriately by referring to manuals or other documents for the
devices.
125
10-3 Communication Cables
Connection Diagram 1 (NS-series PTs excluding NSH-series PTs with RS-232C
connection)
Connect at least three signal wires and a shield wire as shown below. If the device
requires control lines including RS (RTS), CS (CTS), DSR, DTR and CD, bend back the
control lines at the device.
Device
PT Serial Port
Serial Port
(Excluding NSH)
(RS-232C)
Connector Signal Pin No.
FG 1
SD 2 RD (RxD)
RD 3 SD (TxD)
RS 4
D-Sub
CS 5
9-pin
+5V 6
Male
7
8
SG 9 SG
Sheilding
Connector Hood Connector Hood
126
Connection Diagram 2 (NS-series PTs excluding NSH-series PTs with RS-422/485
connection)
The PT requires the RS-232C/RS-422A converter (NS-AL002, NT-AL001 or
CJ1W-CIF11). Wire the converter and the device as shown below and install the
converter into the serial port of the PT. (Wiring must be completed before converter is
installed into the PT.)
With the OMRON RS-232C/422A converter, the signal wire A is negative logic and the
signal wire B is positive logic. Make sure you use the correct polarity.
Set as shown on the table for the DIP Switches of the RS-232C/422A Converter.
RS-232C/422A Converter DIP switch settings
NS-AL002 NT-AL001 CJ1W-CIF11
SW1 ON SW1-1 ON SW1 See Note
SW2 off SW1-2 See Note SW2 off
SW3 off SW1-3 off SW3 off
SW4 See Note SW1-4 off SW4 off
SW1-5 off SW5 off
SW1-6 off SW6 off
Note: Turn ON sw itch to enable the built-in terminating resistance of the converter.
127
Connection Diagram 2 (NSH-series PTs with RS-422/RS-485 connection)
Use an NSH5-422UL-10M cable to wire as shown below.
Enable the built-in terminating resistance on the NSH-series PT when necessary.
Device
NSH Cable
Serial Port
(NSH5-422UL-10M)
(RS-422/485)
Forked loose wires
RDB(+) SD+
SDB(+) RD+
RDA(-) SD-
SDA(-) RD-
Sheilding Class D grounding
128
Connection Diagram 3 (NS-series PTs excluding NSH-series PTs with RS-485
(two-wire method) connection)
The PT requires the RS-232C/RS-422A converter (NS-AL002, NT-AL001 or
CJ1W-CIF11). Wire the converter and the device as shown below and install the
converter into the serial port of the PT. (Wiring must be completed before converter is
installed into the PT.)
With the OMRON RS-232C/422A converter, the signal wire A is negative logic and the
signal wire B is positive logic. Make sure you use the correct polarity.
Set as shown on the table for the DIP Switches of the RS-232C/422A Converter.
The NSH-series PTs do not support the RS-485 (two-wire method) connection.
129
10-4 Accessible Address Range
The following addresses can be accessed. Read carefully the Note below the table.
Notes
1) When specifying IEC61131 addresses, do not input a "%" symbol. The "%" symbol
indicates an absolute address.
2) To specify Modicon addresses, use six digits consisting of a one-digit value that
represents the area type and a five-digit value that represents the position in the
area. 00001 to 65536 can be specified for each area.
3) For IEC61131 addresses, 00000 to 65535 can be specified for each area.
4) In the table, "Yes" letters in "Read" and "Write" cells indicate that you can input
these addresses with CX-Designer. It does not mean that all devices can access
these addresses. Please check whether devices can access these addresses or not by
referring to the manual or other documents for each device.
5) To treat consecutive 16 bits as one numerical value, suffix "W" to the address.
When Modicon address is used, the address must be the one that leaves a
remainder of 1 when divided by 16. When IEC61131 address is used, address must
be divisible by 16. (e.g.: M00016W, I00032W, 000017W and 100033W.etc.)
6) To specify a certain bit within 16 bits of a register, add a period "." to the end of the
register number and a bit position next to the period. To specify a bit position when
using Modicon address, you can use a number between 1 and 16. The bit position 1
is the most significant bit, and the bit position 16 is the least significant bit. To
specify a bit position when using IEC61131 address, use a number between 0 and
15. The bit position 0 is the least significant bit, and the bit position 15 is the most
significant bit. (e.g. IW00010.9 and 400034.16)
7) The PT and device must not write to the same register. If doing so may result in
data incoherency.
8) When using IEC61131 address, do not use MD and ID but use MW and IW even
when the address is accessed by double word width.
130
9) The input register cannot be allocated to System Memory ($SB and $SW).
10) Do not allocate to System Memory ($SB) when using System Memory $SB control
bit. If doing so could result in failing to control.
11) When you copy the specified object changing the
address with Repeat Function if the Modicon
Address Style is used and a bit address is
specified for the object, the addresses will be
allocated to each copied object based on the
value set in Offset Address in order from 16 to 1.
For example, if you copy a Bit Lamp with an
address 400002.16 using the settings on the
right (Offset Address is 1), the addresses
allocated to the copied Bit Lamps will be
400002.15, 400002.14,…. 400002.02, 400002.01,
400003.16, 400003.15, 400003.14, 400003.13.
131
10-5 Changing Host Types
10-5-1 Changing Host Types between SYSMAC PLCs
The host type can be changed only when one
Modbus Device SYSMAC
host is registered with one serial port. In this
0 M CIO
case, the addresses will be replaced according
1 I WR
to the table on the right.
3 IW ⇔ HR
It is, however, impossible to replace a word
4 MW DM
number if the word number became 32768 or
above after changing the host type from Modbus to SYSMAC. When the host type is
changed from SYSMAC to Modbus, words 4096 and above in CIO and WR cannot be
replaced by addresses for Modbus. Addresses that were not replaced will become
"Invalid Addresses". For information on how to fix these addresses, refer to Notes and
Restrictions When Changing Host Types.
132
10-5-2 Changing Host Types to Change an Address Input Method
The host types cannot be directly changed between Modbus Machine (Modicon Address
Style) and Modbus Machine (IEC61131 Address Style). To change an address input
method after creating a project, follow the procedure below.
In the following procedure, Modicon Address is changed to IEC61131 Address as an
example. To change to Modicon Address, you can also use this procedure.
1) Click PT Menu - Communication Setting. Add a host to a serial port connecting to
Modbus. Select Modbus Machine (IEC61131 Address Style) from the host type (See
figure below). Assume that the host added now is "HOST4" and the host already
registered is "HOST3".
2) Select Find Menu - Replace. Make settings as described in the "1st" column. Click
Replace. It may take several minutes or more to complete replacing depending on
the size of the screen data. (Do not use the host name "HOST3" and "HOST4", but
use your own host names.)
3) Repeat the procedure No.2 three times. Do not use address in the "1st" column. Use
addresses in the "2nd" to "4th" column accordingly.
133
4) If Symbol Table
Dialog Box is not
shown, display the
Symbol Table Dialog
Box by pressing Alt +
2. Right-click on the
dialog box. Select Delete Unused Symbols. A confirmation dialog will be shown.
Press Yes.
5) Click PT Menu - Communication
Setting. Change the host type of
HOST3 to Modbus Machine
(IEC61131 Address Style) as shown
on the right. Press OK. If an error
message stating "Cannot change the
host used in the project." is displayed,
repeat the procedure from No.2.
134
Chapter 11 Connecting to Yokogawa FA-M3 Series PLCs
135
11-2 Connection Configuration
1) Select PT Menu – Commucation Setting
with CX-Designer.
136
5) A host is registered
under the serial port as
shown on the right.
Click Serial Port A or
Serial Port B again, and
set Protocol to FA-M3
Personal Computer
Link in the right pane.
The settings have been completed if only one PLC is connected. Press OK Button and
close Communication Setting Dialog Box.
When multiple PLCs are connected to one serial port of the NS through RS-485,
please read the following procedure too.
137
8) When multiple PLCs
are connected to one
serial port, right click
Serial Port A or Serial
Port B in the left pane.
Then click Add.
9) A host is added as
shown on the right. To
change host settings,
click the displayed host
name.
138
11-2-1 Communication Settings of the PLC (Personal Computer Link Module)
When the built-in PROGRAMMER/SIO port of the CPU is used.
Use programming software such as WideField to make the communication settings of
the PROGRAMMER/SIO port so that they can match settings of the PT.
For setting examples, refer to 11-2-2.
Setting Example 1: Settings for the built-in PROGRAMMER/SIO port of the CPU
Open Configuration under Project Window using WideField2. Make the following
settings in Setup Communication.
Check Sum
End Character
Protection
Noottee:: Some models do not have 115200bps. In this case, select the fastest
N
communication speed and even parity.
139
Setting Example 2: Personal Computer Link Module Settings
Set the switches of the personal computer link module as follows.
Noottee:: When the protocol is set to FA-M3 Personal Computer Link, CX-Designer’s
N
default settings match the factory default settings of the personal link unit. It is
however recommended that you change to the settings above for the safety reason.
140
11-3 Communication Cables
11-3-1 Using NS-series PTs Other than NSH-series PTs
Connection Diagram 1
When connecting to the built-in PROGRAMMER of the CPU or SIO port
Connect the serial port of the PT to the 9-pin side of the Yokogawa CPU port/D-sub
9-pin conversion cable, using a cable connected as shown below. To connect to the
PROGRAMMER port, use KM10-0C. To connect to SIO port, use KM10-0S.
NS-series PT Serial Port CPU port/D-Sub 9-pin Conversion Cable (9-pin side)
(Except for NSH) KM10-0C or KM10-0S (RS-232C, 9-pin)
Connector Signal Pin No. Pin No. Signal Connector
FG 1 1
SD 2 2 RD
RD 3 3 SD
RS 4 4 ER
D-Sub D-Sub
CS 5 5 SG
9-pin 9-pin
+5V 6 6 DR
male male
7 7 RS
8 8 CS
SG 9 9
Shield
Connector Hood Connector Hood
Connection Diagram 2
When connecting the 9-pin RS-232C connector of the personal computer link module
Make a cable according to the connection diagram below.
NS-series PT Serial Port FA-M3 Series Personal Computer Link Module
(Except for NSH) (RS-232C, 9-pin type)
Connector Signal Pin No. Pin No. Signal Connector
FG 1 1
SD 2 2 RD
RD 3 3 SD
RS 4 4 ER
D-Sub D-Sub
CS 5 5 SG
9-pin 9-pin
+5V 6 6 DR
male male
7 7 RS
8 8 CS
SG 9 9
Shield
Connector Hood Connector Hood
141
Connection Diagram 3
When connecting to the RS-422/485 terminal block of the personal computer link module
To communicate with the PT using RS-422/485 personal computer link module,
RS232C/RS422A converter (NS-AL002, NT-AL001 or CJ1W-CIF11) must be used for
the PT. Wire the converter and the personal computer link module as shown below.
Then install the converter into the serial port of the PT (Wiring must be completed
before the converter is installed into the PT). Set the DIP switch of the converter to
4-wire.
Enable the terminating resistance on the NS-AL002 when necessary. (To enable the
terminating resistance in the case of NS-AL002, turn ON the DIP switch 4.)
RS-232C/RS-422A Converter
FA-M3 Series Personal Computer Link Module
NS-AL002
(RS-422/485)
Connector Signal No.
FG 1 Signal Connector
RDB(+) 2 RDA(+)
SDB(+) 3 RDB(-)
RS-422A RSB(+) 4 SDA(+)
Terminal Block
Terminal Block 5 SDB(-)
RDA(-) 6 SG
SDA(-) 7 FG
RSA(-) 8 Shield Note: Connect to FG which is class D
Noottee:: If the PT cannot be grounded for some reason, shield wire also needs to be
N
connected to FG of the NS-AL002.
142
11-3-2 Using NSH-series PTs
Connection Diagram 4
When connecting to the built-in PROGRAMMER of the CPU or SIO port
Connect the NSH cable (NSH5-232UL-[]M) to the 9-pin side of the Yokogawa CPU
port/D-sub 9-pin conversion cable (KM10-0C or KM10-0S), using a cable connected as
shown below. To connect to the PROGRAMMER port, use KM10-0C. To connect to SIO
port, use KM10-0S.
DO NOT connect the CN7 and CN8 connectors of the NSH cable. And, DO NOT
remove roopback connectors attatched to CN7 and CN8.
NSH Cable CPU port/D-Sub 9-pin Conversion Cable (9-pin side)
(NSH5-232UL-□M) KM10-0C or KM10-0S (RS-232C, 9-pin)
Connector Signal Pin No. Pin No. Signal Connector
FG 1 1
RD 2 2 RD
SD 3 3 SD
D-Sub CS 4 4 ER
9-pin D-Sub
RS 5 5 SG
female 9-pin
+5V 6 6 DR
(mm screw: male
female) 7 7 RS
8 8 CS
SG 9 9
Shield
Connector Hood Connector Hood
Connection Diagram 5
Connecting to 9-pin RS-232C connecter of the personal computer link module
Connect the D-Sub 9-pin connecter of the NSH cable (NSH5-232UL-[]M) to the personal
computer link module, using a cable below.
DO NOT connect the CN7 and CN8 connectors of the NSH cable. And, DO NOT
remove roopback connectors attatched to CN7 and CN8.
NSH Cable FA-M3 Series Personal Computer Link Module
(NSH5-232UL-□M) (RS-232C, 9-pin type)
Connector Signal Pin No. Pin No. Signal Connector
FG 1 1
RD 2 2 RD
SD 3 3 SD
D-Sub CS 4 4 ER
9-pin D-Sub
RS 5 5 SG
female 9-pin
+5V 6 6 DR
(mm screw: male
female) 7 7 RS
8 8 CS
SG 9 9
Shield
Connector Hood Connector Hood
143
Connection Diagram 6
When connecting to the RS-422/485 terminal block of the personal computer link module
Use an NSH cable (NSH-422UL-10M) to connect as shown below.
When necessary, enable the built-in terminating resistance of the NSH5 and connect
the terminating resistance to the personal computer link module.
NSH Cable FA-M3 Series Personal Computer Link Module
(NSH5-422UL-10M) (RS-422/485)
Forked loose wires Signal Connector
SDB(+) RDA(+)
SDA(-) RDB(-)
RDB(+) SDA(+)
Terminal Block
RDA(-) SDB(-)
SG
FG FG(See note.)
Note: Connect to FG which is class D grounded.
144
11-4 Accessible Address ranges
Addresses listed in the table below can be used. Please see the restrictions and notes
under the table.
145
numbers must be suffixed by "W" that indicates word access (e.g. X00201W).
5) Most word devices can be specified in address input fields that are used to specify bit
devices. To do so, suffix a period to the device number and then specify the bit
position (0 to 15). For example, D123.12 can be specified for a display address of a
bit lamp.
146
11-5 Address Conversion When Changing Host Types
Changing host types between an OMRON PLC (SYSMAC) and FA-M3
When the host type is changed from or to OMRON PLC,
FA-M3 SYSMAC
address types are automatically converted according to X EMC
the table on the right. (See the figure below) Y CIO
*When changing a host type of SERIALA from I WR
SYSMAC PLC to FA-M3 E ―
M ―
SERIALA:HR00000.7 SERIALA:R00001.07
L ―
TU TU
TP TIM
TI ―
TS ―
SERIALA:DM00123 SERIALA:D00124
CU CU
Addresses with "-" in the right table and addresses not CP CNT
SERIALA:EM00123 SERIALA:EM00123
Please modify the addresses that were not converted. For how to modify addresses,
refer to “1-3-1 Notes and Restrictions When Changing Host Types.”
147
Noottee:: For X, Y and W areas, the following calculation methods are used when
N
conversion is performed.
148
Chapter 12 Connecting to Modbus Devices via Ethernet
*1 CX-Designer Project Version 8.6 or later is compatible with Modbus TCP. However
the system program versions 8.6 thruogh 8.8 that support Modbus TCP are not
provided to general customers.
When the Modbus TCP is used, up to 30 devices can be connected. When connecting to
a number of devices, please note that there may be an interruption of communication
due to a decline in the performance of the PT.
149
12-2 Connection Configuration
12-2-1 Communication Setting for NS Project (screen data)
1) Create screen data of the project version
8.6 or higher with CX-Designer. Select PT
Menu - Communication Setting.
150
5) Make the settings in Maximum
Data Length per Command
according to the device you
connect.
Reading Words: Specify the
number of words that can be
read at once by the function
codes 01h to 04h.
Writing Words: Specify the
number of words that can be read at once by the function code 10h. When a device
not supporting the function code 10h is connected, 1 word must be set. If 1 word is
set, the PT uses the function code 06h instead of 10h.
Reading Bits: Specify the number of bits that can be read at once by the function
codes 01h and 04h.
Writing Bits: Specify the number of bits that can be read at once by the function
code 0Fh. When a device not supporting the function code 0Fh is connected, 1 bit
must be set. If 1 bit is set, the PT uses the function code 05h instead of 0Fh.
6) Make the settings in Endian according to the device you connect. If the settings
here are incorrect, double word values (DINT, UDINT, REAL, etc.) and multi-byte
strings are not displayed properly. When an unexpected value or string is displayed,
please check these settings first.
151
12-2-2 Communication Settings
It is recommended that the PT and devices use the following default settings of
CX-Designer. These settings meet the default communication conditions of the most
Modbus devices. When the communication settings of the device are changed, change
these settings accordingly.
To change the settings of each host, click on the host name in the left pane. For details
on how to make settings, refer to No.5 of 12-2-1.
You must change these settings according to the device you connect.
For example, to connect to measuring equipment not expecting to exchange a large
amount of data, you must set a smaller value in Maximum Data Length per Command.
152
Otherwise a communications error may occur. Also, to connect the PT to a PLC, you
must make settings correctly in the Endian. Otherwise double word numeral or
multi-byte strings may not be displayed correctly.
Make settings appropriately by referring to manuals or other documents for the
devices.
153
12-3 Accessible Address Range
The following addresses can be accessed. Read carefully the Note below the table.
Notes
1) When specifying IEC61131 addresses, do not input a "%" symbol. The "%" symbol
indicates an absolute address.
2) To specify Modicon addresses, use six digits consisting of a one-digit value that
represents the area type and a five-digit value that represents the position in the
area. 00001 to 65536 can be specified for each area.
3) For IEC61131 addresses, 00000 to 65535 can be specified for each area.
4) In the table, "Yes" letters in "Read" and "Write" cells indicate that you can input
these addresses with CX-Designer. It does not mean that all devices can access
these addresses. Please check whether devices can access these addresses or not by
referring to the manual or other documents for each device.
5) To treat consecutive 16 bits as one numerical value, suffix "W" to the address.
When Modicon address is used, the address must be the one that leaves a
remainder of 1 when divided by 16. When IEC61131 address is used, address must
be divisible by 16. (e.g.: M00016W, I00032W, 000017W and 100033W.etc.)
6) To specify a certain bit within 16 bits of a register, add a period "." to the end of the
register number and a bit position next to the period. To specify a bit position when
using Modicon address, you can use a number between 1 and 16. The bit position 1
is the most significant bit, and the bit position 16 is the least significant bit. To
specify a bit position when using IEC61131 address, use a number between 0 and
15. The bit position 0 is the least significant bit, and the bit position 15 is the most
significant bit. (e.g. IW00010.9 and 400034.16)
7) The PT and device must not write to the same register. If doing so may result in
data incoherency.
8) When using IEC61131 address, do not use MD and ID but use MW and IW even
when the address is accessed by double word width.
154
9) The input register cannot be allocated to System Memory ($SB and $SW).
10) Do not allocate to System Memory ($SB) when using System Memory $SB control
bit. If doing so could result in failing to control.
11) When you copy the specified object
changing the address with Repeat
Function if the Modicon Address Style is
used and a bit address is specified for the
object, the addresses will be allocated to
each copied object based on the value set
in Offset Address in order from 16 to 1.
For example, if you copy a Bit Lamp with
an address 400002.16 using the settings
on the right (Offset Address is 1), the
addresses allocated to the copied Bit Lamps will be 400002.15, 400002.14,….
400002.02, 400002.01, 400003.16, 400003.15, 400003.14, 400003.13.
155
12-4 Changing Host Types
12-4-1 Changing Host Types between SYSMAC PLCs
The host type can be changed only when one
Modbus Device SYSMAC
host is registered with one serial port. In this
0 M CIO
case, the addresses will be replaced according
1 I WR
to the table on the right.
3 IW ⇔ HR
It is, however, impossible to replace a word
4 MW DM
number if the word number became 32768 or
above after changing the host type from Modbus to SYSMAC. When the host type is
changed from SYSMAC to Modbus, words 4096 and above in CIO and WR cannot be
replaced by addresses for Modbus. Addresses that were not replaced will become
"Invalid Addresses". For information on how to fix these addresses, refer to Notes and
Restrictions When Changing Host Types.
156
12-4-2 Changing Host Types to Change an Address Input Method
The host types cannot be directly changed between Modbus Machine (Modicon Address
Style) and Modbus Machine (IEC61131 Address Style). To change an address input
method after creating a project, follow the procedure below.
In the following procedure, Modicon Address is changed to IEC61131 Address as an
example. To change to Modicon Address, you can also use this procedure.
1) Click PT Menu - Communication Setting. Add a host to the Ethernet port
connecting to Modbus. Select Modbus Machine (IEC61131 Address Style) from the
host type (See figure below). Assume that the host added now is "HOST4" and the
host already registered is "HOST3".
1)Right-click
3)A host is added
2)Click “Add”
2) Select Find Menu - Replace. Make settings as described in the "1st" column. Click
Replace. It may take several minutes or more to complete replacing depending on
the size of the screen data. (Do not use the host name "HOST3" and "HOST4", but
use your own host names.)
3) Repeat the procedure No.2 three times. Do not use address in the "1st" column. Use
addresses in the "2nd" to "4th" column accordingly.
157
4) If Symbol Table Dialog Box is not 2)Click the highlighted item
158
12-6 Connecting Delta Tau Data Systems Motion Controllers
This section describes how to connect the Delta Tau Data Systems motion controllers
using the Modbus TCP.
12-6-1 Models
The connection with the motion controllers of the following model is supported:
・PowerPMAC EtherLite
12-6-2 Protocol
The Modbus TCP protocol can be used to connect.
159
12-6-4 Communication Settings for Project (NS screen data)
Follow the procedure described in “12-2 Connection Configuration” to perform the
communication settings. The recommended settings are described below when
connecting the motion controllers of this model.
NS-series PTs
Setting items Recommendation
Network Address Arbitrary
Node Address Arbitrary
UDP Port No. 9600
LAN Speed 10/100BASE-T Auto Switch
IP Address Arbitrary
Subnet Mask Arbitrary
Default Gateway Arbitrary
IP Proxy Address Arbitrary
Conversion Table No need to set
Host
Setting items Recommendation
Host Name Arbitrary
Type Modbus Machine (Modicon Address)
IP Address Arbitrary
Reading Words 40
Writing Words 40
Reading Bits 320
Writing Bits 320
Multi-byte Character Order in a Word Lower Byte is the Former Character
Endian of Double-word Data Higher Word -> Lower Word
Usage Note
To make communication efficient, the NS exchanges as a batch the data of the length
according to the values specified in “Reading Words” and “Writing Words”. For
example, when addresses 400001, 400010, and 400040 exist on the screen while the
above settings are effective, the NS obtains 400001 through 400040 as a batch.
160
However, the PowerPMAC does not support communication of the data that extend
across different variables. Therefore, be careful of the following points.
When assigning multiple variables on a single screen, make sure that the range
specified by “Reading Words” and “Writing Words” does not include more than one
address.
Example of correct settings:
Address set for Object 1: I6143(416384)
Address set for Object 2: M200(416786)
To freely set addresses, set “Reading Words” and “Writing Words” to “2”. Note,
however, that when you perform the above setting, the amount of communication
becomes large, which will affect performance. Confirm the performance before
moving on to actual operations.
161
12-6-5 Settings for the Motion Controller
Perform the following settings using POWER PMAC IDE.
3) Specify other items such as IP address the same as that described in sub-section
12-6-4.
162
12-6-6 Accessible Address Range
Only Modicon is supported as the address format.
All the variables of the motion controller will be mapped to “4: Holding Registers”.
The following table shows the ranges of the variables to be mapped.
163
Revision History
A manual revision code appears as a suffix to the Man. No. on the back cover of the manual.
OMRON Corporation Industrial Automation Company Authorized Distributor:
Kyoto, JAPAN
Contact: www.ia.omron.com
Regional Headquarters
OMRON EUROPE B.V. OMRON ELECTRONICS LLC
Wegalaan 67-69, 2132 JD Hoofddorp 2895 Greenspoint Parkway, Suite 200
The Netherlands Hoffman Estates, IL 60169 U.S.A.
Tel: (31)2356-81-300/Fax: (31)2356-81-388 Tel: (1) 847-843-7900/Fax: (1) 847-843-7787
OMRON ASIA PACIFIC PTE. LTD. OMRON (CHINA) CO., LTD. © OMRON Corporation 2009-2016 All Rights Reserved.
No. 438A Alexandra Road # 05-05/08 (Lobby 2), Room 2211, Bank of China Tower, In the interest of product improvement,
Alexandra Technopark, 200 Yin Cheng Zhong Road, specifications are subject to change without notice.
Singapore 119967 PuDong New Area, Shanghai, 200120, China
Tel: (65) 6835-3011/Fax: (65) 6835-2711 Tel: (86) 21-5037-2222/Fax: (86) 21-5037-2200 Cat. No. V092-E1-13 0416