Schnnieder Modicon Remote Access

Schnnieder Modicon Remote Access
Application Note
Schneider Modicon Modbus PLC’s
Remote Access with Westermo Modems
Schneider Modicon PLC - Remote Access
www.westermo.com
www.westermo.com
AN-0122-ENG rev2.2
Page 1
Application Note
Contents
Introduction…………………………………………………………………3
Setup of RS232 PLC Ports……………………………………………….4
Connection Flowchart……………………………………………………..5
Cable Pin Outs…………………………………………...........................6
Software Port Settings……………………….........................................7
Using Hyperterminal for the Modem Connection ………………………8
Testing the PLC Connection……………………………………………...9
Testing the PLC Connection Continued………………………………..10
Testing the PLC Connection Continued………………………………..11
Modem DIP Switch Settings and TDTool2...…………………………..12
Alternative Westermo to Modicon PLC Connections…………………13
Westermo ED20 to Modicon Ethernet PLC’s……….…………………14
Schneider Modicon PLC - Remote Access
www.westermo.com
www.westermo.com
AN-0122-ENG rev2.2
Page 2
Application Note
Section 1 - Introduction
There are many PLC applications that require a Remote connection, from Monitoring data,
SCADA control to PLC programming and register data adjustment. All of these
applications require a reliable connection in a variety of industrial conditions. Westermo
modems provide a reliable connection for these harsh industrial connections, which can
save an Engineer a costly trip to site or provide a communications link to a hazardous
area.
This Application Note provides detailed information on connecting Westermo Modems and
the Modicon brand of PLC’s available from Schneider Electric. The Modicon brand of
PLC’s use the Modbus protocol as default on the serial programming ports.
The equipment and versions required are as follows:
1x Laptop or Desktop PC with Westermo Modem connected on a comm port and the
following software pre-loaded
- ProWorx NXT V2.2 and above. ProWorx NXT32. Unity V2.0.1. Concept V2.6.
- Latest version of Modbus Unity driver where required.
- Microsoft Windows Hyperterminal or similar Terminal package
2x Modem to PC cable, 9 pin for most Westermo Modems and 25 pin for TD32B
- For 9 pin D type on Modem use Westermo cable Article number 9450-0003
- For 25 pin D type on Modem use Westermo cable Article number 9450-0002
2x Analogue telephone lines
or a Westermo Analogue Line simulator, Article number 9045-001
or ISDN lines for a Westermo ID-90V90 Modem.
1x Modicon Compact, 984 series, Momentum or Quantum PLC
1x Westermo Modem e.g. TDW33, TD-36, TD-36/485, TD-35 at the PLC.
Please note that a GSM modem is not currently included in this application note. The
GSM network introduces small inter-character timing changes which cause the Modbus
RTU message to be rejected due to the strict timing constraints with the protocol.
Schneider Modicon PLC - Remote Access
www.westermo.com
www.westermo.com
AN-0122-ENG rev2.2
Page 3
Application Note
Section 2 - Setup of RS232 Ports on Modicon Modbus PLCs
The default settings for the complete Modicon Compact, 984 Series, Momentum and
Quantum range of PLCs are shown below.
9600, 8 Data bits , Even parity and 1 Stop bit using the Modbus Protocol
Due to the different software packages available for the Modbus based PLC’s, each
having a different communication setup, HyperTerminal has been used for this
application note. The Modem dial up connection is made using Windows
Hyperterminal and then Hyperterminal is closed down and then the Programming
package is used to connect to the PLCs. Once the programming has been completed
then Hyperterminal is re-started and the Modem connection is terminated.
This application note is based around the default settings of the Modbus based
PLC’s. The settings of 9600,8,E,1 are used as standard memory settings for all of the
PLC’s listed above. The Compact, 984 Series and Quantum also have a DEF or RTU
switch setting that forces the port to be 9600,8,E,1 if the settings have been changed
in memory. When using the DEF or RTU switch the PLC address is taken from the
switch settings on the PLC that are also used for the PLC’s Modbus + address (where
applicable).
Proworx NXT does have a modem setting which forces the comm port settings at the
PC end to 9600,8,N,1. These settings are generally better for internal PC modems
(which are usually setup for Internet connections), but it means that the PLC port at
the remote site will require reconfiguring to these settings. The same settings will
then have to be used for any local programming on that PLC port as well. These
settings work fine with Westermo Modems but to keep everything the same for all
Modbus based PLC programming packages, the modem option is not used in this
application note.
NOTE:
ENSURE THAT THE PROCESS / MACHINERY IS IN A SAFE STATE
BEFORE DOWNLOADING, STARTING OR STOPPING THE PLC.
Schneider Modicon PLC - Remote Access
www.westermo.com
www.westermo.com
AN-0122-ENG rev2.2
Page 4
Application Note
Section 2 - Connecting Westermo Modems to a Modicon PLC
Start
TD-36, TD36/485
or TD-35
No
No
TDW33
Please refer to
Modem
Manufacturers
documentation
Yes
Yes
Connect to PC using Modem
cable and download Modem
Command String using TDTool2
as shown in Appendix 1
Setup DIP switches as
shown in Appendix 1
Use one of the RS232
connection methods shown
in Section 2 for the Remote
Modem to PLC connection.
Setup DIP switches as
shown in Appendix 1
Note:
On most Internal Digital Exchanges it is easier to
get a direct dial ISDN than an Analogue line. For
many Digital Exchanges, the Analogue card is only
fitted to provide Analogue lines for Fax machines
Connect PC to the Modem
using a Modem cable
Are analogue phone
lines being used?
No
Is an analogue line
simulator available?
Yes
Connect Modems
to analogue lines
using cables
supplied with
Modems
Yes
Connect Modems
to analogue line
simulator using
cables supplied
with Modems
No
Is the modem an
ID90V90 using ISDN?
No
Make provision for
analogue\ISDN phone
lines before restarting
connection process
Yes
Connect Modems
to ISDN lines
using cables
supplied with
Modems
Ensure that the
simulator has
power applied
End of Connection
Process
Schneider Modicon PLC - Remote Access
www.westermo.com
www.westermo.com
AN-0122-ENG rev2.2
Page 5
Application Note
Section 2 - Cable Pin Out Connections
RS232 Options
Westermo
Modem
Modicon PLC
M-M Gender Changer (Part No: 9450-0016)
Modem Cable
9M-9F Cable Part No:9450-0003
Or 25M- 9M for TD-32B (Part No:9450-0012)
Westermo
Modem
9 way D Connector
1
8
RJ45
Plug
Modicon
Momentum
PLC
9 Way Screw terminals
25 way D Connector
n.c.
2 7 3
3 8 2
4 3 20
5 1 7
6 2 6
7 6 4
8 5 5
Case of
Connector
n.c. 1
n.c. 2
4
3
5
6
7
8
RJ45 Connector
Schneider Modicon PLC - Remote Access
www.westermo.com
www.westermo.com
AN-0122-ENG rev2.2
Page 6
Application Note
Section 2 - Software Port Settings
Proworx NXT
With Proworx NXT there are two methods of working with a PLC. The first is Offline
where there is a copy of the PLC program already opened in Proworx and when
connecting to a PLC the programs must match in the PLC and on the PC. The second
method is Online which is a direct connection to the program in the PLC. In Offline
mode the communications settings are saved as part of the program whereas Online
settings are saved as the last used.
With either a program loaded
in Offline mode or with
Proworx in Online mode,
select Communications Setup
Check for the correct
port and settings
being used with the
Modem then click OK
Proworx NXT32
With Proworx NXT32 there are the same Offline and Online modes as described
above but with the addition of Emulation mode. Emulation mode is a simulator that
runs locally in the PC and is not used for PLC communications. For Online mode
setup please see Section 3 Testing the Modem connection.
If there is already an Offline
copy of the program then
select Communications
Schneider Modicon PLC - Remote Access
Check the settings then
click OK. Note that Modem
Setup is not required for
this application note.
www.westermo.com
www.westermo.com
AN-0122-ENG rev2.2
Page 7
Application Note
Section 3 - Using Hyperterminal for Dialling the Modem Connection
Start Windows Hyperterminal
and create a New Connection.
Enter a name and an icon for
the New Connection.
Select the PC com port
that is connected to the
Westermo Modem.
Then click on OK.
For standard Modbus settings,
configure the PC com port to be
9600,8,Even,1 and None for the
Flow Control. Then click on OK.
Ensure that the PLC Port Settings
are the same.
Analogue and ISDN Dialling Command String
Using Hyperterminal, enter the following string to dial
ATDPhone Number
Analogue Phone Line Simulator Command String
Using Hyperterminal, enter the following string to dial
ATD,,Phone Number
Once the Modems have connected, save and shutdown Hyperterminal.
Hyperterminal will be used again after using the Programming package to hang up
the modem connection. Using the command +++ (with no return) then ATH (return)
Schneider Modicon PLC - Remote Access
www.westermo.com
www.westermo.com
AN-0122-ENG rev2.2
Page 8
Application Note
Section 3 - Testing the Modem connection
Once the Modem connection has been established and the Modems are showing the
DCD led indicating that they are connected then close Hyperterminal and open the
Programming package. The following pages show how to connect across the established
modem connection using Proworx NXT, Proworx NXT32 and Unity. The same principles
shown in this application note can be applied to Concept and even older software
packages such as Modsoft if the PC is running Windows 98 first edition or earlier.
Proworx NXT
To connect to a PLC from Offline
or Online in Proworx NXT, select
Controller - Select Device.
Then enter the PLC address.
Default address is 1.
Once connected to the PLC, the
screen will show the animated
logic and the PLC RUN/STOP
state at the bottom of the screen
Schneider Modicon PLC - Remote Access
To disconnect from the PLC
select Controller - Offline.
www.westermo.com
www.westermo.com
AN-0122-ENG rev2.2
Page 9
Application Note
Section 3 - Testing the Modem connection
Proworx NXT32 Online
To go Online either direct or
to download a copy of the
PLC program, create a New
project and enter a name.
Either Select Online to
controller to work with
the program in the PLC
without an Offline copy
Then select Next
Or select Read from
Controller to upload a copy
of the PLC program as part
of connecting to the PLC
Proworx NXT32 Offline
Schneider Modicon PLC - Remote Access
Then Finish to begin the
PLC Connection over the
already established
Modem connection.
If there is already an Offline copy of the
PLC program then right click on the
program name and then select Project
State - Online. To disconnect from the
PLC select Project State - Offline.
www.westermo.com
www.westermo.com
AN-0122-ENG rev2.2
Page 10
Application Note
Section 3 - Testing the Modem connection
When Unity is started the Modbus
driver icon can be seen in the
windows tray at the bottom right hand
corner of the screen. Right click on
the icon and then select configure.
Check comms settings
then click Hide
To test the connection from
Unity, select either PLC Connect or select PLC - Set
Address as described here
Then select Driver Settings
Check PLC
address and
Modbus01, then
Communication
Parameters
Then click on the
Modbus Test tab and
select Modbus Serial
The connection can now be
tested using Connect then
Start. If the connection has
been made then the Request
indicator will flash and the
number of requests will clock
up. Select Stop then
Disconnect to finish.
To get back to the Unity
main menu, select OK
on each window
Schneider Modicon PLC - Remote Access
www.westermo.com
www.westermo.com
AN-0122-ENG rev2.2
Page 11
Application Note
Appendix 1 - Modem Switch Settings and TDTool2
It is also possible to use the DIP Switches to configure the Westermo Modems, TD-36,
TD-36/485 and TD-35, instead of using the CX Modem Support Tool or a Terminal
package, such as Hyperterminal, to enter the Modem Command Strings. The DIP Switch
settings shown below are the recommended settings for these Modems.
TD-36 and TD36/485
TD-35
SW1
SW2
ON
ON
1 2 3 4 5 6 7 8
SW3
1 2 3 4 5 6 7 8
SW 1
ON
1 2 3 4 5 6 7 8
ON
ON
1 2 3 4 5 6 7 8
SW4
ON
SW 2
ON
1 2 3 4 5 6 7 8
SW 4
SW 3
ON
ON
1 2 3 4
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
OFF for a modem
connected to a PC
1 2 3 4 5 6 7 8
OFF for a modem
connected to a PC
TDW33
The TDW33 is configured using TDTool 2 which is delivered with the modem. The
Windows based tool allows for simple configuration of the modem using pulldown
options for the AT command strings. TDTool 2 can also be used to configure the TD36
and TD36/485 modems. Once the configuration has been entered on each screen
select WRITE to store the new profile in the modem.
1) Connect Using
Auto baud and a
MC9/9 cable from PC
2) On Basic Tab, Set
the command %E0 and
Compression and
Error Correction to 0
Schneider Modicon PLC - Remote Access
3) On Serial Tab, Set to 9600, 8, E, 1 and
also set the commands
Q1E0&C1&K0&D0 at the PLC modem and
Q0E1&C1&K0&D0 at the PC modem.
4) On Dial Options, Set
the command &A1
www.westermo.com
www.westermo.com
AN-0122-ENG rev2.2
Page 12
Application Note
Appendix 2 - Alternative Westermo to Modicon PLC Connections
There are many other ways of connecting Modicon PLC’s using Westermo devices. There
are some example applications shown below, but for any other connection method please
contact Westermo.
The first applications shown below use the RS232 Fibre Optic Line Sharing modems to
create Linear and Redundant Ring configurations.
The first Ethernet example application shows the SDW541 Ethernet Switches connected by
up to 2Km of Multi Mode or up to 15Km of Single Mode Fibre Optic Cable. The second
Ethernet example application shows a Redundant Fibre Optic Ethernet ring using Switches
that can recover from a breakdown of the ring within 30mS.
ODW622 RS232 Linear Fibre Optic Network
SCADA or
programming PC
ODW632 RS232 Fibre Optic Ring
SCADA or
programming PC
Fibre
Ring
Ethernet and Fibre Optic Networks
SDW541
EDW100
EDW100
Up to
2Km MM/
15Km SM
of Fibre
Redundant
Ring
Switches
EDW100
SCADA or
programming PC
using SerialIP
SCADA or
programming PC
using SerialIP
EDW100
Serial
Ethernet
Ethernet
SDW541
Serial
Schneider Modicon PLC - Remote Access
www.westermo.com
www.westermo.com
AN-0122-ENG rev2.2
Page 13
Application Note
Appendix 3 - Westermo ED-20 to Ethernet Enabled PLC’s
It is possible to use Westermo Modems with Westermo ED-20's to either link two
Ethernet Networks or to connect to a PLC Ethernet Network using Microsoft Windows
Dial Up Networking. For greater detail on configuring the ED20, please see the ED20
Application Note available from Westermo.
Dial Up Networking
Note:
The Modem Type used for the following Dial up
Networking example was a TD-35 LV. The Article
number for a Westermo Null Modem Cable, used to
connect the Modem to an ED-20, is 9450-0210.
SCADA or
programming PC
LAN
PSTN
Modem
Modem
ED-20
Null
Modem
Cable
SDW
Switch
Connecting Ethernet Networks
SCADA or
programming PC
LAN
PSTN
or
LL
SDW
Switch
SCADA or
programming PC
Modem
ED-20
Null
Modem
Cable
Modem
Null
Modem
Cable
ED-20
SDW
Switch
Note2:
It is also possible to connect same subnet networks with a pair of
DDW-100 SHDSL Ethernet Extenders using existing twisted pair
cable, in the same manner as shown above with the DDW-100s
being used in place of the ED-20 and Modems.
Schneider Modicon PLC - Remote Access
www.westermo.com
www.westermo.com
AN-0122-ENG rev2.2
Page 14
Application Note
Schneider Modicon PLC - Remote Access
www.westermo.com
www.westermo.com
AN-0122-ENG rev2.2
Page 15
Application Note
Schneider Modicon PLC - Remote Access
www.westermo.com
www.westermo.com
AN-0122-ENG rev2.2
Page 16
Application Note
Schneider Electric Ltd
University Of Warwick Science Park,
Sir William Lyons Road,
Coventry
CV4 7EZ
Web: www.schneider.co.uk
Tel:+44(0)870 608 8608
Fax:+44(0)24 7641 7517
Westermo Teleindustri AB SE-640 40 Stora Sundby, Sweden
Westermo Web site: www.westermo.com
Sweden
www.westermo.se
support.sverige@westermo.se
Phone: +46 (0)21 548 08 00
Fax: +46 (0)21 351850
France
www.westermo.fr
support@westermo.fr
Tél : +33 1 69 10 21 00
Fax : +33 1 69 10 21 01
United Kingdom
Web: www.westermo.co.uk
technical@westermo.co.uk
Telephone: +44 (0)1489 580585
Fax: +44 (0)1489 580586
Singapore
www.westermo.com
sales@westermo.com.sg
Phone: +65 6743 9801
Fax: +65 6745 0670
Germany
www.westermo.de
support@westermo.de
Tel: +49(0)7254 95400-0
Fax: +49(0)7254-95400-9
International
www.westermo.com
support@westermo.se
Phone: +46 (0)16 42 80 00
Fax: +46 (0)16 42 80 01
Schneider Modicon PLC - Remote Access
www.westermo.com
www.westermo.com
AN-0122-ENG rev2.2
Page 17
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising