Sensoray 2410 API Manual do Utilizador Página 1

Consulte online ou descarregue Manual do Utilizador para Hardware Sensoray 2410 API. Sensoray 2410 API User Manual Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 39
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 0
SENSORAY | p. 503.684.8005 | email: info@SENSORAY.com | www.SENSORAY.com
7313 SW Tech Center Drive | Portland, OR 97223
Designed and manufactured in the U.S.A.
Ethernet Industrial I/O Modules
API and Programming Guide
Model 24xx Family | Rev.A | August 2010
Vista de página 0
1 2 3 4 5 6 ... 38 39

Resumo do Conteúdo

Página 1 - API and Programming Guide

SENSORAY | p. 503.684.8005 | email: [email protected] | www.SENSORAY.com7313 SW Tech Center Drive | Portland, OR 97223Designed and manufactured in th

Página 2

Sensoray 24xx Programming Guide6Sessions and Transactionsend of a sequence of transactions, but only if it doesn’t need to know exactly where in the s

Página 3 - Table of Contents

Sensoray 24xx Programming Guide7Sessions and TransactionsERR_TIMEOUTTimed out waiting for a reply from the I/O module.Non-fatal (recoverable) Run-time

Página 4

Sensoray 24xx Programming Guide8Module-Independent FunctionsChapter 5: Module-Independent Functions5.1 OverviewThe API functions discussed in this c

Página 5 - Chapter 1: Introduction

Sensoray 24xx Programming Guide9Module-Independent Functions5.3 Session Initialization and Shutdown5.3.1 s24xx_SessionOpen()Function: Open a communi

Página 6 - Chapter 2: Installation

Sensoray 24xx Programming Guide10Module-Independent Functions5.4 Error Functions5.4.1 s24xx_ErrorText()Function: Return an error description string.

Página 7 - Chapter 3: Fundamentals

Sensoray 24xx Programming Guide11Module-Independent Functions5.5 Status and Control5.5.1 s24xx_SetTimeout()Function: Configure a session’s network w

Página 8 - 3.3 Required Function Calls

Sensoray 24xx Programming Guide12Module-Independent Functionsu32 err = ERR_NONE;if ( !s24xx_ResetIo( sess, &err ) ) printf( "Error: %s\n&q

Página 9 - 4.3 Errors

Sensoray 24xx Programming Guide13Module-Independent Functions5.6.2 s24xx_WriteTimestamp()Function: Set module’s system time.Prototype:BOOL s24xx_Writ

Página 10 - 4.3.3 Error Codes

Sensoray 24xx Programming Guide14Model 2410 Digital I/O ModuleChapter 6: Model 2410 Digital I/O Module6.1 OverviewThe API functions in this chapter

Página 11 - Symbolic Name Description

Sensoray 24xx Programming Guide15Model 2410 Digital I/O Module6.2.2 s2410_ReadDin()Function: Read the debounced physical states of all DIO channels.P

Página 13 - 5.3.2 s24xx_SessionClose()

Sensoray 24xx Programming Guide16Model 2410 Digital I/O Moduleif ( !s2410_ReadDout( sess, &err, states ) ) printf( "Error: %s\n", s24

Página 14 - 5.4 Error Functions

Sensoray 24xx Programming Guide17Model 2410 Digital I/O Module6.2.6 s2410_WritePwm()Function: Program the PWM ratio for one DIO channel.Prototype:BOO

Página 15 - 5.5 Status and Control

Sensoray 24xx Programming Guide18Model 2410 Digital I/O ModuleExample:// Set LED brightness to 1 (dim, but visible).u32 err = ERR_NONE;if ( !s2410_Set

Página 16 - 5.6 Timestamp Functions

Sensoray 24xx Programming Guide19Model 2410 Digital I/O Moduleu16 flags[3];if ( !s2410_ReadCapFlags( sess, &err, flags ) ) printf( "Error:

Página 17 - 5.6.2 s24xx_WriteTimestamp()

Sensoray 24xx Programming Guide20Model 2410 Digital I/O ModuleDepending on the message type, additional information may be passed to the callback thro

Página 18 - 6.2 Digital I/O Functions

Sensoray 24xx Programming Guide21Model 2410 Digital I/O Module case CAPMSG_ONESHOT: printf( "one-shot cap enabled: %04x %04x %04x\n&quo

Página 19 - 6.2.3 s2410_ReadDout()

Sensoray 24xx Programming Guide22Model 2410 Digital I/O Module6.4.5 s2410_WriteCapPolarity()Function: Select the polarities of events to be captured

Página 20 - 6.2.5 s2410_SetDoutMode()

Sensoray 24xx Programming Guide23Model 2410 Digital I/O ModuleExample:// Enable continuous capture on channels 0, 1, and 47.u32 err = ERR_NONE;u16 fla

Página 21 - 6.3 Utility Functions

Sensoray 24xx Programming Guide24Model 2410 Digital I/O ModuleNotes: This function disables event capturing on an arbitrary set of digital input chann

Página 22 - 6.4 Event Capture Functions

Sensoray 24xx Programming Guide25Model 2426 Multi-Function I/O ModuleChapter 7: Model 2426 Multi-Function I/O Module7.1 OverviewThe API functions in

Página 23 - 6.4.3 s2410_AsyncCapBegin()

Sensoray 24xx Programming GuideiTable of ContentsTable of ContentsIntroduction1.1 Scope ...

Página 24 - Message Type Code Description

Sensoray 24xx Programming Guide26Model 2426 Multi-Function I/O Module7.2.2 s2426_ReadDin()Function: Read the debounced physical states of the eight d

Página 25 - 6.4.4 s2410_AsyncCapEnd()

Sensoray 24xx Programming Guide27Model 2426 Multi-Function I/O Module7.2.4 s2426_SetDoutMode()Function: Program the operating mode of one digital out

Página 26 - Argument Description

Sensoray 24xx Programming Guide28Model 2426 Multi-Function I/O Module7.2.6 s2426_WritePwm()Function: Program the PWM ratio for one digital output cha

Página 27

Sensoray 24xx Programming Guide29Model 2426 Multi-Function I/O Module7.3.2 s2426_ReadAout()Function: Read the programmed analog output level.Prototyp

Página 28 - 6.4.9 s2410_WriteCapTimer()

Sensoray 24xx Programming Guide30Model 2426 Multi-Function I/O Module7.4 Encoder Functions7.4.1 s2426_ReadEncoderCounts()Function: Read the encoder

Página 29 - 7.2 Digital I/O Functions

Sensoray 24xx Programming Guide31Model 2426 Multi-Function I/O ModuleExample:// Set count rate to 4x the encoder frequency, with no preload upon index

Página 30 - 7.2.3 s2426_ReadDout()

Sensoray 24xx Programming Guide32Model 2426 Multi-Function I/O Module7.5 Comport Functions7.5.1 s2426_ComportOpen()Function: Configure the comport a

Página 31 - 7.2.5 s2426_WriteDout()

Sensoray 24xx Programming Guide33Model 2426 Multi-Function I/O Module7.5.3 s2426_ComportRead()Function: Fetch data and line state events from the com

Página 32 - 7.3 Analog I/O Functions

Sensoray 24xx Programming Guide34Model 2426 Multi-Function I/O Module7.5.4 s2426_ComportWrite()Function: Enqueue data for transmission on the comport

Página 33 - 7.3.3 s2426_ReadAdc()

Sensoray 24xx Programming Guide35Model 2426 Multi-Function I/O Module7.5.5 s2426_ComportIoctl()Function: Execute an I/O control operation on the comp

Página 34 - 7.4 Encoder Functions

Sensoray 24xx Programming GuideiiTable of ContentsTable of Contents7.3 Analog I/O Functions ... 287.3.1 s2426_WriteAout()

Página 35

Sensoray 24xx Programming Guide1IntroductionChapter 1: Introduction1.1 ScopeThis document describes the application programming interface (API) for

Página 36 - 7.5 Comport Functions

Sensoray 24xx Programming Guide2InstallationChapter 2: Installation2.1 Executable Software ComponentsThe middleware is dependent on a network API, s

Página 37 - 7.5.3 s2426_ComportRead()

Sensoray 24xx Programming Guide3FundamentalsChapter 3: Fundamentals3.1 Board Addressing3.1.1 Board HandlesEvery Model 24xx I/O module is assigned a

Página 38 - 7.5.4 s2426_ComportWrite()

Sensoray 24xx Programming Guide4Fundamentalsaddress you chose earlier. If necessary, also enter a new netmask and gateway address. Click the Submit bu

Página 39 - 7.5.5 s2426_ComportIoctl()

Sensoray 24xx Programming Guide5Sessions and TransactionsChapter 4: Sessions and Transactions4.1 OverviewMost API functions involve transactions bet

Comentários a estes Manuais

Sem comentários