Siemens SIMATIC Vision Sensor VS 130-2 Manual page 119

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

Advertisement

The respective read cycle (that is, the transfer of a complete result string) is
complete when ACTIVE takes on the value TRUE and either DONE or ERROR has
taken on the value TRUE (positive-going edge). If you want to start an additional
job while a read job is running, you have to abort the read job. This occurs by
calling the FB with COMMAND=W#16#0000. In this case, ACTIVE does not take
on the value FALSE. Depending on whether a result string is being transferred or
not, either DONE or ERROR takes on the value TRUE. If ERROR takes on the
value TRUE, ERRCODE does not take on the value DW#16#00010007.
Note
If an error occurs, set the processing unit to the STOP mode, correct and
acknowledge the error. You can then set the processing unit back to RUN mode
with a code change in a trained code (COMMAND = W#16#0001).
Parameters
Parameter
Declaration Data type Address
LADDR_
INPUT
STEUER
LADDR_
INPUT
STATUS
LADDR_
INPUT
SEND
LADDR_
INPUT
RECV
COMMAND
INPUT
PARAM1
INPUT
RESET
INPUT
RECV
INPUT
ACTIVE
OUTPUT
Vision Sensor SIMATIC VS 130-2/VS 130-2vcr
A5E00475759-01
(instance DB)
WORD
0.0
WORD
2.0
WORD
4.0
WORD
6.0
WORD
8.0
BYTE
10.0
BOOL
11.0
ANY
12.0
BOOL
22.0
Default
Description
setting
W#16# 0000
Address of the control byte of
the VS 130-2
The address has to be in the
process image of the used CPU.
W#16# 0000
Address of the status byte of the
VS 130-2
The address has to be in the
process image of the used CPU.
W#16# 0000
Start address of the "Send" user
data interface of VS 130-2
W#16# 0000
Start address of the "Receive"
user data interface of VS 130-2
W#16# 0000
Job number
The permitted values are
described following the table.
B#16#00
Number of the code to be
selected (relevant only for the
jobs W#16#0001 and
W#16#0002)
FALSE
Reset pending errors and
initialize FB
Receive area for the result
string. Only the data block area
and the BYTE data type are
allowed.
You have to switch these
parameters and the data block
has to be at least as large as
the maximum expected DMC
string.
FALSE
ACTIVE=TRUE: Processing of
the last job is not yet completed.
Process Interface
6-21

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic vision sensor vs 130-2vcr

Table of Contents