Process interfacing via an automation system (PLC, PC)
10.3 Control with FB 45 and Ident profile
SIMATIC MV420 / SIMATIC MV440
262 Operating Instructions, 04/2013, A5E02371045-06
Command: Read program number
To have the current program number returned when a READ command is received, the MV
command "Read program number" (WRITE command) must be sent immediately before,
see WRITE commands/MV command interface (Page 248).
The READ
command must specify the start address 0x0000 and a length of 0x1
("MOBY_CMD".address_MDS or "PIB_COMMAND".StartAddress = 0, "MOBY_CMD".length
or "PIB_COMMAND".Length = 1).
The byte read at address 0x0000 contains the number of the program currently selected and
is stored in the command data area specified in the command
("MOBY_CMD".DAT_DB_number or "instance DB-RFID standard profile".RXREF) after the
command is processed.
Table 10- 34 Moby_CMD
Command
[hex]
Sub_
Command
[hex]
Length
[dec]
Address_
MDS [hex]
DAT_DB_number
[dec]
DAT_DB_address
[dec]
Number of the
data DB (for example
48)
Pointer to the start
word
(for example 0)
02 - 1 0
FB45 stores the read result data here.
Table 10- 35 PIB_COMMAND
Parameter Value
CMD 0x70
OffsetBuffer 0x00
UID 0x00
Length 0x01
StartAddress 0x00
Table 10- 36 Command data area (FB45: Data DB, RFID standard profile: TXBUF or RXBUF)
Address Value Meaning
0x0000 0x0 – 0xF Current program number