21 Appendix
(3) C.prg
21-122 Chart of sample program
C1.prg
Start
Set information corresponding
to the made vision program.
Acquire the model number and
the encoder number set
by program C.
Close communication line
Open communication line and
log on
Execute the vision program and
acquire data of one
recognized workpiece
Acquire the current
encoder data(first time)
Close communication line
Acquire the current
encoder data(second time)
Acquire the
current position
Calculate the amount of
encoder movement
C1.prg
End