Siemens SIMATIC MV550 S Operating Instructions Manual page 137

Table of Contents

Advertisement

STL program
Table 9- 42
m001:
SIMATIC MV500
Operating Instructions, 05/2019, C79000-G8976-C494-02
Structure of the STL program
//Enter data ID (in principle only necessary in the first cycle)
L
B#16#81
T
AB 8
// Check number of data packet for 1
L
EB 5
L
1
<>
I
SPB
m001
// Import user data from the optical reader
L
ED 9
T
DB17.DBD 4
L
ED 13
T
DB17.DBD 8
L
ED 17
T
DB17.DBD 12
L
ED 21
T
DB17.DBD 16
L
ED 25
T
DB17.DBD 20
L
ED 29
T
DB17.DBD 24
L
EW 33
T
DB17.DBW 28
L
EB 35
T
DB17.DBB 30 /
// Acknowledge with no. of data packet
L
EB 5
T
AB 5
BEA
Process interfacing via an automation system (PLC, PC)
// Only result string
// No. of the data packet from the optical reader
// If no. ≠ 1
// ... user data is not available yet
// Read first 4 bytes of user data
// Store in DB
// Read next 4 bytes of user data
// Store in DB
// Read next 4 bytes of user data
// Store in DB
// Read next 4 bytes of user data
// Store in DB
// Read next 4 bytes of user data
// Store in DB
// Read next 4 bytes of user data
// Store in DB
// Read second last 2 bytes of user data
// Store in DB
// Read last byte of user data
// Store in DB
// Number of data packet
// Send as acknowledgment to optical reader
9.4 Control with FB 79
137

Advertisement

Table of Contents
loading

Table of Contents