Order Number: PPX:505-8122-1
Manual Assembly Number: 2586546-0083
Original Edition
Copyright
1993 by Siemens Industrial Automation, Inc.
All Rights Reserved — Printed in USA
Reproduction,
contents is not permitted without express consent of
Siemens Industrial
created by patent grant or registration of a utility model or
design, are reserved.
Since Siemens Industrial Automation, Inc. does not possess
full access to data concerning all of the uses and applications
of customer’s products, we do not assume responsibility either
for customer product design or for any infringements of patents
or rights of others which may result from our assistance.
01/21/92
transmission or use of this document or
Automation, Inc. All rights, including rights
T
echnical data is subject to change.
W
e check the contents of every manual for accuracy at the
time it is approved for printing; however
undetected errors. Any errors found will be corrected in
subsequent editions. Any suggestions for improvement are
welcomed.
, there may be
MANUAL PUBLICA
TION HISTOR
Y
SIMATIC
Or
Refer to this history in all correspondence and/or discussion about this manual.
e 1-1
e 1-2
e 1-3
e 1-4
e 1-5
e 1-6
e 1-7
e 1-8
e 1-9
e 1-10
e 1-11
e 1-12
e 1-13
e 1-14
e 2-1
e 2-2
e 2-3
e 2-4
e 2-5
e 2-6
e 2-7
e 2-8
e 2-9
e 2-10
e 2-11
e 2-12
e 2-13
e 2-14
e 2-15
e 2-16
e 2-17
e 2-18
e 2-19
e 2-20
e 2-21
e 2-22
e 2-23
e 2-24
e 2-25
e 2-26
e 2-27
Multidrop
Quick
Address
Dipswitch
Series
Series
Installing
Series
Keying
Installing
Series
LED
LED
Sample
ASCII T
RTU T
Bit
Orientation
Read
Read
Read
Read
Read
Read
Read
Read
Read
Read
Write
Read
Write
Write
Read
Read
Exception
Execute
Execute
Get
Get
Get
Get
Write
and Point-to-point Configurations
Reference Installation Pr
Setting Examples
Settings for Network Data T
505 MODNIM Switches and LEDs
500 MODNIM Switches and LEDs
the Series 505 MODNIM in the I/O Base
505 MODNIM Example Dipswitch Settings
the I/O Base Slot for the Series 500 MODNIM
the Series 500 MODNIM in the I/O Base
505 and 500 MODNIM Indicator Lights
Status during Power-Up Self T
Status during Nor
Coil Status Example — Request
Coil Status Example — Response
Coil Status Example — Data Field
Input Status Example — Request
Input Status Example — Response
Input Status Example — Data Field
Output Register Example — Request
Output Register Example — Response
Input Register Example — Request
Input Register Example — Response
a Single Coil Example — Request
Input Register Example — Response
a Single Register Example — Request
a Single Register Example — Response
Exception Status Example — Request
Exception Status Example — Response
Status Bits
Diagnostics Example — Request
Diagnostics Example — Response
Comms Event Counter Example — Request
Comms Event Counter Example — Response
Comms Event Log Example — Request
Comms Event Log Example — Response
manual provides the following information on the Series 505 and
Series 500 MODNIM (Modbus Network Interface Module), model
numbers PPX:505–5184 and PPX:500–5184.
•
Basic features of the MODNIM
•
Installation and configuration
•
Diagnostic self-testing procedures
•
Operating instructions
•
Modbus commands and error responses
•
MODNIM specifications
Related Manuals
The following publications contain related information which supplement
this manual.
Series 505 Manuals
•SIMATIC TI505
•SIMA
•SIMATIC TI525/TI535
•SIMATIC TI545
Series 500 Manuals
•SIMATIC
•
•SIMATIC TI560/TI565
The following Gould Modicon publications are also recommended.
•
•
TIC TI505 TISOFT User Manual
TI520C
Series 500 I/O Base User’s Manual
Gould Modbus Protocol
Modbus System Planning
Programming Reference Manual
Hardware and Installation Manual
System Manual
/TI530C
(part no. PI-MBUS-300 Rev B)
Programmable Controller Manual
Programming Manual
(part no. PI-MBUS-PLN)
•
Gould Modicon J474/J475 Interface
Technical
Assistance
SIMATIC TI505/TI500 MODNIM User Manual
If you need information that is not included in this manual, or if you have
problems using the module, contact your Siemens Industrial Automation,
Inc. distributor or sales office. If you need assistance in contacting your
distributor or sales office in the United States, call 1–800–964-41
(part no. PI-J475-001 Rev B)
14.
Preface
ix
Chapter 1
1.1Modbus
Modbus
Modbus
Transmission
1.2Quick
1.3Setting
Refer
General
Procedures1-4
Handling
Inspecting
Getting
Dipswitch
Setting
Selecting
Data T
Stopbit
Parity/No
Odd/Even
ASCII/RTU
RTS/CTS
Y/C
Modbus system is a Local Area Network (LAN) designed to work in an
industrial environment. It is a master/slave network in which a number of
slave nodes (e.g., Programmable Logic Controllers, or PLCs) are connected
to a Master Node, which is a host computer
.
The Modbus protocol determines how messages are passed between the host
computer and the secondary nodes. Up to 247 slaves can reside on a single
network. Each node in that network must have a unique address ranging
from 1 to 247.
Because it is a master/slave network, each request is paired to one response.
The exception to this is broadcast mode, when no response is returned. This
mode is only valid for Modbus functions 5, 6, 8, 15, and 16.
NOTE:
Only the master can initiate a message in a Modbus network.
The following two types of messages are used.
•
The Request/Response type, where a single node is addressed.
•
The Broadcast/No Response type, where all nodes are addressed but
none respond.
Transmission
Modes
The Modbus message consists of an “envelope” which contains different
types of data. The envelope enables the data to be directed to the correct
address on the network. It also contains information to determine if the
contents were received correctly and instructions about what to do with the
data.
T
wo modes of data transmission are available for a given network; however
only one mode can be selected at a given time, and every node on the
network must conform to that mode. Usually
, the requirements of the host
computer determine which mode should be selected. The two modes are the
following.
ASCII (American Standard Code for Information Interchange)
•
•
RTU (Remote T
erminal Unit)
The MODNIM can be set to operate in either mode.
,
1-2
Installation and Set-up
SIMATIC TI505/TI500 MODNIM User Manual
Details
of the ASCII and RTU modes of transmission are listed in T
T
able 1-1Transmission Mode Characteristics
CharacteristicASCIIRTU
able 1-1.
Modbus
Modem
host
Code used:
Bits per character:
Start
Data78
Stop1 or 21 or 2
ParityOptionalOptional
ChecksumLRCCRC
7 bits hexadecimal
(ASCII printable)
11
8 bits binary
NOTE: On multidrop networks, the MODNIM requires a commercial modem
to connect to the Modbus network, as shown in Figure 1-1. The MODNIM
connected to a Series 505 PLC is equivalent to the use of the Modicon J475
modem interface with a Modicon PLC.
Modbus host
ModemModem
Multidrop
Modbus Network
Programmable
Configuration
Controllers
Figure 1-1 Multidrop
SIMATIC TI505/TI500 MODNIM User Manual
MODNIM
Point-to-point
and Point-to-point Configurations
Installation and Set-up
MODNIM
1-3
1.2Quick Reference Installation Steps
General
Requirements
Procedures
In
order to install and use the MODNIM module correctly
, you must meet
the following requirements.
•
Ensure that you have the appropriate MODNIM model.
•
The communications configurations of all devices attached to the
network must match; i.e., they must all have the same baud rate, stop
bits, parity
, handshaking, and transmission mode (ASCII or RTU).
Figure 1-2 provides a quick reference list of the basic steps for installing the
MODNIM.
Install power and I/O cabling.
Disconnect power to the I/O base.
Set configuration dipswitches.
Insert
module into selected I/O slot (Series 505) or two adjacent slots (Series 500).
Power up the I/O base.
Check MODNIM indicator lights.
V
erify MODNIM is logged into PLC.
Connect network cables.
Figure 1-2 Quick
Refer
ence Installation Pr
ocedures
1-4
Installation and Set-up
SIMATIC TI505/TI500 MODNIM User Manual
Handling the
Module
Many
integrated circuit (IC) devices are susceptible to damage by the
discharge of static electricity
. Follow the suggestions listed below to reduce
the probability of damage to these devices when you are handling this
Network Interface module, the PLC, a base controller
, or any of the I/O
modules.
Both the module and the person handling the module should be at the same
ground potential. Also, follow these guidelines.
•T
ransport the module in an anti-static container or antistatic material.
•
Ensure that the work area has a conductive pad with a lead connecting
it to a common ground.
•
Ground yourself by making contact with the conductive pad and/or by
wearing a grounded wrist strap.
Inspecting the
Module
Getting Started
with Configuration
and Installation
Inspect the module for any visible damage before setting any selectable
features. If damage is detected, contact your distributor or sales office for
further instructions.
The following sections describe the procedures for configuring the module,
installing the module in the base, connecting the communications cables to
the MODNIM, and initializing the system for operation. Before installing
the MODNIM, make sure that the PLC is installed and the programming
device is connected to the system.
SIMATIC TI505/TI500 MODNIM User Manual
Installation and Set-up
1-5
1.3Setting the Dipswitches
Dipswitch
Functions
Setting the Network
Address
The
MODNIM module has two blocks of dipswitches.
•
The block of 8 dipswitches is used to select the MODNIM’s address on
the network.
•
The block of 10 dipswitches is used to configure the network
communications parameters.
NOTE:
following a power-up or RESET
The configuration and address switch settings are read only once
. Be sure to reset the MODNIM following
any change in dipswitch settings or PLC memory configuration. In addition,
be aware that when the MODNIM is reset, no communication can occur
from the host to the module for several seconds.
Each node on a Modbus network must have a unique address. The range of
valid addresses is 1 to
247
(0000 0001 to 1111 0111). The address is set in
binary numbers using the block of 8 dipswitches.
NOTE:
invalid addresses and, if selected, cause the module to go into T
Addresses 0 or 248 to 255 (0000 0000 or 1111 1000 to 1111 1111) are
est mode.
Figure 1-3 shows examples of network addresses and their corresponding
dipswitch settings. (W
ith the Series 505 MODNIM, hold the module with
the faceplate pointing upward, as shown in Figure 1-5. For the Series 500
MODNIM, refer to Figure 1-6 for dipswitch orientation.)
Bit
Weight
Address
(0000
1
2
4
8
16
32
64
128
01
1
0001)
12345678
00000001
Represents direction to slide a sliding-type switch, or
=
side of switch to press down on a rocker-type switch
on Series 505 MODNIM.
Figure 1-3 Address
Address
(0001 1001)
1
2
4
8
16
32
64
128
01
25
12345678
00011001
Setting Examples
Address
(1
100 101
1
2
4
8
16
32
64
128
01
203
1)
12345678
11001011
1-6
Installation and Set-up
SIMATIC TI505/TI500 MODNIM User Manual
Selecting Network
Configuration
Parameters
The
block of 10 dipswitches is used to configure the network communication
parameters, which include data transmission rate, stopbit selection, parity
transmission mode, RTS/CTS handshaking, and output coil mapping.
(NOTE:
For all Series 500 MODNIM dipswitch settings, see Figure 1-6.)
,
Data T
ransmission
Rate
Stopbit Selection
Switches 1 through 4 are used to set the data transmission rate. All devices
on the network must be configured to communicate at the same data rate.
Switch settings for each of the available data rates are shown in Figure 1-4.
Switch 5 is used to select 1 or 2 stopbits. Set switch to the left for 1 stopbit,
to the right for 2 stopbits (on Series 505; for Series 500, see Figure 1-6).
Parity/No Parity
Selection
Switch 6 is used to select Parity or No Parity when communicating over an
RS-232-C data link. T
whether you need odd or even parity and set switch 7 accordingly
Odd/Even Parity
Selection
ASCII/R
TU Mode
Selection
RTS/CTS
Handshaking
If you selected Parity with switch 6, then you must also select either Odd or
Even Parity using switch 7. This switch is active only if switch 6 is set to
Parity
. Set switch to the left for Even parity
Switch 8 is used to select ASCII or RTU mode of transmission. Slide switch
to the left for ASCII mode, to the right for RTU mode.
Switch 9 is used to enable or disable RTS/CTS handshaking. If you are
using point-to-point connections without using modems, you can disable
RTS/CTS handshaking by setting switch 9 to the left. Set switch 9 to the
right to select RTS/CTS handshaking for use with modems.
Y/C Coil Selection
Switch 10 is used to determine whether the MODNIM collects data from the
PLC’
s Discrete Output (Y) memory or the Control Relay (C) memory
switch to the left for C coils, to the right for Y outputs.
SIMATIC TI505/TI500 MODNIM User Manual
o select Parity
, set switch to the left, then determine
.
, to the right for Odd parity
.
. Set
Installation and Set-up
1-7
Setting the Dipswitches (continued)
NIM GOOD —
Base power and
MODNIM operating status
XMT —
Data T
ON LINE —
Connected to the Modbus network.
Continuous
flashing
ransmit indicator
ON indicates
indicates
local
remote
mode
Series
mode;
505 MODNIM
MODNIM
NIM
GOODPCGOOD
XMT REC
ON
LINE TEST
REMOTE
PC GOOD —
PLC/MODNIM
communication
link status
REC —
Receiving Data
indicator
TEST —
T
est mode status
Side V
Faceplate Up
Dipswitch
Push
Down
Left
C COILS
RTS/CTS: OFF
ASCII MODE
PARITY: EVEN
PARITY
: ON
STOPBITS: 1
0
iew of Module,
Dipswitches
Settings
Push Down
Right
9
8
7
6
5
4
3
2
1
8
7
6
5
4
3
2
1
Y OUTPUT
RTS/CTS: ON
RTU MODE
PARITY: ODD
PARITY
STOPBITS: 2
1
1
1
1
install the Series 505 MODNIM in the selected slot of the I/O base, follow
these steps.
To
avoid the possibility of personal injury, damage to the module,
altering the PLC memory
power to the base’
s power supply and to any modules installed in
, or causing a PLC fatal error
, disconnect
the base before inserting or removing the MODNIM.
1.Disconnect
2.
Set the dipswitches, as described in Section 1.3. (See also Figure 1-8 for
power to the I/O base.
example dipswitch configuration settings.)
3.
Position the module so that the front bezel is facing you.
4.
Hold the top and bottom of the bezel and carefully slide the module into
the slot, pushing it all the way into the base connector
5.
Ensure that the edge card connector is firmly seated in the I/O base
. (See Figure 1-7.)
connector.
ighten the screws at the top and bottom of the faceplate with a flat-
6.T
bladed screwdriver
. (These screws also ground the module to the base.)
1-10
Installation and Set-up
Figure 1-7 Installing
Minimum
Maximum torque: 5.22 in-lb (0.6 N-m)
torque: 2.61 in-lb (0.3 N-m)
the Series 505 MODNIM in the I/O Base
SIMATIC TI505/TI500 MODNIM User Manual
Network
Configuration
Network Address
1 2 4 8 16 32 64 128
1
Figure 1-8 Series
Parity ODD/EVEN
Mode R
R
TS/CTS: OFF
C
coils/Y outputs
Baud Rate
(19200 shown)
Stop bits 2 or 1
Parity OFF
TU/ASCII
/ON
/ON
0
Network
address is
determined by the
sum of the values of
selected switches.
(Address
Note:
switch to press down.
2 shown)
D
= side of
505 MODNIM Example Dipswitch Settings
SIMATIC TI505/TI500 MODNIM User Manual
Installation and Set-up
1-11
Installing the MODNIM (continued)
Installing the
Series 500 MODNIM
in the I/O Base
!
WARNING
You
can key the Series 500 MODNIM module to prevent another I/O module
from being inserted by mistake into the two slots reserved for the MODNIM
module.
T
o do this, insert the three keys provided in the right slot of the two slots
occupied by the module so that they fit into the notches in the edge card of
the module. (See Figure 1-9.)
To
avoid the possibility of personal injury, damage to the module,
altering the PLC memory
power to the base’
the base before inserting or removing the MODNIM or the I/O slot
keys.
s power supply and to any modules installed in
, or causing a PLC fatal error
, disconnect
1-12
Installation and Set-up
Figure 1-9 Keying
the I/O Base Slot for the Series 500 MODNIM
SIMATIC TI505/TI500 MODNIM User Manual
Once
the I/O slot keys are in place, you can insert the module as follows.
1.
Set the dipswitches, described in Section 1.3.
2.
Position the module so that the front bezel is facing you.
3.
Hold the top and bottom of the bezel and carefully slide the module into
the slot, pushing it all the way into the base connector
. When the
module is fully seated in the I/O base, locking tabs will hold the module
in place. (See Figure 1-10.)
Locking
tabs
Locking tabs
Figure 1-10 Installing
4.T
o remove the module, pull the tabs away from the module and slide it
out of the base, being careful not to damage the edge card.
SIMATIC TI505/TI500 MODNIM User Manual
the Series 500 MODNIM in the I/O Base
Installation and Set-up
1-13
1.5Switches and Indicator Lights
Switches and
Buttons
Reset Button
The
three switches located on the face of the module behind the access door
are Reset, Self T
est, and Local/Remote, and are described in the following
paragraphs.
The Reset button is a momentary-contact switch which initializes the
MODNIM and initiates the power
-up self test. When you press Reset, all the
indicators turn on for approximately 1 second. Then, all indicators except
TEST go off for about 5 seconds. During this time, the MODNIM runs a
series of diagnostic tests to verify that the hardware components of the
module are operating properly
. In addition, buffers and counters that
service the Modbus Diagnostic Functions are initialized.
If the tests have been successfully completed, only the NIM GOOD and the
PC GOOD (PC/NIM COMM GOOD) indicators will turn back on, while the
TEST indicator turns off. If, however
the User Initiated Self-Test to determine the source of the error
NOTE:
Always press the Reset button after you change any of the
, the TEST indicator
remains on, run
.
configuration dipswitches or address selection dipswitches. In addition, be
aware that when the MODNIM is reset, no communication can occur from
the host to the module for several seconds.
T
est Button
Local/Remote
Switch
The T
est button initiates a series of diagnostic tests when it is held down for
3 seconds after a Reset operation. Before running the diagnostic tests,
disconnect all communications cables and install loopback connectors on the
RS-232-C communications ports. These tests are described in more detail in
Section 1.6.
When set to Remote, this two-position toggle switch enables the MODNIM
to perform write operations to PLC memory
. In the Local position, the
MODNIM cannot write to the PLC.
In either position, the MODNIM can monitor PLC memory and mode of
operation. After the MODNIM is set to Online state, local or remote status
is indicated as follows.
•Local
•Remote
When set to Local mode, only the Read functions 1, 2, 3, 4, 7, 1
mode is indicated by a
mode is indicated by a
flashing
steady
ONLINE indicator
ONLINE indicator
.
.
1, 12, and 17
plus diagnostics function 8 can be performed. All other functions (write
operations) will be rejected with Exception Code 01.
1-14
Installation and Set-up
SIMATIC TI505/TI500 MODNIM User Manual
Status
Lights
Indicator
The
MODNIM has six indicator lights (or LEDs) located on the faceplate of
the module (see Figure 1-1
diagnostic status of the module as described below
Series 505 MODNIM
NIM
GOODPCGOOD
XMTREC
1). These lights indicate the operational or
.
Series
500 MODNIM
NIM
GOOD
PC/NIM COMM GOOD
ONLINE
ON
LINETEST
Figure 1-11 Series
T
able 1-2 shows how to interpret the status of the six indicator lights on the
505 and 500 MODNIM Indicator Lights
RECEIVE
TRANSMIT
TEST MODE
faceplate of the MODNIM during normal operation. Section 1.6 describes
additional interpretations of the indicator lights during diagnostic testing.
T
able 1-2
IndicatorStatusDescription
NIM GOODOn
PC/NIM COMM GOOD
(PC GOOD)
ONLINE
RECEIVE (REC)OnReceiving data over the network
TRANSMIT (XMT)OnTransmitting data over the network
TEST MODE (TEST)
Status of Indicator Lights
All power-on, reset, or run-time diagnostic
tests have been passed successfully;
MODNIM operating correctly.
OnCommunicating successfully with PLC
On
Flashing
On
On
Flashing
Connected to the network: Remote mode
Connected to the network: Local mode
MODNIM in Test mode
Failure detected after power-up diagnostics
Tests completed
SIMATIC TI505/TI500 MODNIM User Manual
Installation and Set-up
1-15
1.6Diagnostic Tests
Built-in Diagnostic
Tests
Power
-up Self T
est
The
MODNIM has the following three levels of self tests available.
•Power
•
•User
The MODNIM executes a Power
•
-up Self T
Run-time Self T
-initiated Self T
ests
ests
ests
-up Self T
est in the following cases.
Immediately after you apply +5 VDC power from the I/O base as part of
initialization.
•
Any time the Reset button is pressed.
The Power
-up Self T
est checks the processor and performs a test of on-board
RAM and ROM. At the start of the test, all MODNIM indicators are turned
on for approximately 1 second, then all except the TEST MODE indicator go
off for about 5 seconds.
If the Power
-up Self T
est is successful, the NIM GOOD light turns on, and
the MODNIM attempts to establish communications with the PLC. If this is
successful, the PC GOOD (PC/NIM COMM GOOD) light turns on and the
MODNIM is ready for normal network control (see Figure 1-12).
If the Power
-up Self T
est fails, the TEST MODE indicator remains on and
the MODNIM will not respond to any communication attempts.
If the PLC does not respond, the PC GOOD (PC/NIM COMM GOOD)
indicator remains off, and the MODNIM will issue an exception response
with Error Code 04 (failure in associated device) to any host computer
initiating an interactive request to this MODNIM. In addition, the TEST
MODE indicator flashes at a 3-second interval, remaining on for 1 second.
Reset
or
Power-up
NIM
GOODPCGOOD
XMT REC
ON
LINE
TEST
1 second
Figure 1-12 LED
NIM
GOODPCGOOD
XMT REC
ON
LINE
TEST
5 seconds
NIM
GOODPCGOOD
XMT REC
ON
LINE
Successful
internal tests
Status during Power
TEST
-Up Self T
NIM
GOODPCGOOD
XMT REC
ON
LINE
TEST
Communicating
with PLC
est
1-16
Installation and Set-up
SIMATIC TI505/TI500 MODNIM User Manual
Run-time Self T
ests
The
MODNIM monitors itself continuously during normal operation as
follows.
The operating system continuously performs a ROM integrity test as a
•
background process.
•
The MODNIM periodically verifies that it is capable of communicating
with the PLC.
•
A W
atchdog T
imer circuit in the MODNIM guards against software
lockup.
If any failures are detected in the ROM integrity test, the NIM GOOD
indicator light turns off and the MODNIM is forced into the failed state. In
this condition, the module goes into the Offline Mode and will not respond to
any requests. (See Figure 1-13.)
When the MODNIM is in its normal operating mode but fails to
communicate with the PLC, it reports this failure to the host computer with
an exception response. Error code 04 (failure in associated device) is sent,
and the PC GOOD (PC/NIM COMM GOOD) indicator goes out. (See
Figure 1-13.) If communication is re-established, the MODNIM returns to
normal mode and the PC GOOD indicator goes back on.
NOTE:
goes on and remains on as long as everything is operating properly
The W
The first time a valid request is received, the ON LINE indicator
.
NIM
GOODPCGOOD
XMT REC
ON
LINE
TEST
All Run-time
tests OK
Figure 1-13 LED
atchdog T
imer circuit provides an extra measure of protection against
NIM
GOODPCGOOD
XMT REC
ON
LINE
TEST
ROM
Integrity Failure:
goes to Offline Mode
Status during Normal Run-T
Not Communicating with
PLC: reports Error Code 04
NIM
GOODPCGOOD
XMT REC
ON
LINE
TEST
ime Operation
network lockup due to a failed MODNIM. This circuit will force a RESET if
the operating software fails to execute normally
.
SIMATIC TI505/TI500 MODNIM User Manual
Installation and Set-up
1-17
Loading...
+ 63 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.