s500 Nta 01 03 Annexe Modbus
s500 Nta 01 03 Annexe Modbus
1 FUNCTION CODES 2
S500-nta_01-03_ANNEXE-MODBUS -1-
Annexe – MODBUS
1 Function codes
Code Function
1 Read logical data (or output bits)
2 Read logical data (or input bits)
3 Read numerical data (or output words)
4 Read numerical data (or input words)
5 Write one logical datum (bit)
6 Write one numerical datum (word)
15 Write logical data (bits)
16 Write numerical data (words)
2 The maximum address for a datum in the block is 65535. The S500 data are transmitted
according to the user-defined format, with no conversion of maximum and minimum values. If
MODBUS conversion is required, a communication type output must be used in order to perform
a conversion using the affine function.
S500-nta_01-03_ANNEXE-MODBUS -2-
Annexe – MODBUS
3.2 Transmission formats
When an S500 Master communicates with Slave MODBUS devices (PLC for example),
different transmission formats can be defined:
z for logical data:
z Binary
¾ AI:
During transmission, it is possible to define a linear measurement conversion:
z the actual minimum value corresponds to a raw value of 0,
z and the actual maximum value corresponds to the raw value 65535.
¾ Meters:
When transmitting data of the "Terminal strip - DI counter" or "Counter on datum" type, a
conversion factor can be applied:
Factor to enter Conversion during transmission of a
S500 datum
onto S500 SOFBUS RTU/CS to S500
Pulse counter 0.1 Multiply by 10
Pulse counter 0.01 Multiply by 100
Hours always transmitted in seconds
Duration counter:
or minutes (if Hours, divide by 3600;
"Terminal strip" or "on datum"
or seconds if Minutes, divide by 60)
S500-nta_01-03_ANNEXE-MODBUS -3-
Annexe – MODBUS
4 Device communication with Slave S500
The Slave S500 responds to requests issued by the correspondent(s) (SCADA Central station, S500 or
S50 type remote terminal unit). It is therefore necessary to enter the MODBUS addresses of the exchanged
data (from 0 to 65535).
Consecutive data can be transmitted within a single block, independently of the fact that
they are transmitted in "binary", "integer" or "real" format.
64 bit real table [46001 to 50000] 3, 4 or 16 46000 + (4n – 3) Real - 64 bits W1W2W3W4
2 Access to a numerical datum via the binary format provides the following value:
Example:
The MODBUS address of datum no. 73 is therefore dependent upon the transmission format defined
between the 2 communicating devices:
Address Address
in decimal in hexadecimal
format format
S500-nta_01-03_ANNEXE-MODBUS -4-
Annexe – MODBUS
4.2 Access from a SOFBUS device
A SCADA Central Station or S50 remote terminal unit in Inter-RTU mode can access
the Slave S500 Unit’s data that have undergone "SOFBUS conversion".
2 For each S500 datum, transmission in TS, TM, RC, TC or RA format, must be
validated from the "Process" tab and the datum number to which it is transmitted
must be configured.
MODBUS MODBUS
Type Capacity Value
address function
TS 1 to 1000 1, 2, 5 or 15 1 bit per RS: max. 1,000 TSs 0 or 1 (bit)
TC 1001 to 2000 1, 2, 5 or 15 1 bit per RC: max. 1.000 TCs 0 or 1 (bit)
TM 1 to 500 3, 4, 6 or 16 1 word per RM: max. 500 TMs from 0 to 65535 (raw)
RC 501 to 1000 3, 4, 6 or 16 2 words per RCO: max. 250 RCs from 0 to 4294967295 (raw)
RA 1001 to 1500 3, 4, 6 or 16 1 word per RA: max. 500 RAs from 0 to 65535 (raw)
¾ Meters:
For data of the "Terminal strip - DI Counter" or "Counter on Datum" type, a conversion
factor must be applied:
Factor to enter Conversion during transmission of a
S500 datum
onto S500 SOFBUS RTU/SCS to S500
Pulse counter 0.1 divide by 10
Pulse counter 0.01 divide by 100
Hours always transmitted in seconds
Duration counter:
or minutes (if Hours, multiply by 3600;
"Terminal strip" or "on datum"
or seconds if Minutes, multiply by 60)
S500-nta_01-03_ANNEXE-MODBUS -5-
Annexe – MODBUS
4.3 Access to other data types from a device
Datum Address Function Capacity / Format
2 The day, month and year must be written in a single query. When setting the time,
a message is entered in the remote terminal unit’s operating log.
(∗) indicator not used by S500; present only for compatibility with the communication protocol.
S500-nta_01-03_ANNEXE-MODBUS -6-
Annexe – MODBUS
For each time period category (weekly, exception and universal), a "SCADA CS dialing" parameter
automatically assigns a fixed number to the SCADA central station, corresponding to the S500 time
period (number distinct from that of the S500 datum); this number corresponds to that of S500’s
rank number in its category.
& Example: to determine the MODBUS address of datum no. 50 "Weekly period", which is the 2nd weekly
period defined in the configuration (hence SCADA CS dialing = 2), and whose band no. 4 is
active on Wednesdays between [2pm and 6pm]:
- The calculation of the start minute (00) address is: 25159 + 1 = 25160 (y = 2).
2 Remark : user can modify the number of the S500 datum corresponding to this weekly
period, without affecting this period’s "SCADA CS dialing" in the S500
configuration.
The formula used to calculate the address of a time period's start or end hour or minute is as
follows:
2 From S500 V 3.21 onwards, the unit writing of a word to modify the time period
start or end hour or minute is possible as long as the time period is valid. To
validate an invalid time period, the end hour or minute must first have been
written.
S500-nta_01-03_ANNEXE-MODBUS -7-
Annexe – MODBUS
4.3.4 Exceptions
Address Function Capacity / Format
28201 to 28350 3, 4, 6 or 16 3 words x 50 periods = 150 words
A universal period comprises a start date and time and an end date and time:
Datum Value Address Function Format
Start (day of the month) 0 to 31 (0 if field unused) 29001 + [(SCADA CS dialing –1) *8] 3 or 4 or 16 1 word
Start (month) 0 to 12 (0 if field unused) 29002 + [(SCADA CS dialing –1) *8] 3 or 4 or 16 1 word
Start (hour) 0 to 24 (24 if field unused) 29003 + [(SCADA CS dialing –1) *8] 3 or 4 or 16 1 word
Start (minute) 0 to 60 (60 if field unused) 29004 + [(SCADA CS dialing –1) *8] 3 or 4 or 16 1 word
End (day of the month) 0 to 31 (0 if field unused) 29005 + [(SCADA CS dialing –1) *8] 3 or 4 or 16 1 word
End (month) 0 to 12 (0 if field unused) 29006 + [(SCADA CS dialing –1) *8] 3 or 4 or 16 1 word
End (hour) 0 to 24 (24 if field unused) 29007 + [(SCADA CS dialing –1) *8] 3 or 4 or 16 1 word
End (minute) 0 to 60 (60 if field unused) 29008 + [(SCADA CS dialing –1) *8] 3 or 4 or 16 1 word
S500-nta_01-03_ANNEXE-MODBUS -8-