Program Examples - Sharp IV-S20 User Manual

Compact image sensor camera
Table of Contents

Advertisement

Computer link

14-5 Program examples

An example of measurements using the IV-S20 and a Sharp PC (JW70H) (2-point search for positional
deviation measurement) is explained below, using data flow, a flowchart and a timing chart.
Sharp's PC (JW70H)
Camera 1
(1) Data flow
Output relay
00040
W
i r
e r
g
t s i
1 *
0
9
0
0
9
0
0
0
9
0
0
0
9
0
0
0
9
0
0
0
9
0
0
0
9
0
0
0
9
0
0
0
9
0
1
0
9
0
1
0
9
0
1
0
9
0
1
0
9
0
1
0
9
0
1
14
0
9
0
1
0
9
0
1
0
9
0
2
0
9
0
2
0
9
0
2
0
9
0
2
0
9
0
2
0
9
0
2
Note 1: The PC must be write enabled. A Mitsubishi or OMRON PC will operate in the same manner,
but use different PC register and relay addresses.
Note 2: If the PC has not been connected to the object type input (parallel) on the IV-S20, the object
type No. is set to 0. To set different types, first enter the object type numbers (parallel) using
the type input terminals on the IV-S20.
Sharp PC (JW70H)
Description
Start output
e t
D
a
a t
D
r e
(
H
)
0
0
0
0
T
r e
m
n i
t a
o i
n
c
o
1
-
2
0
1
O
b
e j
t c
y t
p
e
N
o
3
-
4
0
1
R
e
s
u
t l
o
u
p t
t u
Y
(
O
n
y l
Y
0
s i
O
K
5
0
0
M
e
a
s
u
e r
m
e
t n
6
0
1
P
o
t i s
o i
n
l a
d
e
i v
M
e
a
s
u
e r
m
e
t n
7
0
0
m
e
a
s
u
e r
m
e
t n
M
e
a
s
u
e r
m
e
t n
0
0
0
m
e
a
s
u
e r
m
e
t n
M
e
a
s
u
e r
m
e
t n
1
0
0
m
e
a
s
u
e r
m
e
t n
M
e
a
s
u
e r
m
e
t n
2
0
0
m
e
a
s
u
e r
m
e
n
3 t
3
-
4
4
0
X
1
5
0
6
c (
6
E
0
c
Y
7
0
6
0
9
8
X
2
1
0
D
c (
2
9
0
c
Y
3
0
6
4
0
0
A
n
g
l u
r a
d
e
i v
t a
5
0
0
Input terminal
INPUT
POWER
X0
X1
X2
X3
X4
X5
X6
C(+)
+24V
0V
Y0
Y1
Y2
Y3
Y4
Y5
Y6
Y7
BUSY
C(-)
OUTPUT
VIDEO
CAMERA1 CAMERA2
RS232C/RS422
"
"
Communication connector (RS232C/RS422)
Camera 1 connector
1 Output a start signal.
2 Write data into the register.
e
c s
i r
t p
o i
n
d
e
n (
r o
m
a
t l
r e
m
n i
t a
o i
) n
( .
) 1
0
o t
Y
1
5
) .
0
u
s
n i
g
c
a
m
e
a r
: 1
t a
o i
n
m
e
a
s
u
e r
m
e
t n
u f
n
t c
o i
n
f o
0
u
s
n i
g
c
a
m
e
a r
2
n (
o
n
) e
u f
n
t c
o i
n
f o
1
n (
o
n
) e
u f
n
t c
o i
n
f o
2
n (
o
n
) e
u f
n
t c
o i
n
f o
n (
o
n
) e
t s
p
i o
t n
e
t n
r e
O
u
p t
t u
d
a
a t
o
o
d r
n i
a
e t
) s
f
o r
m
m
e
a
s
u
e r
m
-
n
d
p
i o
t n
e
t n
1
u
s
n i
g
e
t n
r e
c
a
m
e
a r
o
o
d r
n i
a
e t
) s
1
b (
o l
k c
) 1
o i
n
14-28
IV-S20 main housing
IV-S20
POWER
(plan view)
REMOTE
IV-S20 main housing
(side view)
3 Transmit completion
response.
*1 In this example, the write start
address has been set to
09000.
*2 The data in registers 09014 to
09024 are the same as those
shown in the example on page
13-6.
IV-S20

Advertisement

Table of Contents
loading

Table of Contents