Siemens SIMATIC VS130 Series Manual page 53

Vision sensor
Table of Contents

Advertisement

STL Program
// check no. of data packet for 1
L
IB 5
L
1
<>
I
JC
m001
// read user data from processing unit
L
ID 8
T
DB17.DBD 4
L
ID 12
T
DB17.DBD 8
L
ID 16
T
DB17.DBD 12
L
ID 20
T
DB17.DBD 16
L
ID 24
T
DB17.DBD 20
L
ID 28
T
DB17.DBD 24
L
ID 32
T
DB17.DBD 28
// acknowledge with no. of data packet
m001:
L
IB 5
T
QB 5
BEU
Vision Sensor VS 130
A5E00199459-01
// no. of data package from processing unit
// If no. not 1
// ... there is no user data
// read the first 4 bytes of user data
// enter in DB
// read the next 4 bytes of user data
// enter in DB
// read the next 4 bytes of user data
// enter in DB
// read the next 4 bytes of user data
// enter in DB
// read the next 4 bytes of user data
// enter in DB
// read the next 4 bytes of user data
// enter in DB
// read the last 4 bytes of user data
// enter in DB
// no. of data packet
// send as acknowledgment to the processing unit
Controlling with a PLC
6-9

Advertisement

Table of Contents
loading

Table of Contents