Reading out UID with SIMATIC RF1070R
Article ID: 109780625, V1.0, 09/2020
2.2 Function block "ReadUID"
The "ReadUID" function block contains all functionality for communicating with the
RF1070R reader.
The "ReadUID" function block is a custom development for this application
example and is already integrated in the STEP 7 project so that you can adapt it to
your requirements. It is called cyclically in OB1 and automatically automatically
calls the point-to-point instructions "Port_Config", "Send_P2P" and "Receive_P2P".
Function
Function block "ReadUID" realizes
• the configuration of the CM1241 RS232 communication module
• the initialization of the RF1070R reader
• monitoring of the RF1070R reader's antenna field
• selection of the card located in the antenna field
• receipt and analysis of the UID
• output of status and error messages from the block.
This functionality is implemented as a simple sequencer with the following states: