Pepper Computer RS485 manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320

Ir para a página of

Bom manual de uso

As regras impõem ao revendedor a obrigação de fornecer ao comprador o manual com o produto Pepper Computer RS485. A falta de manual ou informações incorretas fornecidas ao consumidor são a base de uma queixa por não conformidade do produto com o contrato. De acordo com a lei, pode anexar o manual em uma outra forma de que em papel, o que é frequentemente utilizado, anexando uma forma gráfica ou manual electrónicoPepper Computer RS485 vídeos instrutivos para os usuários. A condição é uma forma legível e compreensível.

O que é a instrução?

A palavra vem do latim "Instructio" ou instruir. Portanto, no manual Pepper Computer RS485 você pode encontrar uma descrição das fases do processo. O objetivo do manual é instruir, facilitar o arranque, a utilização do equipamento ou a execução de determinadas tarefas. O manual é uma coleção de informações sobre o objeto / serviço, um guia.

Infelizmente, pequenos usuários tomam o tempo para ler o manual Pepper Computer RS485, e um bom manual não só permite conhecer uma série de funcionalidades adicionais do dispositivo, mas evita a formação da maioria das falhas.

Então, o que deve conter o manual perfeito?

Primeiro, o manual Pepper Computer RS485 deve conte:
- dados técnicos do dispositivo Pepper Computer RS485
- nome do fabricante e ano de fabricação do dispositivo Pepper Computer RS485
- instruções de utilização, regulação e manutenção do dispositivo Pepper Computer RS485
- sinais de segurança e certificados que comprovam a conformidade com as normas pertinentes

Por que você não ler manuais?

Normalmente, isso é devido à falta de tempo e à certeza quanto à funcionalidade específica do dispositivo adquirido. Infelizmente, a mesma ligação e o arranque Pepper Computer RS485 não são suficientes. O manual contém uma série de orientações sobre funcionalidades específicas, a segurança, os métodos de manutenção (mesmo sobre produtos que devem ser usados), possíveis defeitos Pepper Computer RS485 e formas de resolver problemas comuns durante o uso. No final, no manual podemos encontrar as coordenadas do serviço Pepper Computer na ausência da eficácia das soluções propostas. Atualmente, muito apreciados são manuais na forma de animações interessantes e vídeos de instrução que de uma forma melhor do que o o folheto falam ao usuário. Este tipo de manual é a chance que o usuário percorrer todo o vídeo instrutivo, sem ignorar especificações e descrições técnicas complicadas Pepper Computer RS485, como para a versão papel.

Por que ler manuais?

Primeiro de tudo, contem a resposta sobre a construção, as possibilidades do dispositivo Pepper Computer RS485, uso dos acessórios individuais e uma gama de informações para desfrutar plenamente todos os recursos e facilidades.

Após a compra bem sucedida de um equipamento / dispositivo, é bom ter um momento para se familiarizar com cada parte do manual Pepper Computer RS485. Atualmente, são cuidadosamente preparados e traduzidos para sejam não só compreensíveis para os usuários, mas para cumprir a sua função básica de informação

Índice do manual

  • Página 1

    SMART I/O User’s Manual 8 Channel AC Input Unit Micro PLC s and Real -Time Co mputers Manual ID 09901, Rev. Index 0500 of 08 Jan. 98[...]

  • Página 2

    This page was intenti onally left blank.[...]

  • Página 3

    Prefac e 08 Jan. 98 SMART I/O Use r’s Manual Page 0 - 3 Manual ID 0990 1, Rev. Ind ex 0500 Preface Rev ision Hist ory ...... ....... ..... ....... ... 0- 4 Fo r Your Safet y ....... ....... ..... ....... ... 0- 5 Special Ha nd ling and Unp a cking In- structions . .............. .............. .............. ...... 0-6 HV Safet y Instructions ...[...]

  • Página 4

    Pref ace Page 0 - 4 SMART I/O Us er’s Manual 08 Jan. 98 Manual ID 099 01, Rev . Index 05 00 Revision History This docume nt contains pr oprietary i nformati on of PEP Mo dular Computers . It may not be copied or transmitted by any means, passed to o thers, or st ored in any retriev al syst em or media, without the prior consen t of PEP Modul ar C[...]

  • Página 5

    SMART I/O User’s Manual 08 Jan. 98 Pref ace Page 0 - 5 Manual ID 0990 1, Rev. Ind ex 0500 For your safety This PEP product is carefully desi gned for a lon g, fault-fr ee life. However, i ts life expec tancy can be drast ically red uced by improper treatment dur ing unpacking and i nstallat ion. Therefore, in t he interes t of your own safety a n[...]

  • Página 6

    Pref ace Page 0 - 6 SMART I/O Us er’s Manual 08 Jan. 98 Manual ID 099 01, Rev . Index 05 00 Special Handling and Unpacki ng Instructions Electron ic boards are sensitive t o static el ectricit y. Therefore, c are must be taken dur ing all ha ndling operatio ns and inspec tions with this product, i n order to ensure produ ct integri ty a t al l t [...]

  • Página 7

    SMART I/O User’s Manual 08 Jan. 98 Pref ace Page 0 - 7 Manual ID 0990 1, Rev. Ind ex 0500 Two Years Warranty PEP Modular Computers grants the original p urchaser of PEP products a TWO YEARS LIMIT ED HARDW ARE WARR ANTY as described i n the following. How- ever, no other warran ties that may be granted or implied by anyone on behalf of PEP are val[...]

  • Página 8

    Pref ace Page 0 - 8 goodwill, a nd will be de fined in the “ Repair Report ” issued by PEP with the repaire d or r epl aced it em. PEP Modular Computers will not accep t liabilit y for any furthe r claims resul t- ing direct ly or indirectl y from any warranty claim, othe r than the above speci- fied rep air , rep lacement or re fundi ng. Par t[...]

  • Página 9

    SMART I/O User’s Manual 08 Jan. 98 Pref ace Page 0 - 9 Manual ID 0990 1, Rev. Ind ex 0500 Table of Contents Chapter 1 1. Genera l Informa tion ...... ....... .......... ....... . 1-3 1.1 Product Overview .......... .......... .... ..... ..... .... ...... 1-8 1.2 Ordering Informat ion ..... .......... .............. .......... 1-9 1.3 Product Info[...]

  • Página 10

    Pref ace Page 0 - 1 0 SMART I/O Us er’s Manual 08 Jan. 98 Manual I D 09901, Rev. Index 0500 2.5 Pinouts ... .............. .............. .............. .............. .. 2-9 2.6 ‘C’ Programming ................ .... ..... ..... .... .......... 2-17 2.7 ISaGRAF Programming .............. ..... .... .......... 2-32 2.8 Flash Utility ..........[...]

  • Página 11

    SMART I/O User’s Manual 08 Jan. 98 Pref ace Page 0 - 11 Man ual ID 0 9901, Rev. Index 050 0 4.3 SM-REL1 ............... ..... .... .............. .......... .... .... 4-33 4.4 SM-ACI1 ................ ..... .... ..... ......... ..... ..... .... .... 4-51 Chapter 5 5. Analo g Modules ....... .. ... .. ....... ... .. ....... ... . 5-7 5.1 SM-DAD1 .[...]

  • Página 12

    This page was intenti onally left blank.[...]

  • Página 13

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 1 - 1 Introduction 1 T able of Contents General Information ..................................... 1-3 W eights & Measures .................................................................... 1-4 1.1 Product Overview ...............................................[...]

  • Página 14

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 1 - 2 Introduction This page has been left blank intentionally .[...]

  • Página 15

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 1 - 3 Introduction 1 General Information All PEP products are intended for use in industrial climates where extreme environments exist. Dirt, temperature extremes, varying humidity levels, vibration, noise, shock and electromagnetic signals must all be considered. On[...]

  • Página 16

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 1 - 4 Introduction W eights & Measures The following line drawings serve to illustrate the method of fixing the controller to a DIN rail or brackets for wall/cabinet mounting. Note that all measurements are in millimetres. DIN Rail Mounting[...]

  • Página 17

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 1 - 5 Introduction 1 Optional Bracket Mounting[...]

  • Página 18

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 1 - 6 Introduction[...]

  • Página 19

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 1 - 7 Introduction 1 Unit Weight Unit Weight SMART-BASE 650g SM-THERM 4 0 g SMART-EXT 250g SM-ADC1 7 0g SM-DIN1 40 g SM-DAC1 70 g SM-DOUT1 7 0 g SM-SSI 70g SM-REL1 61 g SM-CNT1 N / A SM-DAD1 7 0g SM-RS232 4 0g SM-PT100 40 g[...]

  • Página 20

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 1 - 8 Introduction 1.1 Product Overview SMART I/O is based on a cost effective open system for industrial automa- tion and industrial computing. By programming the SMAR T I/O using the standard ISaGRAF workbench for IEC 1131-3 PLC programming languages and the Ultra-C[...]

  • Página 21

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 1 - 9 Introduction 1 1.2 Ordering Information Product Description Order Nr. SMART-BASE Micro PLC & real-time computer, 1 MByte EPROM, 512 kByte DRAM, 64kByte SRAM, OS-9 v3.0, ISaGRAF v3.0x, PROFIBUS v3.12, Layer 2 & 7, RTC, full modem RS232 (8-pin RJ45 connec[...]

  • Página 22

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 1 - 10 Introduction Product Description Order Nr. ISaGRAF- ROM-START ROM kit v3.x for SMART I/O enables the generation of custom firmware EPROMs. Platform can be a PC or OS-9 development system 13829 OS9TRG-RG- SMART Target CPU kit for SMART I/O (OS-9 v3.x/Ix.x disks)[...]

  • Página 23

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 1 - 11 Introduction 1 The attachment of both units is achieved by sliding them over the DIN rail with the clip assembly pulled out and then releasing it when correctly posi- tioned. The 24V supply source should possess the following characteristics: Because of power [...]

  • Página 24

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 1 - 12 Introduction An on-board fuse protects the 24V DC input circuitry from damage through higher voltages than those expected or AC voltages being inadvertently applied to the system. This fuse, should it be assumed defect (the Power In LED on the housing will not [...]

  • Página 25

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 1 - 13 Introduction 1 1.4 Installation 1.4.1 Overview The SMAR T -BASE and SMAR T -EXT units are supplied without screw terminal blocks for the I/O slots, SMAR T Module piggybacks or blank panels. These must be ordered separately to meet the requirements of indi- vid[...]

  • Página 26

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 1 - 14 Introduction Up to 4 SMAR T -EXT units can be cascaded depending on the power con- sumption of the individual SMAR T Modules. SMART I/O Modules or blank panels must be ordered separately to the SMART -BASE or SMAR T -EXT units. Blank panels come in packs of 20.[...]

  • Página 27

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 1 - 15 Introduction 1 W ARNING! Once fitted on the board, the Module sockets and components should be on the right hand side of the Module. Screw terminal connectors are available in packs of 5. 1.4.2 SMAR T I/O Module Installation The SMAR T I/O Modules are fitted i[...]

  • Página 28

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 1 - 16 Introduction 1.4.3 RJ45 T elephone Connector Installation The RJ45 connector is fitted into the RS232 T elephone connector (BU1) on the SMAR T -BASE. This is illustrated in the Figure below . Figure 1.4.3.1 : RJ45 T elephone Connector Installation 1.4.4 Screw T[...]

  • Página 29

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 1 - 17 Introduction 1 1.4.5 Battery Installation The battery piggyback SMPBBA T is fitted into the socket BU3 on the SMAR T -BASE. It is important that the piggyback is inserted in the correct way . The figure below illustrates this procedure. Figure 1.4.5.1: Battery[...]

  • Página 30

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 1 - 18 Introduction 1.5 ISaGRAF-Installation 1.5.1 Before Installing ISaGRAF is a W indows™ 3.xx based software development tool requiring a minimum of 10 MB of hard disk space and 4 MB of available memory . Before installing ISaGRAF , make a backup copy of each DOS[...]

  • Página 31

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 1 - 19 Introduction 1 1.5.2 Installation of the ISaGRAF for W indows W orkbench The following steps should be followed to ensure successful installation of the ISaGRAF software. Initially the disk labelled W orkbench Disk 1/4 will be required. • Start W indows • [...]

  • Página 32

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 1 - 20 Introduction Having checked the installation directory (default is C:ISA WIN ) and selected Install , the program progresses by asking whether the complete system should be installed or just certain sections. The selection possibilities are shown in figure 1.5[...]

  • Página 33

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 1 - 21 Introduction 1 Figure 1.5.2.3 ISaGRAF Program Group 1.5.3 Installation of PEP Library Functions The library functions are adapted to suit the SMAR T I/O and other PEP products and should be installed using the two diskettes labelled LIB/ APPLI/HELP .[...]

  • Página 34

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 1 - 22 Introduction These libraries for projects, I/O boards, ’C’ functions and common data are extracted by following the described procedure: • Start W indows if not already started • Insert diskette Lib/Appli/Help Disk 1/2 into the floppy drive • Select F[...]

  • Página 35

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 1 - 23 Introduction 1 It should be noted that the standard ISA-T erminal is configured for COM2. If another port is required then the switch to the new one is made by firstly starting the ISA-T erminal program and then selecting the Settings from the Communication pu[...]

  • Página 36

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 1 - 24 Introduction In order to verify that the hardware and software have been correctly setup, the following procedure should be followed. • Connect the D-Sub connector end of the terminal cable to the chosen COM port of the computer . The other end, with the tele[...]

  • Página 37

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 1 - 25 Introduction 1 The error messages that are shown in figure 1.5.3.2 are normal as the system is trying to create files or directories in the RAM disk that are already present. If no further messages appear, then the installation is complete. Should the terminal[...]

  • Página 38

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 1 - 26 Introduction 1.5.4 Demo Application Several demonstration applications are delivered with the ISaGRAF set of disks and are installed automatically . The applications suitable for use with the SMAR T I/O are prefixed SM- and serve to show how the SMAR T I/O can [...]

  • Página 39

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 1 - 27 Introduction 1 • Finally , from the Files/Download pull-down menu, select Motorola T arget Code. The chosen SM_DEMO will be downloaded to the SMAR T I/O (target system) and the application will begin automatically . This is a simple SFC-program which will ac[...]

  • Página 40

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 1 - 28 Introduction This page has been left blank intentionally .[...]

  • Página 41

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 2 - 1 2 Chapter 2 SMAR T -BASE T able of Contents 2. SMAR T -BASE ......................................... 2-3 2.1 Specifications ......................................................................... 2-4 2.2 Board Overview .......................................[...]

  • Página 42

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 2 - 2 Chapter 2 SMAR T -BASE 2.7 ISaGRAF Programming ...................................................... 2-32 2.7.1 The ISaGRAF Board Parameters ...................................................... 2-32 2.7.2 The ISaGRAF Operate Calls ............................[...]

  • Página 43

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 2 - 3 2 Chapter 2 SMAR T -BASE 2. SMAR T -BASE The SMAR T -BASE is the main unit to which up to three SMAR T -Modules may be connected to fulfil a given I/O task with I/O enhancement being provided through the connection of a SMAR T -EXT unit which itself may accommo[...]

  • Página 44

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 2 - 4 Chapter 2 SMAR T -BASE 2.1 Specifications DC/DC Nominal Input Voltage 24V DC Input Voltage Range 18V - 36V DC Input Current 140mA typ. @ 24V (static) 400mA typ. @ 24V (full load) Main Output Voltage 5V D C / 1.2A ± 2.5% Auxiliary Output Voltage 5V D C / 150mA ([...]

  • Página 45

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 2 - 5 2 Chapter 2 SMAR T -BASE 2.2 Board Overview Front view J13 J1 DC/DC BU2 BU1 SCR2 SCR1 SCR5 SCR4 SCR3 ST6 ST4 ST2 ST5 ST3 ST1 ST7 DRAM EPROM/FLASH (SRAM) 68302FC20 I/O Controller SPI I/O Slot #2 I/O Slot #1 I/O Slot #0 Timer I/O RS232 24V DC RS485 Isolated (PROF[...]

  • Página 46

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 2 - 6 Chapter 2 SMAR T -BASE 2.3 Functional Description Figure 2.3.0.1: SMAR T I/O Block Diagram MCU MC68302 @ 20 MHz Memory FLASH EPR OM SRAM SPI Interface SMAR T -Module Interface I/O Controller T imer/Counter Interface DC/DC Serial Interfaces RS485 RS232 Clock Gene[...]

  • Página 47

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 2 - 7 2 Chapter 2 SMAR T -BASE The isolated DC/DC converter is based on a switched mode regulating system operating at 100 kHz and supplies power to both the system and the isolated RS485 (PROFIBUS) interface. The SPI interface, a 3-wire communication protocol provid[...]

  • Página 48

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 2 - 8 Chapter 2 SMAR T -BASE 2.4 Configuration The SMAR T BASE has 2 configurable jumpers which are explained in the following sections. The jumper settings marked in italics in the tables are default. Figure 2.4.0.1: SMAR T BASE Jumper Layout (Front V iew) J13 J1 DC/[...]

  • Página 49

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 2 - 9 2 Chapter 2 SMAR T -BASE 2.4.2 Jumper J6: LED Function (Pin Connector) This jumper selects the function of the red LED; halt or user defined. The user defined function that is supported in software will only take effect if this jumper is set accordingly . Jumpe[...]

  • Página 50

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 2 - 10 Chapter 2 SMAR T -BASE Note Slot# numbers are counted from #0 up to #10 while the ISaGRAF logic counts from #1 to #1 1! 2.5.1 SMART Module Piggyback Connectors There are three sets of SMAR T Module piggyback connectors available on the SMAR T -BASE, each divide[...]

  • Página 51

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 2 - 11 2 Chapter 2 SMAR T -BASE SMART-Module location #2 (ST1) pinouts Pin Nr. Signal Description Pin Nr. Signal Description 1 PITA0 I/O Controller Port A0 2 PITA1 I/O Controller Port A1 3 PITA2 I/O Controller Port A2 4 PITA3 I/O Controller Port A3 5 PITA4 I/O Contro[...]

  • Página 52

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 2 - 12 Chapter 2 SMAR T -BASE 2.5.3 Timer I/O Scr ew T erminal (SCR1) 2.5.2 Screw T erminal Pinouts The following shows the pinout for a screw terminal block suited for use with SMAR T -Modules. The pinouts of these blocks depends on the SMAR T Modules that are fitted[...]

  • Página 53

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 2 - 13 2 Chapter 2 SMAR T -BASE +Vcc (24V) Gnd (common) Digital Input Low P ass Filter Input Circuit Timer I/O TIN +Vcc (24V) Gnd (common) GA TE Low P ass Filter Input Circuit 1 4 3 1 6 5 TIN GA TE T o understand the functionality of the counter/timer , it is necessa[...]

  • Página 54

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 2 - 14 Chapter 2 SMAR T -BASE Figure 2.5.3.2 shows the TOUT block diagram. Here, the output is only active when an interrupt on level 4 has been acknowledged by the I/O controller or a previously set timer has decremented to 0. The driving stage of the output consists[...]

  • Página 55

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 2 - 15 2 Chapter 2 SMAR T -BASE 2.5.5 RS232 T elephone Connector (BU1) In order to meet the needs of widespread standards, the RS232 connector is selected as a telephone connector, an 8-pin RJ12 telephone jack with full MODEM support. * optional, for full-duplex oper[...]

  • Página 56

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 2 - 16 Chapter 2 SMAR T -BASE The full-duplex description may be found in the SMART-I/O Advanced User ’ s Guide. There is no internal line termination as laid down in DIN 19245 Part 1 and must be performed externally . Note ST7 Pin 1 Pin 2 Pin 9 Pin 10 SMART -BASE 2[...]

  • Página 57

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 2 - 17 2 Chapter 2 SMAR T -BASE 2.6 ‘C’ Programming 2.6.1 SMAR T -BASE Library The SMAR T -BASE library of functions smartio.l provide a convenient way of accessing various features of the SMAR T -BASE. • All functions are written in ANSI C; • Prototypes are [...]

  • Página 58

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 2 - 18 Chapter 2 SMAR T -BASE 2.6.2 SMT selIn Syntax error_code SMTselIn(u_int8 mode); Description This function selects one of four possible counter/timer input (TIN) configu- rations utilizing the 6MHz internal counter/timer clock. Input u_int8 mode This represents [...]

  • Página 59

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 2 - 19 2 Chapter 2 SMAR T -BASE MODE11 The Simple I/O/TIN pin serves as a timer input and the prescaler is not used. The 24-bit counter is decremented, rolls over or is loaded from the counter preload registers following the rising edge of the TIN pin after being syn[...]

  • Página 60

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 2 - 20 Chapter 2 SMAR T -BASE 2.6.3 SMT settout Syntax error_code SMTsettout(u_int8 mode); Description This function sets the timer output (TOUT) control. Input u_int8 mode T wo modes of T OUT control are available. They are: MODE_PORTC tout has the Simple I/O functio[...]

  • Página 61

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 2 - 21 2 Chapter 2 SMAR T -BASE 2.6.4 SMTpr e Syntax error_code SMTpre(u_int32 *value); Description This function reads / sets the timer preload register . Input u_int32 *value Pointer to a variable that holds the value to set. The previous value is returned to the v[...]

  • Página 62

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 2 - 22 Chapter 2 SMAR T -BASE Example for a Square W ave Generator The T imer Control Register In this configuration, the timer produces a square wave at the TOUT pin which is connected to the user ’ s circuitry . The TIN pin may be used as a clock input. The proces[...]

  • Página 63

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 2 - 23 2 Chapter 2 SMAR T -BASE 2.6.5 SMT stasto Syntax error_code SMTstasto(u_int8 mode); Description This function starts / stops the timer; the zero-detect control bit is set at the start; the counter rolls over on reaching zero or is loaded with the value set in [...]

  • Página 64

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 2 - 24 Chapter 2 SMAR T -BASE 2.6.6 SMT rd Syntax error_code SMTrd(u_int32 *value); Description This function reads the actual timer count value. NOTE ! A stable read value can only be achieved if the timer is not running. There- fore, a read request to the running ti[...]

  • Página 65

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 2 - 25 2 Chapter 2 SMAR T -BASE 2.6.7 SMTtin Syntax error_code SMTtin(u_int8 *value); Description This function reads the current level present on TIN/PC2. Input u_int8 *value Pointer to a variable in which to place the read value. 0 represents low , 1 represents hig[...]

  • Página 66

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 2 - 26 Chapter 2 SMAR T -BASE 2.6.8 SMT stat Syntax error_code SMTstat(u_int8 *value); Description This function reads the timer status register and clears it if set. Input u_int8 *value Pointer to a variable in which to place the read value. 0 represents not set, 1 r[...]

  • Página 67

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 2 - 27 2 Chapter 2 SMAR T -BASE 2.6.9 SMT out Syntax error_code SMTout(u_int8 *value); Description This function reads the actual status of the T OUT pin. Input u_int8 *value Pointer to a variable in which to place the read value. 0 represents a low level while a 1 r[...]

  • Página 68

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 2 - 28 Chapter 2 SMAR T -BASE 2.6.10 SMLed Syntax error_code SMLed(u_int8 led, u_int8 value); Description This function switches on / off user LED’ s. Input u_int8 led T wo options are available. They are: USERL1 Y ellow LED on piggyback USERL2 Red LED on piggyback [...]

  • Página 69

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 2 - 29 2 Chapter 2 SMAR T -BASE 2.6.1 1 SMwdon Syntax error_code SMwdon(u_int32 *time); Description This function activates the watchdog timer of the 68302. If timeout is reached, the system is reset; in normal operating mode, this must be avoided by periodically tri[...]

  • Página 70

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 2 - 30 Chapter 2 SMAR T -BASE 2.6.12 SMwdtrig Syntax error_code SMwdtrig(void); Description This function re-triggers the watchdog of the 68302 preventing a timeout and subsequent system reset. Output error_code SUCCESS or standard OS-9 error code (refer to the OS-9 T[...]

  • Página 71

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 2 - 31 2 Chapter 2 SMAR T -BASE 2.6.13 SMwdoff Syntax error_code SMwdoff(void); Description This function deactivates the watchdog timer . Output error_code SUCCESS or standard OS-9 error code (refer to the OS-9 T echnical Manual Error Codes Section). Example RetVar [...]

  • Página 72

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 2 - 32 Chapter 2 SMAR T -BASE 2.7 ISaGRAF Pr ogramming 2.7.1 The ISaGRAF Board Parameters Information on board parameters may be found in the PEP online help and ISaGRAF online help or user ’ s manual. Figure 2.7.1.1 T ypical Screen Section for the SMART -BASE Becau[...]

  • Página 73

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 2 - 33 2 Chapter 2 SMAR T -BASE 2.7.2 The ISaGRAF Operate Calls Operate calls are built into a program using ST or FBD languages when defining the project. A typical use could be at the initialization stage to check that the SMAR T -Modules are in fact located where [...]

  • Página 74

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 2 - 34 Chapter 2 SMAR T -BASE A complete list of the operate COMMANDS may be obtained by selecting a project from the ISaGRAF projects group, opening an application and observing the Common defines in the Dictionary pull-down menu. Note that not all calls in the list [...]

  • Página 75

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 2 - 35 2 Chapter 2 SMAR T -BASE O_START_COUNTER : This call starts the counter; it’ s syntax is as follows : <RetVar> := OPERATE(<iovar>, O_START_COUNTER, <null>); where the <iovar> is typically t_in. O_READ_COUNTER : W ith this call the con[...]

  • Página 76

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 2 - 36 Chapter 2 SMAR T -BASE O_PRELOAD : W ith this call the counter preload register can be set. The syntax is as follows : <RetVar> := OPERATE(<iovar>, O_PRELOAD, <prevar>); where the <iovar> is typically t_in and <prevar> is the value[...]

  • Página 77

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 2 - 37 2 Chapter 2 SMAR T -BASE 2.8 Flash Utility The flash utility allows ISaGRAF applications, a new ISaGRAF kernel or other OS-9 modules to be loaded into FLASH memory . The SMAR T I/O may be equipped with 1 MByte of memory depending on the version or- dered. If a[...]

  • Página 78

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 2 - 38 Chapter 2 SMAR T -BASE Example to download ISA1 1 module and store in FLASH Start the isa terminal in MS W indows: Press the <ENTER> key three times to display the following screen prompt: Isa: Start kermit on the target system Isa: kermit ri <ENTER>[...]

  • Página 79

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 3 - 1 3 Chapter 3 SMAR T -EXT T able Of Contents 3. SMAR T -EXT ........................................... 3-3 3.1 Specifications ......................................................................... 3-3 3.2 Board Overview .......................................[...]

  • Página 80

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 3 - 2 Chapter 3 SMAR T -EXT This page has been left blank intentionally[...]

  • Página 81

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 3 - 3 3 Chapter 3 SMAR T -EXT 3. SMAR T -EXT The SMAR T -EXT is a carrier unit enabling the connection of a further 2 SMAR T -Modules thereby enhancing the I/O capacity of the SMAR T I/O system. Up to 4 of these extensions may be cascaded via a 10-wire flat-band cabl[...]

  • Página 82

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 3 - 4 Chapter 3 SMAR T -EXT 3.2 Board Overview SCRA SCRB ST4 ST2 ST3 ST1 ST5 MCU 68HC05C4 SPI I/O Slot B I/O Slot A SMART Modules T o further SMART -EXT Modules From SMART -BASE or other SMART -EXT Modules SPI BU1[...]

  • Página 83

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 3 - 5 3 Chapter 3 SMAR T -EXT 3.3 Functional Description Figure 3.3.1: SMAR T -EXT Block Diagram The SMAR T -EXT is a carrier board for up to 2 SMAR T -Modules with data transfer between SMAR T -BASE and EXT units being performed by the interface connector incorporat[...]

  • Página 84

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 3 - 6 Chapter 3 SMAR T -EXT 3.4 Pinouts Figure 3.4.0.1: SMAR T -EXT Pinout Overview W ARNING ! Dangerous voltages may be present at the terminals. SCRA SCRB ST2 ST4 ST1 ST3 ST5 Pin 1 Pin 2 Pin 15 Pin 16 Pin 1 Pin 2 Pin 15 Pin 16 Pin 1 Pin 2 Pin 15 Pin 16 Pin 1 Pin 2 P[...]

  • Página 85

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 3 - 7 3 Chapter 3 SMAR T -EXT 3.4.1 SMAR T Module Piggyback Connectors There are two sets (one for each module) of SMAR T -Module piggyback connectors present on the SMAR T -EXT , each divided into two sets of 2x8 standard pin rows. The communication to these connect[...]

  • Página 86

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 3 - 8 Chapter 3 SMAR T -EXT Pinouts process side (ST2 and ST4) Refer to figure 3.4.0.1 for the correct location of these pin-row connectors. Slots A and B (ST2 and ST4) The PC board connections to the screw terminals are capable of absorbing a continuous current of up[...]

  • Página 87

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 3 - 9 3 Chapter 3 SMAR T -EXT 3.4.3 SPI Connectors (ST5 and BU1) On both sides of the board are standard 2x5 pinrow connectors (BU1, ST5), that provide the interface connection between SMAR T -EXT units and the SMAR T -BASE. A 10-wire flat cable is soldered directly [...]

  • Página 88

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 3 - 10 Chapter 3 SMAR T -EXT This page has been left blank intentionally .[...]

  • Página 89

    Digital Modules 08 Jan. 98 SMART I/O Use r’s Manual Page 4 - 1 Manual ID 0990 1, Rev. Ind ex 0500 Di g ital Modules[...]

  • Página 90

    SMART I/O User’s Manual Page 4 - 2 Digital Modules 08 Jan. 98 Manual I D 09901, Rev. Index 0500 Table of Contents Chapter 4 4.1 SM-DIN1 ....... ... ..... .. .. ... ....... ..... .. ... .. ....... ... 4-5 4.1.1 Introduction . .............. .............. .............. ....... 4-5 4.1.2 Specifications ........... .............. .............. ...[...]

  • Página 91

    Digital Modules 08 Jan. 98 SMART I/O Use r’s Manual Page 4 - 3 Manual ID 0990 1, Rev. Ind ex 0500 4.2.7 Pinouts .... .............. .............. .............. ........ 4-22 4.2.9 ISaGRAF Programming .......... .............. .... 4-29 4.3 SM-REL 1 ....... .... ........ ....... ....... ....... ....... . 4-3 3 4.3.1 Introduction ...... .........[...]

  • Página 92

    This page was intenti onally left blank.[...]

  • Página 93

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 5 4 Chapter 4 Digital Modules 4. Digital Modules 4.1 SM-DIN1 4.1.1 Introduction The SM-DIN1 provides 8 optoisolated 24V DC digital inputs arranged in 6 independent groups with respect to the ground connections. The maximum input switching frequency is set to 200H[...]

  • Página 94

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 6 Chapter 4 Digital Modules 4.1.3 Front Panel Layout Green LEDs User Descriptor Fields[...]

  • Página 95

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 7 4 Chapter 4 Digital Modules 4.1.4 Board Overview Component Side Solder Side Pin 16 Pin 2 Pin 16 Pin 2 BU1 BU2 LED 0 LED 7 J1 2 1 3 J2 2 1 3 BU1 BU2 LED 0 LED 7 Low Pass Filter ID Register Input Circuit Digital Input and LED Drivers Optoisolation Pin 1 Pin 15 Pi[...]

  • Página 96

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 8 Chapter 4 Digital Modules 4.1.5 Functional Description Figure 4.1.5.1: SM-DIN1 Schematic Diagram The input circuit comprises a Zener diode requiring 3mA to drive it beyond the ‘knee’ that borders between ‘OFF’ and ‘ON’. More simply, input voltages be[...]

  • Página 97

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 9 4 Chapter 4 Digital Modules 4.1.6 Configuration Although two solder jumpers exist on the board (J1 and J2), they should remain at their factory settings unless a user-specific filter is required that cuts of f at higher frequencies for example. If a user-specif[...]

  • Página 98

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 10 Chapter 4 Digital Modules 4.1.7 Pinouts Screw T erminal Pinouts The following shows the pinout/signal relationship for the SM-DIN1 when connected to a particular screw terminal block. Pin 1 Pin 2 Pin 13 Pin 14 Pin Nr. Signal Description Pin Nr. Signal Descripti[...]

  • Página 99

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 11 4 Chapter 4 Digital Modules Connection Input Circuit +Vcc (24V) Gnd (0V) IN0 G0EXT K1 5K1 8V2 T yp: Common GND LL4448 System Interface User/Input Interface +Vcc (24V) Gnd (0V) G0EXT G4EXT G1EXT G5EXT G23EXT G67EXT IN7 IN3 IN6 IN2 IN5 IN1 IN4 IN0 Digital Sensor[...]

  • Página 100

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 12 Chapter 4 Digital Modules 4.1.8 ‘C’ Pr ogramming 4.1.8.1 SM-DIN1 Library The SM-DIN1 library of functions smartio.l provide a convenient way of accessing the SM-DIN1 module. • All functions are written in ANSI C; • Prototypes are to be found in the file[...]

  • Página 101

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 13 4 Chapter 4 Digital Modules 4.1.8.2 SMDIN1Init Syntax error_code SMDIN1Init(u_int8 PortNr); Description This function initialises the SM-DIN1 Module on port PortNr by allocating space in memory for resources and resetting all inputs. Input u_int8 PortNr SM-Por[...]

  • Página 102

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 14 Chapter 4 Digital Modules 4.1.8.3 SMDIN1DeInit Syntax error_code SMDIN1DeInit(u_int8 PortNr); Description This function de-initialises the SM-DIN1 Module on port PortNr by releas- ing all resources assigned to it thereby freeing memory for other uses. Input u_i[...]

  • Página 103

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 15 4 Chapter 4 Digital Modules 4.1.8.4 SMDIN1Get Syntax error_code SMDIN1Get(u_int8 PortNr, u_int8 *buffer); Description This function fetches the status of ALL 8 input lines of the port PortNr and writes it to the address pointed to by buffer with bit 0 of the b[...]

  • Página 104

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 16 Chapter 4 Digital Modules 4.1.9 ISaGRAF Programming 4.1.9.1 The ISaGRAF Board Parameters Information on board parameters may be found in the PEP online help and ISaGRAF online help or user ’ s manual. Figure 4.1.9.1.1 a T ypical Screen Section for the SM-DIN1[...]

  • Página 105

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 17 4 Chapter 4 Digital Modules 4.1.9.2 The ISaGRAF Operate Calls Operate calls are built into a program using ST or FBD languages when defining the project. A typical use could be at the initialization stage to check that the SMAR T -Modules are in fact located w[...]

  • Página 106

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 18 Chapter 4 Digital Modules A complete list of the operate COMMANDS may be obtained by selecting a project from the ISaGRAF projects group, opening an application and observing the Common defines in the Dictionary pull-down menu. Note that not all calls in the li[...]

  • Página 107

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 19 4 Chapter 4 Digital Modules 4 4.2 SM-DOUT1 4.2.1 Introduction The SM-DOUT1 provides eight optoisolated 24V DC (typ.) digital outputs arranged in 2 independent groups. The maximum output switching fre- quency is limited to 1 kHz (square wave) with the output in[...]

  • Página 108

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 20 Chapter 4 Digital Modules 4.2.3 Front Panel Layout 4.2.4 Board Overview Component Side BU1 BU2 LED 0 LED 7 LED Driver Output T ransistors Digital Output Network Optoisolation Pin 1 Pin 15 Pin 2 Pin 16 Pin 1 Pin 15 Pin 2 Pin 16 ID Register Y ellow LEDs User Desc[...]

  • Página 109

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 21 4 Chapter 4 Digital Modules 4.2.5 Functional Description Figure 4.2.5.1: SM-DOUT1 Schematic Diagram The system interface is low active which means that a logical ‘0’ activates the LED and optoisolation stage causing the output to switch the 24V Vcc to powe[...]

  • Página 110

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 22 Chapter 4 Digital Modules 4.2.6 Configuration There are no jumpers to configure on the SM-DOUT1. 4.2.7 Pinouts Screw T erminal Pinouts The following shows the pinout/signal relationship for the SM-DOUT1 when connected to a particular screw terminal block. Pin 1[...]

  • Página 111

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 23 4 Chapter 4 Digital Modules Connection Output Circuit +Vcc (24V) Gnd (0V) OUT0 G03EXT V01EXT T yp: PNP Load BYM05-100 6.8 k TIP125 Opto TLP521 System Interface User Interface +Vcc (24V) Gnd (0V) G03EXT G47EXT OUT7 OUT3 OUT6 OUT2 OUT5 OUT1 OUT4 OUT0 V01EXT V45E[...]

  • Página 112

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 24 Chapter 4 Digital Modules 4.2.8 ‘C’ Pr ogramming 4.2.8.1 SM-DOUT1 Library The SM-DOUT1 library of functions smartio.l provide a convenient way of accessing the SM-DOUT1 module. • All functions are written in ANSI C; • Prototypes are to be found in the f[...]

  • Página 113

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 25 4 Chapter 4 Digital Modules Note If the same SM-DOUT1 Module is to be accessed from different tasks, the user must make sure that the actual output status is ensured by using for example, semaphores within OS-9. 4.2.8.2 SMDOUT1Init Syntax error_code SMDOUT1Ini[...]

  • Página 114

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 26 Chapter 4 Digital Modules 4.2.8.3 SMDOUT1DeInit Syntax error_code SMDOUT1DeInit(u_int8 PortNr); Description This function de-initializes the SM-DOUT1 Module on port PortNr by releasing all resources assigned to it thereby freeing memory for other uses. Input u_[...]

  • Página 115

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 27 4 Chapter 4 Digital Modules 4.2.8.4 SMDOUT1Get Syntax error_code SMDOUT1Get(u_int8 PortNr, u_int8 *buffer); Description This function fetches the output status of the port PortNr and writes it to the memory location pointed to by buffer . This buf fer shows th[...]

  • Página 116

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 28 Chapter 4 Digital Modules 4.2.8.5 SMDOUT1Set Syntax error_code SMDOUT1Set(u_int8 PortNr, u_int8 *buffer); Description This function sets the output of the port PortNr with the contents of the address pointed to by buffer . When writing to this buf fer, observe [...]

  • Página 117

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 29 4 Chapter 4 Digital Modules 4.2.9 ISaGRAF Pr ogramming 4.2.9.1 The ISaGRAF Board Parameters Information on board parameters may be found in the PEP online help and ISaGRAF online help or user ’ s manual. Figure 4.2.9.1.1 a T ypical Screen Section for the SM-[...]

  • Página 118

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 30 Chapter 4 Digital Modules 4.2.9.2 The ISaGRAF Operate Calls Operate calls are built into a program using ST or FBD languages when defining the project. A typical use could be at the initialization stage to check that the SMAR T -Modules are in fact located wher[...]

  • Página 119

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 31 4 Chapter 4 Digital Modules A complete list of the operate COMMANDS may be obtained by selecting a project from the ISaGRAF projects group, opening an application and observing the Common defines in the Dictionary pull-down menu. Note that not all calls in the[...]

  • Página 120

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 32 Chapter 4 Digital Modules This page has been left blank intentionally .[...]

  • Página 121

    SMAR T I/O User ’ s Manual Chapter 4 Digital Modules ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 33 4 4.3 SM-REL1 4.3.1 Introduction The SM-REL1 provides power switching up to 250V AC or 220V DC with sur ge protection and the ability to switch inductive loads being built-in features of this versatile module. A freely programmable LE[...]

  • Página 122

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 34 Chapter 4 Digital Modules 4.3.3 Front Panel Layout SM-REL1 6 N/O Relay Outputs Y ellow LEDs Green LED Y ellow LED User Descriptor Fields 4.3.4 Board Overview Component Side BU1 BU2 LED 0 LED 7 EEPROM Filters Relay Relays J1 Relay Driver Optocouplers Relay 1 15 [...]

  • Página 123

    SMAR T I/O User ’ s Manual Chapter 4 Digital Modules ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 35 4 The individual relays are low active which means that a digital ‘0’ delivered by the system closes the relay and illuminates the LED on the front-panel corresponding to the required channel. Conversely , a logical ‘1’ appear[...]

  • Página 124

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 36 Chapter 4 Digital Modules 4.3.6 Configuration Jumper J1 - EEPROM Pr otection 4.3.7 Pinouts Screw T erminal Pinouts The following shows the pinout/signal relationship for the SM-REL1 when connected to a particular screw terminal block. Pin 1 Pin 2 Pin 13 Pin 14 [...]

  • Página 125

    SMAR T I/O User ’ s Manual Chapter 4 Digital Modules ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 37 4 Connection +Vcc (24V) Gnd (0V) NO1 GNDEXT COM1 VCCEXT 6.8 K PC829 ULN2002 100 Ω 10 nF Load Input Circuit 24V DC + -[...]

  • Página 126

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 38 Chapter 4 Digital Modules 4.3.8 ‘C’ Pr ogramming 4.3.8.1 SM-REL1 Library The SM-REL1 library of functions smartio.l provide a convenient way of accessing the SM-REL1 module. • All functions are written in ANSI C; • Prototypes are to be found in the file[...]

  • Página 127

    SMAR T I/O User ’ s Manual Chapter 4 Digital Modules ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 39 4 Note If the same SM-REL1 Module is to be accessed from dif ferent tasks, the user must make sure that the actual output status is ensured by using for example, semaphores within OS-9. 4.3.8.2 SMREL1Init Syntax error_code SMREL1Init([...]

  • Página 128

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 40 Chapter 4 Digital Modules 4.3.8.3 SMREL1DeInit Syntax error_code SMREL1DeInit(u_int8 PortNr); Description This function deinitializes the SM-REL1 Module on the port PortNr by freeing the resources tied up with this module and setting all relays to OPEN, all LED[...]

  • Página 129

    SMAR T I/O User ’ s Manual Chapter 4 Digital Modules ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 41 4 4.3.8.4 SMREL1Reset Syntax error_code SMREL1Reset(u_int8 PortNr); Description This function resets the SM-REL1 Module by setting all relays to OPEN and all LEDs to OFF . This function does not free the resources as with the SMRELl1D[...]

  • Página 130

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 42 Chapter 4 Digital Modules 4.3.8.5 SMREL1GetRly Syntax error_code SMREL1GetRly(u_int8 PortNr, u_int8 *buffer); Description This function gets the input of the port Por tNr and writes it to the buffer . Bits 0-5 of the buffer reflect the Relay setting: 0 = relay [...]

  • Página 131

    SMAR T I/O User ’ s Manual Chapter 4 Digital Modules ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 43 4 4.3.8.6 SMREL1SetRly Syntax error_code SMREL1SetRly(u_int8 PortNr, u_int8 *buffer); Description This function sets the output of the port PortNr with the buffer contents. Bits 0-5 of the buf fer are used to set the Relays: 0 = close[...]

  • Página 132

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 44 Chapter 4 Digital Modules 4.3.8.7 SMREL1GetLed Syntax error_code SMREL1GetLed(u_int8 PortNr, u_int8 *buffer); Description This function gets the status of the User LED on the port PortNr and writes it to the buffer . If the LED is OFF then it returns 0, otherwi[...]

  • Página 133

    SMAR T I/O User ’ s Manual Chapter 4 Digital Modules ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 45 4 4.3.8.8 SMREL1SetLed Syntax error_code SMREL1SetLed(u_int8 PortNr, u_int8 *buffer); Description This function sets the status of the User LED on the port PortNr with the contents of the buffer . If a bit is set to 0 then the LED is [...]

  • Página 134

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 46 Chapter 4 Digital Modules 4.3.8.9 SMREL1GetExtVcc Syntax error_code SMREL1GetExtVcc(u_int8 PortNr, u_int8 *buffer); Description This function gets the input of the port Por tNr and writes it to buffer . If there is no external Vcc, then it returns 0, otherwise [...]

  • Página 135

    SMAR T I/O User ’ s Manual Chapter 4 Digital Modules ©1996 PEP Modular Computers GmbH March 12, 1996 Page 4 - 47 4 4.3.9 ISaGRAF Pr ogramming 4.3.9.1 The ISaGRAF Board Parameters Information on board parameters may be found in the PEP online help and ISaGRAF online help or user ’ s manual. Figure 4.3.9.1.1 a T ypical Screen Section for the SM-[...]

  • Página 136

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 4 - 48 Chapter 4 Digital Modules 4.3.9.2 The ISaGRAF Operate Calls Operate calls are built into a program using ST or FBD languages when defining the project. A typical use could be at the initialization stage to check that the SMAR T -Modules are in fact located wher[...]

  • Página 137

    Digital Modules 08 Jan. 98 SMART I/O Use r’s Manual Page 4 - 51 Manual ID 0990 1, Rev. Ind ex 0500 A complete li st of the operat e COMM ANDS may be obtai ned by selecti ng a project fr om the ISaGRAF pro jects group, open- ing an ap plica tion an d observ ing the Common def ines in the Dic- tionary pull-do wn menu. No te t hat not al l c al ls i[...]

  • Página 138

    SMART I/O User’s Manual P a g e 4 - 5 2 Digital Modules 08 J a n. 9 8 M a nu a l I D 09 9 01 , Re v . I n de x 0 5 00 O_EXT_POWER, 0); where <analog var > represent s t he a n alo g ret urn v ari abl e and c an b e zero, if t he o per a t e call is s uppor te d an d the c o rr e ct <var> is passe d , or no n -ze ro, i f a n error oc c[...]

  • Página 139

    Digital Modules 08 Jan. 98 SMART I/O Use r’s Manual Page 4 - 53 Manual ID 0990 1, Rev. Ind ex 0500 4.4 SM-ACI1 4.4.1 Introdu ction The SM-ACI1 p rovides eigh t optois olated 80 V AC to 264 V AC inputs arranged in six in dependent groups with respect to common neutr al connec tions. The input fre quency ra nge is 47- 63 Hz, with the sys tem regist[...]

  • Página 140

    SMART I/O User’s Manual Page 4 - 5 4 Digital Modules 08 Jan. 98 Manual I D 09901, Rev. Index 0500 4.4.2 Specifications Table 4-1: Specifications Isol ation 2.5 k V opt oisolat ed tow ards t he syst em Input 8 ch annels (80 V AC - 264 V AC) Com mon neutr al < 0.5 m A in put cu rrent Input freque ncy ra nge Overvo ltag e pr otec tion (cont inu- [...]

  • Página 141

    Digital Modules 08 Jan. 98 SMART I/O Use r’s Manual Page 4 - 55 Manual ID 0990 1, Rev. Ind ex 0500 4.4.3 Front Panel Layout Figure 4-1: Front Panel Layout[...]

  • Página 142

    SMART I/O User’s Manual Page 4 - 5 6 Digital Modules 08 Jan. 98 Manual I D 09901, Rev. Index 0500 4.4.4 Board Overview Figure 4-2: Component Side[...]

  • Página 143

    Digital Modules 08 Jan. 98 SMART I/O Use r’s Manual Page 4 - 57 Manual ID 0990 1, Rev. Ind ex 0500 Figure 4-3: Solder Side[...]

  • Página 144

    Digital Modules 08 Jan. 9 8 SMART I/O User’s Ma nual Page 4 - 5 8 Manual ID 09901 , Rev. Inde x 0500 4.4.5 Functional Description Figure 4-4: SM-ACI1 Schematic Diagram[...]

  • Página 145

    Digital Modules 08 Jan. 98 SMART I/O Use r’s Manual Page 4 - 59 Manual ID 0990 1, Rev. Ind ex 0500 Dow nstr eam th e opt oisol atio n part of the c ircui t, an R C firs t- order, low-pass fi lter conv erts sign als greater than 40 Hz in to logicall y suitabl e values bef ore they ent er the syst em’s digi tal input. The LED driv er acti vates t[...]

  • Página 146

    Digital Modules 08 Jan. 9 8 SMART I/O User’s Ma nual Page 4 - 6 0 Manual ID 09901 , Rev. Inde x 0500 Figure 4- 5: SM-ACI1 Conf igurable Filt er[...]

  • Página 147

    Digital Modules 08 Jan. 98 SMART I/O Use r’s Manual Page 4 - 61 Manual ID 0990 1, Rev. Ind ex 0500 Surface- Mounted Devic es (SMDs) are used in the production of SM-ACI1 modules. T he components to be chang ed, marked with an asterisk i n figure 4-5, nee d not neces sarily be SMDs. Please, ref er to the bo ard overview figure (solde r side, figur[...]

  • Página 148

    SMART I/O User’s Manual Page 4 - 6 2 Digital Modules 08 Jan. 98 Manual I D 09901, Rev. Index 0500 Table 4-3: Pinout/Si gnal Relationship Pin # Sign al Descrip tion Pin # Sign al Desc riptio n 1 N0 Neutral channe l 0 2N 4 N e u t r a l channe l 4 3 P0 Phas e channe l 0 4P 4 P h a s e channe l 4 5 P1 Phas e channe l 1 6P 5 P h a s e channe l 5 7 N1[...]

  • Página 149

    Digital Modules 08 Jan. 98 SMART I/O Use r’s Manual Page 4 - 63 Manual ID 0990 1, Rev. Ind ex 0500 Figure 4-7: Connect ion[...]

  • Página 150

    SMART I/O User’s Manual Page 4 - 6 4 Digital Modules 08 Jan. 98 Manual I D 09901, Rev. Index 0500 Figure 4-8: Example: Input Circuit (Only One Channel Shown) 4.4.8 ANSI ’C’ Programming 4.4.8.1 SM- ACI1 Library The SM-ACI1 library of f unctions smartio.l provide a conve- nient way o f accessi ng the SM-ACI1 mo dule. • All fu ncti ons ar e wr[...]

  • Página 151

    Digital Modules 08 Jan. 98 SMART I/O Use r’s Manual Page 4 - 65 Manual ID 0990 1, Rev. Ind ex 0500 Software Requir ement s The compiler belongin g to one of the followin g environment s: • Ultra C Version 1.1. 2 or higher ; • FasTrak for Windows v ersion 2.02 or higher . Attention: As far as programming is concerned, to the SM-Module on the v[...]

  • Página 152

    SMART I/O User’s Manual Page 4 - 6 6 Digital Modules 08 Jan. 98 Manual I D 09901, Rev. Index 0500 Input u_int8 PortNr SM-Port number to in itiali ze. Output error_code SUCCESS E_BMODE If the modu le is unkn own, or stand ard OS-9 error cod e (refer to the OS-9 Tec hnical Manua l Error Co des Section). Example RetVal = SMACI1Init(0); 4.4.8. 3 SMAC[...]

  • Página 153

    Digital Modules 08 Jan. 98 SMART I/O Use r’s Manual Page 4 - 67 Manual ID 0990 1, Rev. Ind ex 0500 Example RetVal = SMACI1DeInit(0); 4.4.8. 4 SMACI1 Get Syntax error_code SMACI1Get(u_int8 PortNr, u_int8 *buffer); Description This functi on fetches the st atus of ALL 8 input lines of the port PortNr and writes it to the addr ess poi nted to by buf[...]

  • Página 154

    SMART I/O User’s Manual Page 4 - 6 8 Digital Modules 08 Jan. 98 Manual I D 09901, Rev. Index 0500 Buffer Explanati on: Bit Value: 0 = No inpu t or not c onnected 1 = Input Active 4.4.9 ISaGRAF Programming 4.4.9.1 ISaGRAF Board Pa rameters Inform ation on board par ameters may be found in the PEP on- line hel p and ISaGRAF on-li ne help or us er?[...]

  • Página 155

    Digital Modules 08 Jan. 98 SMART I/O Use r’s Manual Page 4 - 69 Manual ID 0990 1, Rev. Ind ex 0500 Logical Address The 8 input s of th is module ma y be clearl y seen to gether wi th the logi cal addr ess at which this par ticular bo ard is res iding. Rem embe r, th is l ogica l add ress is th e s ame as th e phy sical slot position ! In the ex a[...]

  • Página 156

    SMART I/O User’s Manual Page 4 - 7 0 Digital Modules 08 Jan. 98 Manual I D 09901, Rev. Index 0500 Channel provides cha nnel speci fic informa tion and i n the exam- ple shown here, any of the 8 input chan nels may b e used. The last pa rameter i s not us ually used b y PEP implemen tations and is set t o 0 (zero) . The error.c ode returns a value[...]

  • Página 157

    SMAR T I/O User ’ s Manual © 1 996 PEP Modu l a r Co m pute r s G m bH Ma r c h 1 2, 1 996 Page 5 - 1 5 Chapter 5 Analog Modules Analog Modules for SMART I/O[...]

  • Página 158

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 2 Chapter 5 Analog Modules T able of Contents 5. Analog Modules ....................................... 5-7 5.1 SM-DAD1 .............................................................................. 5-7 5.1.1 Introduction ..........................................[...]

  • Página 159

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 3 5 Chapter 5 Analog Modules 5.2.7 Pinouts ............................................................................................... 5-33 5.2.8 ‘C’ Programming ............................................................................... 5-35 5.2.8.1 [...]

  • Página 160

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 4 Chapter 5 Analog Modules 5.3.8.5 SMADCSetSensorT ype ............................................................ 5-71 5.3.8.6 SMADCGetSensorT ype ........................................................... 5-72 5.3.8.7 SMADCSetPrecision ........................[...]

  • Página 161

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 5 5 Chapter 5 Analog Modules 5.4.9.2 The ISaGRAF Operate Calls .................................................. 5-102 5.5 SM-DAC1 .......................................................................... 5-107 5.5.1 Introduction ...............................[...]

  • Página 162

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 6 Chapter 5 Analog Modules This page has been left blank intentionally .[...]

  • Página 163

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 7 5 Chapter 5 Analog Modules 5. Analog Modules 5.1 SM-DAD1 5.1.1 Introduction The SM-DAD1 provides a fast, 12-bit, bipolar ( ± 10V DC), 4-channel analog to digital converter and, apart from its ADC role, may also be used as a fast 12-bit, 2-channel unipolar/bipo[...]

  • Página 164

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 8 Chapter 5 Analog Modules 5.1.3 Front Panel Layout Red LEDs User Descriptor Fields[...]

  • Página 165

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 9 5 Chapter 5 Analog Modules 5.1.4 Board Overview Component Side Solder Side 21 6 BU1 BU2 LED 0 LED 1 Input Multiplexer Input Amplifier EEPROM DAC Reference Output Amplifier DAC DC/DC ADC 11 5 21 6 11 5 Pin 16 Pin 2 Pin 16 Pin 2 BU1 BU2 LED 0 LED 1 J3 J2 J5 J4[...]

  • Página 166

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 10 Chapter 5 Analog Modules 5.1.5 Functional Description The SM-DAD1 has 4 differential voltage inputs and 2 unipolar/bipolar voltage outputs. An on-board EEPROM contains board specific calibration data, module ID byte and production data. An on-board switched-mod[...]

  • Página 167

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 11 5 Chapter 5 Analog Modules 5.1.5.2 Output Circuitry The digital to analog converter (DAC) section consists of a twin output 12- bit DAC with external (on-board) 10.0V reference and an operational amplifier for unipolar/bipolar outputs. Figure 5.1.5.2: SM-DAD1 [...]

  • Página 168

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 12 Chapter 5 Analog Modules 5.1.6 Configuration The SM-DAD1 has 5 solder jumpers which may be configured as follows: Jumpers J1 and J2 These jumpers are reserved for PEP use only . Jumper J3 - EEPROM Pr otection Jumper J4 and J5 - DAC Output Jumper Settings Descri[...]

  • Página 169

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 13 5 Chapter 5 Analog Modules 5.1.7 Pinouts Screw T erminal Pinouts The following shows the pinout/signal relationship for the SM-DAD1 when connected to a particular screw terminal block. Pin 1 Pin 2 Pin 13 Pin 14 Pin Nr. Signal Description Pin Nr. Signal Descrip[...]

  • Página 170

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 14 Chapter 5 Analog Modules Connection Gnd (0V) AGND AGND VOUT1 VOUT0 Pin 1 Pin 2 Pin 13 Pin 14 Analog Actuators Analog Sensors IN0P IN2P IN0N IN2N IN1P IN3P IN1N IN3N AGND AGND A/D Circuit IN0N MUX 1:4 MAX359 4.7 k IN0P AGND +15V +15V -15V 1 k -15V MAX427 4.7 k 1[...]

  • Página 171

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 15 5 Chapter 5 Analog Modules D/A Circuit V OUT0 AGND +15V -15V L T1013 1/2 J4 20 k +15V -15V 20 k 20 k 20 k +15V 10 V DAC MAX532 REF MAX876 Jumpers J4 and J5 should be set if the DAC should operate in bipolar mode. It should be noted that the D/A circuit shown a[...]

  • Página 172

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 16 Chapter 5 Analog Modules 5.1.8 ‘C’ Pr ogramming 5.1.8.1 SM-DAD1 Library The SM-DAD1 library of functions smartio.l provide a convenient way of accessing the SM-DAD1 module. • All functions are written in ANSI C; • Prototypes are to be found in the file [...]

  • Página 173

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 17 5 Chapter 5 Analog Modules 5.1.8.2 SMDAD1Init Syntax error_code SMDAD1Init(u_int8 PortNr); Description This function initializes the resources needed to use the SM-DAD1 on port PortNr , including: - testing of the SM-Module ID; - reading the factory-set conver[...]

  • Página 174

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 18 Chapter 5 Analog Modules 5.1.8.3 SMDAD1DeInit Syntax error_code SMDAD1DeInit(u_int8 PortNr); Description This function de-initializes the SM-DAD1 Module on the port PortNr by freeing the resources tied up with it and setting all outputs and inputs to zero. Inpu[...]

  • Página 175

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 19 5 Chapter 5 Analog Modules 5.1.8.4 SMDAD1GetVRaw Syntax error_code SMDAD1GetVRaw(u_int8 PortNr, u_int8 Channel, int16 *pValue); Description This function fetches the conversion result of a selected channel without performing a gain or offset correction. The re[...]

  • Página 176

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 20 Chapter 5 Analog Modules 5.1.8.5 SMDAD1GetV Syntax error_code SMDAD1GetV(u_int8 PortNr, u_int8 Channel, int16 *pValue); Description This function fetches the conversion result of a selected channel. A gain and offset correction is done with the use of the selec[...]

  • Página 177

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 21 5 Chapter 5 Analog Modules 5.1.8.6 SMDAD1PutVRaw Syntax error_code SMDAD1PutVRaw(u_int8 PortNr, u_int8 Channel, u_int16 Value); Description This function sets the selected DAC channel to the chosen value. No gain or offset correction is performed. Input u_int8[...]

  • Página 178

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 22 Chapter 5 Analog Modules 5.1.8.7 SMDAD1PutV Syntax error_code SMDAD1PutV(u_int8 PortNr, u_int8 Channel, int16 Value); Description This function sets the selected DAC channel to the chosen value. A gain and offset correction is performed with the use of the auto[...]

  • Página 179

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 23 5 Chapter 5 Analog Modules 5.1.8.8 SMDAD1SetLed Syntax error_code SMDAD1SetLed(u_int8 PortNr, u_int8 LedNr); Description This function switches on one of the two LEDs fitted to the SM-DAD1. Input u_int8 PortNr SM-Port number to be accessed u_int8 LedNr Number [...]

  • Página 180

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 24 Chapter 5 Analog Modules 5.1.8.9 SMDAD1ClrLed Syntax error_code SMDAD1ClrLed(u_int8 PortNr, u_int8 LedNr); Description This function switches off one of the two LEDs fitted to the SM-DAD1. Input u_int8 PortNr SM-Port number to be accessed u_int8 LedNr Number of[...]

  • Página 181

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 25 5 Chapter 5 Analog Modules 5.1.9 ISaGRAF Pr ogramming 5.1.9.1 The ISaGRAF Board Parameters Information on board parameters may be found in the PEP online help and ISaGRAF online help or user ’ s manual. Figure 5.1.9.1.1 Typical Scr een Sections for the SM-DA[...]

  • Página 182

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 26 Chapter 5 Analog Modules 5.1.9.2 The ISaGRAF Operate Calls Operate calls are built into a program using ST or FBD languages when defining the project. A typical use could be at the initialization stage to check that the SMAR T -Modules are in fact located where[...]

  • Página 183

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 27 5 Chapter 5 Analog Modules A complete list of the operate COMMANDS may be obtained by selecting a project from the ISaGRAF projects group, opening an application and observing the Common defines in the Dictionary pull-down menu. Note that not all calls in the [...]

  • Página 184

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 28 Chapter 5 Analog Modules O_DISABLE_CONV : This operate call tells ISaGRAF to disable the conversion of a particular channel of a connected SM-DAD1 module. The syntax is as follows: <analog var> := OPERATE(<iovar>, O_DISABLE_CONV, 0); where <analo[...]

  • Página 185

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 29 5 Chapter 5 Analog Modules 5.2 SM-PT100 5.2.1 Introduction The SM-PT100 is used for 2, 3 or 4-wire temperature measurement using PT100 sensors driven by an on-board constant current source. T emperature measurements between -200 ° C and + 850 ° C are possibl[...]

  • Página 186

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 30 Chapter 5 Analog Modules 5.2.3 Front Panel Layout SM-PT100 4 Ch. (4-wire) PT100 Inputs Red LEDs User Descriptor Fields 5.2.4 Board Overview Component Side 2 16 BU1 BU2 LED 0 LED 1 Multiplexers EEPROM Optocouplers DC/DC ADC J1 Optocouplers Logic 1 15 2 16 1 15[...]

  • Página 187

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 31 5 Chapter 5 Analog Modules 5.2.5 Functional Description Figure 5.2.5.1: SM-PT100 Schematic Diagram The SM-PT100 has provision for 4 sets of 4-wire PT100 sensors driven by an on-board generated 400 µ A constant current source. The differential analog input con[...]

  • Página 188

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 32 Chapter 5 Analog Modules The two- and three-wire measurement methods shown in figure 5.2.5.2 are not compensated and will experience errors due to line-resistances. The best and recommended method is the 4-wire system shown in figure 5.2.5.1. which eliminates a[...]

  • Página 189

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 33 5 Chapter 5 Analog Modules 5.2.6 Configuration Jumper J1 - EEPROM Protection 5.2.7 Pinouts Screw T erminal Pinouts The following shows the pinout/signal relationship for the SM-PT100 when connected to a particular screw terminal block. Pin 1 Pin 2 Pin 13 Pin 1[...]

  • Página 190

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 34 Chapter 5 Analog Modules Connection Input Circuit CUR0 CUR1 CUR3 CUR2 IN0+ IN0- AGND IN2+ IN2- IN1+ IN1- AGND IN3+ IN3- PT100 PT100 PT100 PT100 In0- AD 7711 10 k MUX 8:1 AD508F MUX 8:1 AD508F 10 M 68 k 47 k - 5V + 5V 10 M 68 k 47 k - 5V + 5V In0+ AGND +12V -12V[...]

  • Página 191

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 35 5 Chapter 5 Analog Modules 5.2.8 ‘C’ Programming 5.2.8.1 SM-PT100 Library The SM-PT100 library of functions smartio.l provide a convenient way of accessing the SM-PT100 module. • All functions are written in ANSI C; • Prototypes are to be found in the [...]

  • Página 192

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 36 Chapter 5 Analog Modules T o compile the source, execute the following commands at the shell prompt: > chd /<dev>/APPLIC/SMART > make all T o execute the example: load /<dev>/BSP/SMART/SMADC/adc_task * load HW task load /<dev>/APPLIC/SMA[...]

  • Página 193

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 37 5 Chapter 5 Analog Modules Read T emperature V alues The HW task is prepared with a function that converts RA W values of a channel to degrees Celsius. T o enable this facility , the function SMADCEnableConversion must be called after calling SMADCEnableRead. [...]

  • Página 194

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 38 Chapter 5 Analog Modules Figure 5.2.8.1. illustrates a typical programming structure for the correct operation of an SM-PT100 SMAR T -Module. Figure 5.2.8.1 SM-PT100 Pr ogramming Flow Diagram SMADCSetCyclicCalib() (f or a channel) Sleep(0) SMADCReadConv er ted([...]

  • Página 195

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 39 5 Chapter 5 Analog Modules 5.2.8.2 SMADCInit Syntax error_code SMADCInit(u_int8 PortNr); Description This function initializes the SM-PT100 Module on port PortNr , and: - identifies boards supported by this library - provides an internal list of known sensors [...]

  • Página 196

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 40 Chapter 5 Analog Modules 5.2.8.3 SMADCCalibrate Syntax error_code SMADCCalibrate(u_int8 PortNr); Description This function signals the HW task that a calibration cycle has to be started for the SM-PT100 at slot PortNr . It is performed automatically when the mo[...]

  • Página 197

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 41 5 Chapter 5 Analog Modules 5.2.8.4 SMADCSetCyclicCalib Syntax error_code SMADCSetCyclicCalib(u_int8 PortNr, u_int secs); Description This function sets the time between two calibration cycles in seconds. If secs=0, then cyclic calibration is disabled. Input u_[...]

  • Página 198

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 42 Chapter 5 Analog Modules 5.2.8.5 SMADCSetSensorT ype Syntax error_code SMADCSetSensorType(u_int8 PortNr, u_int8 channel, u_int16 sensorCode); Description This function checks if an SM-PT100 board is fitted on the specified port, if the channel is valid, if the [...]

  • Página 199

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 43 5 Chapter 5 Analog Modules 5.2.8.6 SMADCGetSensorT ype Syntax error_code SMADCGetSensorType(u_int8 PortNr, u_int8 channel, u_int16 *pBuffer); Description This function checks if an SM-PT100 board is fitted on the specified port and if the channel is valid. It [...]

  • Página 200

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 44 Chapter 5 Analog Modules 5.2.8.7 SMADCSetPrecision Syntax error_code SMADCSetPrecision(u_int8 PortNr, u_int8 channel, u_int8 precision); Description This function checks if an SM-PT100 board is fitted on the specified port and if the channel is valid. It sets t[...]

  • Página 201

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 45 5 Chapter 5 Analog Modules 5.2.8.8 SMADCGetPrecision Syntax error_code SMADCGetPrecision(u_int8 PortNr, u_int8 channel, u_int16 *pBuffer); Description This function checks if an SM-PT100 board is fitted on the specified port and if the channel is valid. It get[...]

  • Página 202

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 46 Chapter 5 Analog Modules 5.2.8.9 SMADCSetMode Syntax error_code SMADCSetMode(u_int8 PortNr, u_int8 channel, u_int8 mode); Description This function checks if an SM-PT100 board is fitted on the specified port and if the channel is valid and sets the mode of the [...]

  • Página 203

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 47 5 Chapter 5 Analog Modules 5.2.8.10 SMADCGetMode Syntax error_code SMADCGetMode(u_int8 PortNr, u_int8 channel, u_int8 *pBuffer); Description This function checks if an SM-PT100 board is fitted on the specified port and if the channel is valid. It gets the mode[...]

  • Página 204

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 48 Chapter 5 Analog Modules 5.2.8.1 1 SMADCSetSignal Syntax error_code SMADCSetSignal(u_int8 PortNr, u_int8 channel, process_id procID, signal_code sigCode); Description This function defines the code of the signal that is sent by the HW task when the conversion o[...]

  • Página 205

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 49 5 Chapter 5 Analog Modules 5.2.8.12 SMADCSetGain Syntax error_code SMADCSetGain(u_int8 PortNr, u_int8 channel, u_int8 gain); Description This function checks if an SM-PT100 board is fitted on the specified port and if the channel is valid and sets the value of[...]

  • Página 206

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 50 Chapter 5 Analog Modules 5.2.8.13 SMADCGetGain Syntax error_code SMADCGetGain(u_int8 PortNr, u_int8 channel, u_int8 *pBuffer); Description This function checks if an SM-PT100 board is fitted on the specified port and if the channel is valid. It gets the gain am[...]

  • Página 207

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 51 5 Chapter 5 Analog Modules 5.2.8.14 SMADCEnableRead Syntax error_code SMADCEnableRead(u_int8 PortNr, u_int8 channel, BOOLEAN enable); Description This function checks if an SM-PT100 board is fitted on the specified port and if the channel is valid. It forces t[...]

  • Página 208

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 52 Chapter 5 Analog Modules 5.2.8.15 SMADCEnableConversion Syntax error_code SMADCEnableConversion(u_int8 PortNr, u_int8 channel, BOOLEAN enable); Description This function checks if an SM-PT100 board is fitted on the specified port and if the channel is valid and[...]

  • Página 209

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 53 5 Chapter 5 Analog Modules 5.2.8.16 SMADCReadRaw Syntax error_code SMADCReadRaw(u_int8 PortNr, u_int8 channel, u_int16 *pBuffer); Description This function checks if an SM-PT100 board is fitted on the specified port and if the channel is valid. It reads the ra[...]

  • Página 210

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 54 Chapter 5 Analog Modules 5.2.8.17 SMADCReadConverted Syntax error_code SMADCReadConverted(u_int8 PortNr, u_int8 channel, double *pBuffer); Description This function reads the converted value of the last AD Conversion and stores the value in degrees Celcius in a[...]

  • Página 211

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 55 5 Chapter 5 Analog Modules 5.2.8.18 SMADCDeinit Syntax error_code SMADCDeinit(u_int8 PortNr); Description This function frees the resources attached to this module if it was initialised. Input u_int8 PortNr Number of the port to deinitialise Output error_code [...]

  • Página 212

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 56 Chapter 5 Analog Modules 5.2.9 ISaGRAF Programming 5.2.9.1 The ISaGRAF Board Parameters Information on board parameters may be found in the PEP online help and ISaGRAF online help or user ’ s manual. Figure 5.2.9.1.1 a T ypical Screen Section for the SM-PT100[...]

  • Página 213

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 57 5 Chapter 5 Analog Modules 5.2.9.2 The ISaGRAF Operate Calls Operate calls are built into a program using ST or FBD languages when defining the project. A typical use could be at the initialization stage to check that the SMAR T -Modules are in fact located wh[...]

  • Página 214

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 58 Chapter 5 Analog Modules A complete list of the operate COMMANDS may be obtained by selecting a project from the ISaGRAF projects group, opening an application and observing the Common defines in the Dictionary pull-down menu. Note that not all calls in the lis[...]

  • Página 215

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 59 5 Chapter 5 Analog Modules 5.3 SM-THERM 5.3.1 Introduction The SM-THERM supports up to four groups of thermoelement sensors together with a cold junction (ext. PT100) for accurate temperature measure- ment. The sensor types shown in the table below may be conn[...]

  • Página 216

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 60 Chapter 5 Analog Modules 5.3.3 Front Panel Layout SM-THERM 4 Channel Thermocouple Inputs Red LEDs User Descriptor Fields 5.3.4 Board Overview Component Side 2 16 BU1 BU2 LED 0 LED 1 Multiplexers EEPROM Optocouplers DC/DC ADC J1 Optocouplers Logic 1 15 2 16 1 15[...]

  • Página 217

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 61 5 Chapter 5 Analog Modules Multiplex er A/D Conv er ter System Interface Serial I/O Impedance Conv er ter Thermo Sensor LED Driver IN+ IN- AGND SENSE LINE SHIELD LINE SENSE LINE External PT100 Sensor, 2-wire Cold J unction Input TMP+ TMP- SUPPL Y/SENSE LINE SU[...]

  • Página 218

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 62 Chapter 5 Analog Modules 5.3.6 Configuration Jumper J1 - EEPROM Pr otection 5.3.7 Pinouts Screw T erminal Pinouts The following shows the pinout/signal relationship for the SM-PT100 when connected to a particular screw terminal block. Pin 1 Pin 2 Pin 13 Pin 14 [...]

  • Página 219

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 63 5 Chapter 5 Analog Modules Connection Input Circuit AGND AGND A GND AGND IN0+ IN0- IN2+ IN2- IN1+ IN1- IN3+ IN3- TMP+ TMP- PT100 In0- AD 7711 MUX 8:1 AD508F MUX 8:1 AD508F 10 M 68 k 47 k - 5V + 5V 10 M 68 k 47 k - 5V + 5V In0+ AGND +12V -12V +12V -12V -5V +5V [...]

  • Página 220

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 64 Chapter 5 Analog Modules 5.3.8 ‘C’ Pr ogramming 5.3.8.1 SM-THERM Library The SM-THERM library of functions smartio.l provide a convenient way of accessing the SM-THERM module. • All functions are written in ANSI C; • Prototypes are to be found in the fi[...]

  • Página 221

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 65 5 Chapter 5 Analog Modules T o compile the source, execute the following commands at the shell prompt: > chd /<dev>/APPLIC/SMART > make all T o execute the example: load /<dev>/BSP/SMART/SMADC/adc_task * load HW task load /<dev>/APPLIC/[...]

  • Página 222

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 66 Chapter 5 Analog Modules Read T emperature V alues The HW task is prepared with a function that converts RA W values of a channel to degrees Celsius. T o enable this facility , the function SMADCEnableConversion must be called after calling SMADCEnableRead. If [...]

  • Página 223

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 67 5 Chapter 5 Analog Modules Figure 5.3.8.1. illustrates a typical programming structure for the correct operation of an SM-THERM SMAR T -Module. Figure 5.3.8.1 SM-THERM Programming Flow Diagram SMADCSetCyclicCalib() (f or a channel) Sleep(0) SMADCReadConv er te[...]

  • Página 224

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 68 Chapter 5 Analog Modules 5.3.8.2 SMADCInit Syntax error_code SMADCInit(u_int8 PortNr); Description This function initializes the SM-THERM Module on port PortNr , and: - identifies boards supported by this library - provides an internal list of known sensors (co[...]

  • Página 225

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 69 5 Chapter 5 Analog Modules 5.3.8.3 SMADCCalibrate Syntax error_code SMADCCalibrate(u_int8 PortNr); Description This function signals the HW task that a calibration cycle has to be started for the SM-THERM at slot PortNr . It is performed automatically when the[...]

  • Página 226

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 70 Chapter 5 Analog Modules 5.3.8.4 SMADCSetCyclicCalib Syntax error_code SMADCSetCyclicCalib(u_int8 PortNr, u_int secs); Description This function sets the time between two calibration cycles in seconds. If secs=0, then cyclic calibration is disabled. Input u_int[...]

  • Página 227

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 71 5 Chapter 5 Analog Modules 5.3.8.5 SMADCSetSensorT ype Syntax error_code SMADCSetSensorType(u_int8 PortNr, u_int8 channel, u_int16 sensorCode); Description This function checks if an SM-THERM board is fitted on the specified port, if the channel is valid, if t[...]

  • Página 228

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 72 Chapter 5 Analog Modules 5.3.8.6 SMADCGetSensorT ype Syntax error_code SMADCGetSensorType(u_int8 PortNr, u_int8 channel, u_int16 *pBuffer); Description This function checks if an SM-THERM board is fitted on the specified port and if the channel is valid. It get[...]

  • Página 229

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 73 5 Chapter 5 Analog Modules 5.3.8.7 SMADCSetPrecision Syntax error_code SMADCSetPrecision(u_int8 PortNr, u_int8 channel, u_int8 precision); Description This function checks if an SM-THERM board is fitted on the specified port and if the channel is valid. It set[...]

  • Página 230

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 74 Chapter 5 Analog Modules 5.3.8.8 SMADCGetPrecision Syntax error_code SMADCGetPrecision(u_int8 PortNr, u_int8 channel, u_int16 *pBuffer); Description This function checks if an SM-THERM board is fitted on the specified port and if the channel is valid. It gets t[...]

  • Página 231

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 75 5 Chapter 5 Analog Modules 5.3.8.9 SMADCSetMode Syntax error_code SMADCSetMode(u_int8 PortNr, u_int8 channel, u_int8 mode); Description This function checks if an SM-THERM board is fitted on the specified port and if the channel is valid and sets the mode of t[...]

  • Página 232

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 76 Chapter 5 Analog Modules 5.3.8.10 SMADCGetMode Syntax error_code SMADCGetMode(u_int8 PortNr, u_int8 channel, u_int8 *pBuffer); Description This function checks if an SM-THERM board is fitted on the specified port and if the channel is valid. It gets the mode se[...]

  • Página 233

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 77 5 Chapter 5 Analog Modules 5.3.8.1 1 SMADCSetSignal Syntax error_code SMADCSetSignal(u_int8 PortNr, u_int8 channel, process_id procID, signal_code sigCode); Description This function defines the code of the signal that is sent by the HW task when the conversio[...]

  • Página 234

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 78 Chapter 5 Analog Modules 5.3.8.12 SMADCSetGain Syntax error_code SMADCSetGain(u_int8 PortNr, u_int8 channel, u_int8 gain); Description This function checks if an SM-THERM board is fitted on the specified port and if the channel is valid and sets the value of th[...]

  • Página 235

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 79 5 Chapter 5 Analog Modules 5.3.8.13 SMADCGetGain Syntax error_code SMADCGetGain(u_int8 PortNr, u_int8 channel, u_int8 *pBuffer); Description This function checks if an SM-THERM board is fitted on the specified port and if the channel is valid. It gets the gain[...]

  • Página 236

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 80 Chapter 5 Analog Modules 5.3.8.14 SMADCEnableRead Syntax error_code SMADCEnableRead(u_int8 PortNr, u_int8 channel, BOOLEAN enable); Description This function checks if an SM-THERM board is fitted on the specified port and if the channel is valid. It forces the [...]

  • Página 237

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 81 5 Chapter 5 Analog Modules 5.3.8.15 SMADCEnableConversion Syntax error_code SMADCEnableConversion(u_int8 PortNr, u_int8 channel, BOOLEAN enable); Description This function checks if an SM-THERM board is fitted on the specified port and if the channel is valid [...]

  • Página 238

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 82 Chapter 5 Analog Modules 5.3.8.16 SMADCReadRaw Syntax error_code SMADCReadRaw(u_int8 PortNr, u_int8 channel, u_int16 *pBuffer); Description This function checks if an SM-THERM board is fitted on the specified port and if the channel is valid. It reads the raw v[...]

  • Página 239

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 83 5 Chapter 5 Analog Modules 5.3.8.17 SMADCReadConverted Syntax error_code SMADCReadConverted(u_int8 PortNr, u_int8 channel, double *pBuffer); Description This function reads the converted value of the last AD Conversion and stores the value in degrees Celcius i[...]

  • Página 240

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 84 Chapter 5 Analog Modules 5.3.8.18 SMADCDeinit Syntax error_code SMADCDeinit(u_int8 PortNr); Description This function frees the resources attached to this module if it was initialized. Input u_int8 PortNr Number of the port to de-initialize Output error_code SU[...]

  • Página 241

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 85 5 Chapter 5 Analog Modules 5.3.9 ISaGRAF Pr ogramming 5.3.9.1 The ISaGRAF Board Parameters Information on board parameters may be found in the PEP online help and ISaGRAF online help or user ’ s manual. Figure 5.3.9.1.1 a T ypical Scr een Section for the SM-[...]

  • Página 242

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 86 Chapter 5 Analog Modules 5.3.9.2 The ISaGRAF Operate Calls Operate calls are built into a program using ST or FBD languages when defining the project. A typical use could be at the initialization stage to check that the SMAR T -Modules are in fact located where[...]

  • Página 243

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 5 - 87 5 Chapter 5 Analog Modules A complete list of the operate COMMANDS may be obtained by selecting a project from the ISaGRAF projects group, opening an application and observing the Common defines in the Dictionary pull-down menu. Note that not all calls in the [...]

  • Página 244

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 88 Chapter 5 Analog Modules This page has been left blank intentionally .[...]

  • Página 245

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 5 - 89 5 Chapter 5 Analog Modules 5.4 SM-ADC1 5.4.1 Introduction The SM-ADC1 provides a fast, 12-bit, bipolar ( ± 10V DC), 6-channel analog to digital converter . T wo configurable red LEDs on the front panel form the user interface while an on-board EEPROM stores[...]

  • Página 246

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 90 Chapter 5 Analog Modules 5.4.3 Front Panel Layout Red LEDs User Descriptor Fields 5.4.4 Board Overview Component Side 2 16 BU1 BU2 LED 0 LED 1 Multiplexers EEPROM Optocouplers DC/DC ADC J4 Optocouplers Logic 1 15 2 16 1 15 Impedance Converter J2[...]

  • Página 247

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 5 - 91 5 Chapter 5 Analog Modules 5.4.5 Functional Description The SM-ADC1 has 6 differential voltage or current inputs depending on the ordered type. An on-board EEPROM contains board specific calibration data, module ID byte, sub ID byte and production data. A DC[...]

  • Página 248

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 92 Chapter 5 Analog Modules 5.4.6 Configuration Although the SM-ADC1 has one solder jumper (J2) for EEPROM configura- tion, the user should not interfere with it. Jumper J4 likewise should not be interfered with as it is factory set at the time of ordering and c[...]

  • Página 249

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 5 - 93 5 Chapter 5 Analog Modules Connection: Input Circuit: +Vcc (24V) Gnd (0V) Pin 1 Pin 2 Pin 13 Pin 14 Analog Sensors IN0P IN3P IN0N IN3N IN1P IN4P IN1N IN4N AGND AGND IN2P IN5P IN2N IN5N IN0N MAX358 4.7 k IN0P AGND +15V +15V -15V 1 k -15V MAX427 MUX 1:8 4.7 k [...]

  • Página 250

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 94 Chapter 5 Analog Modules 5.4.8 ‘C’ Pr ogramming 5.4.8.1 SM-ADC1 Library The SM-ADC1 library of functions smartio.l provide a convenient way of accessing the SM-ADC1 module. • All functions are written in ANSI C; • Prototypes are to be found in the fil[...]

  • Página 251

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 5 - 95 5 Chapter 5 Analog Modules 5.4.8.2 SMADC1Init Syntax error_code SMADC1Init(u_int8 PortNr); Description This function initialises the SM-ADC1 Module on port PortNr , and: - tests the module’ s ID - test the module’ s sub-ID for the determination of bipola[...]

  • Página 252

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 96 Chapter 5 Analog Modules 5.4.8.3 SMADC1GetVRaw Syntax error_code SMADC1GetVRaw(u_int8 PortNr, u_int8 Channel, int16 *pValue); Description This function fetches the conversion result of a selected channel without performing a gain or offset correction. The res[...]

  • Página 253

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 5 - 97 5 Chapter 5 Analog Modules 5.4.8.4 SMADC1GetV Syntax error_code SMADC1GetV(u_int8 PortNr, u_int8 Channel, int16 *pValue); Description This function fetches the conversion result of a selected channel. A gain and offset correction is performed and the result [...]

  • Página 254

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 98 Chapter 5 Analog Modules 5.4.8.5 SMADC1SetLed Syntax error_code SMADC1SetLed(u_int8 PortNr, u_int8 LedNr); Description This function switches on one of the two LEDs fitted to the SM-ADC1. Input u_int8 PortNr SM-Port number to be accessed u_int8 LedNr Number o[...]

  • Página 255

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 5 - 99 5 Chapter 5 Analog Modules 5.4.8.6 SMADC1ClrLed Syntax error_code SMADC1ClrLed(u_int8 PortNr, u_int8 LedNr); Description This function switches of f one of the two LEDs fitted to the SM-ADC1. Input u_int8 PortNr SM-Port number to be accessed u_int8 LedNr Num[...]

  • Página 256

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 100 Chapter 5 Analog Modules 5.4.8.7 SMADC1DeInit Syntax error_code SMADC1DeInit(u_int8 PortNr); Description This function deinitialises the SM-ADC1 Module on the port PortNr by freeing the resources tied up with it and setting all outputs and inputs to zero. In[...]

  • Página 257

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 5 - 101 5 Chapter 5 Analog Modules 5.4.9 ISaGRAF Pr ogramming 5.4.9.1 The ISaGRAF Board Parameters Information on board parameters may be found in the PEP online help and ISaGRAF online help or user ’ s manual. Figure 5.4.9.1.1 Typical Scr een Section for the SM-[...]

  • Página 258

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 102 Chapter 5 Analog Modules 5.4.9.2 The ISaGRAF Operate Calls Operate calls are built into a program using ST or FBD languages when defining the project. A typical use could be at the initialization stage to check that the SMAR T -Modules are in fact located wh[...]

  • Página 259

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 5 - 103 5 Chapter 5 Analog Modules A complete list of the operate COMMANDS may be obtained by selecting a project from the ISaGRAF projects group, opening an application and observing the Common defines in the Dictionary pull-down menu. Note that not all calls in t[...]

  • Página 260

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 104 Chapter 5 Analog Modules O_ENABLE_LINE_CHECK : This operate call allows the user to enable open- loop checking on the current version of the SM- ADC1. The syntax is as follows: <analog var> := OPERATE(<iovar>, O_ENABLE_LINE_CHECK, <var>); w[...]

  • Página 261

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 5 - 105 5 Chapter 5 Analog Modules O_SET_LINE_LIMIT : This operate call allows the user to set the open loop detect level on the current version of the SM-ADC1. The syntax is as follows: <analog var> := OPERATE(<iovar>, O_SET_LINE_LIMIT, <var>); w[...]

  • Página 262

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 106 Chapter 5 Analog Modules This page has been left blank intentionally .[...]

  • Página 263

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 5 - 107 5 Chapter 5 Analog Modules 5.5 SM-DAC1 5.5.1 Introduction The SM-DAC1 provides a fast, 12-bit, bipolar ( ± 10V DC), 2/6-channel digital to analog converter . T wo configurable red LEDs on the front panel form the user interface while an on-board EEPROM sto[...]

  • Página 264

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 108 Chapter 5 Analog Modules 5.5.3 Front Panel Layout 5.5.4 Board Overview Component Side 2 16 BU1 BU2 LED 0 LED 1 DC/DC Current Sense Circuitary Optocouplers 1 15 2 16 1 15 J2 D/A Conv er ters Red LEDs User Descriptor Fields[...]

  • Página 265

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 5 - 109 5 Chapter 5 Analog Modules 5.5.5 Functional Description The SM-DAC1 has 2, 4 or 6 differential voltage or current outputs depending on the ordered type. An on-board EEPROM contains board specific calibra- tion data, module ID byte, sub ID byte and productio[...]

  • Página 266

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 110 Chapter 5 Analog Modules 5.5.6 Configuration Although the SM-DAC1 has one solder jumper for EEPROM configuration, the user should not interfere with it. 5.5.7 Pinouts Screw T erminal Pinouts The following shows the pinout/signal relationship for the SM-DAC1 [...]

  • Página 267

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 5 - 111 5 Chapter 5 Analog Modules Connection: Current Output Cir cuit: +Vcc (24V) Gnd (0V) Pin 1 Pin 2 Pin 13 Pin 14 Analog Sensors OUT0 OUT4 OUT2 AGND OUT3 AGND OUT1 AGND OUT5 AGND AGND AGND AGND AGND DAC 20k 2k7 1k 1k 24 Ω AGND 0..20mA 1/4 DG413 1/2 L T1112[...]

  • Página 268

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 112 Chapter 5 Analog Modules V oltage Output Cir cuit: DAC 20k 20k GND 5k6 49k9 1/2 L T112 Software Controlled Switch 1/4 DG413 ± 10V DC AGND -2.04V reference source for bipolar operation[...]

  • Página 269

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 5 - 113 5 Chapter 5 Analog Modules 5.5.8 ‘C’ Programming 5.5.8.1 SM-DAC1 Library The SM-DAC1 library of functions smartio.l provide a convenient way of accessing the SM-DAC1 module. • All functions are written in ANSI C; • Prototypes are to be found in the [...]

  • Página 270

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 114 Chapter 5 Analog Modules 5.5.8.2 SMDAC1Init Syntax error_code SMDAC1Init(u_int8 PortNr); Description This function initialises the SM-DAC1 Module on port PortNr , and: - tests the module’ s ID - reads the conversion table held in EEPROM - allocates space f[...]

  • Página 271

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 5 - 115 5 Chapter 5 Analog Modules 5.5.8.3 SMDAC1OpenLoop Syntax error_code SMDAC1OpenLoop(u_int8 PortNr, u_int8 pStatus); Description This function should only be used for the current version of the SM-DAC1 module and checks the wires for open loop in a 4..20mA en[...]

  • Página 272

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 116 Chapter 5 Analog Modules 5.5.8.4 SMADAC1Operate Syntax error_code SMDAC1Operate(u_int8 PortNr); Description This function powers up the outputs as they are disconnected from the screw terminals by default. This is the software control of the software switch [...]

  • Página 273

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 5 - 117 5 Chapter 5 Analog Modules 5.5.8.5 SMDAC1StandBy Syntax error_code SMDAC1StandBy(u_int8 PortNr); Description This function places the module connected on Port PortNr in standby mode where the outputs are disconnected from the screw terminal block. Input u_i[...]

  • Página 274

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 118 Chapter 5 Analog Modules 5.5.8.6 SMDAC1PutVRaw Syntax error_code SMDAC1PutVRaw(u_int8 PortNr, u_int8 Channel, u_int16 Value); Description This function sets the selected DAC channel to the chosen value. No gain or offset correction is performed and the given[...]

  • Página 275

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 5 - 119 5 Chapter 5 Analog Modules 5.5.8.7 SMDAC1PutV Syntax error_code SMDAC1PutV(u_int8 PortNr, u_int8 Channel, int16 Value); Description This function sets the selected DAC channel to the chosen value. A gain and offset correction is performed with the use of th[...]

  • Página 276

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 120 Chapter 5 Analog Modules 5.5.8.8 SMDAC1SetLed Syntax error_code SMDAC1SetLed(u_int8 PortNr, u_int8 LedNr); Description This function switches on one of the two LEDs fitted to the SM-DAC1. Input u_int8 PortNr SM-Port number to be accessed u_int8 LedNr Number [...]

  • Página 277

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 5 - 121 5 Chapter 5 Analog Modules 5.5.8.9 SMDAC1ClrLed Syntax error_code SMDAC1ClrLed(u_int8 PortNr, u_int8 LedNr); Description This function switches of f one of the two LEDs fitted to the SM-DAC1. Input u_int8 PortNr SM-Port number to be accessed u_int8 LedNr Nu[...]

  • Página 278

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 122 Chapter 5 Analog Modules 5.5.8.10 SMDAC1DeInit Syntax error_code SMDAC1DeInit(u_int8 PortNr); Description This function deinitialises the SM-DAC1 Module on the port PortNr by freeing the resources tied up with it and shuts down the outputs. Input u_int8 Port[...]

  • Página 279

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 5 - 123 5 Chapter 5 Analog Modules 5.5.9 ISaGRAF Pr ogramming 5.5.9.1 The ISaGRAF Board Parameters Information on board parameters may be found in the PEP online help and ISaGRAF online help or user ’ s manual. Figure 5.5.9.1.1 Typical Scr een Section for the SM-[...]

  • Página 280

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 124 Chapter 5 Analog Modules 5.5.9.2 The ISaGRAF Operate Calls Operate calls are built into a program using ST or FBD languages when defining the project. A typical use could be at the initialization stage to check that the SMAR T -Modules are in fact located wh[...]

  • Página 281

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 5 - 125 5 Chapter 5 Analog Modules A complete list of the operate COMMANDS may be obtained by selecting a project from the ISaGRAF projects group, opening an application and observing the Common defines in the Dictionary pull-down menu. Note that not all calls in t[...]

  • Página 282

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 5 - 126 Chapter 5 Analog Modules O_DISABLE_CONV : This operate call tells ISaGRAF to disable the conversion of a particular channel of a connected SM-DAC1 module. The syntax is as follows: <analog var> := OPERATE(<iovar>, O_DISABLE_CONV, 0); where <an[...]

  • Página 283

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 6 - 1 Chapter 6 Communications Modules 6 Communications Modules for SMART I/O[...]

  • Página 284

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 6 - 2 Chapter 6 Communications Modules T able of Contents 6. Communications Modules ....................... 6-5 6.1 SM-RS232 ............................................................................. 6-5 6.1.1 Introduction ..........................................[...]

  • Página 285

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 6 - 3 Chapter 6 Communications Modules 6 6.2.8 MA TCH Function .............................................................................. 6-26 6.2.9 T ested Sensors ................................................................................... 6-26 6.2.10 Co[...]

  • Página 286

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 6 - 4 Chapter 6 Communications Modules This page has been left blank intentionally .[...]

  • Página 287

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 6 - 5 Chapter 6 Communications Modules 6 6.1 SM-RS232 6.1.1 Introduction The SM-RS232 provides serial communication observing a true RS232 interface definition. Interface parameters such as baud rate, stop bits, data bits and parity are defined by software. The hardw[...]

  • Página 288

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 6 - 6 Chapter 6 Communications Modules 6.1.3 Front Panel Layout 6.1.4 Board Overview Component Side SM-RS232 1 Serial Interface Green LED Y ellow LED TxD RxD User Descriptor Fields 21 6 BU1 BU2 LED 0 LED 1 EEPROM Inverter J1 Transceiver 11 5 21 6 11 5[...]

  • Página 289

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 6 - 7 Chapter 6 Communications Modules 6 6.1.5 Functional Description Figure 4.3.5.1: SM-RS232 Schematic Diagram The serial interface is realized using the TxD3 and RxD3 lines of the 68302 SCC3 port on the SMAR T -BASE and for this reason this module can only be used[...]

  • Página 290

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 6 - 8 Chapter 6 Communications Modules Pin Nr. Signal Description Pin Nr. Signal Description 1 Tx D Transmit Signal 2 N/C No Connection 3 Rx D Receive Signal 4 N/C No Connection 5 D T R Data Terminal Ready 6 N/C No Connection 7 C T S Clear to Send 8 N/C No Connection [...]

  • Página 291

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 6 - 9 Chapter 6 Communications Modules 6 Connection TxD RxD DTR CTS GND Interface DTR MAX232A RxD GND Vcc TxD CTS Connector User Interf ace System Interf ace[...]

  • Página 292

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 6 - 10 Chapter 6 Communications Modules 6.1.8 ISaGRAF Programming 6.1.8.1 The ISaGRAF Board Parameters Information on board parameters may be found in the PEP online help and ISaGRAF online help or user ’ s manual. Figure 6.1.8.1.1 T ypical Screen Sections for the S[...]

  • Página 293

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 6 - 11 Chapter 6 Communications Modules 6 char_length : This represents the number of data-bits within a transmitted character and may be 5, 6, 7 or 8 stop_bits : The number of stop-bits supported by the communi- cation protocol may be : 0 for 1 stop-bit 1 for 1.5 st[...]

  • Página 294

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 6 - 12 Chapter 6 Communications Modules 6.1.8.2 The ISaGRAF Operate Calls Operate calls are built into a program using ST or FBD languages when defining the project. A typical use could be at the initialization stage to check that the SMAR T -Modules are in fact locat[...]

  • Página 295

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 6 - 13 Chapter 6 Communications Modules 6 A complete list of the operate COMMANDS may be obtained by selecting a project from the ISaGRAF projects group, opening an application and observing the Common defines in the Dictionary pull-down menu. Note that not all calls[...]

  • Página 296

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 6 - 14 Chapter 6 Communications Modules 6.1.9 OS-9 Programming Due to the fact that the device descriptor for the serial I/O is burnt into EPROM, it cannot be over-written with new values. Therefore a copy has to be generated in RAM where the parameters may be manipul[...]

  • Página 297

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 6 - 15 Chapter 6 Communications Modules 6 modify the settings, for example:- $ xmode baud=19200 cs=7 par=none /scc3 <return> check that the system has taken the parameters:- $ xmode/scc3 <return> /scc3 noupc bsp bsl echo if null=0 pause pag=24 bsp=08 del=[...]

  • Página 298

    SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 6 - 16 Chapter 6 Communications Modules This page has been left blank intentionally .[...]

  • Página 299

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 6 - 17 6 Chapter 6 Communications Modules † All outputs ar e refer enced to the common Ext. Vcc 6.2 SM-SSI 6.2.1 Introduction The SM-SSI is an optoisolated single-channel, 24-bit RS422 interface for absolute encoders. Configurable data input together with flexibi[...]

  • Página 300

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 6- 18 Chapter 6 Communications Modules 6.2.3 Front Panel Layout 6.2.4 Board Overview Component Side Red LEDs User Descriptor Fields 2 16 BU1 BU2 LED 0 LED 1 PROM Optocouplers 1 15 2 16 1 15 FPGA EEPROM X2 X1 Crystal J1 An option to install a 12-bit DAC on a special [...]

  • Página 301

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 6 - 19 6 Chapter 6 Communications Modules 6.2.5 Functional Description Figure 6.2.5.1: SM-SSI Schematic Diagram The Synchronous Serial Interface working together with a photographically etched encoder disk allows absolute codes (positions) of rotating axis to be co[...]

  • Página 302

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 6- 20 Chapter 6 Communications Modules 6.2.6 SSI Operation W ith reference to figures 6.2.6.1 and 6.2.6.2, the operation of the SSI inter- face will be discussed. • The position of the encoder disk is continuously clocked. • Position data is ready for conversion[...]

  • Página 303

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 6 - 21 6 Chapter 6 Communications Modules • The first HIGH to LOW clock edge (1) in figure 6.2.6.1, triggers the monoflop and allows the current parallel data word present in the parallel -> serial converter to be processed. The monoflop prevents other data tr[...]

  • Página 304

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 6- 22 Chapter 6 Communications Modules 6.2.7 Register Description The SM-SSI SMAR T -Module connected to a SMAR T I/O slot uses the SPI transparent mode for on-board data reading and writing and 5 parallel lines for data selection. On board are a set of registers an[...]

  • Página 305

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 6 - 23 6 Chapter 6 Communications Modules 6.2.7.2 CTRL1 Register ENIO-P enable / disable (1 / 0) interrupt on parity error ENI1-TC enable / disable (1 / 0) interrupt on transmission complete ENI2-EOR enable / disable (1 / 0) interrupt on end-of-range switch 1 / 2 E[...]

  • Página 306

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 6- 24 Chapter 6 Communications Modules 6.2.7.5 Compare Register This 24-bit register indicates the comparison value and is cleared after a power-on reset. 6.2.7.6 Identification Register The identification register is read only and fixed at a value of $81. 6.2.7.7 S[...]

  • Página 307

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 6 - 25 6 Chapter 6 Communications Modules 6.2.7.9 ST A T2 Register PE parity error on last transmission (True/False) TC transmission complete (True/False) ER1 current status of end-of-range switch 1 ER2 current status of end-of-range switch 2 MH comparison match (T[...]

  • Página 308

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 6- 26 Chapter 6 Communications Modules 6.2.8 MA TCH Function The match output, which is useful for detecting when an event occurs, is set using an A > B comparator where: A = the SSI data B = the compare register The MA TCH output is set on an edge transition of [...]

  • Página 309

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 6 - 27 6 Chapter 6 Communications Modules 6.2.10 Configuration Jumper J1 - EEPROM Protection 6.2.1 1 Pinouts Screw T erminal Pinouts The following shows the pinout/signal relationship for the SM-SSI when connected to a particular screw terminal block. Pin 1 Pin 2 P[...]

  • Página 310

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 6- 28 Chapter 6 Communications Modules Connection Input Circuit +Vcc (24V) Gnd (0V) Pin 1 Pin 2 Pin 13 Pin 14 CLK+ CLK- D ATA - D ATA + RESET - DIR- EORC EOR1 EOR2 COM+ MA TCH- GND Shift SO Si Driver Monoflop Input Switch Clock Serial Data Par allel Data Photo Recei[...]

  • Página 311

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 6 - 29 6 Chapter 6 Communications Modules 6.2.12 ‘C’ Programming 6.2.12.1 SM-SSI Library The SM-SSI library of functions smartio.l provide a convenient way of accessing the SM-SSI module. • All functions are written in ANSI C; • Prototypes are to be found i[...]

  • Página 312

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 6- 30 Chapter 6 Communications Modules 6.2.12.2 SMSSIInit Syntax error_code SMSSIInit(u_int8 PortNr); Description This function initializes the SM-SSI Module on port PortNr , resetting and clearing the status of registers and allocating resource memory . Input u_int[...]

  • Página 313

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 6 - 31 6 Chapter 6 Communications Modules 6.2.12.3 SMSSIDeInit Syntax error_code SMSSIDeInit(u_int8 PortNr); Description This function deinitializes the SM-SSI Module on the port PortNr by freeing the resources tied up with this module. Input u_int8 PortNr SM-Port [...]

  • Página 314

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 6- 32 Chapter 6 Communications Modules 6.2.12.4 SMSSISetSetPoint Syntax error_code SMSSISetSetPoint(u_int8 PortNr, u_int32 Setpoint); Description This function copies the setpoint to an internal register which will only be sent to the SM-SSI when the function SMSSIS[...]

  • Página 315

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 6 - 33 6 Chapter 6 Communications Modules 6.2.12.5 SMSSISetCtrlReg Syntax error_code SMSSISetCtrlReg(u_int8 PortNr, long CtrlReg1, long CtrlReg2, long CtrlReg3, u_int32 *pData); Description This function sets the internal register images of all 3 parts of the 24-bi[...]

  • Página 316

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 6- 34 Chapter 6 Communications Modules 6.2.12.6 SMSSIGetStatus Syntax error_code SMSSIGetStatus(u_int8 PortNr, u_int8 *pStatus1, u_int8 *pStatus2); Description This function reads the status of the module selected on port Por tNr . Input u_int8 PortNr SM-Port number[...]

  • Página 317

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 6 - 35 6 Chapter 6 Communications Modules 6.2.12.7 SMSSIGetData Syntax error_code SMSSIGetData(u_int8 PortNr, u_int32 *pData); Description This function returns the absolute position data from the SM-SSI. If auto- matic mode is selected then a wait will not be perf[...]

  • Página 318

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 6- 36 Chapter 6 Communications Modules 6.2.13 ISaGRAF Programming 6.2.13.1 The ISaGRAF Board Parameters Because this module has not been defined as a physical board in the ISaGRAF project, it has been created as a function block as shown in figure 6.2.13.1.1. Figure[...]

  • Página 319

    SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH October 01, 1996 Page 6 - 37 6 Chapter 6 Communications Modules FB_SSI_READ In order that the current state of the encoder may be read, this command is issued - nor mally in a loop built into the ISaGRAF cycle. The read-back value appears in the position variable. As can be seen from fi[...]

  • Página 320

    SMAR T I/O User’ s Manual October 01, 1996 ©1996 PEP Modular Computers GmbH Page 6- 38 Chapter 6 Communications Modules This page has been left blank intentionally .[...]