Advertisement

Quick Links

Reading QR codes
with the
SIMATIC MV320
optical handheld
reader via the
ET 200SP distributed
I/O system and CM PtP
with Freeport protocol
SIMATIC S7-300, ET 200SP CM PtP / V2.0
https://support.industry.siemens.com/cs/ww/en/view/109474684
Siemens
Industry
Online
Support

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SIMATIC MV320

  • Page 1 Reading QR codes with the SIMATIC MV320 optical handheld reader via the ET 200SP distributed I/O system and CM PtP with Freeport protocol Siemens SIMATIC S7-300, ET 200SP CM PtP / V2.0 Industry Online https://support.industry.siemens.com/cs/ww/en/view/109474684 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

    Configuring the S7 Station with the ET 200SP distributed I/O system ....................21 Appendix ......................24 Service and support ................24 Links and literature ................25 Change documentation ..............25 Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0, 10/2021...
  • Page 4: Introduction

    SIMATIC MV320 handheld reader. Note The article page of application example in the Siemens Industry Online Support \2\ contains another project for connecting the SIMATIC MV320 handheld reader to a SIMATIC S7-1500 station via the CM PtP RS232 communication module.
  • Page 5: Functional Description

    Demonstration of the serial interface handling of an ET 200SP, as a distributed I/O system of a SIMATIC S7-300 station. • Reusable STEP 7 code. This can be easily adapted for extensions. Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0, 10/2021...
  • Page 6: Components Used

    File name Note Project "109474684_ET_200SP_CM_PtP_ This compressed file contains the MV320_PROJ_V17_V20.zip" V17 project. Documentation "109474684_ET_200SP_CM_PtP_ This description also applies to MV320_DOC_V20.pdf" the STEP 7 V16 project. Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0, 10/2021...
  • Page 7: Engineering Of The Step 7 Program

    Calling "Port_Config" overwrites the settings of the hardware configuration. Main In OB1, the "PtPFreeport" function block, including the associated instance data block, is called cyclically. Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0, 10/2021...
  • Page 8 Receives messages from the CM PtP communication module. Receive_Reset Clears the receive buffer of the CM PtP communication module Note Calling "Port_Config" overwrites the settings of the hardware configuration. Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0, 10/2021...
  • Page 9: The "Ptpfreeport" Function Block

    This functionality is implemented as a simple sequencer with the following states: Figure 2-2 START_UP_STATE Init Init = DONE Wait for Data CONFIG_STATE DATA_RECEPTION_STATE (Receive_P2P) (Port_Config) Configuration = Reset = DONE DONE DELETE_BUFFER_STATE (Receive_Reset) Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0, 10/2021...
  • Page 10 Wait time after receiving an XOFF character for an XON character mode 0 >> full duplex RS232 Operating mode litePre 0 >> no preassignment Presetting of the receiving line Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0, 10/2021...
  • Page 11 As soon as an error occurs, the output "valid" is reset. done BOOL New data were received. busy BOOL The FB has not yet finished processing the command. Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0, 10/2021...
  • Page 12 4: "Receive_P2P" error status WORD Error information Note: You can find the meaning of the codes in the online help of the commands "Port_Config", "Receive_Reset", and "Receive_P2P". Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0, 10/2021...
  • Page 13: The "Dataptp" Global Data Block

    – "rcvLength" Length of the last received telegram – "rcvDataPtP" The received telegram • Output parameters for calling the function block in OB1 Figure 2-4 Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0, 10/2021...
  • Page 14: Configuring The Mv320 Optical Handheld Reader

    No parity – Universal Keyboard 2. Save the change. Note The baud rate of the reader must match the baud rate set in the communication module. Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0, 10/2021...
  • Page 15: Installation And Commissioning

    4. Connect the ET 200SP header module to the SIMATIC S7-300 with an Ethernet cable. 5. Connect the ET 200SP to a 24 V power supply. Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0,...
  • Page 16: Installing The Hardware And Software Components

    7.2). 7. Connect the hardware components as shown in Figure 4-1. 8. Extract the file "109474684_ET_200SP_CM_PtP_MV320_ PROJ_V17_V20.zip". Note This compressed file contains the V17 project. Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0, 10/2021...
  • Page 17: Loading The S7-300 Configuration

    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 QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0,...
  • Page 18: Operation

    This chapter will show you how to use the functions of the application example described above. Procedure To store data from the SIMATIC MV320 handheld reader in the CPU, enter the corresponding data codes with the handheld reader. 1. Using the MV320 reader, scan one of the codes from Figure 5-1.
  • Page 19: Useful Information

    You can find a detailed list with a description of the Freeport protocol parameters in the function manual "Configurations for Point-to-Point Connections" (see \5\, chapter 4.2). Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0,...
  • Page 20 If your serial terminal uses companion signals, you can transmit and read them with the following commands, unless automatic operation is parameterized: • Signal_Set • Signal_Get Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0, 10/2021...
  • Page 21: Configuring The S7 Station With The Et 200Sp Distributed I/O System

    CM PtP communication module. 9. Switch to "Device view > Properties > General > Interface > Specification of the operating mode" and select "RS232C". Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0,...
  • Page 22 ET 200SP, select the "Assign device name" context menu. Note The S7 station is assigned the device name by your engineering station. Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0, 10/2021...
  • Page 23 13. Compile the hardware and software of the S7 station. To do this, right-click the device "PLC_1" in project tree and select the menu "Compile > Hardware and software (only changes)". Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0,...
  • Page 24: 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 25: Links And Literature

    Reading Data Matrix Codes with S7-1200 and Archiving Them in an MS Access Database (Set 27) https://support.industry.siemens.com/cs/ww/en/view/40603943 Change documentation Table 7-2 Version Date Change V1.0 02/2013 First edition V2.0 10/2021 Complete revision Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP Article ID: 109474684, V2.0, 10/2021...

Table of Contents