Command: Read match string
To have the current match string returned when the READ command is received, the MV
command "Read match string" (WRITE command) must be sent immediately before, see
WRITE commands/MV command interface (Page 248).
After processing the READ command, the following data is available in the command data
area:
If the length of the data to be read ("MOBY_CMD".length or "PIB_COMMAND".Length) is not
n + 2 bytes (n = total length of the match string) the match string is truncated or the
command data area is padded with 0x00.
Table 10- 37 Moby_CMD
Command
Table 10- 38 PIB_COMMAND
Parameter
CMD
OffsetBuffer
UID
Length
StartAddress
Table 10- 39 Command data area (FB45: Data DB, RFID standard profile: TXBUF or RXBUF)
Address
0x0000
0x0001
0x0002
...
n + 2
SIMATIC MV420 / SIMATIC MV440
Operating Instructions, 04/2013, A5E02371045-06
Sub_
[hex]
Command
[hex]
02
-
Process interfacing via an automation system (PLC, PC)
Length
Address_
[dec]
MDS [hex]
≥ total
0
length
of the
match
string
+ 2
Value
0x70
0x00
0x00
≥ total length of the match string + 2
0x00
Value
0x0 – 0xF
0x00-0xFF
10.3 Control with FB 45 and Ident profile
DAT_DB_number
DAT_DB_address
[dec]
Number of the
Pointer to the start
data DB (for example
48)
FB45 stores the read result data here.
Meaning
Length of the total match string
(more significant byte)
Length of the total match string
(less significant byte)
1st character of the match string
...
nth character of the match string
[dec]
word
(for example 0)
263