Process interfacing via an automation system (PLC, PC)
9.4 Control with FB 79
SIMATIC MV500
Operating Instructions, 06/2018, C79000-G8976-C494-01
137
Table 9- 42 Structure of the STL program
//Enter data ID (in principle only necessary in the first cycle)
T AB 8
// Check number of data packet for 1
// No. of the data packet from the optical reader
// ... user data is not available yet
// Import user data from the optical reader
// Read first 4 bytes of user data
// Read next 4 bytes of user data
// Read next 4 bytes of user data
// Read next 4 bytes of user data
T DB17.DBD 16 // Store in DB
// Read next 4 bytes of user data
// Read next 4 bytes of user data
// Read second last 2 bytes of user data
// Read last byte of user data
// Acknowledge with no. of data packet
// Send as acknowledgment to optical reader