DL330/DL330P/DL340CPU SpecificationsIn This Chapter. . . .— Overview— CPU Hardware Features— CPU Specifications— Selecting CPU Memory Options— DL330/DL330P CPU Setup— DL340 CPU Setup— DL340 Port Setup— Battery Backup— Installing the CPU— CPU Setup and System Functions13

CPU SpecificationsDL330/DL330P/DL340CPU DL330/DL330P/DL340 CPU SpecificationsOverviewThe CPU is the heart of the control system. Almost all system operations arecontrolled by the CPU, so it is important that it is set-up and installed correctly. Thischapter provides the information needed to understand:S the differences between the different models of CPUsS the different memory optionsS the steps required to setup and install the CPU.The DL330 modular CPU is capable of controlling 176 I/O points and has 3.7K wordsof program storage. This CPU supports the RLL programing language and can saveprograms internally to RAM or UVPROM. There is a built-in programming port thatdirectly supports the handheld programmer.DL330 CPUFeaturesDL330P CPUFeaturesThe DL330P modular CPU is capable of controlling 176 I/O points and has 3.7Kwords program storage. This CPU supports the RLL PLUS programing language andcan save programs internally to RAM or UVPROM. RLL PLUS provides a structuredprogramming environment for Relay Ladder Logic through the addition of stagelogic. There is a built-in port that directly supports the handheld programmer.DL340 CPUFeaturesThe DL340 modular CPU is capable of controlling 184 I/O points and has 3.7K wordsprogram storage. This CPU supports the RLL programming language and can saveprograms internally to RAM, UVPROM or EEPROM. There is a handheldprogramming port and two built-in RS232C ports for PC programming, operatorinterfaces, or networking. If you are using the DL340 in a DirectNET network, youcan use either port as a slave port and the bottom port as a master. The bottom porthas the additional capability of being configured as a slave on a Modbus network.CPU Hardware FeaturesCPU Status IndicatorsRUNONOFFCPU is in RUN modeCPU is in Program modeBATTONOFFMemory backup voltage lowMemory backup voltage goodONOFFCPU failure (Error detected when thewatchdog timer is not processed within100ms. The run output from the powersupply will be turned off.)CPU goodONOFFCPU power goodCPU power failureONCPU communication portreceiving dataCPU communication portnot receiving dataCPUPWRRXOFFTXONOFFCPU communication porttransmitting dataCPU communication portnot transmitting dataDL305 User Manual, Rev. DCPU ripheralPort(HP, HPP, OperatorInterfaces--Modbus DL340PWRRUNPORT1TX/RXBATTPORT2TX/RXCPU

DL330/DL330P/DL340 CPU SpecificationsFeatureDL330DL330PDL340Program memory (words)3.7K3.7K3.7KScan time/K ladder (boolean)8 ms20 ms.87 msSupports OverridesNoNoYesRLL (Relay Ladder Logic) ProgrammingYesYesYesRLL PLUS ProgrammingNoYesNoHandheld programmer with cassette tape interfaceYesYesYesDirectSOFT programming for WindowstYesYesYesBuilt-in communication ports (RS232C / DirectNET)NoNoYesCMOS NoOptionalASCII Basic modulesYesYesYesNetworking modulesYesYesYesRS232C Data Communications UnitYesYesYesRS422 Data Communications UnitYesYesYes110/220 VACYesYesYes24 VDC (5 slot base only)YesYesYesLocal I/O128128136Local expansion I/O176176184Remote I/ONANANANumber of instructions available616561Control relays14077196Shift register bits128uses CRs128Special relays (system defined)121120None128NoneTimer/Counters646464Data registers128128192Analog input channels max.112112128Analog output channels max.282832Internal diagnosticsYesYesYesPassword securityYesYesYesBattery backupYesYesYesDL330/DL330P/DL340SpecificationsCPU Specifications3--3Compatible with:DL305 User Manual, Rev. DDL330/DL330P/DL340SpecificationsStages(RLL PLUS only)DL330/DL330P/DL340CPU SpecificationsTotal I/O points using;DL330/DL330P/DL340CPU SpecificationsBase Power Supply Available

DL330/DL330P/DL340 CPU SpecificationsSelecting CPU Memory OptionsInternal RetentiveMemoryIn addition to different choices for program storage, you can also select somememory areas to be retentive. Retentive memory retains its state after a power cycleor a program to run transition occurs, as long as the memory backup battery isfunctional. Non--retentive memory resets to a logical “0” after a power cycle or aprogram to run transition occurs. You have to use dipswitch to select the retentivememory options (the switches are discussed in the next section.)The following table shows the how the types of memory are defined. Some types ofmemory are automatically defined as retentive and other memory types can bedefined as retentive as necessary for your application. The types of memoryavailable depend on the type of CPU selected for your application.Retentive MemoryPre--definedApplication programYesUser definedStages (DL330P only)YesInternal relaysYesCurrent count valuesYes (full range)Shift register bitsYes (full range)Data registersYes (full range)PasswordYesExternal ProgramStorageAll DL305 CPUs allow for program storage to be captured on external media such ascassette tape, floppy disk and hard disk. Refer to the DL305 Handheld Programmermanual for details on storing the CPU program to cassette tape. The DirectSOFTmanual provides details on storing the CPU program to floppy or hard disk.Volatile andNon-volatileMemoryThere are two types of memory storage available, volatile and non-volatile. Volatilememory will retain your data as long as proper voltage is maintained to the storagemedia. Non-volatile memory does not require power to retain data. The DL305CPUs maintain the proper voltage either through the base power supply or the use ofthe memory backup 0P/DL340CPU SpecificationsDL330/DL330P/DL340CPU DL305 User Manual, Rev. D

DL330/DL330P/DL340 CPU SpecificationsThe type of program storage memory available to you depends on the CPU you areusing. All DL305 CPUs support application program storage to either CMOS RAM orthe optional UVPROM. The DL340 has the added option of supporting programstorage in EEPROM. The application program can be up to 3.7K words.S CMOS RAM memory (Random Access Memory) is standard on all theDL305 CPUs. It is a volatile memory which can be modified or changedeasily with a handheld programmer or PC programming software.S UVPROM (Ultraviolet Programmable Read Only Memory) is optional forall the DL305 CPUs. This type of memory is non--volatile and can onlybe erased with an ultraviolet light source. The PROM Writer Unit(D3--PWU) is used to copy your application program from the CPU’sRAM to a UVPROM. If the UVPROM has a program to be changed, itmust be removed from the CPU and erased before another program canbe copied on the UVPROM.S EEPROM (Electrically Erasable Programmable Read Only Memory) isan option only on the DL340 CPU. This type of memory is non--volatile,but can be electrically erased. The EEPROM can be electricallyreprogrammed without being removed from the CPU, and without theuse of a special external programming device.DL330/DL330P/DL340SpecificationsWARNING: Be sure to use proper grounding techniques when touchingUVPROMS and EEPROMS. A static discharge from you may cause damage tothe PROM. If you do not have a ground strap, then ground yourself bytouching the controller chassis before you make contact with the PROM. Alsoensure that the surface where you place the PROM is properly grounded.DL330/DL330P/DL340CPU SpecificationsProgram StorageMemory Types(Internal)3--5DL330/DL330P/DL340CPU 5 User Manual, Rev. D

L340 CPU SpecificationsStoring Programson UVPROMsThe PROM Writer Unit is only compatible with DL305 CPUs and UVPROMs. It canperform the following three functions:SCopy a program from the CPU’s RAM to a UVPROMSCopy a program from the UVPROM to the CPU’s RAMSCompare the program in the UVPROM with the CPU’s RAMOperationSelection 30P/DL340SpecificationsDL330/DL330P/DL340CPU SpecificationsDL330/DL330P/DL340CPU SpecificationsERRSocket Lever used to lockdown and release UVPROMduring write procedureThe LED for the selected function will turn off when completed (except for the errorreset function). If any error is encountered, one of the LEDs in the following table willbe on and the execution of the selected function will be s FlaggedCopies the content of WRITEthe CPU RAM into theUVPROM WRITEAutomatic comparison Constant on indicatesis made aftera write failure.checking and writing.Copies the content ofthe UVPROM into theCPU RAMWRITEVERIFY WRITE VERIFYDepress two keys atthe same time.Comparison is madeafter transferring.To verify the contentof the UVPROM withthe CPU RAMVERIFY VERIFYConstant on indicatesan unmatchedaddress.To check if theUVPROM is blank.BLANK BLANKConstant on indicatesa non-blank addressis found.Error resetERR ERRReturn to the initialcondition by pressingthis key if an errorcondition is noted.On indicates an error. CPURedOn indicates failure. PWRGreenOn indicates DCpower is withintolerance.Off indicates DCpower not withintolerance.DL305 User Manual, Rev. D

DL330/DL330P/DL340 CPU SpecificationsThe PROM Writer Unit connects directly to either a DL330, DL330P or DL340 CPU.Use the following steps to connect the PROM Writer Unit:1. Set the power supply source switch (on the back of the unit) to theappropriate power source setting, (INT for using base power and EXT foran external power source). The PROM Writer Unit can either use the localCPU base power or use an external power source.NOTE: If you are using the local CPU base power you will need to includethe Prom Writer Unit power consumption in your power budget. The powerbudget is covered in Chapter 4.DL330/DL330P/DL340CPU 5 User Manual, Rev. DDL330/DL330P/DL340CPU Specifications2. If using an external power source attach the supplied cable to the powersource socket on the back of the unit. The white wire should be connectedto 5VDC and the black wire should be connected to DC ground.3. Turn off the power source to the base before attaching the PROM WriterUnit.4. Attach the PROM Writer Unit to the CPU. The connector on the back of theunit will mate with the programming port (PRG) of the CPU. Tighten thefixture screw to secure the two units together.5. Apply power to the local CPU base and if necessary to the PROM WriterUnit. Once the PWR LED is on it will take approximately 10 seconds for theunit to initialize. During this time keystrokes will not be recognized.Copying a Program The following steps explain how to copy a program from the CPU RAM to aFrom the CPU RAM UVPROM:1. Turn power a UVPROM2. Raise the UVPROM socket lever.3. Insert the UVPROM (notch up) in the socket and lower the lever.4. Press the “WRITE” button. The following sequence of events will takeplace:S The WRITE LED will turn on then off.S The BLANK LED will come on. (This notes the checking sequence toensure that the UVPROM is blank has started.)S The BLANK LED will turn off and the WRITE LED will turn on.S The WRITE LED will turn off and the VERIFY LED will turn on. (Thisindicates that the write is complete. While the VERIFY LED is on, acomparison between the UVPROM and the CPU RAM is beingmade.)S The VERIFY LED will turn off. (This indicates the end of the copyingfunction.)S If an error has been detected, the ERR LED will come on. If thishappens press the “ERR” key to clear the error and the “WRITE” keyto repeat the procedure. If this does not correct the problem, repeatthe procedure using a different UVPROM.5. Turn power off, raise the UVPROM socket lever and remove UVPROM.DL330/DL330P/DL340SpecificationsSetting up thePROM Writer Unit3--7

L340 CPU SpecificationsCopying a Program The following steps explain how to copy a program from the UVPROM to the CPUFrom the UVPROM RAM:1. Turn power the CPU RAM2. Raise the UVPROM socket lever.3. Insert the UVPROM (notch up) in the socket and lower the lever.4. Simultaneously press “WRITE” and “VERIFY” buttons. The followingsequence of events will take place:S The BLANK, WRITE and VERIFY LEDs will all come onmomentarily.S The WRITE LED turns off.S The VERIFY LED will stay on till the operation is completed.S If an error has been detected, the ERR LED will come on. If thishappens, press the “ERR” key to clear the error and repeat step 4.5. Turn power off, raise the UVPROM socket lever and remove UVPROM.The following steps show how to compare a UVPROM program to the CPU RAM:1. Turn power on.2. Raise the UVPROM socket lever.3. Insert the UVPROM (notch up) in the socket and lower the lever.4. Press the “VERIFY” button. The following sequence of events will takeplace:S The VERIFY LED indicator will come on.S If verification is successful, the VERIFY LED will go off.S If there is an error in the comparison the VERIFY LED will remainon.5. Turn power off, raise the UVPROM socket lever and remove UVPROM.Erasing a UVPROM UVPROMS can be erased through exposure to an ultraviolet light source. Make surethat the window to the UVPROM is not covered so that it may receive full exposure tothe light source. A typical exposure would be: 12,000μ w/cm2 lamp @ 2.5 cm for15--20 0P/DL340CPU SpecificationsDL330/DL330P/DL340CPU SpecificationsComparing aProgram From theUVPROM to theCPU RAMDL305 User Manual, Rev. D

DL330/DL330P/DL340 CPU Specifications3--9Installing theSUVPROM Option inthe DL330 / DL330PCPUSSSSSSDisconnect the power from the base andallow approximately 60 seconds for thecapacitor to discharge before removingthe CPU.Disconnect the battery wires from theCPU.Remove the RAM chip from IC socket.Align the UVPROM notch with the ICsocket notch on the CPU card.Carefully insert the UVPROM in the ICsocket.Set dip switch 2 and Jumpers 1 -- 3 forUVPROM (ROM).Reconnect the battery wires to CPU.MemoryTypeSwitchRAMUVPROM(ROM)JUMPER 1DL330/DL330P/DL340SpecificationsDL330/DL330P CPU SetupJUMPER 2JUMPER 3DIPSWITCH 2(on)(off)ON2Dipswitch 1(ON selectspower failure Dipswitch 2(ON -- RAMretention)OFF -- UVPROM)BATTERYROMJumper 1RAM/UVPROMJumper 2RAMRAMJumper 3Selecting Retentive The DL330 and DL330P have a dipswitch which can be used to turn on or off powerfailure retention for specific relays and stages. (Some memory types areMemory for theautomatically retentive.) The following diagram lists the range of retentive memoryDL330 / DL330Pfor the memory types that are covered by the selection kingRAM1 2RAMInternal relays in the DL330P range from160 -- 277, only 200 -- 277 can be set retentiveor non--retentive.Stages in the DL330P range fromSG000 to SG177, only SG000 to SG137 canbe set retentive or non--retentive.Networking for the DL330 and DL330P is accomplished by using a DCU, (DataCommunications Unit, RS232C part number D3-232-DCU, RS422 part numberD3-422-DCU).DL305 User Manual, Rev. DDL330/DL330P/DL340SpecificationsDipswitch 1 Internal relays in the DL330 range from(on selects160 -- 373, only 340 -- 373 can be setpower failure retentive or non--retentive.retention)DL330/DL330P/DL340CPU SpecificationsROMDL330/DL330P/DL340CPU Specifications1

DL340 CPU SpecificationsDL340 CPU SetupInstalling theoptional UVPROMor EEPROM in theDL340 CPUComplete the following steps to install the optional memory.1. Disconnect the power from the base and allow approximately 60 secondsfor the capacitor to discharge before removing the CPU.2. Disconnect the battery wires from the CPU.3. Align the UVPROM/EEPROM notch with the IC socket notch on the CPU.4. Carefully insert the UVPROM/EEPROM into the IC socket.5. Set dipswitch SW1, bit 1 and the short Jumpers N/C -- 4 for the option youhave installed.6. Reconnect the battery wires to the CPU.MemoryTypeSwitchRAMSHORT PINJUMPERSDL330/DL330P/DL340CPU SpecificationsDL330/DL330P/DL340CPU Specifications1DIPSWITCHSW1 -- Bit 12EEPROM34.1234UVPROM(ROM)EEPROM(WRITE PROTECTED).1234.1ONONONONOFFOFFOFFOFFN/C 2 3 4N/C 2 3 4N/C 2 3 4DL330/DL330P/DL340Specifications34N/C 2 3 4N/C 2DL305 User Manual, Rev. D234.

DL330/DL330P/DL340 CPU HSW1 -- Bit 2OFF1 2 3 4 5 6 7 8Non--RetentiveMemoryON1 2 3 4 5 6 7 8DL330/DL330P/DL340SpecificationsSelecting Retentive The DL340 uses the same dipswitch for selecting memory retention as was used formemory type selection. Dipswitch SW1, bit 2 is used to set memory retention for theMemory for theranges of internal relays shown in the following diagram.DL340OFFInternal relays in the DL340 range from 160 to373 and 1000 to 1067, only 340 -- 373 can be setretentive or non--retentive.DL330/DL330P/DL340CPU SpecificationsDL330/DL330P/DL340CPU 5 User Manual, Rev. D

DL330/DL330P/DL340Specifications3--12DL340 Port SetupDL340 Baud RateSelectionThe following chart shows how to configure the baud rate for Port 1 (RS232C) of theDL340 using dipswitch SW1, switches 3, 4 and 5. Port 2 baud rate is set by using aprogramming device to enter the baud rate in address R773 (in BCD or HEX).Port 1Port 2Sample Setup Ladder LogicPort 1 300 BaudPort 1 4800 BaudON 1 2 3 4 5 6 7 8ON 1 2 3 4 5 6 7 8BaudR773C374DSTR3001OFFOFFK006Port 1 600 BaudPort 1 9600 Baud60021st scan only.ON 1 2 3 4 5 6 7 8ON 1 2 3 4 5 6 7 8Set baud rate to 960012003DOUT1SW124004OFFOFFR773Port 1 1200 BaudPort 1 19200 Baud480051st scan only.ON 1 2 3 4 5 6 7 8ON 1 2 3 4 5 6 7 8C37496006DSTRK500192007OFFOFFPort 1 2400 BaudPort 1 38400 BaudSet network address to 5384008ON 1 2 3 4 5 6 7 8ON 1 2 3 4 5 6 7 896000, 9 to FFDOUTDL330/DL330P/DL340CPU SpecificationsDL330/DL330P/DL340CPU L330/DL330P/DL340 CPU SpecificationsR771OFFDL340 NetworkAddress T1TX/RXBATTPORT2TX/RXCPUFixed itchStationAddressFIXEDFIXEDUSERUSER(Network Address (Network Address set tois set to 01)3 by rotary switches)SW4SW3Port 1Port 2MostSignificantDigitLeastSignificantDigitPort 1 (RS232C): Network address selection is accomplished with the Network AddressMode Switch and the two rotary switches 3 and 4. The address is set in BCD.Network Address Mode Switch sets fixed or selectable network address.Rotary Switch 3 sets the least significant decimal digit of the network address.Rotary Switch 4 sets the most significant decimal digit of the network address.In the example above, when the Network mode switch is set to FIXED the networkaddress will default to 01, when the Network mode switch is set to USER the networkaddress (set with the rotary switches) is 03. Note, if the rotary switches are set to 00, thenetwork address will default to 01.Port 2 (RS232C): Network address selection is set by using a programming device toenter the value for the most significant digit and least significant digit in addresses R771and R772 respectively. The address is set in BCD.If you’re using MODBUS RTU protocol on Port 2, the MODBUS address is set indecimal, not BCD. Load the lower two digits in R771 and the upper two digit(s) in R772.DL305 User Manual, Rev. D

3--13DL330/DL330P/DL340 CPU C Communication Port SpecificationsConnectorNetwork AddressBaud RateParityTransfer ModeGNDData bitsStart bitsStop bitsTurn Around DelayCTSRTSTXDRXDDL340Station TypeSelec