Contec PIO-16/16B(PC)H 取扱説明書

  • CONTEC PIO-16/16B(PC)H デジタル入出力ボードの解説書の内容を理解しています。このボードの機能、設定方法、接続方法、トラブルシューティングなど、ご質問にお答えします。このマニュアルには、ハードウェアの設定、外部機器との接続、I/Oポートのビット割り付け、システム仕様、サンプルプログラムなどが記載されています。
  • I/Oアドレスはどうやって設定しますか?
    割り込みレベルはどうやって設定しますか?
    内蔵電源と外部電源の選択はどうすればいいですか?
PC-HELPER
FA/LA
OEM
FA/LA
FA/LA
FAX E-mail
Question ( ) FAX
E-mail Question ( )
Question FAX
-mail Question ( )
( )
Question E-mail
A-46-362 Ver. 2001. 02. 02
( )
I/O
I/O
I/O
MS Microsoft Windows Windows NT MS-DOS Microsoft Corporation
CONTEC CO., LTD.
PIO-16/16B(PC)H
PIO-16/16B(PC)H 1
1
1
1
Question 1
CONTEC CO., LTD.
PIO-16/16B(PC)H
PIO-16/16B(PC)H
PC/AT
I/O
1 16
Windows Windows ( )
< >
Windows API-PAC(W32)
ActiveX ACX-PAC(W32)
Windows http://www.contec.co.jp
8 1 2 16
8 1 2 16
16 2 2
1 DC35V 100mA
CONTEC CO., LTD.
PIO-16/16B(PC)H
16 8
2 IN
16 2
16 8
2
OUT
OUT
1
2
3 I/O
I/O
4
5
CONTEC CO., LTD.
PIO-16/16B(PC)H
....................................................................................................................................iv
.........................................................................................................................................iv
......................................................................................................................................................v
...................................................................................................................................................v
..................................................................................................................................................vi
.....................................................................................................................................vi
............................................................................................................................................................vii
1
.............................................................................................................................1
I/O ....................................................................................................................................2
..........................................................................................................................................2
..........................................................................................................................................3
.............................................................................................................................4
..........................................................................................................................................4
..........................................................................................................................................4
/ .......................................................................................................................6
..........................................................................................................................................6
7
.......................................................................................................7
...................................................................................7
...................................................................................8
.........................................................................................................................................9
I/O 11
I/O .................................................................................................................11
..................................................................................................11
..................................................................................................12
13
.......................................................................................................................................13
............................................................................................................................................................14
CONTEC CO., LTD.
PIO-16/16B(PC)H
15
PC/AT ..............................................................................................................15
..........................................................................................15
.....................................................................................17
LSI ................................................................................................................28
...............................................................................................................................29
Q-BASIC ......................................................................................29
Microsoft C ..................................................................................32
Q-BASIC ......................................................................................34
Microsoft C ..................................................................................38
Q-BASIC .............................................................................40
Microsoft C .................................................................45
...................................................................................................................................47
....................................................................................................................................................48
CONTEC CO., LTD.
PIO-16/16B(PC)H
1.1
(CN1)
(JP2)
(JP1)
9 3 4 5 6 7
1 2
10 11 12 14 15
IRQ
SIG
IRQ
1
2
3
4
5
6
7
8
O
F
F
SW2
I/O (SW1 SW2)
1
2
3
4
5
6
7
8
O
F
F
SW1
(2-3 )
(JP3 JP6)
JP3
JP4
JP5
JP6
1 2 3
1 2 3
1
2
3
1.1
CONTEC CO., LTD.
PIO-16/16B(PC)H
I/O
(I/O ) I/O
I/O
I/O 0300H 4 16 I/O
I/O I/O
I/O
2 I/O
PC/AT [0000H FFFFH] I/O
I/O
CRT I/O
(Reserved)
I/O 1.2
I/O
*300H *31FH
*700H *71FH
*B00H *B1FH
*F00H *F1FH (*: 0 F )
1.2 I/O
I/O 3 (16 ) 0 F
I/O
LAN 300H 31FH I/O
CONTEC CO., LTD.
PIO-16/16B(PC)H
I/O (SW1 SW2) SW1 SW2
I/O 15 (A15 A1) A0 0(OFF)
SW1 SW2 ON OFF I/O ON 1
OFF 0
A7 A6 A5 A4 A3 A2 A1 A0
2
16
0 0 0 0
0
0 0 1 1
3
0 0 0 0
0
0 0 0 0
0
A15 A14 A13 A12 A11 A10 A9 A8
1
2
3
4
5
6
7
8
O
F
F
SW1
1
2
3
4
5
6
7
8
O
F
F
SW2
1.3 I/O
1.3 I/O 0300H 1.1 I/O
1.1 I/O
0300H 0301H
I/O
(2 )
CONTEC CO., LTD.
PIO-16/16B(PC)H
16 2
(JP1)
(JP1)
IRQ3 9 12 14 15
2
( I/O )
JP1
(JP1)
9 3 4 5 6 7
1 2
10 11 12 14 15
JP1
IRQ
SIG
IRQ
1.4
CONTEC CO., LTD.
PIO-16/16B(PC)H
IRQ3
9 12 14 15 XT IRQ10 15
9 3 4 5 6 7
1 2
10 11 12 14 15
JP1
I00 (2)
I02 (4)
IRQ
IRQ
1.5
( ) SIG1(I02) PC/AT IRQ10
9 3 4 5 6 7
1 2
10 11 12 14 15
JP1
IRQ
SIG
IRQ
IRQ
IRQ
I/O
SIG1(I02)
SIG2(I00)
IBM PC / AT( )
10
11
12
14
15
9
3
4
5
6
7
1.6
CONTEC CO., LTD.
PIO-16/16B(PC)H
/
(DC12V 250mA)
16
64mA
16mA
170mA
JP3 JP6
0
1
( )
0
1
1 2 3
GND
JP4
1 2 3
JP3
+12V
GND
JP4
JP3
+12V
GND
JP6
1 2 3
JP5
+12V
GND
JP6
1 2 3
+12V
JP5
1.7
CONTEC CO., LTD.
PIO-16/16B(PC)H
(CN1)
1
2
19
20
21
37
37 D-SUB [F( ) ]
DCLC-J37SAF-20L9 [JAE ]
UNC #4-40 ( )
17JE-23370-02(D8C) [DDK M( ) ]
FDCD-37P [ M( ) ]
DC-37P-N [JAE M( ) ]
2.1
( )
37 D-SUB : PCB37P-1.5 (1.5m)
PCB37P-3 (3m)
PCB37P-5 (5m)
37 D-SUB : PCB37PS-0.5P (0.5m)
PCB37PS-1.5P (1.5m)
PCB37PS-3P (3m)
PCB37PS-5P (5m)
37 D- SUB : PCA37P-1.5 (1.5m)
PCA37P-3 (3m)
PCA37P-5 (5m)
37 D- SUB : PCA37PS-0.5P (0.5m)
PCA37PS-1.5P (1.5m)
PCA37PS-3P (3m)
PCA37PS-5P (5m)
( )
: EPD-37 *1
(M3) : DTP-3(PC)
: DTP-4(PC)
: CM-32(PC)E *1
*1 PCB37P PCB37PS
CONTEC CO., LTD.
PIO-16/16B(PC)H
37
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
N0
*I 00
I 01
*I 02
I 03
I 04
I 05
I 06
I 07
I 10
I 11
I 12
I 13
I 14
I 15
I 16
I 17
P0
N.C.
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
N1
O 00
O 01
O 02
O 03
O 04
O 05
O 06
O 07
O 10
O 11
O 12
O 13
O 14
O 15
O 16
O 17
P1
+0
( )
+1
( )
+0
( )
+1
( )
+0 +1
+0 +1
+0 +1+0 +1
*I00 *I02
2.2
CONTEC CO., LTD.
PIO-16/16B(PC)H
2.3
( )
DC24V 1
8mA(DC12V 4mA) DC24V ON
Vcc
3k
5.1k
DC12 24V
Vcc
3k
5.1k
JP5
JP6
+12V
2.3
CONTEC CO., LTD.
PIO-16/16B(PC)H
2.4
( )
1 100mA
5
1k
12k
12k
Vcc
1k
DC12 24V
JP4
JP3
+12V
2.4
I/O
CONTEC CO., LTD.
PIO-16/16B(PC)H
I/O
I/O
2 I/O
( ) 8 1
I/O D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0
I 07 I 06 I 05 I 04 I 03 I 02 I 01 I 00
[9] [8] [7] [6] [5] [4] [3] [2]
I 17 I 16 I 15 I 14 I 13 I 12 I 11 I 10
[17] [16] [15] [14] [13] [12] [11] [10]
I ×× [ ]
I 00 I 02
+0H
+1H
0 (+0 )
1 (+1 )
3.1
ON 1 OFF
0
) I/O 300H I07 ON
BASIC (MS-DOS )
DATA%=INPUT(&H300)
IF(DATA% AND &H80)=&H80 THEN
Microsoft C / C++ (MS-DOS )
data_in=inp(0x300);
if(data_in & 0x80)
/