Page 20
80018C_MSW_2400-2500-Profibus_1209_ENG
Input parameters:
DBNr (INT) :
It is the number of the data block assigned to the instrument to be asked or controlled.
(In the picture the associated DB is DB3)
SlaveNr (INT) :
It is the slave MODBUS address with which to operate.
In instruments 2400 and 2500 it is fixed at 1
OPCode (INT) :
It is the operation code enabling the function to know if you want to read or write one word or one bit. The
operation code are:
1 Bit reading
3 Word reading
5 Bit writing
6 Word writing
Address (INT) :
It is the address of the word or of the bit we want to read or write. (Please refer to the manual or the modbus
map of the instrument that can find word or bit MODBUS addresses)
INValue (INT):
It is the value we want to write in the chosen word or bit. If we want to write a bit it is clear only the values 1 and
0 are can be chosen.
In reading operations this parameter is ignored.
Output parameters:
Done (BOOL) :
It is a flag indicating that the operation ended.
OUTValue (INT):
It is the value read in the specified word or bit.
In writing operations 1 is written if the action went well, and 0 if an error took place
Error (BOOL):
It is a flag indicating that the operation ended with an error.
ErrCode (INT):
It is the error code found:
1