Siemens S7-300F-2 Manual de usuario Pagina 10

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 65
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 9
Industry Automation and Drive Technologies - SCE
TIA Training Document
Page 10 of 65
Module E11
Status: 01/2010 Radio Frequency Identification (RFID) with SIMATIC S7-300F-2PN/DP and
RF180C
5 STARTING UP AN RFID PROJECT WITH CPU 315F-2 PN/DP AND RF180C
Below, the startup of an RFID project is described.
As SIMATIC S7-300 station, the CPU 315F-2 PN/DP is used.
In the CPU’s control program, a data structure has to be generated -by means of a function block call
(FB45)- with data blocks and embedded UDT data types.
In our example, it has to be possible to perform the following actions for each reader:
- Writing data to the transponder (DB48 of the CPU to the MDS).
- Reading the data from the transponder (MDS to DB48 of the CPU).
- Reading the transponder data information (MDS to DB49 of the CPU).
- Reading the reader status information (reader to DB50 of CPU).
The data structure of the German language UDTs is as follows:
To generate the data structure, the required UDT data types have to be imported to the
Step 7 project and function block FB45.
A sample program with the blocks is provided on the CD "RFID Systems“.
Additional information about the data structure is available in the function manual
"RFID Systems FB45“
DB47 DB45
a UDT11
integrated
for each reader
DB1
Multi-instance
DB of FB45
des FB45
FB45
for Reader 1
Per commd UDT21
FB45
for Reader 2
DB1
Multi-instance
DB of FB45
des FB45
UDT11
Byte 0 to
Byte 49
to Reader 1
UDT11
Byte 50 to
Byte 99
to Reader 2
Write to MDS
Command 01
Read from MDS
Command 02
DB48
General data
Source data
Destination data
Read MDS status
Command 0B/01
Read MDS Status
Command 0B/02
DB49 MDS Status
UDT261
UDT271
Read reader status
Command 04 /01
Read reader status
Command 04/06
Reader diagnosis
DB50 Reader Status
UDT111
UDT281
Vista de pagina 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15 ... 64 65

Comentarios a estos manuales

Sin comentarios