![Siemens SIMATIC VS130 Series Скачать руководство пользователя страница 53](http://html.mh-extra.com/html/siemens/simatic-vs130-series/simatic-vs130-series_manual_374431053.webp)
Controlling with a PLC
Vision Sensor VS 130
A5E00199459-01
6-9
STL Program
// check no. of data packet for 1
L
IB 5
// no. of data package from processing unit
L
1
<>
I
// If no. not 1
JC
m001
// ... there is no user data
// read user data from processing unit
L
ID 8
// read the first 4 bytes of user data
T
DB17.DBD 4
// enter in DB
L
ID 12
// read the next 4 bytes of user data
T
DB17.DBD 8
// enter in DB
L
ID 16
// read the next 4 bytes of user data
T
DB17.DBD 12
// enter in DB
L
ID 20
// read the next 4 bytes of user data
T
DB17.DBD 16
// enter in DB
L
ID 24
// read the next 4 bytes of user data
T
DB17.DBD 20
// enter in DB
L
ID 28
// read the next 4 bytes of user data
T
DB17.DBD 24
// enter in DB
L
ID 32
// read the last 4 bytes of user data
T
DB17.DBD 28
// enter in DB
// acknowledge with no. of data packet
m001:
L
IB 5
// no. of data packet
T
QB 5
// send as acknowledgment to the processing unit
BEU