Sensoray 2600 Uživatelský manuál

Procházejte online nebo si stáhněte Uživatelský manuál pro Hardware Sensoray 2600. Sensoray 2600 User Manual Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 77
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 0
1 2 3 4 5 6 ... 76 77

Shrnutí obsahu

Strany 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

Strany 2 - Table of Contents

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

Strany 3

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

Strany 4

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

Strany 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

Strany 6 - Chapter 2: Installation

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 12 - 4.4.3 S26_RegisterAllIoms()

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

Strany 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”

Strany 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

Strany 15

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

Strany 16 - Chapter 5: Transactions

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

Strany 17 - 5.5 Errors

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

Strany 18 - 14 Transactions

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

Strany 19 - 5.6 Time-outs

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

Strany 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

Strany 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

Strany 22

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

Strany 23 - 6.2.5 S26_SchedExecuteWait()

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

Strany 24 - Parameter Type Description

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

Strany 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

Strany 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

Strany 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(

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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...

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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 )

Strany 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

Strany 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

Strany 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

Strany 43 - 39 Gateway Action Scheduling

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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.

Strany 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

Strany 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

Strany 56 - 52 Gateway Action Scheduling

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 65 - 61 Gateway Action Scheduling

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

Strany 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

Strany 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

Strany 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

Strany 69

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

Strany 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

Strany 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//

Strany 72 - 8.3 Communication

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

Strany 73 - 8.3.2 S26_ComReceive()

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

Strany 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

Strany 75 - 8.4 Control

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

Strany 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

Strany 77

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

Komentáře k této Příručce

Žádné komentáře