Siemens SIMATIC Vision Sensor VS 130-2 Manual page 114

Hide thumbs Also See for SIMATIC Vision Sensor VS 130-2:
Table of Contents

Advertisement

Process Interface
STL program
//Enter data ID (only necessary in the first cycle)
L
M
// check no. of data packet for 1
L
L
<>
JC
// read user data from processing unit
L
M
L
M
L
M
L
M
L
M
L
M
L
M
L
M
// acknowledge with no, of data packet
m001:
L
M
6-16
B#16#81
// Only result string
QB 8
IB 5
// no. of data package from processing unit
1
I
// If no. not 1
m001
// ... there is then no user data
ID 9
// read the first 4 bytes of user data
DB17.DBD 4
// enter in DB
ID 13
// read the next 4 bytes of user data
DB17.DBD 8
// enter in DB
ID 17
// read the next 4 bytes of user data
DB17.DBD 12
// enter in DB
ID 21
// read the next 4 bytes of user data
DB17.DBD 16
// enter in DB
ID 25
// read the next 4 bytes of user data
DB17.DBD 20
// enter in DB
ID 29
// read the next 4 bytes of user data
DB17.DBD 24
// enter in DB
IW 33
// read the last but 2 bytes of user data
DB17.DBW 28
// enter in DB
IB 35
// Read the last byte of user data
DB17.DBB 30
// enter in DB
IB 5
// no. of data packet
QB 5
// send as acknowledgment to the processing unit
BEU
Vision Sensor SIMATIC VS 130-2/VS 130-2vcr
A5E00475759-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic vision sensor vs 130-2vcr

Table of Contents