2 Engineering of the STEP 7 program
Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP
Article ID: 109474684, V2.0, 10/2021
© Siemens AG
2021 All rights reserved
1. "START_UP_STATE"
In this state, the parameters required for the program sequence are initialized:
– The control inputs of the "Port_Config" and "Receive_Reset" commands
– The internal program variables, such as the current state of the program,
and
– The current position in the ring buffer
2. "CONFIG_STATE"
In this state, the "Port_Config" command is called to set the communication
parameters (see Table 2-2) of the point-to-point connection.
Calling the "Port_Config" command overwrites the settings of the hardware
configuration.
3. "DELETE_BUFFER_STATE"
In this state, the receive buffer is reset.
4. "DATA_RECEPTION_STATE"
This state is structured as follows:
– Waiting on data from the ET 200SP CM PtP ("Receive_P2P")
– Retrieving data from the ET 200SP CM PtP ("Receive_P2P")
– Store the data in the ring buffer
The following Table lists the parameters of "Port_Config" that are used by the user
program (OB100 "Startup").
The listed values adjust the interface of the CM PtP communication module to suit
the communication settings of the MV320 handheld reader (see chapter 3).
Table 2-2
Data transmission rate of the port
1 >> no data flow
control
Wait time after receiving an XOFF character
for an XON character
Presetting of the receiving line