Siemens SIMATIC Vision Sensor VS 130-2 Manual page 128

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

Advertisement

Process Interface
You should therefore evaluate the DONE and ERROR parameters at each block
call.
If the transfer was successful, DONE = TRUE. This only means, however, that the
transfer between processing unit and FB (CPU) has been completed error-free. In
order to find out if the DMC evaluation was successful, you have to evaluate the
bits READ (Bit 3), MATCH (Bit 4) and N_OK (Bit 5) in the status byte of the
processing unit. In this case, refer to the following table for the behavior of FB79.
You should also evaluate ERRCODE to be informed of warnings from the FB.
VS 130-2
The code could not be decoded.
The code was successfully decoded;
however, you have not set any
specifications.
The code was successfully decoded
but does not match your
specifications.
The code was successfully decoded
and matches the specifications.
Process the data entered in RECV before the next trigger otherwise the
consistency of this data cannot be guaranteed! You should also evaluate the
LENGTH parameter because the receive area is written only up to this length.
You can abort an active read job by calling FB79 with COMMAND = W#16#0000.
If an error occurs during execution of the job or while aborting an in-process read
job, ERROR = TRUE. In this case, the ERRCODE parameter contains a code for
the cause of the error that has occurred. FB79 writes B#16#00 to the RECV target
area.
Note
The following parameters must be set to PROFIBUS DP or PROFINET IO to
process the job:
Output the result string
Port for the DISA, SEL0 to SEL3, TRN, RES, IN_OP, TRD, RDY signals
Startup reaction
If an error occurs (ERRCODE <> DW#16#0000 0000), after calling an interrupt OB
(for example OB82) and after a STOP-RUN change on the CPU, you must initialize
the FB once with RESET=TRUE. Please enter a corresponding first call in your
user program.
6-30
Target Area RECV
FB79 enters the string set in the "ReadErr" parameter.
FB79 enters the result string.
FB79 enters the string set in the "MatchErr" or "FilterMsg"
parameter if the Match or Filter function is set. If both these
functions are selected, FB79 enters the string entered for
"MatchErr". For more detailed information on "MatchErr" and
"FilterMsg", please refer to Chapter 5.
FB79 enters the result string.
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