2 Engineering of the STEP 7 program
2.2
The "PtPFreeport" Function Block
Function
The "PtPFreeport" function block implements:
•
The initialization of the parameters used
•
The configuration of the ET 200SP communication module CM PtP
("Port_Config")
•
Clearing of the receive buffer in the ET 200SP communication module CM PtP
("Receive_Reset")
•
The receive function ("Receive_P2P") and interpretation of the scan codes
This functionality is implemented as a simple sequencer with the following states:
Figure 2-2
Wait for
Data
Reading QR Codes with SIMATIC MV320 via ET200SP CM PtP
Article ID: 109474684,
V2.0,
Init
4:
DATA_RECEPTION_STATE
(Receive_P2P)
Reset =
DONE
10/2021
1:
START_UP_STATE
Init = DONE
CONFIG_STATE
3:
DELETE_BUFFER_STATE
(Receive_Reset)
2:
(Port_Config)
Configuration =
DONE
9