Sensoray 2600 Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Hardware Sensoray 2600 herunter. Sensoray 2600 User Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 77
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
Model 2600 Family
Programming Guide
August 21, 2008
Sensoray Co., Inc.
7313 SW Tech Center Dr., Tigard, Oregon 97223
voice: 503.684.8005, fax: 503.684.8164, e-mail: [email protected]
www.sensoray.com
Seitenansicht 0
1 2 3 4 5 6 ... 76 77

Inhaltsverzeichnis

Seite 1 - Model 2600 Family

Model 2600 FamilyProgramming GuideAugust 21, 2008Sensoray Co., Inc.7313 SW Tech Center Dr., Tigard, Oregon 97223voice: 503.684.8005, fax: 503.684.8164

Seite 2 - Table of Contents

Sensoray 2600 Programming Guide 6 Initialization and Status Functionsby S26_DriverOpen(), however, the application should not call S26_DriverClose().

Seite 3

Sensoray 2600 Programming Guide 7 Initialization and Status Functionschar MMAdrs[] = "10.10.10.1";u32 errflags = S26_BoardOpen( 0, 0, MMAdrs

Seite 4

Sensoray 2600 Programming Guide 8 Initialization and Status FunctionsReturns: u32 value that indicates whether the reset operation was successful. Re

Seite 5 - Chapter 1: Introduction

Sensoray 2600 Programming Guide 9 Initialization and Status FunctionsPrototype: u32 S26_RegisterAllIoms(u32 hbd,u32 msec,u16 *nIoms, u16 *types, u8 *s

Seite 6 - Chapter 2: Installation

Sensoray 2600 Programming Guide 10 Initialization and Status Functions if ( ( faults = S26_BoardOpen( 0, 0, MMAdrs ) ) != 0 ) { //

Seite 7 - 3.3 Programming Examples

Sensoray 2600 Programming Guide 11 Initialization and Status Functions // // ... Do all I/O operations and run the application’s main function

Seite 8 - 3.5 Required Function Calls

Sensoray 2600 Programming Guide 12 TransactionsChapter 5: Transactions5.1 OverviewThe majority of middleware functions are associated with gateway a

Seite 9 - 4.1 Overview

Sensoray 2600 Programming Guide 13 Transactions5.2.1 Thread SafetyAll of the gateway transaction functions are thread safe, and it is permissible for

Seite 10 - 4.3.1 S26_BoardOpen()

Sensoray 2600 Programming Guide 14 TransactionsTransaction error codes have the following meanings:In the above table, the “Com” column indicates whet

Seite 11 - 4.4 Status and Control

Sensoray 2600 Programming Guide 15 Transactions5.5.1 Gateway Error PropagationWhen any gateway transaction error has been detected, construction of t

Seite 12 - 4.4.3 S26_RegisterAllIoms()

Sensoray 2600 Programming GuideiTable of ContentsTable of ContentsIntroduction1.1 Scope... 1

Seite 13 - 4.4.4 Programming Examples

Sensoray 2600 Programming Guide 16 Transactionspacket sizes, but also on how many other gateway transactions are already in progress. “Simultaneous”

Seite 14 - 4.4.4.2 Linux

Sensoray 2600 Programming Guide 17 Gateway Transaction ControlChapter 6: Gateway Transaction Control6.1 OverviewThe functions in this section are us

Seite 15

Sensoray 2600 Programming Guide 18 Gateway Transaction Controltime-out interval has elapsed, whichever occurs first. When it is received, the respons

Seite 16 - Chapter 5: Transactions

Sensoray 2600 Programming Guide 19 Gateway Transaction ControlPrototype: u32 S26_SchedExecuteStart( XACT x );Returns: Error code as described in secti

Seite 17 - 5.5 Errors

Sensoray 2600 Programming Guide 20 Gateway Transaction ControlPrototype: u32 S26_SchedExecuteFinish( XACT x, u8 *IomStatus );Returns: Error code as de

Seite 18 - 14 Transactions

Sensoray 2600 Programming Guide 21 Gateway Action SchedulingChapter 7: Gateway Action Scheduling7.1 OverviewThis chapter details all of the function

Seite 19 - 5.6 Time-outs

Sensoray 2600 Programming Guide 22 Gateway Action Scheduling u8 states; // Buffer that will receive SSR states. S

Seite 20 - 5.7 Retries

Sensoray 2600 Programming Guide 23 Gateway Action SchedulingReturns: Error code as described in section 5.5. Zero is returned if the operation was su

Seite 21 - 6.1 Overview

Sensoray 2600 Programming Guide 24 Gateway Action SchedulingReturns: Error code as described in section 5.5. Zero is returned if the operation was su

Seite 22

Sensoray 2600 Programming Guide 25 Gateway Action SchedulingPrototype: u32 S26_Sched2601_GetInterlocks( XACT x, u8 *LockFlags );Returns: Error code as

Seite 23 - 6.2.5 S26_SchedExecuteWait()

Sensoray 2600 Programming GuideiiTable of ContentsTable of Contents7.3 Model 2601 Gateway... 247.3.1 Type-Specific Error

Seite 24 - Parameter Type Description

Sensoray 2600 Programming Guide 26 Gateway Action Scheduling{ if ( flags & mask ) printf( "Module detected at IOM port %d\n",

Seite 25 - 7.1 Overview

Sensoray 2600 Programming Guide 27 Gateway Action Schedulingwill cause the corresponding channel to be programmed for the 100 millivolt measurement ra

Seite 26 - 7.2 Common IOM Actions

Sensoray 2600 Programming Guide 28 Gateway Action SchedulingPrototype: u32 S26_Sched2608_SetTempUnits( XACT x, IOMPORT IomPort, int DegreesF );Returns

Seite 27 - 23 Gateway Action Scheduling

Sensoray 2600 Programming Guide 29 Gateway Action Schedulingvoid *x = S26_SchedOpen( 0, 1 );S26_Sched2608_GetCalData( x, 1, 0 );S26_Sched2608_GetAins(

Seite 28 - 7.3 Model 2601 Gateway

Sensoray 2600 Programming Guide 30 Gateway Action SchedulingExample: // Get the analog output channel 2 setpoint from the 2608 at MM number 0, IOM por

Seite 29 - 25 Gateway Action Scheduling

Sensoray 2600 Programming Guide 31 Gateway Action SchedulingReturns: Error code as described in section 5.5. Zero is returned if the operation was su

Seite 30 - 7.4 Model 2608 Analog IOM

Sensoray 2600 Programming Guide 32 Gateway Action SchedulingPrototype: u32 S26_Sched2608_SetAout( XACT x, IOMPORT IomPort, u8 chan, double volts );Ret

Seite 31 - 27 Gateway Action Scheduling

Sensoray 2600 Programming Guide 33 Gateway Action SchedulingReturns: Error code as described in section 5.5. Zero is returned if the operation was s

Seite 32 - 28 Gateway Action Scheduling

Sensoray 2600 Programming Guide 34 Gateway Action Scheduling7.5.3 S26_Sched2610_GetModes()Function: Schedules the fetching of the operating modes for

Seite 33 - 29 Gateway Action Scheduling

Sensoray 2600 Programming Guide 35 Gateway Action SchedulingPrototype: u32 S26_Sched2610_GetOutputs( XACT x, IOMPORT IomPort, u8 *states );Returns: Er

Seite 34 - 30 Gateway Action Scheduling

Sensoray 2600 Programming GuideiiiTable of ContentsTable of Contents7.10 Model 2653 Solid-State Relay IOM... 597.10.1 Type-Specific Errors...

Seite 35 - 31 Gateway Action Scheduling

Sensoray 2600 Programming Guide 36 Gateway Action SchedulingPrototype: u32 S26_Sched2610_SetModes( XACT x, IOMPORT IomPort, u8 *modes );Returns: Error

Seite 36 - 32 Gateway Action Scheduling

Sensoray 2600 Programming Guide 37 Gateway Action SchedulingPrototype: u32 S26_Sched2610_SetOutputs( XACT x, IOMPORT IomPort, u8 *states );Returns: Er

Seite 37 - 7.5 Model 2610 Digital IOM

Sensoray 2600 Programming Guide 38 Gateway Action Scheduling7.6.1 Type-Specific ErrorsIn addition to the common IOM status bit flags (STATUS_RST and

Seite 38 - 34 Gateway Action Scheduling

Sensoray 2600 Programming Guide 39 Gateway Action SchedulingBenchmark: 0.8 ms.Notes: This function, as well as S26_Sched2612_SetVoltages(), should be

Seite 39 - 35 Gateway Action Scheduling

Sensoray 2600 Programming Guide 40 Gateway Action SchedulingPrototype: u32 S26_Sched2612_GetValues( XACT x, IOMPORT IomPort, s32 *values, u8 *tstamp )

Seite 40 - 36 Gateway Action Scheduling

Sensoray 2600 Programming Guide 41 Gateway Action SchedulingPrototype: u32 S26_2612_RegisterZero( u32 hbd, IOMPORT IomPort, u32 msec, u8 chan, u32 nsm

Seite 41 - 7.6 Model 2612 Analog IOM

Sensoray 2600 Programming Guide 42 Gateway Action SchedulingA gauge load parameter, load, must be specified when this function is called. This value r

Seite 42 - 38 Gateway Action Scheduling

Sensoray 2600 Programming Guide 43 Gateway Action SchedulingBenchmark: << 0.1 ms (no network transactions used).Notes: This function converts th

Seite 43 - 39 Gateway Action Scheduling

Sensoray 2600 Programming Guide 44 Gateway Action SchedulingNotes: This function returns the scale calibration parameter from a previously calibrated

Seite 44 - 40 Gateway Action Scheduling

Sensoray 2600 Programming Guide 45 Gateway Action Schedulingmiddleware has been closed and reopened, this function can be called to restore the calibr

Seite 45 - 41 Gateway Action Scheduling

Sensoray 2600 Programming Guide 1 IntroductionChapter 1: Introduction1.1 ScopeThis document describes the contents and use of the distribution media

Seite 46 - 42 Gateway Action Scheduling

Sensoray 2600 Programming Guide 46 Gateway Action SchedulingExample: // Restore calibrations on the 2612 at MM number 0, IOM port 10, channel 2. S26_2

Seite 47 - 43 Gateway Action Scheduling

Sensoray 2600 Programming Guide 47 Gateway Action SchedulingPrototype: u32 S26_Sched2620_GetStatus( XACT x, IOMPORT IomPort, u8 chan, u16 *status );Th

Seite 48 - 44 Gateway Action Scheduling

Sensoray 2600 Programming Guide 48 Gateway Action Schedulingdone, however, if you have configured a channel so that it’s core is automatically transfe

Seite 49 - 45 Gateway Action Scheduling

Sensoray 2600 Programming Guide 49 Gateway Action SchedulingReturns: Error code as described in section 5.5. Zero is returned if the operation was su

Seite 50 - 7.7 Model 2620 Counter IOM

Sensoray 2600 Programming Guide 50 Gateway Action SchedulingExample: // Configure counter 3 as a frequency counter on the 2620 at MM number 0, IOM por

Seite 51 - 47 Gateway Action Scheduling

Sensoray 2600 Programming Guide 51 Gateway Action SchedulingExample: // Configure counter 3 as a pulse generator on the 2620 at MM number 0, IOM port

Seite 52 - 48 Gateway Action Scheduling

Sensoray 2600 Programming Guide 52 Gateway Action SchedulingPulse width and gap times are determined by the values stored in the Preload registers. P

Seite 53 - 49 Gateway Action Scheduling

Sensoray 2600 Programming Guide 53 Gateway Action SchedulingThe mode value is a collection of bit flags:Returns: Error code as described in section 5.

Seite 54 - 50 Gateway Action Scheduling

Sensoray 2600 Programming Guide 54 Gateway Action Scheduling7.7.13 S26_Sched2620_SetPreload()Function: Schedules the programming of a preload registe

Seite 55 - 51 Gateway Action Scheduling

Sensoray 2600 Programming Guide 55 Gateway Action SchedulingReturns: Error code as described in section 5.5. Zero is returned if the operation was su

Seite 56 - 52 Gateway Action Scheduling

Sensoray 2600 Programming Guide 2 InstallationChapter 2: Installation2.1 Executable Software ComponentsBecause the middleware is dependent on a netw

Seite 57 - 53 Gateway Action Scheduling

Sensoray 2600 Programming Guide 56 Gateway Action SchedulingExample: // Program all relay driver states on the 2650 at MM number 0, IOM port 9.u8 stat

Seite 58 - 7.8 Model 2650 Relay IOM

Sensoray 2600 Programming Guide 57 Gateway Action SchedulingPrototype: u32 S26_Sched2652_GetModes( XACT x, IOMPORT IomPort, u8 *modes );Returns: Error

Seite 59 - 55 Gateway Action Scheduling

Sensoray 2600 Programming Guide 58 Gateway Action SchedulingReturns: Error code as described in section 5.5. Zero is returned if the operation was su

Seite 60 - 56 Gateway Action Scheduling

Sensoray 2600 Programming Guide 59 Gateway Action SchedulingReturns: Error code as described in section 5.5. Zero is returned if the operation was su

Seite 61 - 57 Gateway Action Scheduling

Sensoray 2600 Programming Guide 60 Gateway Action SchedulingPrototype: u32 S26_Sched2653_GetInputs( XACT x, IOMPORT IomPort, u8 *states );Returns: Err

Seite 62 - 58 Gateway Action Scheduling

Sensoray 2600 Programming Guide 61 Gateway Action SchedulingPrototype: u32 S26_Sched2653_GetOutputs( XACT x, IOMPORT IomPort, u8 *states );Returns: Er

Seite 63 - 59 Gateway Action Scheduling

Sensoray 2600 Programming Guide 62 Gateway Action SchedulingPrototype: u32 S26_Sched2653_SetModes( XACT x, IOMPORT IomPort, u8 *modes );Returns: Error

Seite 64 - 60 Gateway Action Scheduling

Sensoray 2600 Programming Guide 63 Gateway Action SchedulingReturns: Error code as described in section 5.5. Zero is returned if the operation was su

Seite 65 - 61 Gateway Action Scheduling

Sensoray 2600 Programming Guide 64 Comport Transaction FunctionsChapter 8: Comport Transaction Functions8.1 OverviewThis section describes the middl

Seite 66 - 62 Gateway Action Scheduling

Sensoray 2600 Programming Guide 65 Comport Transaction FunctionsPrototype: u32 S26_ComSetMode(u32 hbd,u8 dev,u16 cdiv,u8 mode,u8 leds,u32 msec,u32 ret

Seite 67 - 63 Gateway Action Scheduling

Sensoray 2600 Programming Guide 3 Fundamentals of UsageChapter 3: Fundamentals of Usage3.1 Board Addressing3.1.1 MM HandlesEach Model 2601 board—wh

Seite 68 - 8.2 Configuration

Sensoray 2600 Programming Guide 66 Comport Transaction FunctionsReturns: Error/status value, as described in section 8.1.1.Notes: Following a MM reset

Seite 69

Sensoray 2600 Programming Guide 67 Comport Transaction Functionscondition is detected on the comport’s receive line. The break character may be set t

Seite 70 - 8.2.2 S26_ComSetBreakChar()

Sensoray 2600 Programming Guide 68 Comport Transaction FunctionsPrototype: u32 S26_ComClose( HMM hbd, u8 LogDev, u32 msec, u32 retries );Returns: Erro

Seite 71 - 8.2.4 S26_ComClose()

Sensoray 2600 Programming Guide 69 Comport Transaction FunctionsExample: // Send an ASCII string to COM1 on MM number 0. Note that the message size//

Seite 72 - 8.3 Communication

Sensoray 2600 Programming Guide 70 Comport Transaction Functions RcvBuf[BufLen] = 0; // Append null to end of string. printf( "%s

Seite 73 - 8.3.2 S26_ComReceive()

Sensoray 2600 Programming Guide 71 Comport Transaction Functionsif ( errstat & GWERRMASK ) printf( "COM1 error detected.\n" );else if

Seite 74 - 8.3.4 S26_ComGetTxCount()

Sensoray 2600 Programming Guide 72 Comport Transaction Functions8.4.3 S26_ComClearFlags()Function: Resets all error flags belonging to a comport.Prot

Seite 75 - 8.4 Control

Sensoray 2600 Programming Guide 73 Comport Transaction Functions // Received a bad character, so we must flush the receive buffer. printf( "

Seite 76 - 8.4.4 S26_ComFlush()

Sensoray 2600 Programming Guide 4 Fundamentals of Usage3.3.1 Data TypesData values passed to or received from library functions belong to a small set

Seite 77

Sensoray 2600 Programming Guide 5 Initialization and Status FunctionsChapter 4: Initialization and Status Functions4.1 OverviewThe functions describ

Kommentare zu diesen Handbüchern

Keine Kommentare