Table of contents
SIMATIC MV420 / SIMATIC MV440
6 Operating Instructions, 04/2013, A5E02371045-06
10.2 Integration via communication module (ASM) .......................................................................... 240
10.3 Control with FB 45 and Ident profile.......................................................................................... 241
10.3.1
Setting parameters of FB45 ...................................................................................................... 241
10.3.2
Configuring the Ident profile (RFID standard profile) ................................................................ 243
10.3.3
Control with MV commands via FB 45 or Ident profile.............................................................. 245
10.3.3.1
Status displays of the MV reader .............................................................................................. 245
10.3.3.2
Initialization ............................................................................................................................... 247
10.3.3.3
WRITE commands/MV command interface.............................................................................. 248
10.3.3.4
READ commands...................................................................................................................... 260
10.3.3.5
Result evaluation of a command............................................................................................... 264
10.3.3.6
Preconditions for the commands .............................................................................................. 265
10.3.3.7
Group errors.............................................................................................................................. 267
10.4
Control with FB79...................................................................................................................... 269
10.4.1
Assignment of the interfaces relevant to PROFINET IO........................................................... 270
10.4.2
Sample program for data exchange when code length <= 27 bytes ........................................ 275
10.4.3
Programming data fragmentation ............................................................................................. 277
10.4.4
Function block 79 "VS130-2_CONTROL"................................................................................. 279
10.4.4.1
Error information of FB79.......................................................................................................... 292
10.5
Controlling the I/O interface "DI/DO"......................................................................................... 294
10.5.1
Control signals .......................................................................................................................... 294
10.5.2
Selecting modes........................................................................................................................ 295
10.6
Control via TCP/IP and RS-232 ................................................................................................ 301
10.6.1
Overview ................................................................................................................................... 301
10.6.2
Trigger....................................................................................................................................... 302
10.6.3
Write match string ..................................................................................................................... 303
10.6.4
Set DISA bit............................................................................................................................... 304
10.6.5
Reset DISA bit........................................................................................................................... 304
10.6.6
Query status.............................................................................................................................. 305
10.6.7
Select program number............................................................................................................. 306
10.6.8
Save program with internal trigger ............................................................................................ 307
10.6.9
Save program with external trigger ........................................................................................... 308
10.6.10
Reset command ........................................................................................................................ 309
10.6.11
Writing a trigger-synchronized match string (XMATCH)........................................................... 310
10.6.12
XMATCH user data (without header)........................................................................................ 311
10.6.13
Set digital out ............................................................................................................................ 316
10.7
Scanner portal application......................................................................................................... 318
10.7.1
Configuration............................................................................................................................. 319
10.7.2
Output of the synchronized read result by the master reader................................................... 323
10.8
Remote client ............................................................................................................................ 324
10.8.1
XML backup and XML restore .................................................................................................. 324
10.8.1.1
XML backup .............................................................................................................................. 325
10.8.1.2
XML restore............................................................................................................................... 327
10.9
Sample programs...................................................................................................................... 330
10.9.1
Introduction ............................................................................................................................... 330
10.9.2
Example 1: Program for interfacing the reader with a SIMATIC controller using FB79 ........... 330
10.9.3
Example 2: Program for archiving diagnostic information on a PC/PG.................................... 332