Reading Registers - Siemens SIMATIC ET 200SP Operating Instructions Manual

Technology module
Hide thumbs Also See for SIMATIC ET 200SP:
Table of Contents

Advertisement

Parameter assignment/addressing
6.32 Communication via Modbus
Table 6-11
Command mailbox 2: Average priority
Variable
CMD2_CODE
CMD2_TRIGGER
CMD2_STATUS
CMD2_QUIT
Table 6-12
Command mailbox 3: Low priority
Variable
CMD3_CODE
CMD3_TRIGGER
CMD3_STATUS
CMD3_QUIT
6.32.5

Reading registers

The method for reading registers depends on whether they belong to the writable data records
(DR03 to DR29) or can only be read as current values (DR30 to DR39).
If you wish to read the registers from the data records DR03 to DR29, you must first export
these as a complete data record to the internal output buffer.
All Modbus registers of the individual parameters can be found in section → Parameter table
(https://support.industry.siemens.com/cs/ww/en/ps/17781/dl).
Example
A parameter is to be read from DR03.
● First, write register CMD3_CODE with 2003 (2000 plus the number of the data record = read
data record).
● Then write CMD3_TRIGGER with "1". The DR 3 is then updated in the Modbus buffer
memory.
● It is now possible to read one or more registers with the corresponding variable(s). The data
consistency of the registers read at this time is guaranteed.
You can find all other command codes in section → Commands (Page 112).
Example
A current measured value is to be read out from DR30.
⇒ The register can be directly requested because its contents are automatically refreshed in the
electronic weighing system at the specified measuring rate of 1000 Hz and are always available
up-to-date.
120
Note
Code of command to be executed
Trigger for starting the command
0=job running; 1=job finished (1 cycle)
0=no error; <>0=error code
Note
Code of command to be executed
Trigger for starting the command
0=job running; 1=job finished (1 cycle)
0=no error; <>0=error code
Type
USHORT
USHORT
USHORT
USHORT
Type
USHORT
USHORT
USHORT
USHORT
Technology module TM SIWAREX WP351 HF
Operating Instructions, 01/2020, A5E47521010-AA
Modbus registers
920
921
922
923
Modbus registers
930
931
932
933

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tm siwarex wp351 hf

Table of Contents