Rockwell-automation 2711P Software Development Kit User Manual Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Équipement Rockwell-automation 2711P Software Development Kit User Manual. Rockwell Automation 2711P Software Development Kit User Manual User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 104
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs

Résumé du contenu

Page 1 - Development Kit

Software Development Kit2711PUser Manual

Page 2 - Important User Information

Publication 2711P-UM005A-EN-P - March 200710 Introduction to the PanelView Plus CE TerminalCPUThe system processor is an Intel mlCP 650MHz, ult

Page 3 - Table of Contents

Publication 2711P-UM005A-EN-P - March 2007100 Messages

Page 4 - 4 Table of Contents

Publication 2711P-UM005A-EN-P - March 2007IndexCc++ name mangling 98Ddeveloping CE drivers and applications 29Eerror codes 99exception debug messages

Page 5 - Messages

Publication 2711P-UM005A-EN-P - March 20072 Index

Page 7 - Manual Conventions

Publication 2711P-UM005A-EN-P - March 2007 2Supersedes Publication 6182H-UM002B-EN-P - November 2003 Copyright © 2007 Rockwell Automation, Inc. All ri

Page 8 - Additional Resources

Publication 2711P-UM005A-EN-P - March 2007Introduction to the PanelView Plus CE Terminal 11The external CF connector is controlled by a PCMCIA

Page 9 - Terminal

Publication 2711P-UM005A-EN-P - March 200712 Introduction to the PanelView Plus CE TerminalInput/OutputAn INTEL 82801BA I/O CONTROLLER HUB (ICH

Page 10 - Memory Devices

Publication 2711P-UM005A-EN-P - March 2007Introduction to the PanelView Plus CE Terminal 13PCI The PanelView Plus CE device uses a PCI bus for

Page 11 - Boot ROM

Publication 2711P-UM005A-EN-P - March 200714 Introduction to the PanelView Plus CE TerminalATMEL MicrocontrollerAn Atmel 8-bit microcontroller

Page 12 - Input/Output

Publication 2711P-UM005A-EN-P - March 2007Introduction to the PanelView Plus CE Terminal 15Touch ScreenAn integral, resistive analog touch scre

Page 13 - Real-time Clock

Publication 2711P-UM005A-EN-P - March 200716 Introduction to the PanelView Plus CE Terminal• PanelView Plus CE components are a collection of a

Page 14 - ATMEL Microcontroller

Publication 2711P-UM005A-EN-P - March 2007Introduction to the PanelView Plus CE Terminal 17Default Registry that was extracted from the OS is u

Page 15 - Software Architecture

Publication 2711P-UM005A-EN-P - March 200718 Introduction to the PanelView Plus CE TerminalRestoring the Default RegistryThere are times when i

Page 16 - Boot and Startup Sequence

Publication 2711P-UM005A-EN-P - March 2007Introduction to the PanelView Plus CE Terminal 19When the device is started in Safe Mode, the backgro

Page 17 - The Windows CE Registry

Important User InformationSolid state equipment has operational characteristics differing from those of electromechanical equipment. Safety Guidelines

Page 18 - Registry Flushing

Publication 2711P-UM005A-EN-P - March 200720 Introduction to the PanelView Plus CE TerminalThe startup process copies all folders and their con

Page 19 - File Systems

Publication 2711P-UM005A-EN-P - March 2007Introduction to the PanelView Plus CE Terminal 21The Display Module keypad is supported by two separa

Page 20 - Input Devices

Publication 2711P-UM005A-EN-P - March 200722 Introduction to the PanelView Plus CE Terminal• Support for assignment of special functions to key

Page 21 - Keypad Driver

Publication 2711P-UM005A-EN-P - March 2007Introduction to the PanelView Plus CE Terminal 23Keypad HandlerThe Rockwell Automation supplied keypa

Page 22

Publication 2711P-UM005A-EN-P - March 200724 Introduction to the PanelView Plus CE TerminalRegistry keys used by KHSTUB.EXEThe operating system

Page 23 - Keypad Handler

Publication 2711P-UM005A-EN-P - March 2007Introduction to the PanelView Plus CE Terminal 25allows for interchange of Display Module without rep

Page 24 - Display Module EEPROM

Publication 2711P-UM005A-EN-P - March 200726 Introduction to the PanelView Plus CE Terminalvalue of the registry key \HKLM\Loader\SystemPath. N

Page 25 - Run Time Environment

Publication 2711P-UM005A-EN-P - March 2007Introduction to the PanelView Plus CE Terminal 27Process PrioritiesAll executable files start in user

Page 26

Publication 2711P-UM005A-EN-P - March 200728 Introduction to the PanelView Plus CE Terminal

Page 27 - Process Priorities

29 Publication 2711P-UM005A-EN-P - March 2007Chapter 2Developing CE Applications Overview This chapter covers topics on developing CE applications fo

Page 28

3 Publication 2711P-UM005A-EN-P - March 2007Table of ContentsPrefaceUsing this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 29 - Developing CE Applications

Publication 2711P-UM005A-EN-P - March 200730 Developing CE ApplicationsInstalling the ApplicationOnce the user has obtained an installation pac

Page 30 - Application Upgrades

Publication 2711P-UM005A-EN-P - March 2007Developing CE Applications 31Persistency ConsiderationsInstallation of a new application program on t

Page 31 - Set up the Development

Publication 2711P-UM005A-EN-P - March 200732 Developing CE Applications2. Install Microsoft embedded Visual C++ 4.0 software. This is the devel

Page 32

33 Publication 2711P-UM005A-EN-P - March 2007Chapter 3PanelView Plus CE SDK OverviewThe PanelView Plus CE SDK provides developers with access to an e

Page 33 - PanelView Plus CE SDK

Publication 2711P-UM005A-EN-P - March 200734 PanelView Plus CE SDKVisual Basic .NETMicrosoft Visual Studio .NET 2003 is the PC development envi

Page 34 - Visual Basic .NET

35 Publication 2711P-UM005A-EN-P - March 2007Chapter 4PanelView Plus CE-Specific Extensions to the WinCE APIOverviewThis chapter covers these topics:•

Page 35 - WinCE API

Publication 2711P-UM005A-EN-P - March 200736 PanelView Plus CE-Specific Extensions to the WinCE APIHardware WatchdogWatchdog_TagThe function co

Page 36 - Hardware Watchdog

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 37Requirements: Software WatchdogThese functio

Page 37 - Software Watchdog

Publication 2711P-UM005A-EN-P - March 200738 PanelView Plus CE-Specific Extensions to the WinCE APIdwTimeoutTimeout in milliseconds. This param

Page 38

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 39Return Values: Remarks: The function Watchdo

Page 39 - Remarks:

Publication 2711P-UM005A-EN-P - March 20074 Table of ContentsSystem Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 40 - Requirements:

Publication 2711P-UM005A-EN-P - March 200740 PanelView Plus CE-Specific Extensions to the WinCE APIIf the value of dwTimeout is within the rang

Page 41 - Watchdog_SW_Tag

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 41Watchdog_SW_TagThis function tags the softwa

Page 42 - System Parameters

Publication 2711P-UM005A-EN-P - March 200742 PanelView Plus CE-Specific Extensions to the WinCE APISystem ParametersThe system maintains inform

Page 43

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 43Remarks:The functions use a model that is si

Page 44

Publication 2711P-UM005A-EN-P - March 200744 PanelView Plus CE-Specific Extensions to the WinCE API• RM_PARAMETER_BACKLIGHT_STATUSThis paramete

Page 45 - Parameters:

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 45• RM_PARAMETER_BOARD_REVISIONThis parameter

Page 46

Publication 2711P-UM005A-EN-P - March 200746 PanelView Plus CE-Specific Extensions to the WinCE APIReturn Values: Remarks: The buffer at *pvDat

Page 47 - System Timers

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 47pdwSizeA pointer to a caller allocated DWORD

Page 48 - UserTimerGetNumberOfTimers

Publication 2711P-UM005A-EN-P - March 200748 PanelView Plus CE-Specific Extensions to the WinCE APIA timer number identifies a specific timer.

Page 49 - UserTimerClaim

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 49Requirements: UserTimerClaimThis function is

Page 50 - UserTimerRequestFrequency

Publication 2711P-UM005A-EN-P - March 2007Table of Contents 5Chapter 5Device DriversOverview . . . . . . . . . . . . . . . . . . . . . . . . .

Page 51

Publication 2711P-UM005A-EN-P - March 200750 PanelView Plus CE-Specific Extensions to the WinCE APIRemarks: A timer must be claimed for any oth

Page 52 - UserTimerGetWaitEvent

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 51pdwFrequencyPointer to an application alloca

Page 53 - UserTimerSet

Publication 2711P-UM005A-EN-P - March 200752 PanelView Plus CE-Specific Extensions to the WinCE APIUserTimerGetWaitEventThis function registers

Page 54 - UserTimerSetEx

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 53Calling this API a second time with the same

Page 55

Publication 2711P-UM005A-EN-P - March 200754 PanelView Plus CE-Specific Extensions to the WinCE APIReturn Values: Remarks: This function provid

Page 56 - UserTimerGetValue

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 55Parameters: dwTimerNumberThe Timer Number is

Page 57 - UserTimerStop

Publication 2711P-UM005A-EN-P - March 200756 PanelView Plus CE-Specific Extensions to the WinCE APIUserTimerGetValueThis function gets the coun

Page 58 - Hardware Monitor

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 57Requirements: UserTimerStopThis function sto

Page 59 - Hardware Monitor Functions

Publication 2711P-UM005A-EN-P - March 200758 PanelView Plus CE-Specific Extensions to the WinCE APIRequirements: Hardware MonitorThe PanelView

Page 60

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 59Hardware Monitor FunctionsThese functions pe

Page 61

Publication 2711P-UM005A-EN-P - March 20076 Table of Contents

Page 62

Publication 2711P-UM005A-EN-P - March 200760 PanelView Plus CE-Specific Extensions to the WinCE APINote that registering a warning event will n

Page 63

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 61Remarks: This function unregisters and frees

Page 64

Publication 2711P-UM005A-EN-P - March 200762 PanelView Plus CE-Specific Extensions to the WinCE APIRemarks: This function returns a bit wise Or

Page 65

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 63Remarks: Note that monitor parameters will v

Page 66

Publication 2711P-UM005A-EN-P - March 200764 PanelView Plus CE-Specific Extensions to the WinCE APIlfLowerWarningLevelDouble precision floating

Page 67

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 65hm_GetMonitorWarningLevelsThis function gets

Page 68

Publication 2711P-UM005A-EN-P - March 200766 PanelView Plus CE-Specific Extensions to the WinCE APIThe monitor level specified in lfUpperWarnin

Page 69 - Keypad Overview

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 67Remarks: This function performs a reboot of

Page 70

Publication 2711P-UM005A-EN-P - March 200768 PanelView Plus CE-Specific Extensions to the WinCE APIReturn Values: Remarks: The watchdog registe

Page 71

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 69KeypadThese functions support front panel co

Page 72

7 Publication 2711P-UM005A-EN-P - March 2007PrefaceUsing this ManualRead this preface to familiarize yourself with the rest of the manual. The prefac

Page 73 - System Event Log

Publication 2711P-UM005A-EN-P - March 200770 PanelView Plus CE-Specific Extensions to the WinCE APIKeypad Driver/Handler OverviewThe keypad dri

Page 74 - Log New Event

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 71• IOCTL_KPD_SET_TYPEMATIC_PARAMSThis sets th

Page 75 - Clear Event Log

Publication 2711P-UM005A-EN-P - March 200772 PanelView Plus CE-Specific Extensions to the WinCE APIRequirements: Registry Keys for Keypad Drive

Page 76 - Get Last Event

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 73• [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Keypad

Page 77 - Get First Event

Publication 2711P-UM005A-EN-P - March 200774 PanelView Plus CE-Specific Extensions to the WinCE APIMembersnIndexThe record index.nType Event Ty

Page 78 - Get Next Event

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 75Remarks: The Event is written to the system

Page 79

Publication 2711P-UM005A-EN-P - March 200776 PanelView Plus CE-Specific Extensions to the WinCE APIGet Last EventThis function reads the last o

Page 80 - Plus CE Mechanisms

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 77Get First EventThis function reads the first

Page 81 - Lock Pages

Publication 2711P-UM005A-EN-P - March 200778 PanelView Plus CE-Specific Extensions to the WinCE APIGet Next EventThis function reads the “next”

Page 82 - SetSystemMemoryDivision

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 79Return Values: Remarks: This first time GetN

Page 83

Publication 2711P-UM005A-EN-P - March 20078 Additional ResourcesFor additional information, refer to these publications, that you can download

Page 84 - 84 Device Drivers

Publication 2711P-UM005A-EN-P - March 200780 PanelView Plus CE-Specific Extensions to the WinCE APIRecommended PanelView Plus CE MechanismsThes

Page 85 - Sample Code

Publication 2711P-UM005A-EN-P - March 2007PanelView Plus CE-Specific Extensions to the WinCE API 81// Turn on the keypad handler.SendNotifyMess

Page 86

Publication 2711P-UM005A-EN-P - March 200782 PanelView Plus CE-Specific Extensions to the WinCE APIUnLock PagesThis Win32 function unlocks a sp

Page 87

83 Publication 2711P-UM005A-EN-P - March 2007Chapter 5Device DriversOverviewThis chapter provides an overview of developing a device driver and sampl

Page 88

Publication 2711P-UM005A-EN-P - March 200784 Device DriversThe following flow chart illustrates the preferred method for driver initialization.

Page 89

Publication 2711P-UM005A-EN-P - March 2007Device Drivers 85Sample CodeThe code sample describes the preferred process for driver initialization

Page 90

Publication 2711P-UM005A-EN-P - March 200786 Device Drivers#define DRV_USE_IO // set to use port IO #define DRV_USE_PCI

Page 91

Publication 2711P-UM005A-EN-P - March 2007Device Drivers 87 \ KernelIoControl(IOCTL_HAL_REQUEST_SYSINTR, \ (PVOID)&a

Page 92

Publication 2711P-UM005A-EN-P - March 200788 Device Drivers PDDKISRINFO pdii, PDDKPCIINFO pdpi ); #endif // defined(DRV_USE_PCI)DRV_Deinit

Page 93

Publication 2711P-UM005A-EN-P - March 2007Device Drivers 89 pDrvData->Gii.CheckPort = TRUE; #if defined(DRV_USE_IO) pDrvData->Gii.

Page 94

9 Publication 2711P-UM005A-EN-P - March 2007Chapter 1Introduction to the PanelView Plus CE TerminalThis chapter provides an overview of the PanelView

Page 95

Publication 2711P-UM005A-EN-P - March 200790 Device Drivers // // Attempt to use lower level DDK function to get // info

Page 96

Publication 2711P-UM005A-EN-P - March 2007Device Drivers 91#if defined(DRV_USE_ISR) // // If a DLL name was not assigned yet, just defau

Page 97

Publication 2711P-UM005A-EN-P - March 200792 Device Drivers if (INVALID_HANDLE_VALUE == (pDrvData->hEvent = CreateEvent(NULL,FALSE,FALSE,

Page 98 - C++ Name Mangling

Publication 2711P-UM005A-EN-P - March 2007Device Drivers 93 // // If the pointer is invalid, just return // if (0 == hDeviceCont

Page 99 - Error Codes

Publication 2711P-UM005A-EN-P - March 200794 Device Drivers pDrvData->hEvent = INVALID_HANDLE_VALUE; } // // release the

Page 100 - 100 Messages

Publication 2711P-UM005A-EN-P - March 2007Device Drivers 95 } if (dwStatus == ERROR_SUCCESS) { pdii->cbSi

Page 101

Publication 2711P-UM005A-EN-P - March 200796 Device Drivers// /////////////////////////////////////////////////////////////////////DWORD WINAPI

Page 102 - 2 Index

97 Publication 2711P-UM005A-EN-P - March 2007Appendix AMessagesSerial Debug MessagesThe boot loaders and WinCE support a Debug Monitor that, when ena

Page 103

Publication 2711P-UM005A-EN-P - March 200798 MessagesException Debug MessagesPanelView Plus CE supports an exception handler named crashlog.exe

Page 104 - Rockwell Automation

Publication 2711P-UM005A-EN-P - March 2007Messages 99PathThe notion of path is much the same as any other Windows or DOS system. WinCE searches

Commentaires sur ces manuels

Pas de commentaire