Go to page of
A good user manual
The rules should oblige the seller to give the purchaser an operating instrucion of Pepper Computer RS232, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.
What is an instruction?
The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of Pepper Computer RS232 one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.
Unfortunately, only a few customers devote their time to read an instruction of Pepper Computer RS232. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.
What should a perfect user manual contain?
First and foremost, an user manual of Pepper Computer RS232 should contain:
- informations concerning technical data of Pepper Computer RS232
- name of the manufacturer and a year of construction of the Pepper Computer RS232 item
- rules of operation, control and maintenance of the Pepper Computer RS232 item
- safety signs and mark certificates which confirm compatibility with appropriate standards
Why don't we read the manuals?
Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of Pepper Computer RS232 alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of Pepper Computer RS232, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the Pepper Computer service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of Pepper Computer RS232.
Why one should read the manuals?
It is mostly in the manuals where we will find the details concerning construction and possibility of the Pepper Computer RS232 item, and its use of respective accessory, as well as information concerning all the functions and facilities.
After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.
Table of contents for the manual
-
Page 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[...]
-
Page 2
This page was intenti onally left blank.[...]
-
Page 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 ...[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 ..........[...]
-
Page 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 .[...]
-
Page 12
This page was intenti onally left blank.[...]
-
Page 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 ...............................................[...]
-
Page 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 .[...]
-
Page 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[...]
-
Page 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[...]
-
Page 17
SMAR T I/O User ’ s Manual ©1996 PEP Modular Computers GmbH March 12, 1996 Page 1 - 5 Introduction 1 Optional Bracket Mounting[...]
-
Page 18
SMAR T I/O User’ s Manual March 12, 1996 ©1996 PEP Modular Computers GmbH Page 1 - 6 Introduction[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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)[...]
-
Page 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 [...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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.[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 • [...]
-
Page 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[...]
-
Page 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 .[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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 .[...]
-
Page 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 .......................................[...]
-
Page 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 ............................[...]
-
Page 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[...]
-
Page 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 ([...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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/[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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>[...]
-
Page 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 .......................................[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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 .[...]
-
Page 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[...]
-
Page 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 ........... .............. .............. ...[...]
-
Page 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 ...... .........[...]
-
Page 92
This page was intenti onally left blank.[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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_[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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-[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 .[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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 + -[...]
-
Page 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[...]
-
Page 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([...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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 [...]
-
Page 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-[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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- [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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?[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 ..........................................[...]
-
Page 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 [...]
-
Page 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 ........................[...]
-
Page 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 ...............................[...]
-
Page 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 .[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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. [...]
-
Page 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([...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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_[...]
-
Page 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 [...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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/[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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-[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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 .[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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-[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 .[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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-[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 ..........................................[...]
-
Page 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[...]
-
Page 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 .[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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=[...]
-
Page 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 .[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 [...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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[...]
-
Page 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 .[...]