Sensoray 2410 API Bedienungsanleitung

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

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 39
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 0
1 2 3 4 5 6 ... 38 39

Inhaltsverzeichnis

Seite 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

Seite 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

Seite 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

Seite 4

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

Seite 5 - Chapter 1: Introduction

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

Seite 6 - Chapter 2: Installation

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

Seite 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

Seite 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

Seite 9 - 4.3 Errors

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 16 - 5.6 Timestamp Functions

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 23 - 6.4.3 s2410_AsyncCapBegin()

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

Seite 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

Seite 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

Seite 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

Seite 27

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 34 - 7.4 Encoder Functions

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

Seite 35

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

Seite 36 - 7.5 Comport Functions

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

Seite 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

Seite 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

Seite 39 - 7.5.5 s2426_ComportIoctl()

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

Kommentare zu diesen Handbüchern

Keine Kommentare