Siemens SIMATIC Vision Sensor VS 130-2 Manual page 118

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

Advertisement

Process Interface
At the start of the new job, the output parameters are reset.
Caution: A multiple FB79 call with the same instance is not permitted.
Please note that with the parameters of the page "Connections Part 3/3:
Integration" (setup support) or the "Connect > Integrate" menu (processing unit),
you can influence the processing of the FB:
If you want to use the FB to read a result string, the output of the result string
must be set on PROFIBUS DP or PROFINET IO. For the jobs "Change code"
(COMMAND =W#16#0001), "Train code" (COMMAND =W#16#0002) and
"Output the currently selected code" (COMMAND =W#16#0003, the number of
the selected code is requested by the processing unit. The output of the result
string must therefore be set on the PROFIBUS DP or PROFINET IO for this
reason.
The ports for the DISA, SEL0 to SEL3, TRN, RES, IN_OP, TRD, RDY signals
must always be set to PROFIBUS DP or PROFINET IO.
The port setting for the result bits READ, MATCH, NOK is irrelevant for the FB.
Note
If you use the FB, only the bits RES and TRG may be affected by your program in
the control byte of the processing unit. All other bits of the control byte are affected
by the FB.
How It works
FB79 "VS130-2_CONTROL" operates asynchronously; in other words, execution
can extend over several FB calls. You start execution of the job by calling the FB
with a job number higher than 0 .
Execution of the job is completed when ACTIVE takes on the value FALSE and
either DONE or ERROR takes on the value TRUE (positive-going edge). Please
remember that various jobs are handled in one CPU cycle and therefore ACTIVE
does not take on the value TRUE. This applies to the jobs "Read out mode" and
"Reset DISA bit". In some cases, it may also not be possible to detect an edge
change at DONE or ERROR.
You should therefore evaluate the DONE and ERROR parameters at each block
call. If the job was completed without error, DONE = TRUE. You should also
evaluate ERRCODE, in this case, to be informed of warnings from the FB.
As long as ACTIVE has taken on the value TRUE, you have to call the FB with
identical assignment of the COMMAND input parameters. During this time, is also
not possible to start a new job.
Read jobs are cyclical jobs. This means that after starting a job with
COMMAND=W#16#0081 to 008F, ACTIVE takes on the value TRUE. ACTIVE
retains this value as long as the job is aborted.
6-20
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