Modbus Devices - User Manual - EN - 1.4
Modbus Devices - User Manual - EN - 1.4
SE-MBD-S854
www.schneider-electric.com
20/02/2020 User Manual – Modbus Device
Change Control
Rev Date Description
1.1 04-04-2016 Initial revision for Easergy Builder.
General Information
The Baseline Software Platform and all its components have been developed in accordance to the
requirements for a quality management system, complying with the ISO 9001:2015 Norm.
Reference Documents
Table 1 – Reference Documents
Pag 2
User Manual – Modbus Device 20/02/2020
Hardware/Software Compatibility
Controllers and software tools supported by each type of CPU is detailed are the following:
Table 3 – Hardware / Software compatibility
Easergy Builder √ √ √ √ √ √
Modbus master √ √ √ √ √ √
Modbus slave √ √ √ √ √ √
Modbus SEPAM √ √ × √ √ √
Modbus MICOM √ √ × √ √ ×
Saitel Webtool √ √ (Only V0) × √ × ×
webApp
× √ (V1 & later) × × √ √
Pag 3
20/02/2020 User Manual – Modbus Device
DANGER
DANGER indicates a hazardous situation which, if not avoided, will result in death or serious
injury.
WARNING
WARNING indicates a hazardous situation which, if not avoided, could result in death or
serious injury.
NOTICE
NOTICE is used to address practices not related to physical injury. The safety alert symbol shall
not be used with this signal word.
WARNING
If a malicious user gained access to your network, transmitted information could be disclosed or
subject to tampering.
To avoid malicious use of the sensitive information that will be transmitted through an internal
network, follow the instructions below:
• The access to the network must be restricted using standard controls such as firewalls.
• For transmitting data over an external network, encrypt protocol transmissions over all external
connections using an encrypted tunnel, TLS wrapper or a similar solution.
To Keep in Mind
Electrical equipment should be installed, operated, serviced, and maintained only by qualified
personnel. No responsibility is assumed by Schneider Electric for any consequences arising out of
the use of this material.
Qualified personnel are individuals who:
• Have read and understood the information on the device and its user manual.
• Are familiar with the installation, commissioning, and operation of the equipment and of the
system to which it is being connected.
• Are able to safely perform switching operations in accordance with accepted safety
engineering practices and are authorized to energize and de-energize equipment and to
isolate, ground, and label it.
• Are trained in the care and use of safety apparatus in accordance with safety engineering
practices.
Electronic equipment. This symbol indicates that, at the end of its life, this
Special instructions must module must be disposed according to the WEEE
be followed for disposed. Directive (Waste Electrical and Electronic Equipment).
DANGER
Not following these instructions can be dangerous for the people and the equipment.
Devices that handle dangerous tensions are marked with a sticker on the front label (size: 12,5
mm). This label must be visible all the time while the module is installed on the DIN rail.
Because of the variety of uses of the product, the managers of the application and use of this
controller device will have to take the measures to the fulfillment of all the safety requirements and
provision of each application. These requirements are according to the applicable laws,
regulations, codes and standard.
Pag 5
20/02/2020 User Manual – Modbus Device
Content
Pag 6
1 Easergy Builder & Modbus
20/02/2020 User Manual – Modbus Device
Content
Pag 8
User Manual – Modbus Device 20/02/2020
1.1 Introduction
NOTICE
Saitel DR basic heads (modules HU_B and HU_BI) don’t load VxWorks nor Linux. They operate
with a tailored-made software which includes the OS, database and applications.
The following figure shows the different applications included in the software platform, as well as
additional applications that implement protocols to upgrade Easergy Builder:
Figure 1 – Baseline Software Platform architecture.
The operating system abstracts the hardware from the software applications and manages the
applications in real time. It integrates the basic protocols to access the remote unit (SFTP, SSH,
etc.) and manage multiple users.
The real-time database, named coreDb, is probably the most important element. All the other
elements are developed around coreDb:
Pag 9
20/02/2020 User Manual – Modbus Device
CoreDb performs the real-time management of RTU signals. This real-time database is associated
with data producing and consuming Devices. Devices are the different data acquisition and
processing applications software which access coreDb.
For more information about the Baseline Software Platform, please consult the the manual
“Easergy Builder User Manual”.
The access to Easergy Builder is done through the Windows® Home Menu, or through the direct
access created on the desktop.
Figure 3 – Easergy Builder startup window.
Pag 10
User Manual – Modbus Device 20/02/2020
The Easergy Builder image depend on if there is a configuration active or not. For example, the
previous figure shows Easergy Builder when you are editing a configuration:
• 3: Edition zone.
• 4: Log console.
• 5: Device catalog.
The toolbar, main menu and edition zone will be detailed for each Device.
Editing a configuration, select the tab “Devices” in the zone 2 in order to show information about
the Devices available in your PC. At the right of the zone 2 you can see the catalog Device window:
Figure 5 – Device Catalog Window.
This window appearance might be slightly different depending on the installed Devices. More
information in the Easergy Builder user manual.
Pag 11
20/02/2020 User Manual – Modbus Device
The Modbus master is a set of programs running in the CPU. It consists of the software mdbmBinC
module, and at least a software module which implements a profile, such as mdbm_STD.
NOTICE
For now, only the STD profile is available.
Pag 12
User Manual – Modbus Device 20/02/2020
The Modbus slave is a set of programs running in the CPU. It consists of the software mdbeBinC
module, and at least a software module which implements a profile, such as mdbe_STD.
NOTICE
For now, only the STD profile is available.
Pag 13
20/02/2020 User Manual – Modbus Device
Pag 14
User Manual – Modbus Device 20/02/2020
Pag 15
20/02/2020 User Manual – Modbus Device
Content
Pag 16
User Manual – Modbus Device 20/02/2020
Where:
• FORMAT: Only for IR and HR. Its an optional field and can be:
o :U. Unsigned 16-bit signal (stored as integer).
o :L. 32-bit signal (stored as long).
o :F. 32-bit signal (stored as float).
o :D. 64-bit signal (stored as double).
If the format isn’t indicated IR or HR, the value is a signed 16-bit integer.
• With the function code Read Coil Status (01) the COIL points will be read from the slave. In this
case, this type of signals can only be associated as SOURCE of a STATUS or ANALOG point
in coreDb.
• With the function code Force Single Coil (05) or Force Multiple Coils (15) this type of points are
forced in the slave. In this case, the points are defined as DESTINATION in COMMAND or
SETPOINT.
INPUT STATUS
• This data type allows the following mappings: ANALOG (source) and STATUS (source).
• Using the function code Read Input Status (02), the signals will be read from the slave and
written to the coreDb. In this case, the signal is defined as SOURCE in STATUS or ANALOG.
Pag 17
20/02/2020 User Manual – Modbus Device
INPUT REGISTER
• Using the function code Read Input Register (04), signals will be read from the Modbus slave
and written to the coreDb. In this case, the signal is defined as SOURCE in STATUS or
ANALOG.
• By default, this data type is signed 16-bit signal. If not, the format must be indicated:
o :U. Unsigned 16-bit signal.
o :F. 32-bits float signal.
o :L. 32-bits long signal
o :D. 64-bits double signal.
• If the 32-bit variables need to be configured with two IR, the parameter “32 bit register” must be
unchecked. In this case, the coordinate associated to the first IR must be defined in the
coreDb. Thus, if you have a float variable (i.e. IR:203:F" and you want to define another
coordinate, this must not overlapped the coordinate IR:203:F (which takes two input registers),
but the coordinate "IR:205:F" must be allocated to it.
• If input registers are set to 32 bits, that is, the parameter “32 bit register” is checked, then the
coordinates can be defined consecutively.
• There are two options for 64-bit signals. They can use one 64-bit IR or four 16-bit IR. To
configure 64-bit variable it is necessary check the field “64 bit registers”.
HOLDING REGISTER
• This data type allows the following mappings: COMMAND (destination), SETPOINT
(destination), ANALOG (source) and STATUS (source).
• Using the function code Read Holding Register (03), the signals will be read from the slave and
written to the coreDb. In this case, the point must be defined as SOURCE in STATUS or
ANALOG.
• There are two options for 32-bit points, which are stored in a 32-bit HR or in two 16-bit HR
each.
• If the coordinate is :U, nothing, or :F or :L or :D using one register, the function code Preset
Single Register (06) is used. In this case, the coreDb point must be defined as DESTINATION
in SETPOINT or COMMAND.
• If the coordinate is :F or :L using two registers, the function code Preset Multiple Register (16)
is used. In this case, the coreDb point must be defined as DESTINATION in SETPOINT or
COMMAND.
• If the 32-bit variables need to be configured to take 2 HR, the parameter “32 bit register” must
be checked. In this case, the coordinate associated to the first HR of the point must be defined
in the coreDb. Thus, if you have a float variable named "HR:203:F" and you want to define
another coordinate, this must not overlapped the coordinate HR:203:F (which takes two HR),
but the coordinate "HR:205:F" must be allocated to it.
• If HR points are set to 32 bits, that is, the parameter “32 bit register” is checked. In this case,
following coordinates can be defined consecutively.
Pag 18
User Manual – Modbus Device 20/02/2020
• There are two options for 64-bit signals. They can use one 64-bit HR or four 16-bit HR. To
configure 64-bit variable it is necessary check the field “64 bit registers”
• If the coordinate is :D using four registers, the function code Preset Multiple Register (16) is
used. In this case, the coreDb point must be defined as DESTINATION in SETPOINT or
COMMAND.
• DIAG:SERV: It is defined as SOURCE in STATUS or ANALOG. The value is “1” when the
slave replies to all the master's questions correctly. The value is “0” when there is a
communication error or it indicates that the RTU is not available.
Pag 19
20/02/2020 User Manual – Modbus Device
• DIAG:FC1: It is defined as SOURCE in STATUS or ANALOG. The value is “1” when there
is a communication fault in the primary channel associated to LINK. If the communication is
established through a simple channel, not a LINK, the value of this signal, if defined, will
never be written. The first writing to coreDb, after resetting the remote unit, does not
generate events.
• DIAG:FC2: It is defined as SOURCE in STATUS or ANALOG. The value is “1” when there
is a communication fault in the secondary channel associated to LINK. If the
communication is established through a simple channel, not a LINK, the value of this
signal, if defined, will never be written. The first writing to coreDb, after resetting the remote
unit, does not generate events.
NOTICE
If the Modbus operated in a simple channels (not a Link), the signals DIAG:FCi are not
applicable.
Following table resumes the supervision point corresponding to Modbus master device: D:
indicates that the type is allowed as a “destination” and S: indicates that the type is allowed as a
“source”.
Table 6 – Diagnostic points for Modbus master (STD profile)
DIAG:SERV S S
DIAG:EXCEPTION S S
DIAG:FC1 S S
DIAG:FC2 S S
DIAG:FERR S S
It should be noted that there is one DIAG_SERV signal per Master, in other words, for each
SEPAM device. This signal is 1 when ALL requests are attended by the slave (SEPAM). If the
slave does not answer a question correctly, this signal becomes 0.
• DIAG:FC1 or DIAG:FC2 are associated with communications on channel 1 and channel 2 for a
link.
Pag 20
User Manual – Modbus Device 20/02/2020
At the left side in the configuration view of Easergy Builder, you can see the Devices tree for the
configuration that you are defining.
Use the button "Add" or the right-button of the mouse (on the tree) for creating a new Device.
Figure 9 – New Device.
Where:
• Type: Type of the new Device. For Modbus Master you must select “Modbus Master”.
• Name: Name of the new Device (Only letter, numbers and ‘_’ character are allowed for the
name).
Previously, you need to have configured the communication channels. To do that, please consult
the "Easergy Builder User Manual".
NOTICE
The communication port to TCP Modbus is 502 (please, refer to the manual to specify this
value).
Select the communication channel and number of the Slave for this Device. The Slave number for
a Device must be unique into each channel. The channel assigned to the master Device must be
configured as SwitchByMaster; the active channel is the receiving channel.
Select the Modbus profile (only STD profile is available for this version).
You have to configure at least one request in order to create the new Device.
The new Device will be shown in the tree
Pag 21
20/02/2020 User Manual – Modbus Device
NOTICE
The maximum number of Modbus master Devices is 600 for SM_CPU866e and 256 for any
other platform
You can double click on the Device (or use the button Modify) in order to edit or consult the
configuration.
Figure 12 – Configuration of a Modbus Master Device:
Where:
• Modbus Type: It allows a profile to be selected from the installed profiles (only STD profile is
available).
• Communication Protocol: It sets the protocol to serial (Modbus serial) or TCP (Modbus TCP).
• Communication Timeout: If the Modbus master does not receive responses from the Modbus
slave for a longer period than this Timeout, the communication is considered interrupted. The
communication status can be monitored using the supervision signal DIAG:SERV.
Pag 22
User Manual – Modbus Device 20/02/2020
Each Profile can include a configuration section. A series of parameters related to the protocol and
data requests need to be defined. Press button , next to the “Modbus type” field. The following
items need to be specified
Figure 13 – Modbus master configuration.
• Offline Period: Time period after which the remote unit, previously unavailable, is polled again.
It is the offline period.
• Retries after timeout: Number of times the remote unit is polled with no response before it
becomes unavailable. Max 255.
• Retries after error: Number of times an erroneous response from the remote unit is allowed
before it becomes unavailable. If the slave is replying to the master’s polling incorrectly, the
master will poll the same enquiry the times defined before the remote unit becomes
unavailable. Max 255.
• 32 bit registers: If this option is enabled, Input and Holding Registers are 32 bits signals, so a
float or long data will only take one register. Nevertheless, if this option is not enabled, and we
have float or long data, these will take two Input or Holding Registers. This condition must be
considered when setting the coordinates.
• 64 bit registers: If this option is enabled, Input and Holding Registers are 64 bits signals, so a
double data will only take one register. Nevertheless, if this option is not enabled, and you have
double, these will take four Input or Holding Registers. This condition must be considered when
setting the coordinates.
• Modicon: It indicates the data format for the variables. From a Modbus point of view, they take
32 bits. If Modicon is enabled, the first Modbus message will send the least significant two
bytes of the 32 bits and then the most significant two bytes (applicable for Input and Holding
Register).
• Requests:
NOTICE
A maximum of 100 request can be set.
o Read Function: Reading Polling function code. It depends on the profile. Please note
the function codes which can be defined are read-only codes. The writing function
Pag 23
20/02/2020 User Manual – Modbus Device
codes (05 and 06) are not defined, but are implicit in the coordinates. These
messages are generated through the coreDb events.
o When function code 16:SYNCHRONIZATION is set, a synchronization message
(using 2 HR) is sent according to the Modbus PEMEX protocol. Each HR is a floating
32-bits data with format: MMDDYY.0 date, HHMMSS.0 hour. The number of bytes is
always 8.
o Start Address: Initial register from which data are to be read.
o Number of registers: Number of registers polled. The maximum number depends on
the size of the frame (250 bytes according to the normativa of Modbus). For this
length, You can request:
2000 CS or IS
62 HR or IR (when L or F)
125 HR or IR (when U or nothing)
31 HR or IR (D)
o Period: Polling period for the query (milliseconds). It is the cadence with which the
master polls the slave. As minimum, the master will poll every “Period” milliseconds.
If the channel's load is very high, the polling time might increase, so maybe the
polling does not take place at the time exactly defined in “Period”.
• The request must be defined having in account the number of bits. For example, if there are
16-bit variables (HR:201:U, HR:204:U) and other 32-bit variables (HR:206:L, HR:216:F) and all
them must be read, it is necessary to do two different requests:
Function code: 03 Start address: 201 Number of registers: 4
Function code: 03 Start address: 206 Number of registers: 12
• In the previous sample (first request), the master needs read the value of two HR, HR:201:U
and HR:204:U. It is necessary to ask for 4 registers.
• If there are defined some coordinates :L and/or :F and you have 32-bit registers, if you need
read a point associated to these coordinate, you have to request a HR for each point.
• For example, if you want 5 points (HR:201:L, HR:202:L, HR:203:L, HR:204:F, HR:205:F):
o If “32 bit registers” is checked, the request will be: (Function code: 03, Start address:
201, Number of registers: 5).
o If “32 bit registers” is unchecked, the request will be: (Function code: 03, Start
address: 201, Number of registers: 10), that is, to read 5 points, you have to request
10 HR.
About the requests relationed with commands, there are the following options:
• A command to a 16-bit HOLDING REGISTER, writing a float or long. You must define the
coordinates HR:203:F and HR:203:L respectively, and the master will send two HR (32-bit
value) with function code 16.
Pag 24
User Manual – Modbus Device 20/02/2020
• A command to a 32-bit HR. You have defined coordinates with :L or :F. The master will send
the request with 4 bytes and the slave must understand that 32-bit HR are in use
Pag 25
3 Modbus Slave (STD Profile)
User Manual – Modbus Device 20/02/2020
Content
Pag 27
20/02/2020 User Manual – Modbus Device
• With the function code Read Coil Status (01) the COIL points will be read when requested by
the master.
• Using function codes Force Single Coil (05) and Force Multiple Coils (15) this type of points are
forced by the master.
INPUT STATUS
• This data type allows the following mappings: STATUS (source and destination), ANALOG
(source and destination), COMMAND (source and destination) and SETPOINT (source and
destination).
• Using the function code Read Input Status (02), the signals will be read when requested by the
master.
INPUT REGISTER
• This data type allows the following mappings: STATUS (source and destination), ANALOG
(source and destination), COMMAND (source and destination) and SETPOINT (source and
destination).
• By default, this data type is signed 16-bit signal. If not, the format must be indicated:
o :U. Unsigned 16-bit signal.
o :F. 32-bits float signal.
o :L. 32-bits long signal
o :D. 64-bits double signal.
• If the 32-bit variables need to be configured with two IR, the parameter “32 bit register” must be
unchecked. In this case, the coordinate associated to the first IR must be defined in the
coreDb. Thus, if you have a float variable (i.e. IR:203:F" and you want to define another
coordinate, this must not overlapped the coordinate IR:203:F (which takes two input registers),
but the coordinate "IR:205:F" must be allocated to it.
• If input registers are set to 32 bits, that is, the parameter “32 bit register” is checked, then the
coordinates can be defined consecutively.
Pag 28
User Manual – Modbus Device 20/02/2020
HOLDING REGISTER
• This data type allows the following mappings: STATUS (source and destination), ANALOG
(source and destination), COMMAND (source and destination) and SETPOINT (source and
destination).
• Using the function code Read Holding Register (03), the signals will be read when requested
by the master.
• There are two options for 32-bit points, which are stored in a 32-bit HR or in two 16-bit HR
each.
• If the coordinate is :U, nothing, or :F or :L or :D using one register, the function code Preset
Single Register (06) is used. In this case, the coreDb point must be defined as DESTINATION
in SETPOINT or COMMAND.
• If the coordinate is :F or :L using two registers, the function code Preset Multiple Register (16)
is used.
• If the 32-bit variables need to be configured to take 2 HR, the parameter “32 bit register” must
be checked. In this case, the coordinate associated to the first HR of the point must be defined
in the coreDb. Thus, if you have a float variable named "HR:203:F" and you want to define
another coordinate, this must not overlapped the coordinate HR:203:F (which takes two HR),
but the coordinate "HR:205:F" must be allocated to it.
• If HR points are set to 32 bits, that is, the parameter “32 bit register” is checked. In this case,
following coordinates can be defined consecutively.
• There are two options for 64-bit signals. They can use one 64-bit HR or four 16-bit HR. To
configure 64-bit variable it is necessary check the field “64 bit registers”
• If the coordinate is :D using four registers, the function code Preset Multiple Register (16) is
used.
Pag 29
20/02/2020 User Manual – Modbus Device
MDBE_COM_STATUS S
MDBE_COM_ENABLED D
At the left side in the configuration view of Easergy Builder, you can see the Devices tree for the
configuration that you are defining.
Use the button "Add" or the right-button of the mouse (on the tree) for creating a new Device.
Figure 14 – New Device
• Type: Type of the new Device. For Modbus slave you must select “Modbus Slave”.
Pag 30
User Manual – Modbus Device 20/02/2020
• Name: Name of the new Device (Only letter, numbers and ‘_’ character are allowed for the
name). Max. 32 characters).
Previously, you need to have configured the communication channels. To do that, please consult
the Easergy Builder user manual.
NOTICE
The communication port to TCP Modbus is 502 (please, refer to the manual to specify this
value)
Select the communication channel and number of the Slave for this Device. The Slave number for
a Device must be unique into each channel. The channel must be set to AutoSwitch; the active
channel is the receiving channel
Select the Modbus profile (only STD profile is available for this version).
The new Device will be shown in the tree.
Figure 16 – New modbus master device
You can double click on the Device (or use the buttom Modify) in order to edit or consult the
configuration.
Pag 31
20/02/2020 User Manual – Modbus Device
Where:
• Modbus Type: It allows a profile to be selected from the installed profiles (only STD profile
is available).
• 32 bit registers: If this option is enabled, Input and Holding Registers are 32 bits signals,
so a float or long data will only take one register. Nevertheless, if this option is not enabled,
and we have float or long data, these will take two Input or Holding Registers. This
condition must be considered when setting the coordinates.
• 64 bit registers: If this option is enabled, Input and Holding Registers are 64 bits signals,
so a double data will only take one register. Nevertheless, if this option is not enabled, and
you have double, these will take four Input or Holding Registers (or two if “32 bit registers”
is checked). This condition must be considered when setting the coordinates.
• Modicon: It indicates the data format for the variables. From a Modbus point of view, they
take 32 bits. If Modicon is enabled, the first Modbus message will send the least significant
two bytes of the 32 bits and then the most significant two bytes (applicable for Input and
Holding Register).
• Communication Protocol: It sets the protocol to serial (Modbus serial) or TCP (Modbus
TCP).
• Communication Timeout: If the Modbus slave does not receive responses from the
Modbus master for a longer period than this Timeout, the communication is considered
interrupted. The communication status can be monitored using signal
MDBE_COM_STATUS
Pag 32
4 Modbus SEPAM
20/02/2020 User Manual – Modbus Device
Content
Pag 34
User Manual – Modbus Device 20/02/2020
Digital Inputs
Analog Inputs
Command Inputs
• DIAG:SERV: It is defined as a STATUS-SOURCE. The value is “1” when the slave replies to
all the master's questions correctly. The value is “0” when there is a communication error or it
indicates that the RTU is not available.
Pag 35
20/02/2020 User Manual – Modbus Device
NOTICE
If the Modbus operated in a simple channels (not a Link), the signals DIAG:FCi are not
applicable.
Following table resumes the supervision point corresponding to Modbus SEPAM device.
Table 10 – Coordinate mapping in coreDb and Diagnostic points of Modbus SEPAM
coreDb Points
Diagnostic Points
DIAG:EXCEPTION S
DIAG:SERV S
DIAG:FC1 S
DIAG:FC2 S
1When you define a command using his coordinate, you have always to use the selection address. Never use the
execution address.
Pag 36
User Manual – Modbus Device 20/02/2020
• For each SEPAM a SYNC request is sent every X time. For example, if you need every 24
hours, 86400000ms will be configured. A request will be sent to each of the devices in the
channel, so this option generates a lot of information traffic on the network.
• The recommended option is to use a broadcast message. To do this, a SYNC message must
be configured on each device and set 1 in the "Sync. Broadcast" field. In this case, a broadcast
message would be sent every time indicated in FREQ. The advantage is that when the first
SYNC request is executed (the first of all the Devices), it is sent in broadcast to all the devices
of the channel, so it is not necessary to send it to each device individually. With this option, the
network traffic is not affected.
Therefore, it is recommended:
• Define a SYNC message for each Modbus SEPAM device in our configuration
At the left side in the configuration view of Easergy Builder, you can see the Devices tree for the
configuration that you are defining.
Use the button "Add" or the right-button of the mouse (on the tree) for creating a new Device.
Figure 18 – New Device
Pag 37
20/02/2020 User Manual – Modbus Device
Where:
• Type: Type of the new Device. For Modbus SEPAM you must select “Sepam Protocol”.
• Name: Name of the new Device (Only letter, numbers and ‘_’ character are allowed for the
name). Max. 32 characters).
Previously, you need to have configured the communication channels. To do that, please consult
the Easergy Builder user manual.
Select the communication channel and number of the Master for this Device. The Master number
for a Device must be unique into each channel.
The new Device will be shown in the tree:
Figure 20 – New Modbus SEPAM Device.
You can double click on the Device (or use the buttom Modify) in order to edit or consult the
configuration.
Pag 38
User Manual – Modbus Device 20/02/2020
Where:
• Sync. Broadcast: The synchronization request is in broadcast mode (1) or nominal (0).
• Link timeout: If no response is received from the slave for longer than this time, is considered
to have been broken the communication. It takes into account also the retries configured by the
parameter "Retries by timeout" set to each slave. The communication status can be monitored
by the monitoring signal DIAG: SERV. Recommended value: 1000 ms
Pag 39
20/02/2020 User Manual – Modbus Device
• Event confirm FC: Function code to be used to confirm that events were read. Recommended
value: 6
o 5: Write Single Coil
o 6: Write Single Register
o 15: Write Multiple Coils
o 16: Write Multiple Registers.
• Event Zone 1: Position of the bit in Check-Word indicating lost events in zone 1. The value to
be set depends on the type of SEPAM device.
• Overflow Zone 1: Position of the bit in Check-Word indicating not confirmed events in zone 1.
The value to be set depends on the type of SEPAM device.
• No Sync: Position of the bit in Check-Word that indicating the device is not synchronized. The
value to be set depends on the type of SEPAM device.
• Event Zone 2: Position of the bit in Check-Word indicating lost events in zone 2. The value to
be set depends on the type of SEPAM device.
• Overflow Zone 2: Position of the bit in Check-Word indicating not confirmed events in zone 2.
The value to be set depends on the type of SEPAM device.
To map signals in coreDb, we must know that the coordinates of the points defined in the
COMMAND or SETPOINT table for a sepam type bin have the following format:
Address[:S`Address´][:b`Bit´][:F`Function_code´]
Where:
• Address: This is the address of the Modbus registry to be written. Its value is between 0 and
65535. If the address is prefixed with the string "0x", the value of the register address is
considered to be in hexadecimal format.
• S`Address´: This parameter is optional. It is the address of the Modbus register to write the
command selection. If this parameter is set to the coordinate, it means that the execution is
prefixed with the string "0x", the value of the register address is considered to be in
hexadecimal format.
• B`Bit´: This parameter is optional. Its value is between 0 and 15. Its functionality depends on
the parameter `FFunction_Code´:
o If the function code is 5 (Write Single Coil) or 16 (Write Multiple Registres) this field
has no functionality.
o If the function code is 6 (Write Single Registrer) it indicates the bit to write from the
register.
o If the function code is 15 (Write Multiple Coils) it indicates the number of outputs to be
written. If the value of the field is 0, an output is written. If it is 15, 16 outputs are
written.
Pag 40
User Manual – Modbus Device 20/02/2020
• Number of Registers: Number of the requested registers. This value depends on the function
code:
o Max value 0: For FC 5 (Write Single Coil) or 6 (Write Single Register).
o Max value 123: For FC 16 (Write Multiple Registers).
o Max value 125: For FC 3 (Read Holding Registers) or 4 (Read Input Registers).
o Max value 1968: For FC 15 (Write Multiple Coils).
o Max value 2000: For FC 1 (Read Coils) or 2 (Read Discrets Inputs).
Pag 41
5 Modbus MICOM
User Manual – Modbus Device 20/02/2020
Content
Pag 43
20/02/2020 User Manual – Modbus Device
This Device is used to set the communications between coreDb and the MiCOM P127 protection.
NOTICE
HU250 (T300) does not support modbus MICOM device.
Where:
• Address: Address of the Modbus register. If the prefix ‘0x’ is used, the address is in
hexadecimal format.
• b’Bit’: (Optional). Number of bit to be read in the register. This value depends on the ‘Format’
parameter. If is a 16-bits word, the value is between 0 and 15, else if it is a 32-bits word,
between 0 and 31.
• Format: Format of the received data according to the following table. Default value: signed 16-
bits word.
Table 11 – Format for MICOM data
For tables COMMAND and SETPOINTS the coordinates have the following format:
• Address: Address of the Modbus register to be write. If the prefix ‘0x’ is used, the address is in
hexadecimal format.
• b’Bit’: (Optional). The value is between 0 and 15. It depeds on the value for Function_code.
o Not applies for FC 5 (Write Single Coil) or 16 (Write Multiple Registers).
o Number of bit to be written in the register for FC 6 (Write Single Register).
o Number of outputs to be wrotten if FC is 15 (Write Multiple Coils). Value 0 indicates 1
output is written, value 15 indicates 16 outputs are written.
Pag 44
User Manual – Modbus Device 20/02/2020
• DIAG:SERV: It is defined as SOURCE in STATUS. The value is “1” when the slave replies to
all the master's questions correctly. The value is “0” when there is a communication error or it
indicates that the RTU is not available.
Pag 45
20/02/2020 User Manual – Modbus Device
Following table resumes the supervision point corresponding to Modbus MICOM device.
Table 12 – Mapping in coreDb for Modbus MICOM.
coreDb Points
Read Coils S S
Read Discrets Inputs S S
Read Holding Registers S S
Read Input Registers S S
Write Single Coil D D
Write Single Register D D
Write Multiple Coils D D
Write Multiple Registers D D
Diagnostic Points
DIAG:SERV S S
DIAG:FC1,DIAG:FC2 S S
DIAG:EXCEPTION S S
DIAG:FMT_DATE S S
DIAG:ACK_MODE S S
At the left side in the configuration view of Easergy Builder, you can see the Devices tree for the
configuration that you are defining.
Use the button "Add" or the right-button of the mouse (on the tree) for creating a new Device
Figure 22 – New Device.
Where:
• Type: Type of the new Device. For Modbus MICOM you must select “MICOM Master
Protocol”.
• Name: Name of the new Device (Only letter, numbers and ‘_’ character are allowed for the
name). Max. 32 characters).
Pag 46
User Manual – Modbus Device 20/02/2020
Figure 23 – Communication channel, number of slave and profile associated to the Device
Previously, you need to have configured the communication channels. To do that, please consult
the Easergy Builder user manual.
Select the communication channel and number of the Slave for this Device. The Slave number for
a Device must be unique into each channel.
The new Device will be shown in the tree:
Figure 24 – New Modbus SEPAM Device.
You can double click on the Device (or use the buttom Modify) in order to edit or consult the
configuration.
Figure 25 – Configuration of a Modbus SEPAM Device.
Pag 47
20/02/2020 User Manual – Modbus Device
Where:
• Link timeout: If no response is received from the slave for longer than this time, is
considered to have been broken the communication. It takes into account also the retries
configured by the parameter "Retries by timeout" set to each slave. The communication
status can be monitored by the monitoring signal DIAG: SERV. Recommended value: 1000
ms
• Decode Event Mode: The value of “Address” and “Value” must be interchanged (1) or not
(0).
• No ACK Event: Number of bit of the register ‘relays status’ for not confirmed events. Value
between 0 and 15. For MiCOM P127 must be set to ‘2’.
• No Sync: Number of bit of the register ‘relays status’ for not synchronized protection.
Value between 0 and 15. For MiCOM P127 must be set to ‘3’
Pag 48
User Manual – Modbus Device 20/02/2020
• Number of Registers: Number of the requested registers. This value depends on the function
code:
o Max valud 0: For FC 5 (Write Single Coil) or 6 (Write Single Register).
o Max value 123: For FC 16 (Write Multiple Registers).
o Max value 125: For FC 3 (Read Holding Registers) or 4 (Read Input Registers).
o Max value 1968: For FC 15 (Write Multiple Coils).
o Max value 2000: For FC 1 (Read Coils) or 2 (Read Discrets Inputs).
• Number of bit: Number of the bit into the word to be read or written.
Pag 49
20/02/2020 User Manual – Modbus Device
Index of Figures
Figure 1 – Baseline Software Platform architecture. .................................................................................................... 9
Figure 8 – Overview of relations between coreDb and the Modbus MICOM module. ...............................................13
Figure 10 – Communication channel, number of slave and profile associated to the Device. ..................................21
Figure 15 – Communication channel, number of slave and profile associated to the device. ..................................31
Figure 19 – Communication channel, number of slave and profile associated to the Device. ..................................38
Figure 23 – Communication channel, number of slave and profile associated to the Device ...................................47
Pag 50
User Manual – Modbus Device 20/02/2020
Index of Tables
Table 1 – Reference Documents .................................................................................................................................. 2
Pag 51
20/02/2020 User Manual – Modbus Device
Glossary
A
ASDU: Application Service Data Unit
C
CoreDb: Real time database of the Baseline Software Platform.
CPU: Central Processing Unit.
D
DB: Data base.
E
EN: English Languaje
H
HU_A: Saitel DR Advanced Head Unit.
HU_AF: Saitel DR Advanced Head Unit with acquisition.
HU_B: Saitel DR Basic Head Unit.
HU_BF: Saitel DR basic HU with acquisition
I
IED: Intelligent Electronic Device.
I/O: Input / Output.
ITB: Intelligent Terminal Block.
L
LAN: Local Area Network.
O
OSI: Open System Interconnect
P
PC: Personal Computer.
PLC: Programable Logic Controler.
R
RAM: Random Access Memory.
RTU: Remote Terminal Unit.
Rev: Revision.
RTC: Real Time Clock
RTOS: Real Time Operating System
Pag 52
User Manual – Modbus Device 20/02/2020
S
SBO: Select Before Operate.
SCADA: Supervisory Control And Data Acquisition.
SM_CPU866: Saitel DP CPU (standard).
SM_CPU866e: Saitel DP CPU (advanced).
SO: Operating System.
T
TCP: Transmission Control Protocol.
Pag 53
Printed in:
Schneider Electric
C/ Charles Darwin s/n
Parque Científico y Tecnológico de la Cartuja
Seville, Spain
FTE-MBD-S854-1.4 02/2020
Pag 54