Sepam 20 Modbus From UM2017
Sepam 20 Modbus From UM2017
Sepam 20 Modbus From UM2017
Presentation 102
Modbus protocol 103
Configuring the communication interfaces 104
Commissioning and diagnosis 106
Data addresses and encoding 108
Time-tagging of events 117
Access to remote settings 122
Disturbance recording 132
Reading Sepam identification 134
PCRED301005EN 101
Modbus communication Presentation
General
Modbus communication allows Sepam to be connected to a supervisor or any other
device with a master Modbus communication channel.
Sepam is always a slave station.
Data available
The data available depend on the type of Sepam.
Measurement readout
b phase and earth fault currents
b peak demand phase currents
b tripping currents
b cumulative breaking current
b phase-to-phase, phase-to-neutral and residual voltages
b frequency
b temperatures
b thermal capacity used
5 b starts per hour and inhibit time
b running hours counter
b motor starting current and time
b operating time before overload tripping
b waiting time after tripping
b operating time and number of operations
b circuit breaker charging time.
Program logic data readout
b a table of 64 pre-assigned remote indications (TS) (depends on the type of
Sepam) enables the readout of program logic data status
b readout of the status of 10 logic inputs.
Remote control orders
Writing of 16 impulse-type remote control orders (TC) in either direct mode or SBO
(Select Before Operate) mode via 16 selection bits.
Other functions
b reading of Sepam configuration and identification
b time-tagging of events (synchronization via the network or externally via logic input
I21), time-tagging within a millisecond
b remote reading of Sepam settings
b remote setting of protection units
b remote control of the analog output (with MSA141 option)
b transfer of disturbance recording data.
102 &5('(1
Modbus communication Modbus protocol
PE80298
The Modbus protocol may be used to read or write one master
or more bits, one or more words, the contents of the
event counters or the contents of the diagnosis
counters.
request
Modbus functions supported
The Modbus protocol used by Sepam is a compatible
sub-group of the RTU Modbus protocol.
The functions listed below are handled by Sepam:
reply
b basic functions (data access):
v function 1: reading of n output or internal bits
v function 2: reading of n input bits
v function 3: reading of n output or internal words
v function 4: reading of n input words slave slave slave
v function 5: writing of 1 bit
v function 6: writing of 1 word Exchanges are initiated by the master and include a request by the master and a
v function 7: high-speed reading of 8 bits reply by the slave (Sepam). Requests by the master are either addressed to a given
v function 8: reading of diagnosis counters Sepam identified by its number in the first byte of the request frame, or addressed to
v function 11: reading of Modbus event counters all the Sepam (broadcasting).
v function 15: writing of n bits
master
v function 16: writing of n words.
DE80299
b communication-management functions:
v function 8: Modbus diagnosis
v function 11: reading of Modbus event counter
v function 43: sub-function 14: reading of identification. broadcasting
It is not necessary to have a detailed knowledge of the protocol unless the master is
a central computer which requires the corresponding programming. All Modbus
exchanges include 2 messages: a request by the master and a reply by the Sepam.
All the frames that are exchanged have the same structure. Each message or frame
contains 4 types of data:
slave function data CRC 16
Synchronization of exchanges number code zones check zone
Any character that is received after a silence of more
b slave number (1 byte): this indicates the receiving Sepam (0 to FFh).
than 3 characters is considered as the beginning of a
If it is equal to zero, the request concerns all the slaves (broadcasting) and there is
frame. A silence of at least 3 characters must be left on
no reply message
the line between two frames.
b function code (1 byte): this is used to select a command (read, write, bit, word) and
Example: at 9600 bauds, this time is equal to
to check that the reply is correct
approximately 3 milliseconds.
b data zones (n bytes): these zones contain the parameters relating to the function:
bit, address, word address, bit value, word value, number of bits, number of words
b check zone (2 bytes): this zone is used to detect transmission errors.
PCRED301005EN 103
Modbus communication Configuring the communication
interfaces
b 8 data bits
b 1 stop bit
b parity according to parameter setting.
104 &5('(1
Modbus communication Configuring the communication
interfaces
a
2-wire RS 485 port.
The configuration parameters for the physical layer of the E-LAN port are:
b Sepam address
b transmission speed
b parity check type.
The number of stop bits is always fixed at 1.
If a configuration with Parity has been selected, each character will contain 11 bits
(1 start bit + 8 data bits + 1parity bit + 1 stop bit)
If a No Parity configuration has been selected, each character will contain 10 bits
(1 start bit + 8 data bits + 1 stop bit). 5
Parameters Authorized values Default value
Sepam address 1 to 247 1
Speed 4800, 9600, 19200 or 38400 bauds
38400 bauds
Parity None, Even or Odd Odd
PCRED301005EN 105
Modbus communication Commissioning and diagnosis
Preliminary checks
The following preliminary checks must be made:
b check the CCA612 cord connection between the ACE interface and the Sepam
base unit
b check the ACE Modbus communication port connection
b check the complete configuration of the ACE
b for the ACE969, check the auxiliary power supply connection.
106 &5('(1
Modbus communication Commissioning and diagnosis
PCRED301005EN 107
Modbus communication Data addresses and encoding
Presentation
Data which are similar from the monitoring and control application viewpoint are
grouped together in adjacent address zones:
108 &5('(1
Modbus communication Data addresses and encoding
Data encoding
For all formats
If a measurement overruns the maximum permissible value for the related format,
the value read for the measurement will be the maximum permissible value for the
format.
Format 16 NS
All information is encoded in a 16-bit word, in absolute value (unsigned), binary
format. The zero bit (b0) is the least significant bit in the word.
Format 16 S signed measurements (temperatures, …)
The information is encoded in a 16-bit word as a complement of 2.
Example:
b 0001 represents +1
b FFFF represents -1.
Format B: Ix
Rank i bit in the word, with i between 0 and F.
Examples F E D C B A 9 8 7 6 5 4 3 2 1 0
Logic Word address 0105
inputs 26 25 24 23 22 21 14 13 12 11
Bit address 105x
TS1 to Word address 0101
TS16 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
Bit address 101x
TS49 to Word address 0104
TS64 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
Bit address 104x
TC1 to Word address 01F0
TC16 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
Bit address 1F0x
STC1 to Word address 01F1
STC16
Bit address 1F1x
16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
5
Format X: Sepam check-word
This format applies only to the Sepam check-word that may be accessed at the word
address 100h. This word contains various items of information relating to:
b Sepam operating mode
b time-tagging of events.
Each data item contained in the Sepam check-word may be accessed bit by bit, from
address 1000 for the bit b0 to 100F for the bit b15.
b bit 15 event present
b bit 14 Sepam in “data loss” status
b bit 13 Sepam not synchronous
b bit 12 Sepam time not correct
b bit 11 S-LAN communication monitoring active
b bit 10 Sepam in local setting mode
b bit 9 major fault in Sepam
b bit 8 partial fault in Sepam
b bit 7 setting group A in service
b bit 6 setting group B in service
b bit 4 remote indication of tripping by protection function
b bit 3-0 mapping number (1 to 16).
Other bits reserved (undetermined values).
Status changes of bits 6, 7, 8, 10, 12, 13 and 14 of this word trigger the transmission
of a time-tagged event.
Bits 3 to 0 encode a “mapping number” (from 1 to 15) which is used to identify the
contents of the Modbus addresses, the assignment of which varies depending on the
application.
PCRED301005EN 109
Modbus communication Data addresses and encoding
Synchronization zone
The synchronization zone is a table which contains the absolute date and time for
the time-tagging function. Time messages should be written in a single block
containing 4 words, using function 16: write word.
Messages can be read word by word or by groups of words using function 3.
Identification zone
The identification zone contains system-type information pertaining to the
identification of the Sepam equipment.
Some of the information in the identification zone is also found in the configuration
zone at the address FC00h.
5
Command 000E R/W 3/16 Not managed Init. to 0
Extension address 000F R 3 FC00
This zone is provided to ensure compatibility with existing equipment. A more complete description is available starting at address FC00h in the configuration zone
or using the identification read function.
110 &5('(1
Modbus communication Data addresses and encoding
Status zone
The status zone is a table which contains the Sepam check-word, pre-assigned
remote annunciation bits (TS), and logic inputs.
Measurement zone
(S20, S23, S24, T20, T23, T24 and M20 types)
Measurements Word address Access Modbus function Format Unit
enabled
I1 phase current (gain x 1) 106 R 3/4 16NS 0.1 A
I2 phase current (gain x 1) 107 R 3/4 16NS 0.1 A
I3 phase current (gain x 1) 108 R 3/4 16NS 0.1 A
I0 residual current (gain x 1) 109 R 3/4 16NS 0.1 A
Im1 average phase current (x 1) 10A R 3/4 16NS 0.1 A
Im2 average phase current (x 1) 10B R 3/4 16NS 0.1 A
Im3 average phase current (x 1) 10C R 3/4 16NS 0.1 A
I1 phase current (gain x 10) 10D R 3/4 16NS 1A
I2 phase current (gain x 10) 10E R 3/4 16NS 1A
I3 phase current (gain x 10) 10F R 3/4 16NS 1A
I0 residual current (gain x 10) 110F R 3/4 16NS 1A
IM1 average phase current (x10)
IM2 average phase current (x10)
111
112
R
R
3/4
3/4
16NS
16NS
1A
1A
5
IM3 average phase current (x10) 113 R 3/4 16NS 1A
IM1 peak demand phase current 114 R 3/4 16NS 1A
IM2 peak demand phase current 115 R 3/4 16NS 1A
IM3 peak demand phase current 116 R 3/4 16NS 1A
Reserved 117 R 3/4 - -
Itrip1 tripping current 118 R 3/4 16NS 10 A
Itrip2 tripping current 119 R 3/4 16NS 10 A
Itrip3 tripping current 11A R 3/4 16NS 10 A
Itrip0 tripping current 11B R 3/4 16NS 1A
Cumulative breaking current 11C R 3/4 16NS 1 (kA)2
Number of operations 11D R 3/4 16NS 1
Operating time 11E R 3/4 16NS 1 ms
Charging time 11F R 3/4 16NS 1 sec
Reserved 120 R 3/4 - -
Running hours counter 121 R 3/4 16NS 1 hr
Thermal capacity used 122 R 3/4 16NS %
Operating time before overload tripping 123 R 3/4 16NS 1 min
Waiting time after overload tripping 124 R 3/4 16NS 1 min
Unbalance ratio 125 R 3/4 16NS % Ib
Starting time / overload 126 R 3/4 16NS 0.1 sec
Starting current overload 127 R 3/4 16NS 1A
Start inhibit time delay 128 R 3/4 16NS 1 min
Number of starts allowed 129 R 3/4 16NS 1
Temperatures 1 to 8 12A/131 R 3/4 16S 1 °C
Reserved 132/1EF Prohibited
Note: Only the measurements related to the Sepam function are significant. The values of the others are zero.
PCRED301005EN 111
Modbus communication Data addresses and encoding
Accuracy Examples
The accuracy of the measurements depends on the I1 Unit = 1 A Accuracy = 1/2 = 0.5 A
order of the unit: it is equal to the value of the point U21 Unit = 10 V Accuracy = 10/2 = 5 V
divided by 2.
112 &5('(1
Modbus communication Data addresses and encoding
Test zone
The test zone is a 16-word zone that may be accessed via the communication link
by all the functions, in both read and write modes, to facilitate communication testing
at the time of commissioning or to test the link.
Test zone Word address Bit address Access Modbus function Format
enabled
Test 0C00 C000-C00F read/write 1, 2, 3, 4, 5, 6, 15, 16 none init. to 0
0C0F C0F0-C0FF read/write 1, 2, 3, 4, 5, 6, 15, 16 none init. to 0
Configuration zone
The configuration zone contains information pertaining to the hardware and
software configuration of the Sepam.
Bit 7 6 5 4 3 2 1 0
Option UD/UX reserved MES114E/ DSM303 MSA141 MET148-2 (3) MES114 MES108
MES114F
UX model 0 0 z x x x y y
UX model 1 0 z 0 x x y y
(3) or MET148.
x = 1 if option included
y = 1 if option included, exclusive options
z = 1 if Vac set up.
PCRED301005EN 113
ModModbus Data addresses and encoding
communication
Note: Applications S24 and T24 perform the functions of applications S23 and T23 respectively
and, in addition, the phase overcurrent and earth fault cold load pick-up functions.
114 &5('(1
Modbus communication Data addresses and encoding
Note: Applications S24 and T24 perform the functions of applications S23 and T23 respectively
and, in addition, the phase overcurrent and earth fault cold load pick-up functions.
PCRED301005EN 115
Modbus communication Data addresses and encoding
Use of remote control orders Address word 01F0: TC1 to TC16 (bit address 1F00 to 1F0F)
Remote control orders are pre-assigned to protection, TC Use S20 S24 T20 T24 M20 B21 B22
control and metering functions. 1 Tripping b b b b b b b
Remote control orders may be carried out in two 2 Closing b b b b b b b
modes: 3 Switching to setting group A (3)
b b b b b
b direct mode 4 Switching to setting group B (3) b b b b b
b confirmed SBO (select before operate) mode.
5 Sepam reset b b b b b b b
6 Peak demand current zero reset (3) b b b b b
All the remote control orders can be inhibited by logic
input I25 on the MES114 module. 7 Inhibit thermal protection (3) b b b
According to the parameter setting of logic input I25, 8 Inhibit disturbance recording triggering (OPG (1)) b b b b b b b
the tripping remote control order TC1 can be activated 9 Confirm disturbance recording triggering (OPG (1)) b b b b b b b
at any time or can be inhibited. 10 Manual disturbance recording triggering (OPG (1)) b b b b b b b
Logic input I25 can be set up according to 2 modes: 11 Enable recloser (3) b b
b Inhibited if the input is set to 1 ("POS" prefix) 12 Disable recloser (3) b b
b Inhibited if the input is set to 0 ("NEG" prefix) 13 Confirm thermal protection (3) b b b
14 Reserved
The device tripping and closing and recloser enable 15 Activate S-LAN communication monitoring (2) (3) b b b b b b b
and disable remote control orders are acknowledged if 16 Inhibit S-LAN communication monitoring (3) b b b b b b b
the “CB control“ function is validated and if the inputs (1) OPG : French acronym for disturbance recording.
necessary for the logic are present on the MES114 (or (2) TC15 Remote control order follows the same TC1 inhibition mode.
MES108) optional module. (3)The maximum number of remote controls is limited to 1,000,000 over the life of the product.
Note: Applications S24 and T24 perform the functions of applications S23 and T23 respectively
and, in addition, the phase overcurrent and earth fault cold load pick-up functions.
Direct remote control order
The remote control order is executed when it is written
in the remote control word. The program logic resets it Analog output remote control
to zero after the remote control order is acknowledged. The analog output of the MSA141 module may be set up for remote control
Confirmed SBO remote control order (Select Before via the Modbus communication module (word address 01F2). The working
Operate) range of the numerical value transmitted is defined by the parameter
In this mode, remote control orders involve two steps: setting of the "min. value" and "max. value" of the analog output.
b selection by the master of the order to be sent by This function is not affected by remote control inhibition conditions.
116 &5('(1
Modbus communication Time-tagging of events
Synchronization clock
A synchronization clock is required for setting the date and time of Sepam.
Schneider Electric has tested the following equipment:
Gorgy Timing, ref. RT 300, equipped with the M540 module.
PCRED301005EN 117
Modbus communication Time-tagging of events
Structure of the second event table: b least significant byte = number of events (8 bits): 0..4
b exchange word 0070h
b event number 1 b07 b06 b05 b04 b03 b02 b01 b00
0071h ... 0078h
b event number 2
0079h ... 0080h
b event number 3 Number of events: 0 .. 4
0081h ... 0088h
b event number 4 Description of LS byte of the exchange word.
0089h ... 0090h
The master necessarily reads a block of 33 words
Sepam indicates the number of significant events in the event table in the least
starting at the address 0040h/0070h, or one word at the
5 address 0040h/0070h.
significant byte of the exchange word. Each non-significant event word is initialized
to zero.
Event table acknowledgment
To inform Sepam that the block read by the master has been correctly received, the
master writes the number of the last exchange made in the “Exchange number” field,
and resets the "Number of events" field of the exchange word to zero. After
acknowledgment, the 4 events in the event table are initialized to zero and the old,
acknowledged events are erased in Sepam.
Until the exchange word written by the master becomes “X,0” (with X = number of
the previous exchange that the master wishes to acknowledge), the exchange word
in the table remains at “X, number of previous events”.
Sepam only increments the exchange number when new events are present
(X+1, number of new events).
If the event table is empty, Sepam performs no processing operations when the
master reads the event table or the exchange word.
The data are encoded in binary form.
Clearing an event queue
Writing a value "xxFFh" in the exchange word (any exchange number, event
number = FFh) reinitializes the corresponding event queue (all stored events not yet
transmitted are deleted).
Sepam in data loss (1) / no data loss (0) status
Sepam has an internal storage queue with a capacity of 64 events. If the queue
becomes saturated, a "data loss" event is inserted by Sepam when each event table
is read.
The detection of events stops and the most recent events are lost.
Data loss is managed independently for each of the two event tables. When the
tables are read at different rates, data loss may occur at different times for each table
or even, in some cases, appear only on the slowest channel.
Note: the "data loss" bit of the Sepam check word corresponds to the status of the first reading
table (compatibility with earlier versions).
118 &5('(1
Modbus communication Time-tagging of events
PCRED301005EN 119
Modbus communication Time-tagging of events
Synchronization
DE80320
120 &5('(1
Modbus communication Time-tagging of events
Synchronization (cont’d)
DE80321
PCRED301005EN 121
Modbus communication Access to remote settings
The content of the address 2080h may be read using a Modbus "read word"
(function 3).
The function code field may have the following values:
b 01h to 99h (BCD encoding) for protection functions.
The relay number field is used as follows:
b for protection, it indicates the relay involved, varying from 1 to N, N being the
maximum number of relays available in the Sepam
b when only one relay is available, this number field is not controlled.
Exception replies
In addition to the usual cases, Sepam can send Modbus type 07 exception replies
This zone is read by a "read word" operation (function 3) at the address 2000h.
The length of the exchange may include:
b the first word only (validity test)
b the maximum size of the zone (125 mots)
b the usable size of the zone (determined by the function being addressed).
However, reading must always begin at the first word in the zone (any other address
triggers an exception reply "incorrect address").
The first word in the zone (function code and relay number) may have the following
values:
b xxyy: with
v function code xx different from 00 and FFh
v relay number yy different from FFh.
The settings are available and validated. They word is a copy of the "request frame".
The zone contents remain valid until the next request is made.
The other word are not significant.
b FFFFh: the "request frame" has been processed, but the results in the
"reply frame" are not yet available. It is necessary to repeat "reply frame" reading.
The other words are not significant.
b xxFFh: with function code xx different from 00 and FFh. The function for which the
remote reading request has been made is not valid. The function is not included in
the particular Sepam, or remote reading of it is not authorized: refer to the list of
functions which accommodate re&5('(1
The content of the address 2100h may be read using a "read n words" (function 3).
The function code field may have the following values:
b 01h to 99h (BCD encoding) for the list of protection functions F01 to F99.
The relay number field is used as follows:
5
b for protection, it indicates the relay involved, varying from 1 to N, N being the
maximum number of relays available in the Sepam. It may never be equal to 0.
Exception reply
In addition to the usual cases, Sepam can send type 07 exception replies
(not acknowledged) if:
b another remote reading or setting request is being processed
b the remote setting function is inhibited.
PCRED301005EN 123
Modbus communication Access to remote settings
Reply frame
The reply sent back by the Sepam is the same as the remote reading reply frame. It
fits into a zone containing a maximum of 125 words at the address 2000h and is
composed of the effective settings of the function following a semantic check:
2000h-207Ch
B15 B14 B13 B12 B11 B10 B09 B08 B07 B06 B05 B04 B03 B02 B01 B00
Function code Relay number
Settings
..............
(special field for each function)
..............
This zone is read by a "read n words" operation (function 3) at the address 2000h.
The length of the exchange may unclude:
b the first word only (validity test)
b the maximum size of the reply zone (125 words)
b the usable size of the reply zone (determined by the function being addressed).
However, reading must always begin at the first word in the address zone
(any other address triggers an exception reply "incorrect address").
The first word in the reply zone (function code and relay number) has the same
values as those described for the remote reading reply frame.
b xxyy: with:
v function code xx different from 00 and FFh
v relay number yy different from FFh.
The settings are available and validated. The word is a copy of the "request frame".
The zone contents remain valid until the next request is made.
b 0000h: no "request frame" has been formulated yet, as it is the case, in particular,
when the Sepam is switched on.
The other words are not significant.
b FFFFh: the "request frame" has been processed, but the results in the "reply
frame" are not yet available. It is necessary to repeat "reply frame" reading. The other
5 words are not significant.
b xxFFh: with function code xx different from 00 and FFh. The function for which the
remote reading request has been made is not valid. The function is not included in
that particular Sepam, or access to settings is impossible, both in read and write
mode.
124 &5('(1
Modbus communication Access to remote settings
Description of settings
Data format
All the settings are transmitted in signed 32-bit whole number form
(encoding, as a complement of 2).
Particular setting value:
7FFF FFFFh means that the setting is outside the validity range.
1 The Enabled or Disabled setting is encoded as follows:
0 = Disabled, 1 = Enabled
2 The tripping curve setting is encoded as follows:
0 = definite
1 = standard inverse time 9 = IEC VIT/
2 = long time inverse 10 = IEC EIT/C
3 = very inverse time 11 = IEEE Mod. inverse
4 = extremely inverse time 12 = IEEE Very inverse
5 = ultra inverse time 13 = IEEE Extr. inverse
6 = RI 14 = IAC inverse
7 = IEC SIT/A 15 = IAC very inverse
8 = IEC LTI/B 16 = IAC extr. inverse
3 The setting of the timer hold curve is encoded as follows:
0 = definite time
1 = IDMT
4 The H2 restraint variable is encoded as follows:
0 = H2 restraint
1 = no H2 restraint
5 The tripping curve setting is:
0 = definite time
1 = IDMT
6 The negative sequence factor is:
0 = None (0)
1 = Low (2.25)
2 = Average (4.5) 5
3 = High (9)
7 Acknowledgment of the ambient temperature is encoded as follows:
0 = No
1 = Yes
8 Not used
9 The inhibition input setting is encoded as follows:
0 = No inhibition
1 = Inhibit recloser by logic input I26
10 Not used
11 The activation mode of each of the cycles is encoded as follows:
Correspondence between bit position and protection according to the table below:
Bit Activation by
0 Inst O/C 1
1 Time-delayed O/C 1
2 Inst O/C 2
3 Time-delayed O/C 2
4 Inst E/F 1
5 Time-delayed E/F 1
6 Inst E/F 2
7 Time-delayed E/F 2
The bit status is encoded as follows:
0 = No activation by the protection
1 = Activation by the protection.
12 The time delay unit for the CLPU functions is encoded as follows:
0 = millisecond
1 = second
2 = minute
PCRED301005EN 125
Modbus communication Access to remote settings
5 1 = 10 mn
2 = 15 mn
3 = 30 mn
4 = 60 mn
14 Reserved
15 Rated primary voltage Unp V
16 Rated secondary voltage Uns 0 = 100 V
1 = 110 V
2 = 115 V
3 = 120 V
4 = 200 V
5 = 230 V
6 = Numerical value, see
setting 19
17 Voltages mesured by VTs 0 = 3 V (V1, V2, V3)
1 = 2 U (U21, U32)
2 = 1 U (U21)
18 Residual voltage mode 0 = none
1 = 3 V sum
2 = external VT — Uns/3
3 = external VT — Uns/3
19 Secondary rated voltage Uns V
126 &5('(1
Modbus communication Access to remote settings
Protection settings
They are organized according to increasing ANSI codes.
PCRED301005EN 127
Modbus communication Access to remote settings
128 &5('(1
Modbus communication Access to remote settings
PCRED301005EN 129
Modbus communication Access to remote settings
130 &5('(1
Modbus communication Access to remote settings
26
27
Unit 1/Group B 50N/51N: pick-up time delay T0 unit
Unit 1/Group B 50N/51N: multiplying factor M0
12
% Is0 5
28 Unit 2/Group B 50N/51N: ON or OFF 1
29 Unit 2/Group A 50N/51N: pick-up time delay T0 (1)
PCRED301005EN 131
Modbus communication Disturbance recording
Reading should always begin with the first word in the address zone (any other
address triggers an exception reply "incorrect address").
The configuration and data files are read in their entirety in Sepam. They are
transferred adjacently.
132 &5('(1
Modbus communication Disturbance recording
If the master requests more exchanges than necessary, the exchange number
remains unchanged and the number of usable bytes is forced to 0. To guarantee the
data transfers, it is necessary to allow a response time of about 500 ms between
each reading operation at 2300h.
The first word transmitted is an exchange word. The exchange word comprises two
fields:
b the most significant byte contains the exchange number. It is incremented by 1 by
the Sepam each time a successful transfer takes place. When it reaches the value
FFh, it automatically goes back to zero
b the least significant byte contains the number of usable bytes in the data zone. It
is initialized to zero after energizing and must be different from FFh.
The exchange word may also have the following values:
b xxyy: the number of usable bytes in the data zone yy must be different from FFh
b 0000h: no "read requeste frame" has been formulated yet, as it is the case in
particular, when the Sepam is switched on. The other words are not significant,
b FFFFh: the "request frame" has been processed, but the results in the reply zone
are not yet available.
It is necessary to repeat "reply frame" reading.
The other words are not significant.
The words which follow the exchange word make up the data zone.
Since the configuration and data files are adjacent, a frame may contain the end of
the configuration file and the beginning of the data file of a record.
It is up to the remote monitoring and control system software to reconstruct the files
in accordance with the transmitted number of usable bytes and the size of the files
indicated in the identification zone.
Acknowledging a transfer
To inform the Sepam that a record block that it has just read has been received
correctly, the master must write the number of the last exchange that it has carried
out in the "exchange number" filed and set the "number of usable bytes in the data
zone" of the exchange word to zero.
The Sepam only increments the exchange number if new acquisition bursts are
present.
Rereading the identification zone
To ensure that the record has not been modified, during its transfer by a new record,
5
the master rereads the contents of the identification zone and ensures that the
recovered record date is still present.
PCRED301005EN 133
Modbus communication Reading Sepam identification
Presentation
The "Read Device Identification" function is used to access in a standardized manner
the information required to clearly identify a device.
The description is made up of a set of objects (ASCII character strings).
Sepam series 20 accepts the "read identification" function (conformity level 02).
For a complete description of the function, go to www.modbus.org. The description
below covers a subset of the function, adapted to Sepam series 20.
Implementation
Request frame
The request frame is made of the following components.
Field Size (bytes)
Slave number 1
43 (2Bh) 1 Generic access function code
14 (0Eh) 1 Read device identification
01 or 02 1 Type of read
00 1 Object number
CRC16 2
The type of read is used to select a simplified (01) or a standard (02) description.
Sepam series 20 identification Reply frame
The objects making up the Sepam series 20 The reply frame is made of the following components.:
identification are listed below. Field Size (bytes)
Number Type Value Slave number 1
0 VendorName "Merlin Gerin" or 43 (2Bh) 1 Generic access function code
"Schneider Electric" 14 (0Eh) 1 Read device identification
1 ProductCode Application EAN13 code 01 or 02 1 Type of read
2 MajorMinorRevision Application version number 02 1 Conformity level
(Vxxyy) 00 1 Continuation-frame flag (none for Sepam)
3 VendorURL "www.schneider-electric.com" 00 1 Reserved
4 ProductName "Sepam series 20" n 1 Number of objects (according to read type)
5 5 ModelName Application name
(e.g. "M20 Motor")
0bj1
lg1
1
1
Number of first object
Length first object
6 UserAppName Sepam marking txt1 lg1 ASCII string of first object
..... ...
objn 1 Number nth object
lgn 1 Length nth object
txtn Ign ASCII string of nth object
CRC16 2
Exception frame
If an error occurs during request processing, a special exception frame is sent.
Field Size (bytes)
Slave number 1
171 (ABh) 1 Generic access exception (2Bh + 80h)
14 (0Eh) 1 Read device identification
01 or 03 1 Type of error
CRC16 2
134 &5('(1