Process interfacing via an automation system (PLC, PC)
10.3 Control with FB 45 and Ident profile
SIMATIC MV420 / SIMATIC MV440
Operating Instructions, 04/2013, A5E02371045-06
249
Command: Program change (write program number)
To change programs, a WRITE command is sent with the data shown in the following table.
If it is possible to change to the program specified in the job, there will be a positive response
to the WRITE command, otherwise the response is negative.
Before the program is changed, the DISA bit is set automatically on the reader and is reset
again after the program change. If the DISA bit was set manually prior to the program
change, it will remain set.
The WRITE command must set the length 0x2 ("MOBY_CMD".length or "PIB_
COMMAND".Length = 0x2), otherwise the command will be acknowledged negatively. If an
attempt is made to change to an unsaved program or a program number > 0xF, the
command will also be denied and acknowledged negatively.
Table 10- 7 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)
01 - 2 0
Pointer to the user data to be sent to the
reader.
Table 10- 8 PIB_COMMAND
Parameter Value
CMD 0x71
OffsetBuffer 0x00
UID 0x00
Length 0x02
StartAddress 0x00
Table 10- 9 Command data area (FB45: Data DB, RFID standard profile: TXBUF or RXBUF)
Address Value Meaning
0x0000 0x01 "Program change" command
identifier
0x0001 0x00 – 0x0F Number of the program