Guide Modbus ModScan and ModSim V1 PDF
Guide Modbus ModScan and ModSim V1 PDF
1
Content
Abbreviations 3
System 3
Architecture
Overview 4
Components
Hardware 5
Software 5
Communication 6
Installation
Introduction 7
Wiring diagram 8
Record Settings Menu 9
Menus, windows, and data types 9
Modbus serial
Communication 12
Coil status 15
Input status 17
Holding register 18
Modbus serial frame 20
Modbus TCP/IP
Connection 22
Frame in Modbus TCP/IP 24
Graphics (Minis HMI) 25
Contact 28
2
Abbreviations
Expression Meaning
PLC Programmable Logic Controller
ATV Altivar Speed Drive
UTP Shielded Twisted Pair
System
Introduction
3
Architecture
Overview
4
Hardware
Description or
Component Image
Schematic
Personal Computer Workstation
Workstation ready for
Cantidad: 1 configure and use the network
RS232
Software
General
The software that will be used for the practical work is Modscan and Modsim.
What is the tool for monitoring and managing Serial Modbus and Modbus networks?
TCP/IP.
5
Communication
General
Basically, RS232 cables with a DB9 connector are required to carry out the
connections between the two devices that belong to the network. Additionally,
needs two USB-RS232 converters.
List of items
Cable Connection
USB to RS232 converter
Number of nodes
6
Installation
Introduction
This chapter describes the necessary steps for hardware installation and
to comply with the following architecture of the practice.
7
Wiring diagram
The wiring table shown below describes all the
connections that must be made to carry out the practice.
2 RXD 3 TxD
3 TxD 2 RXD
4 DTR 6 DSR
5 GND(SG) 5 GND(SG)
6 DSR 4 DTR
7 RTS 8 CTS
8 CTS 7 RTS
9 R 9 R
8
Records configuration menu
Reset counter
Number of records Modbus Function
Connection or Definition of
disconnection data Show data Show Plots
Format of
data visualization
9
By clicking on the icon we can see the Modbus frames, in
black color is visible the question while without color is visible the
Modbus slave response.
10
We changed the pool time to select how often
we send the Modbus frames.
11
MODBUS SERIAL
Communication
12
We open the Modsim (Modbus slave)
13
We configure the port in Modsim as shown in the figure.
next (EMPHASIZING THAT THE PARAMETERS REMAIN
SAME AS THOSE CONFIGURED IN MODSCAN).
14
Coil status
We select the number of coils or digital inputs that
we want to read or write, as well as the address of the Modbus slave.
Direction of
Modbus slave
15
We see how the value changes in the (Modbus slave).
Memory address in
the Master
16
Input status
Change record 1
17
Holding register
As its name suggests, it is a record that they keep when writing a value.
in this record it is kept until it is modified by a
slave or a master its value ranges from 0 to FFFF_H which is
equivalent 65535.
Just like in the previous case, double-clicking on the value will
open the window (Write register), where the value is changed.
Address of
Modbus slave
By changing the value in the register, we see this new value reflected.
in the record (1) one of the slave.
18
In the same way, we write a log but from the slave.
towards the Master.
19
Modbus serial frame
The question the master asks the slave is seen in gray, while
that the response can be seen with a black background.
QUESTION (TEACHER)
20
ANSWER (SLAVE)
21
MODBUS TCP/IP
Connection
We verify the IP address on the network slaves by opening the
command prompt CMD, we enter the command IPconfig,
where we can see our IP address.
22
We enter the IP address of the device we are going to
connect and the port for Modbus TCP/ip which is always 502.
TCP/IP address
from the Modbus slave
Modbus Port
TCP/IP
23
Frame in Modbus TCP/IP
MBAP Header
d8 00 Transfer identifier
00 00 Protocol identifier (Modbus 00 00)
00 06 Number of bytes that are sent next.
05 Slave address that responds (Device Id)
24
Graphs (Minis HMI)
File
Costume forms
2. Colors of the
How often
time ago the
3. we click to
select the
information that
let's paint
25
We enter the necessary information for the graph that is going to
to paint.
We changed the color
from our line
Maximum value of the
We enable this graphic
route
Minimum value of the
graphic
Format of
record, in this
if we give
HOLDING REGISTER
Address of
slave from where
this is the information Data format
unsigned integer
Address of
record where I read
the data
26
In the slave (Modsim) we are going to simulate the change of a value
random to see how the graph changes.
27