Download Table of Contents Print this page
Siemens SIMATIC RF1070R Manual

Siemens SIMATIC RF1070R Manual

Hide thumbs Also See for SIMATIC RF1070R:

Advertisement

Quick Links

Reading out UID with
SIMATIC RF1070R via
serial CMs
SIMATIC Ident / RFID systems / S7-1200 / CM1241
RS232
https://support.industry.siemens.com/cs/ww/en/view/109780625
Siemens
Industry
Online
Support

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SIMATIC RF1070R

  • Page 1 Reading out UID with SIMATIC RF1070R via serial CMs SIMATIC Ident / RFID systems / S7-1200 / CM1241 RS232 Siemens https://support.industry.siemens.com/cs/ww/en/view/109780625 Industry Online Support...
  • Page 2: Legal Information

    The foregoing provisions do not imply any change in the burden of proof to your detriment. You shall indemnify Siemens against existing or future claims of third parties in this connection except where Siemens is mandatorily liable.
  • Page 3: Table Of Contents

    Project engineering of the S7 station with the CM1241 RS232 communication module ..............31 Appendix ......................33 Service and support ................33 Links and literature ................34 Change documentation ..............34 Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 4: Introduction

    • Use of a compact controller from the S7-1200 series • Transmit the UID from the SIMATIC RF1070R reader to the SIMATIC S7 CPU via the CM1241 RS232 communication module. Solution approach The RF1070R reader can be linked to a SIMATIC S7-1200 CPU using the CM1241 RS232 communication module.
  • Page 5: Principle Of Operation

    Monitor the antenna field of the RF1070R reader and select the card located there. • Receive the UID from the SIMATIC RF1070R reader from the CM1241 RS232 communication module and store it in a data block. Advantages of this solution •...
  • Page 6: Components Used

    STEP 7 V16 Professional 6ES7822-1AA06-0YA5 Note This description also applies to the STEP 7 V15.1 project that you can find on the same Siemens Industry Online Support page, \2\. This Application Example consists of the following components: Table 1-2 Components...
  • Page 7: Engineering Of The Step 7 Program

    The user program for the SIMATIC S7-1200 CPU consists of the following elements: Table 2-1 Element Symbolic name Description Main In OB1, the "ReadUID" function block, including the associated instance data block, is called cyclically. Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 8 For detailed information, refer to the Online Help for the instruction in question, or the documentation of the FB. • stateNumber: State of the FB's state machine in which the error occurred. Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 9: Function Block "Readuid

    • 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: Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 10 FB_STATE_SELE FB_STATE_SELE CT_CARD CT_CARD_WAIT Waiting for response telegram FB_STATE_REA FB_STATE_REA Daten- D_UID D_UID_WAIT Ablage trigger “enable“ negative edge DISABLING: FB_STATE_ Waiting for DISABLING response telegram FB_STATE_RESE FB_STATE_RES T_LED ET_LED_WAIT Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 11 • The request telegram "vhl_select" is sent to the reader. • FB_STATE_SELECT_CARD_WAIT Waiting for response telegram. • Call of the point-to-point instruction "Receive_P2P". • Evaluation of the response telegram: Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 12 Waiting for response telegram. • Call of the point-to-point instruction "Receive_P2P". • Evaluation of the response telegram: • The LED of the reader is red. Back to state 0. Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 13 "enable" input is set. • Reset as soon as an error is pending or the "enable" input is reset. • busy BOOL The "ReadUID" function block is active. Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 14 For detailed information, refer to the Online Help for the instruction in question, or the documentation of the FB. • stateNumber: State of the FB's state machine in which the error occurred. Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 15 4. With "error" as TRUE, "busy" and "valid" are reset and all functions of the "ReadUID" function block are stopped. 5. The pending error, which must be remedied by the user, can only be cleared with a falling edge at "enable". Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 16: The "Rfdata" Global Data Block

    For detailed information, refer to the Online Help for the instruction in question, or the documentation of the FB. – stateNumber: State of the FB's state machine in which the error occurred. Figure 2-5 Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 17: Configuring The Cm1241 Rs232 Communication Module

    2 Engineering of the STEP 7 Program Configuring the CM1241 RS232 communication module The SIMATIC RF1070R reader can be connected to a SIMATIC controller with the help of the CM1241 RS232 communication module and P2P communication ("Send_P2P" and "Receive_P2P"). The communication parameters of the RS232 interface of the SIMATIC RF1070R reader are set as follows in the factory: •...
  • Page 18: Diagnostics And Error Messages

    New UID has just been read. 16#0001 The parameterization of the CM1241 RS232 communication module and resetting of the SIMATIC RF1070R reader have been completed successfully. Error messages The following table provides an overview of the error messages from the "ReadUID"...
  • Page 19 Error messages that occurred in the internal point- to-point instructions "Port_Config", "Send_P2P" 16#81xx and "Receive_P2P". 16#82xx Note: 16#83xx For detailed information, refer to the Online Help for the instruction in question. 16#89xx 16#8Axx Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 20: Installation And Commissioning

    Assignment of static IP addresses is assumed. Table 3-1 Components IP address Description CPU 1214C DC/DC/DC 192.168.0.1 S7-1200 CPU Engineering Station 192.168.0.10 STEP 7 V16 The subnet mask in all network components is 255.255.255.0. Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 21 The following graphic shows how the RF1070R reader is connected to the CM1241 RS232 communication module. Figure 3-2 SIMATIC RF1070R CM1241 RS232 +5 V 5 VDC Note The LOGO!POWER/1AC/DC5V/3A (6EP3310-6SB00-0AY0) may be used for the 5 VDC supply. Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 22: Loading The S7-1200 Configuration

    S7-1200 CPU. 4. Load the configuration "PLC_1". To do this, right-click the device in the project tree and select the menu "Download to device > Hardware and software (only changes)". Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 23: Operation

    4 Operation Operation Introduction This section will show you how to use the functions of the application example described above. Procedure 1. Open the OB1. 2. Activate the "enable" input. Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 24 4 Operation Result: The parameterization of the CM1241 RS232 communication module and resetting of the SIMATIC RF1070R reader have been completed successfully (status: 16#0001). Before you activate "enable" for the first time, a reset must occur. 3. Activate the "enable" input.
  • Page 25 4. Hold the card with the UID in the reader's antenna field. 5. You can observe the UID that is read out at the "RFData" data block in STEP 7 (status: 16#7006). Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0,...
  • Page 26: Useful Information

    "Receive_P2P"). With a connection via the CM, you need to set the communication parameters of the CM as follows: • Data bits: 8 • Parity: None • Stop bits: 1 • Transmission speed: 115.2 kbps • Flow control: None. Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 27: System Jobs

    CmdCode of the command to be called. 3…4 0x00 Parameter length 0xC2 Optional checksum (when the value "0x1C" is set in byte 0). syscmd_set_port: Setting the SIMATIC RF1070R reader's LED Table 5-3 Job telegram Byte Value Description 0x0C Without checksum...
  • Page 28 0x00 0x30 Card type You can find detailed information on the card types in manual number \3\. 0x0D Optional checksum (when the value "0x1C" is set in byte 0). Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 29 Parameter length, depending on card type 0x00 0x11 Serial number of the card, depending on card type 0x22 0x33 0x44 0xXX Optional checksum (when the value "0x1C" is set in byte 0). Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 30 0x9F Optional checksum (when the value "0x9C" is set in byte 0) Note You can find a detailed description of the implementation of system jobs in manual number \3\. Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0, 09/2020...
  • Page 31: Project Engineering Of The S7 Station With The Cm1241 Rs232 Communication Module

    CM1241 RS232 via the hardware configuration in TIA Portal. This chapter shows the required configuration steps in order to create a project with a SIMATIC S7-1200 CPU, the CM1241 RS232 and the SIMATIC RF1070R reader. 1. Create a new STEP 7 project.
  • Page 32 5. Compile the hardware and software of the S7 station. To do this, right-click on the device "PLC_1" in the project tree and select the menu "Compile >Hardware and software (only changes)" Reading out UID with SIMATIC RF1070R Article ID: 109780625, V1.0,...
  • Page 33: Appendix

    Industry Online Support Do you have any questions or need assistance? Siemens Industry Online Support offers round the clock access to our entire service and support know-how and portfolio. The Industry Online Support is the central address for information about our products, solutions and services.
  • Page 34: Links And Literature

    Siemens Industry Online Support https://support.industry.siemens.com Link to the article page of the application example https://support.industry.siemens.com/cs/ww/en/view/109780625 SIMATIC RF1000 RFID systems https://support.industry.siemens.com/cs/ww/en/view/109772951 Reading out UID with SIMATIC RF1070R via communication module https://support.industry.siemens.com/cs/ww/en/view/109770535 SIMATIC S7 S7-1200 Programmable controller https://support.industry.siemens.com/cs/ww/en/view/109772940 Change documentation Table 6-2...

Table of Contents