Reading Registers - Siemens SIWAREX WP231 Manual

Hide thumbs Also See for SIWAREX WP231:
Table of Contents

Advertisement

Table 11- 5
Command mailbox 2: Average priority
Variable
CMD2_CODE
CMD2_TRIGGER
CMD2_STATUS
CMD2_QUIT
Table 11- 6
Command mailbox 3: Low priority
Variable
CMD3_CODE
CMD3_TRIGGER
CMD3_STATUS
CMD3_QUIT
11.2.1.4

Reading registers

The method for reading registers depends on whether they belong to the writable data
records (DR 3 to DR 29) or can only be read as current values (DR 30 to DR 34).
If you wish to read the registers from the data records DR 3 to DR 29, 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 chapter → Scale
parameters and functions (Page 63).
Example
A parameter is to be read from data record 3 (DR 3).
● 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 DR3 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 further command numbers in chapter → Command lists (Page 139).
Example
A current measured value is to be read out from DR 30.
⇒ The register can be directly requested because its contents are automatically refreshed in
the SIWAREX module at the specified measuring rate of 100 Hz and are always available
up-to-date.
SIWAREX WP231
Manual, 07/2014, A5E31238908A-02
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
11.2 Communication via Modbus
Type
USHORT
USHORT
USHORT
USHORT
Type
USHORT
USHORT
USHORT
USHORT
Communication
Modbus registers
920
921
922
923
Modbus registers
930
931
932
933
155

Advertisement

Table of Contents
loading

Table of Contents