Z-World XP8900 Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para não Z-World XP8900. Z-World XP8900 User`s manual Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir

Resumo do Conteúdo

Página 1 - PK2200 Series

PK2200 SeriesC-Programmable ControllersUser’s Manual019–0015 • 071126–F

Página 2 - Trademarks

PK2200x s About This ManualBlank

Página 3 - TABLE OF CONTENTS

PK2200100 s PLCBusZ-World provides software drivers that access the PLCBus. To allowaccess to bus devices in a multiprocessing environment, the expan

Página 4

PK2200 PLCBus s 101Digital output devices, such as relay drivers, should be addressed withthree 4-bit addresses followed by a 4-bit data write to the

Página 5 - Table of Contents s vPK2200

PK2200102 s PLCBusThere are 4-bit and 8-bit drivers. The 4-bit drivers employ the followingcalls. void eioResetPlcBus()Resets all expansion boards o

Página 6

PK2200 PLCBus s 103 void set4adr( int adr )Sets the current address for the PLCBus. All read and write operationsaccess this address until a new add

Página 7 - ABOUT THIS MANUAL

PK2200104 s PLCBus char read4data( int adr )Sets the last four bits of the current PLCBus address using adr bits 811, then reads four bits of data f

Página 8 - Acronyms

PK2200 PLCBus s 105 void set8adr( long address )Sets the current address on the PLCBus. All read and write operationswill access this address until

Página 9 - Conventions

PK2200106 s PLCBusBlank

Página 10 - PK2200x s About This Manual

PK2200 Backup Battery s 107APPENDIX F: BACKUP BATTERY

Página 11 - OVERVIEW

PK2200108 s Backup BatteryBattery Life and Storage ConditionsThe ten-year estimated life of a battery on the PK2200 is based on typicaluse. Most syst

Página 12 - Introduction

PK2200 Backup Battery s 109Battery Cautionsw Caution (English)There is a danger of explosion if battery is incorrectly replaced.Replace only with th

Página 13 - PK2200 Overview s 13

PK2200 Overview s 11CHAPTER 1: OVERVIEWChapter 1 provides a comprehensive overview and description of thePK2200.

Página 14 - Model Features

PK2200110 s Backup BatteryBlank

Página 15 - Development Kit

PK2200 Index s 111INDEXSymbols#INT_VEC ... 41, 86#JUMP_VEC ... 87/AT ...

Página 16 - CE Compliance

PK2200112 s Indexbus (continued)operations4-bit... 97, 98, 1008-bit... 97, 101BUSADR0 ... 91,

Página 17 - GETTING STARTED

PK2200 Index s 113DRIVERS.LIB ... 101dropout voltage ... 80DRV10 ...

Página 18 - Connecting the PK2200 to a PC

PK2200114 s Indexexpansion boardsreset... 102expansion bus ... 86, 87, 91, 961014-bit drivers ...

Página 19 - Target Not Responding or

PK2200 Index  115INT1 ... 87INT1_VEC ... 86INT2 ...

Página 20 - Running a Sample Program

PK2200116 s IndexLCDgraphic (continued)contrast ... 60drawing ... 56, 57, 58, 60font initialization... 58, 59in

Página 21 - SUBSYSTEMS

PK2200 Index s 117PLCBus (continued)relaysDIP... 96drivers ... 101writing data ...

Página 22 - Subsystem Overview

PK2200118 s IndexSE1100... 96select PLCBus address... 102SER0_VEC ... 41, 86SER1

Página 23 - Processor Core

PK2200 Index s 119troubleshooting (continued)communication mode ... 67expansion boards ... 66grounds ...

Página 24 - Digital Inputs

PK220012 s OverviewIntroductionThe PK2200 is an inexpensive control computer well suited for a varietyof applications in areas such as packaging, mat

Página 32 - PK220032 s Subsystems

PK2200 Overview s 13Figure 1-3 illustrates the PK2200 without an enclosure.Figure 1-3. PK2200 Without EnclosureMux MuxRTRS232U7U6Z180U15H.C. DriverL

Página 33 - SYSTEM DEVELOPMENT

PK220014 s OverviewStandard FeaturesThe PK2200 series includes the following standard features: Compact size: 4" × 5.5" × 1.34" 16

Página 34 - Changing Modes

PK2200 Overview s 15Flexibility and Customization OptionsThe PK2200 is available with either quick-release pluggable terminals orfixed screw terminal

Página 35 - Development Options

PK220016 s OverviewCE ComplianceThe PK2200 has been tested by an approved competent body,and was found to be in conformity with applicable EN andequi

Página 36

PK2200 Getting Started s 17CHAPTER 2: GETTING STARTEDChapter 2 provides instructions for connecting the PK2200 to a PC andrunning a sample program.

Página 37

PK220018 s Getting StartedConnecting the PK2200 to a PCThe PK2200 is programmed with a PC through an RS-232 port using theprogramming cable provided i

Página 38

PK2200 Getting Started s 19Figure 2-2 illustrates the power supply connections.Figure 2-2. Power Supply Connection4. Plug the power supply into a w

Página 39 - Modem Communication

PK2200 User’s ManualPart Number 019-0015 • 071126-F • Printed in U.S.A.© 1999–2007 Rabbit Semiconductor Inc. • All rights reserved.Rabbit Semiconducto

Página 40 - PK220040 s System Development

PK220020 s Getting StartedRunning a Sample ProgramTo run a sample program on the PK2200 use the following steps.1. Open the sample program CDEMO_RT.C

Página 41 - Remote Downloading

PK2200 Subsystems s 21CHAPTER 3: SUBSYSTEMSChapter 3 describes the various PK2200 subsystems and interfaces,software drivers and sample programs.

Página 42 - Developing an RS-485 Network

PK220022 s SubsystemsSubsystem OverviewThe PK2200 is composed of several subsystems. The following list ofsubsystem elements is illustrated in Figu

Página 43 - Keypad and LCD

PK2200 Subsystems s 23Processor CoreThe PK2200s processor core is composed of the CPU, microprocessorsupervisor/watchdog timer, battery-backed stati

Página 44 - PK220044 s System Development

PK220024  SubsystemsEven though slightly more expensive than standard EPROM, flashEPROM offers the following benefits.• In-system programmability

Página 45 - Keypad Codes

PK2200 Subsystems s 25The digital inputs can be pulled up to +5 V or down to GND by installingjumpers on JP2. When jumpered, the digital input line

Página 46 - Column 127

PK220026 s SubsystemsInputs 1114, in addition to the protected digital input function, have thecapabilities listed in Table 3-2.Inputs 11 and 12 can

Página 47

PK2200 Subsystems s 27Digital OutputsThe PK2200s 14 digital outputs (HV01 through HV14) provide high-voltage, high-current digital outputs for your

Página 48 - PK220048 s System Development

PK220028 s SubsystemsSinking DriversJP1JP1Sourcing Drivers31243412Figure 3-6 illustrates the connection for the UDN2985A sourcing driver.(Note the co

Página 49 - SOFTWARE REFERENCE

PK2200 Subsystems s 29Serial CommunicationTwo serial ports support asynchronous communication at baud rates from300 bps to 57,600 bps on 9.216 MHz ve

Página 50 - Software Drivers

Table of Contents s iiiPK2200TABLE OF CONTENTSAbout This Manual viiChapter 1: Overview 11Introduction...

Página 51

PK220030 s SubsystemsTable 3-4 lists JP3 jumper settings and Figure 3-10 illustrates jumpersetting configurations for the two serial channels. If on

Página 52 - Digital Inputs and Outputs

PK2200 Subsystems s 31Table 3-5. Header Connections and FunctionHeader FunctionH1The LCD connector. Connect a 14-wire ribbon cablefrom the LCD to t

Página 53

PK220032 s SubsystemsBlank

Página 54 - Digital Output Drivers

PK2200 System Development s 33CHAPTER 4: SYSTEM DEVELOPMENTChapter 4 describes system development using the PK2200 interfaces andpresents some sampl

Página 55 - LCD and Keypad

PK220034  System DevelopmentChanging ModesThe operating mode of the PK2200 is determined during power-upinitialization. If a valid program is fo

Página 56 - PK220056 s Software Reference

PK2200 System Development  35Figure 4-2. 3x4 Keypad Mode SettingsFigure 4-3. JP4 Mode SettingsDo not jumper more than one pair of pins to conf

Página 57

PK220036 s System DevelopmentEPROMEPROMs offer a permanent storage option for programs and data.The PK2200 BIOS is factory installed in the EPROM. Af

Página 58 - PK220058 s Software Reference

PK2200 System Development s 37The following points summarize the counters capabilities: The counter can measure the time at which a negative edge o

Página 59

PK220038 s System DevelopmentSerial CommunicationDynamic C has serial communication support libraries. For the Z180 portz0 and Z180 port z1, use AASC

Página 60 - PK220060 s Software Reference

PK2200 System Development s 39Echo OptionIf the echo option is turned on during initialization of the serial port (withDinit_z0, Dinit_z1, or Dinit_u

Página 61

iv s Table of Contents PK2200Digital Inputs ... 36Using the Digi

Página 62 - Sample Programs

PK220040 s System DevelopmentLibrary functions for the RS-232 port support communication with aHayes Smart Modem or compatible. Note the following po

Página 63 - Communication Sample Programs

PK2200 System Development s 41Interrupt Handling for Z180 Port 0Normally, a serial interrupt service routine would be declared with thecompiler direc

Página 64 - PK2240 Sample Programs

PK220042 s System DevelopmentDeveloping an RS-485 NetworkThe two-wire RS-485 serial-communication port and Dynamic-C networksoftware allow network dev

Página 65 - TROUBLESHOOTING

PK2200 System Development s 43Keypad and LCDThe PK2200 Series supports operator I/O with a keypad and LCD. Twostandard operator I/O configurations ar

Página 66 - Out of the Box

PK220044 s System Development0.100.400.300.130.401.130.403.75F1delF4F3F2 addmenuitemhelpdownupfield0.130.10Keypad Insert TemplatesThe keypads are desi

Página 67 - PK2200 Repeatedly Resets

PK2200 System Development s 45Keypad CodesThe PK2200 keypads are supported by Dynamic C functions that returncodes corresponding to the key pressed.

Página 68 - Common Programming Errors

PK220046 s System DevelopmentRow 0Row 1Column 0Column 192x20 Character LCDRow 0Row 63Column 0Column 12764x128 Graphic LCD 7 6

Página 69 - SPECIFICATIONS

PK2200 System Development s 47ON/OFF - When the ON/OFF bit is set ( 1 ) the display is on, any imageon the screen will be visible. When the bit is re

Página 70 - General Specifications

PK220048 s System DevelopmentBlank

Página 71 - PK2200 Specifications s 71

PK2200 Software Reference s 49CHAPTER 5: SOFTWARE REFERENCEChapter 5 covers the software drivers used with the PK2200 seriescontrollers.

Página 72 - Top view for model PK2240

Table of Contents s vPK2200 Appendix B: Specifications 69General Specifications ...

Página 73 - 0.2 (5.1)

PK220050 s Software ReferenceSoftware DriversDrivers are functions that simplify accessing PK2200 hardware and I/O.For the following reasons, Z-World

Página 74 - 0 .470 (11.9)

PK2200 Software Reference s 51EEPROMThe following functions provide access to the EEPROM. The EEPROMis generally used for storing system information,

Página 75 - Absolute Maximum Rating

PK220052 s Software ReferenceDigital Inputs and Outputs DIGIN1, DIGIN2, ..., DIGING16The virtual driver variables DIGIN1, DIGIN2, ... DIGIN16 repre

Página 76 - Connectors

PK2200 Software Reference s 53The lower eight bits returned by the inport() function represent thestatus of the digital inputs. Bits which are set (

Página 77 - Header Pins Description

PK220054 s Software ReferenceDigital Output DriversFollowing are the digital output drivers for the PK2200: int up_setout( int channel, int value )Se

Página 78 - PK220078 s Specifications

PK2200 Software Reference s 55LCD and KeypadThe following functions provide routines for writing to the LCD andreading the keypad.Include the followi

Página 79 - POWER MANAGEMENT

PK220056 s Software Reference int lc_cmd (int cmd)Waits for LCD busy flag to clear, then sends cmd to LCD commandregister.RETURN VALUE: 0, if success

Página 80 - PK220080 s Power Management

PK2200 Software Reference s 57 int glInit()Initializes the LCD module (software and hardware).RETURN VALUE: returns the status of the LCD. If the i

Página 81 - Voltage

PK220058 s Software Reference void glXPutBitmap(int x, int y, int bmWidth,int bmHeight, unsigned long bmPtr)Displays a bitmap stored in xmem on the L

Página 82 - PK220082 s Power Management

PK2200 Software Reference s 59 void glXFontInit(struct _fontInfo *pInfo,char pixWidth, char pixHeight, unsignedstartChar, unsigned endChar, unsigned

Página 83

vi s Table of Contents PK2200Blank

Página 84 - PK220084 s Power Management

PK220060 s Software Reference void glPrintf(int x, int y, struct _fontInfo*pInfo, char *fmt,...)Prints a formatted string (much like printf) on the L

Página 85 - I/O ADDRESSES

PK2200 Software Reference s 61 void kpInit(int (*changeFn)())Initializes the kp module. This function should be called before otherfunctions of this

Página 86 - Interrupt Vectors

PK220062 s Software Reference int kpDefGetKey()This is the default get key function. This function returns the keypreviously pressed (i.e., from the

Página 87 - Interrupt Priorities

PK2200 Software Reference s 63Table 5-1. PK2200 Sample Programs (concluded)Program Description LADDERC.C Use ladder C for I/O control. LCGRAM.C Il

Página 88 - EEPROM Addresses

PK220064 s Software ReferenceTable 5-3. PK2240 Sample Programs Program Description GLPRINTF.C Demonstrates the glprintf function andshows how to pri

Página 89 - Processor Register Addresses

PK2200 Troubleshooting s 65Appendix A provides procedures for troubleshooting system hardware andsoftware.APPENDIX A: TROUBLESHOOTING

Página 90 - Address Name Description

PK220066 s TroubleshootingOut of the BoxCheck the items mentioned in this section before starting development. Verify that the PK2200 runs in standal

Página 91 - PK2200 Peripheral Addresses

PK2200 Troubleshooting s 67Dynamic C Will Not StartIn most situations, when Dynamic C will not start, an error messageannouncing a communication fai

Página 92

PK220068 s TroubleshootingCommon Programming Errors Values for constants or variables out of range. Table A-1 lists accept-able ranges for variables

Página 93

PK2200 Specifications s 69 APPENDIX B: SPECIFICATIONSAppendix B provides comprehensive PK2200 physical, electronic, andenvironmental specifications

Página 94

PK2200 About This Manual s viiABOUT THIS MANUALThis manual provides instructions for installing, testing, configuring, andinterconnecting the Z-World

Página 95 - APPENDIX E: PLCBUS

PK220070 s SpecificationsGeneral SpecificationsTable B-1 lists the electrical, mechanical, and environmental specifica-tions for the PK2200. Table B-1

Página 96 - PLCBus Overview

PK2200 Specifications s 71Hardware Mechanical DimensionsTop view for models PK2200 and PK2210.Figure B-1. Top View PK2200 and PK2210menusetupitem f

Página 97 - PLCBus Header

PK220072 s SpecificationsTop view for model PK2240.Figure B-2. Top View PK22400.621(15.8)1.350 (34.3)4.0 (102)0.31 typ (7.9)10-32 clr, 4x0.37 (9.4)3.7

Página 98 - Table E-2. PLCBus Registers

PK2200 Specifications s 730.75 (19.1)1.2 (30.5)1.71 (43.4)0.22 (5.6)0.55 (14.0)0.2 (5.1) 2.95 (75.0) 1.44 (36.6)End view for models PK2200, PK22

Página 99 - PLCBus s 99

PK220074 s Specifications0.030 (0.76) 0.220 (5.59) 5.100 (129.5) 5.320 (135.1) 0.200 (5.1) 0.770 (19.6) 3.230 (82.0) 3.800 (96.5) 4.000 (101.6)0 .470

Página 100 - A1 A2 A3 Meaning

PK2200 Specifications s 75Table B-2. Sinking Driver SpecificationsParameterAbsolute Maximum Ratingat 25 COutput Voltage 50 V DCOutput Current 500 m

Página 101 - Expansion Bus Software

PK220076 s SpecificationsLEDKeypad Conn.H1H2H3JP4PLC BusConnectorLCDInterfaceJP2 JP3JP5JP1CN1 CN2213JP6,14ConnectorsOnly a single, solid conductor sho

Página 102 - 102 s PLCBus

PK2200 Specifications  77FD Table B-4. Headers and Jumper Settings Header Pins Description JP1 Sink/source control. The drivers will be da

Página 103 - PLCBus s 103

PK220078 s SpecificationsBlank

Página 104 - 104 s PLCBus

PK2200 Power Management s 79 APPENDIX C: POWER MANAGEMENTAppendix C provides information about power management and hardwareand software specific t

Página 105 - PLCBus s 105

PK2200viii s About This ManualAcronymsTable 1 lists and defines the acronyms that may be used in this manual.IconsTable 2 displays and defines icons t

Página 106 - 106 s PLCBus

PK220080 s Power ManagementPower Failure Detection CircuitryFigure C-1 shows the power failure detection circuitry of the PK2200. Figure C-1. PK2200 P

Página 107 - BACKUP BATTERY

PK2200 Power Management s 81The ratio of your power supplys output capacitors value to your circuitscurrent draw determines the actual duration o

Página 108 - PK2200108 s Backup Battery

PK220082 s Power ManagementRecommended Power Fail RoutineZ-World recommends the following routines to handle an NMI. Theroutines monitor the state of

Página 109 - Battery Cautions

PK2200 Power Management s 83The watchdog timer should be enabled. However, if the watchdog is notenabled, you can force the processor to restart ex

Página 110 - PK2200110 s Backup Battery

PK220084 s Power ManagementBlank

Página 111 - PK2200 Index s 111

PK2200 Interrupts and Addresses s D-85 APPENDIX D: INTERRUPT VECTORS ANDI/O ADDRESSESAppendix D provides a suggested interrupt vector map and infor

Página 112 - PK2200112 s Index

PK2200D-86 s Interrupts and AdressesMost of the following interrupt vectors can be altered under programcontrol. The addresses are given in hex, rela

Página 113 - PK2200 Index s 113

PK2200 Interrupts and Addresses s D-87Jump VectorsThese special interrupts occur in a different manner: instead of loadingthe address of the interru

Página 114 - PK2200114 s Index

PK2200D-88 s Interrupts and AdressesEEPROM AddressesThese EEPROM constants apply to the standard PK2200.Table D-3. Z180 I/O Device Register Addresses

Página 115 - PK2200 Index

PK2200 Interrupts and Addresses s D-89Processor Register AddressesThe Z180s I/O-device registers occupy the first 40H addresses.Table D-4. Z180 In

Página 116 - PK2200116 s Index

PK2200 About This Manual s ixTable 3. Typographic ConventionsExample Description whileCourier font (bold) indicates a program, a fragment of aprogram

Página 117 - PK2200 Index s 117

PK2200D-90 s Interrupts and AdressesTable D-4. Z180 Internal I/O Device Registers (concluded)Address Name Description0x21 SAR0H DMA Source Address, C

Página 118 - PK2200118 s Index

PK2200 Interrupts and Addresses s D-91PK2200 Peripheral AddressesThe following addresses control the I/O devices that are external to theZ180 proces

Página 119 - PK2200 Index s 119

PK2200D-92 s Interrupts and AdressesTable D-5. PK2200 External I/O Device Registers (continued)Address Bit(s) Symbol Function 0x100 0–3 RTALE Real-

Página 120

PK2200 Interrupts and Addresses s D-93continued . . .Table D-5. PK2200 External I/O Device Registers (continued)Address Bit(s) Symbol Function 0x1

Página 121 - SCHEMATICS

PK2200D-94 s Interrupts and AdressesTable D-5. PK2200 External I/O Device Registers (concluded)Address Bit(s) Symbol Function 0x1C3 5 DRV4 Digital

Página 122

PK2200 PLCBus s 95APPENDIX E: PLCBUSAppendix E provides the pin assignments for the PLCBus, describes theregisters, and lists the software drivers.

Página 123

PK220096 s PLCBusPLCBus OverviewThe PLCBus is a general-purpose expansion bus for Z-World controllers.The PLCBus is available on the BL1200, BL1600, B

Página 124

PK2200 PLCBus s 97Two independent buses, the LCD bus and the PLCBus, exist on the singleconnector.The LCD bus consists of the following lines. LCDX

Página 125

PK220098 s PLCBusThere are eight registers corresponding to the modes determined by buslines A1X, A2X, and A3X. The registers are listed in Table E-2

Página 126

PK2200 PLCBus s 99Place an address on the bus by writing (bytes) to BUSADR0, BUSADR1and BUSADR2 in succession. Since 4-bit and 8-bit addressing modes

Comentários a estes Manuais

Sem comentários