EP0499725B1 - Electronic postage meter having print wheels set by separate D.C. motors - Google Patents
Electronic postage meter having print wheels set by separate D.C. motors Download PDFInfo
- Publication number
- EP0499725B1 EP0499725B1 EP91301228A EP91301228A EP0499725B1 EP 0499725 B1 EP0499725 B1 EP 0499725B1 EP 91301228 A EP91301228 A EP 91301228A EP 91301228 A EP91301228 A EP 91301228A EP 0499725 B1 EP0499725 B1 EP 0499725B1
- Authority
- EP
- European Patent Office
- Prior art keywords
- control
- motors
- motor
- encoder
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
- 230000033001 locomotion Effects 0.000 claims description 48
- 230000004044 response Effects 0.000 claims description 22
- 230000003287 optical effect Effects 0.000 claims description 12
- 230000008878 coupling Effects 0.000 claims description 8
- 238000010168 coupling process Methods 0.000 claims description 8
- 238000005859 coupling reaction Methods 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 5
- 238000001514 detection method Methods 0.000 claims description 3
- 230000002093 peripheral effect Effects 0.000 claims description 2
- 238000007639 printing Methods 0.000 description 47
- 230000006870 function Effects 0.000 description 34
- 238000005070 sampling Methods 0.000 description 28
- 240000007320 Pinus strobus Species 0.000 description 26
- 230000007246 mechanism Effects 0.000 description 26
- 230000007704 transition Effects 0.000 description 23
- 238000010586 diagram Methods 0.000 description 17
- 230000001276 controlling effect Effects 0.000 description 16
- 230000000694 effects Effects 0.000 description 15
- 238000006073 displacement reaction Methods 0.000 description 14
- 230000015654 memory Effects 0.000 description 14
- 238000012544 monitoring process Methods 0.000 description 7
- 238000004804 winding Methods 0.000 description 7
- 230000008901 benefit Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 5
- 230000001105 regulatory effect Effects 0.000 description 5
- 230000000295 complement effect Effects 0.000 description 4
- 101000619564 Homo sapiens Putative testis-specific prion protein Proteins 0.000 description 3
- 102100022208 Putative testis-specific prion protein Human genes 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 230000009977 dual effect Effects 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 239000011800 void material Substances 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- JJQDIWJXVDJXRH-KNTRCKAVSA-N (e)-1,5-diphenyl-3-(2-phenylethynyl)pent-1-en-4-yn-3-ol Chemical compound C=1C=CC=CC=1C#CC(C#CC=1C=CC=CC=1)(O)\C=C\C1=CC=CC=C1 JJQDIWJXVDJXRH-KNTRCKAVSA-N 0.000 description 1
- 102100031456 Centriolin Human genes 0.000 description 1
- 101000941711 Homo sapiens Centriolin Proteins 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 238000013016 damping Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000020169 heat generation Effects 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003534 oscillatory effect Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 229920006395 saturated elastomer Polymers 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07B—TICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
- G07B17/00—Franking apparatus
- G07B17/00459—Details relating to mailpieces in a franking system
- G07B17/00508—Printing or attaching on mailpieces
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07B—TICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
- G07B17/00—Franking apparatus
- G07B17/00185—Details internally of apparatus in a franking system, e.g. franking machine at customer or apparatus at post office
- G07B17/00193—Constructional details of apparatus in a franking system
- G07B2017/00258—Electronic hardware aspects, e.g. type of circuits used
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07B—TICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
- G07B17/00—Franking apparatus
- G07B17/00459—Details relating to mailpieces in a franking system
- G07B17/00508—Printing or attaching on mailpieces
- G07B2017/00516—Details of printing apparatus
- G07B2017/00524—Printheads
- G07B2017/00548—Mechanical printhead
Definitions
- the invention relates to a system for controlling a plurality of positioning devices such as d.c. motors in apparatus such as an electronic postage meter, and to controlling other functions of the apparatus. More particularly, the invention relates to an electronic postage meter including a plurality of value settable print wheels, and a microcomputer for controlling multiple d.c. motors to set the print wheels and for controlling other postage meter functions. The invention also embodies an incremental position encoder for supplying information related to the actual positions of devices such as print wheels which are to be positioned. The invention has particular application to devices such as electronic postage meters requiring low cost, compact apparatus for controlling positioning of a plurality of devices such as postage value digit devices, e.g., print wheels.
- Relatively accurate positioning of devices such as a print wheel in an electronic postage meter may be obtained using a stepper motor or a d.c. motor.
- An advantage of a stepper motor over a d.c. motor is that the stepper motor has defined stable equilibrium or detent positions, i.e., discrete positions in a fixed increment or step angle, which allows the stepper motor to be driven in open loop mode.
- control of a stepper motor as compared to a d.c. motor is relatively simple and does not require a motion transducer, such as an encoder, and a control loop, although it may be desirable to verify the detent positions of the motor.
- a stepper motor may be unstable and lose step synchronism. To avoid such instability, the size (torque) of the stepper motor is increased in comparison to load requirements to provide sufficient margins at the desired speeds.
- a disadvantage of a stepper motor in positioning apparatus in comparison to a d.c. motor is the relatively large size-to-torque ratio needed to ensure stable operation.
- a d.c. motor in positioning apparatus in comparison to a stepper motor may be smaller for the same load requirements and yet operate at higher speed than a larger size stepper motor. Additionally, the smaller d.c. motor allows a higher load-to-motor coupling (gear) ratio than a larger size stepper motor for the same load. Thus, the d.c. motor increases the torque available to the load at the desired speed as compared to a stepper motor which at the same torque and coupling ratio will operate at lower speed.
- Other advantages of a d.c. motor over a stepper motor are the reduced power dissipation (and corresponding reduced heat generation) and reduced power supply requirement for d.c.
- a d.c. motor has a single phase winding with a high back electromotive force, and requires a single output stage driver for the single phase winding.
- a comparable stepper motor has a two phase winding with the same winding resistance of the single phase d.c. motor winding. Hence, the stepper motor winding requires twice the power supply requirement as the comparable d.c. motor. Also, the stepper motor requires an output stage driver for each winding. Hence, the stepper motor requires twice the number of output stage drivers as the d.c. motor.
- a disadvantage of a d.c. motor over a stepper motor is that the d.c. motor requires a control loop, which adds to the cost and complexity of the positioning apparatus.
- stepper motors and d.c. motors for position control implemented as described above are multiplied.
- the computer and the software calculate and apply to the d.c. motor, via the amplifier, pulse width modulated (PWM) drive signals utilizing a digital compensator derived from an analysis of the d.c. motor, the motor load, and other control loop components.
- PWM pulse width modulated
- the d.c. motor is driven according to a predetermined velocity versus time profile stored in the computer.
- the encoder and counting circuitry provide digital signals to the computer and the computer provides digital PWM drive signals so that analog-to-digital and digital-to-analog converter devices are not required in the controller electronics.
- the computer is dedicated to motor control and separate microprocessors are provided to carry out other postage meter system functions such as keyboard and display control, accounting and printing.
- the actual position encoder is an incremental encoder which provides in response to motor shaft rotation two electrical signals 90 electrical degrees out of phase, i.e., in quadrature.
- the two signals together provide N quadrature states per motor shaft rotation.
- Shaft position is determined by counting the quadrature states and rotation direction is determined from the phase of the two signals, i.e., which signal leads (or lags) the other.
- the incremental encoder is implemented by a transparent disk having a plurality of opaque lines formed at equidistantly angularly-spaced intervals along one of the disc's opposed major surfaces, and an optical sensing device for serially detecting the presence of the respective opaque lines as they successively pass reference positions. In response to detecting the presence of the opaque lines, the encoder provides two output signals on two separate lines or channels in quadrature.
- the two channel, quadrature output of the incremental encoder is decoded by counting circuitry. If desired, the quadraure signals may be decoded by the computer. Whether an external circuit or the computer decodes the quadrature output signals of the encoder depends upon whether the computer's internal counting circuit is available or is being used for other purposes. External decoding circuits are currently available as monolithic integrated circuits, for example, DHC 2000 from Texas instruments Incorporated.
- position controllers of the type described above utilize a high resolution encoder and sample at 1 ms or less intervals, which means that the controllers have a relatively high motor control bandwidth requirement of 1 KHz or greater.
- High bandwidth controllers utilizing high resolution encoders are relatively expensive.
- a processor in such controllers is typically dedicated to motor control. Therefore, larger systems which include a d.c. motor and loop control therefor require other processors for control of other system functions, which increases the size and cost of the larger system.
- the electronic postage meter therein includes a timer, preferably external to the microcomputer, for providing a periodic interrupt in response to which the microcomputer interrupts a routine being executed and proceeds to examine sensors, inputs and outputs for machine status changes.
- a queue of individual tasks which comprise the operation of the postage meter are scheduled as required in accordance with machine status.
- a task switcher proceeds to service tasks in a "round-robin" fashion. Tasks that are inactive or waiting for an event are ignored.
- the first task encountered that needs to be serviced is granted control of the CPU. When all tasks have been polled, the polling cycle begins again. The tasks quickly perform a function and then relinquish the CPU to wait for an event to occur.
- a task may run to completion or suspend itself and permit task switching.
- a timer is set to zero each time that a task is activated, and then decremented in 2.5 ms intervals during CPU servicing of that task. Task priorities are assigned.
- U. S. Patent No. 4,731,728 of Muller also assigned to the present Applicant, discloses a postage meter having separate microprocessors for controlling postage value selection, accounting and keyboard and display functions. This patent also discloses shutter and interposer apparatus, and an accounting algorithm for controlling printing and postage accounting. The disclosure of the '728 Patent is incorporated herein by reference.
- An electronic postage meter print wheel setting optimisation system is disclosed in our UK Patent Application (GB-A) No. 2,166,389.
- print wheels 36 are driven by a drive mechanism e.g. stepping motors 38 at different operating speeds to set the postage printing elements to selected postage value to be printed.
- a control system e.g. a microcomputer 30 controls the drive mechanism and its speed of operation, a position detecting system e.g. amplifier comparator 42, opto-interruptor 44, slotted disc 46 is coupled between postage value selection and the postage printing mechanism and is further coupled to the control system. This is for detecting the actual setting of the postage printing mechanism elements and allows control means to verify the setting.
- the control system is operable in response to print element setting error information to control the speed at which the drive mechanism operates to drive the postage printing mechanism settable postage printing elements to a selected postage value.
- speed of setting is increased after each setting operation and when improper setting is detected the setting speed is reduced.
- the postage meter is then operated for the duration of its use at the highest possible setting speed where no error is encountered.
- U.S. Patent (US-A) No. 4,345,193 there is disclosed a system in which the postage amount handles are positioned by a driver.
- the driver includes motors which, in response to control signals from a postage computer, axially displace shafts along paths generally parallel to the paths of the postage meter handles.
- the shafts support actuator fingers which couple the shaft movement to the respective handles.
- An optical interruptor for each shaft senses various shaft positions and provides signals to the postage computer which are used in part to develop the control signals.
- EP-A-396298 a digital mark-printer operated under control of a microprocessor and control program.
- a main shaft including a printing head with a plurality of numeral wheels is driven by drive circuits and the position of the shaft and wheels are sensed by sensor circuits, all under control of the microprocessor.
- GB-A-2 223 575 discloses an optical position encoder useable in a franking machine wherein an encoder wheel has gear teeth which mesh with an associated rack.
- the present invention provides an electronic postage meter according to claim 1.
- the common drive signal means receives desired and actual position information for the motors and in response thereto provides drive signals to the motors to drive them to the desired positions.
- the common drive signal means includes means which receive digital signals representing the desired and actual position information for respective d.c. motors and generates for respective d.c. motors respective pulse width modulation (PWM) digital drive signals.
- PWM pulse width modulation
- the common drive signal means receives the desired position information and the actual position information for respective motors, and operates on the desired position information and the actual position information for one of the d.c. motors at a time for generating the drive signals for respective motors.
- a control loop is provided for each of the d.c. motors, and each of the control loops shares a common means which generates motor drive signals from desired position information and actual position information for one of the d.c. motors at a time.
- the common drive signal means includes means for generating a motion profile for movement of the d.c. motors in response to desired position information, and pulse width modulation means for generating the PWM drive signals.
- the PWM means comprises a digital compensation filter coupled to the motion profile generating means which receives actual and desired position information and generates digital compensation signals.
- the PWM means includes means converting the compensation signals into PWM motor drive signals. Amplifiers may be provided to amplify the PWM signals depending on motor drive requirements, etc.
- a computer constitutes the common drive signal means.
- the computer has a plurality of outputs for outputting PWM drive signals, one for each of the d.c. motors.
- the computer is a microcomputer which preferably comprises a single central processing unit, preferably implemented by a single chip integrated circuit microprocessor.
- the controlled devices are identical, e.g., postage meter print wheels, and the d.c. motors are identical.
- An electronic postage meter which includes a plurality of postage value digit devices, e.g., print wheels, which are set by the postage meter for printing postage on a mail piece.
- the value digit devices are set in parallel, and the apparatus for setting the value digits is mechanically and electrically compact and of low cost.
- the postage meter is provided with a plurality of d.c. motors and servo loops including a common drive signal means as described above for setting the digit values in parallel.
- the actual position sensing means comprises a low cost, low bandwidth incremental encoder as described herein.
- the d.c. motors may be brush or brushless. However, brushless are preferred for their high torque-to-frame ratio since compactness is an important consideration of the invention.
- a computer controls the motors and preferably is a microcomputer which includes a single central processing unit preferably, a single chip microprocessor integrated circuit.
- the microcomputer controls other, preferably all, electronically-controlled postage meter functions including accounting, printing information entry and display, fault monitoring, etc.
- An electronic postage meter comprises a plurality of print devices each individually settable to a desired position so that the print devices may print a desired postage value; a plurality of d.c. motors, one for each of the plurality of the print devices, a different one of the d.c. motors being coupled to a different one of the print devices for setting the respective print device to a respective desired position essentially in parallel; actual position sensing means for providing signals related to the actual positions of the print devices; a microcomputer coupled to the d.c. motors and to the actual position sensing means, the microcomputer in response to signals from the actual position sensing means, a desired postage value and programming of the microcomputer sequentially (but effectively in parallel) controlling the d.c. motors to set the print devices to respective desired positions for printing the desired postage value.
- the microcomputer also monitors and controls at least one, preferably a plurality of, and most preferably all other postage meter functions.
- the microcomputer comprises common means receiving the signals related to the actual positions of the print devices and desired postage values and generating motor drive signals for one of the d.c. motors at a time corresponding to movement of respective print devices towards respective desired positions.
- the common means in the microcomputer includes the motion profile generating means and the PWM means described above.
- the electronic postage meter comprises means for entering information into the postage meter including postage values, e.g., a keyboard; a means for displaying information such as postage values, e.g., a liquid crystal device (LCD); and non-volatile memory (NVM) for storing accounting and other information.
- the microcomputer is coupled to the entering means, the display means, the NVM, the d.c. motors, and the position sensing means and sequentially monitors and controls functions associated therewith including postage accounting.
- first and second output signals which contain information of the actual, incremental position of a device, e.g., a print wheel driven by a d.c. motor as described above.
- the first and second output signals are provided on first and second lines which constitute two channels (CH A and CH B) of the encoder.
- the first and second signals are substantially out of phase, but less than by 180°, e.g., 90° out of phase, i.e., they are in quadrature.
- the encoder includes a movable element having first series and second series of variations.
- the variations of the first and second series extend along respective parallel lines in the direction of movement of the movable element and the variations of the first and second series are transversely spaced with respect to each other.
- the widths of the first and second variations are equal and offset by a substantial amount, but less than the full width of a variation.
- the variations of the first and second series are detectable as they pass a reference point and the encoder includes encoder signal means for detecting the variations and providing first and second signals related to detection of the variations of the first and second series, respectively.
- the variations are optically detectable and the encoder signal means comprises means for projecting light at variations in the first and second series of variations and for detecting light emanating from the variations of the first and second series of variations.
- the movable element is a wheel and the first and second series of variations are radially spaced and extend circumferentially about respective circumferences of first and second circles.
- the circumferential widths of the variations of the first and second variations are equal and circumferentially offset by half the circumferential width of a variation.
- the encoder signal means provides the first and second signals out of phase by 90°.
- the variations of the first and second series of variations comprise circumferentially-extending slotted openings in the wheel, the slotted openings being of equal circumferntial width, radially spaced from each other, equidistantly angularly arranged about the respective circumferences of first and second concentric circles, and offset by half the circumferential width of an opening from each other.
- the light projecting means comprises means for projecting light through the slotted openings in the first and second series of openings, for detecting light projected through the openings of the first and second series of openings, and for providing the first and second signals 90° out of phase.
- an electronic postage meter having five print wheels.
- the invention provides five separate closed-loop position controls realized in system controller electronics residing in a 5" x 5" printed wiring assembly.
- a minimum hardware implementation may be achieved while supporting both multiple position loops control and system operating functions control, i.e., keyboard/display, accounting/printing, and external world communication.
- microcomputer Multiple position loops control and the system operating functions control may be combined into a single microcomputer system.
- the motor control elements, except for the output stage amplifier drivers, are implemented by the microcomputer and its programming.
- the hardware system is designed in such a way to support the fastest and most efficient CPU execution of microcomputer implemented functions.
- each d.c. motor position loop is closed with a low cost, low bandwidth quadrature encoder to digitize the angular position of the motor drive shaft into four sensor states per code cycle (electrical).
- the number of encoder state transitions and its sequence are decoded by the microcomputer to obtain the incremental actual position counts and the direction of motion.
- the interface bandwidth between the controller and quadrature encoder is a function of the peak motor speed and the number of encoder state transitions per motor revolution.
- the shaft encoder information is directly processed by the microcomputer.
- the quadrature and phase decoding, and state transition up/down counting is accomplished by counting circuitry within the microcomputer, i.e., CPU, and not by an external device.
- Each print wheel drive mechanism has a 10-to-1 gear ratio between the pinion gear of a rack and pinion drive and the motor shaft, i.e., 10 motor revolutions makes one pinion gear revolution.
- an accuracy of 1/4 (quarter) motor revolution i.e., 1/4 of a full-digit (one motor, or, 1/10 pinion gear revolution, is equal to one-full-digit) is sufficient for the capture range of a mechanical aligner which positions racks in the print drum drive shaft that are coupled to the print wheels so that all the teeth on the respective racks are aligned with respect to each other. This ensures that the print wheels are all aligned at full digit positions in the printing area.
- the encoder resolution is designed to give four state transitions per motor revolution.
- the encoder maximum frequency is approximately one state transition per three milliseconds.
- the maximum sampling period was determined to be 2.5 ms.
- tracking error will occur.
- each motor control processing takes 500 ⁇ s which includes the decoding and counting of the shaft encoder signal, execution of the filter routine, generation of the PWM output drive signals, and calculation of the next period's desired position (in encoder counts).
- the output of the filter is transformed into PWM drive signals by a PWM routine which generates, or, updates the PWM signal for the five controls every 500 ⁇ s.
- this routine provides five discrete torque (current) values to each motor, i.e., 500 ⁇ s increments with a 2.5 ms period.
- the next period's desired position is determined through a look-up table of discretized deceleration distance values with respect to the 2.5 ms interval (sampling period), that is, a controlled deceleration is invoked once 3/4 of the total desired displacement is reached with 100% PWM duty-cycle.
- the invention in its preferred embodiment provides that execution by the CPU of system function control is mutually-exclusive with motion control.
- the quadrature decoding and routine counting is executed every sampling period of 2.5 ms, i.e., the up/down counter (shaft position count) is always updated for every encoder state transition. Therefore, the system software invokes motion control only if a postage setting is desired, or, a change in position of any motor is detected (steady-state error). With the latter, the position error can be corrected (i.e., servo) at any time the system function allows, as long as the system keeps track of the actual position count.
- a prime mover is needed for each bank position.
- the selection of a prime mover and for the compact postage meter according to the invention and its associated control system can become difficult for the following reasons: (1) the desired compact size of the meter presents a space limitation for housing the value selection and print drum drive mechanisms, the electronics, and the power supply; (2) the print wheel drive mechanism requires high starting and running torques because of the surface and viscous friction from sliding adjacent drive racks and load coupling tolerances.
- the critical selection criteria of the prime mover was determined to be its torque-to-size ratio. It must be small enough to fit five units in the value selection-drive mechanism area, and must have enough torque and margin to overcome the opposing load torques at the desired setting (motion) speed. The associated dissipation must be minimized to realize system design objectives, i.e. packaging, cost, power requirement, and reliability. Hence, d.c. motors were selected.
- the invention utilizes the closed-loop position control system described herein.
- the accuracy of the final digit print wheel position is determined by the resolution of the feedback position encoder.
- the encoder is mounted at the load side, i.e. same axis as the pinion gear of the rack and pinion drive.
- Postage meter 20 (Fig.1) according to the present invention includes a microcomputer 22, a printer unit 24, a keyboard/display unit 26 and a power supply unit 28.
- Microcomputer 22 includes a CPU 29, read only memory (ROM) 30 including non-volatile ROM, random access or read/write memory (RAM) 31 including battery backed-up RAM (non-volatile RAM), and the following input/output ("I/O") circuitry; keyboard/display I/O 32; analog monitor/control 33; echoplex I/O 34; logic monitor/control 35 and printing/accounting I/O 36.
- ROM read only memory
- RAM random access or read/write memory
- I/O input/output
- Keyboard display unit 26 includes a keyboard 40 for entering postage values and commands for operating postage meter 20, and a display 42 for displaying postage values, commands, messages, etc.
- Keyboard/display I/O 32 provides an interface for exchange of signals between keyboard 40 and display 42, and microcomputer 22.
- Analog monitor/control 33 monitors analog functions and with CPU 29 controls accounting. It receives various regulated and unregulated voltages from power supply unit 28 for powering microcomputer 22 and for monitoring power supply unit 28 communicates with CPU 29, and also receives various signals and outputs various signals internal to microcomputer 22 for ensuring fail-safe operation and postage accounting of postage meter 20.
- Logic monitor/control 35 monitors logic functions and with CPU 29 performs input/output control and decoding.
- Echoplex I/O 34 with CPU 29 controls an optical input/output port by means of which microcomputer 22 communicates with an external system 46 such as a central system for downloading postage funds to meter 20 and uploading postage usage information from meter 20. Echoplex I/O 34 (including an optical interface) provides complete electrical isolation of microcomputer 22 from any external system 46 coupled thereto via echoplex I/O 34.
- Printer unit 24 includes a bank of print wheels 218 (see Fig. 8) mounted to a print drum 217 for printing postage indicia on mail pieces, a digit value selection mechanism 50 which sets the print wheels to print a selected postage value and a print control mechanism 52 which causes the print drum to print the postage value set on the print wheels on a mail piece and monitors structure in printer unit 24 to ensure that postage meter 20 does not print without accounting and does not account without printing.
- Printing/accounting I/O 36 provides an interface for exchange of signals between digit value selection mechanism 50, print control mechanism 52 and microcomputer 22.
- ROM 30 of microcomputer 22 stores the microcomputer program
- RAM 31 stores program data
- the non-volatile memory (“NVM”) comprises electrically erasable ROM (EEROM) 66 (hereinafter “NVROM” 66) and battery backed-up RAM 68 (hereinafter “NVRAM” 68).
- NVRAM non-volatile memory
- Microcomputer 22 also includes a test port 76.
- microcomputer 22 is an 8-bit single board microcomputer with an 8-bit multiplexed bus structure and includes a single, multi-tasking CPU 29 embodied by an NSC800 integrated circuit of National Semiconductor Corp., or a 8051 integrated circuit of Intel Corporation, or equivalent.
- Microcomputer 22 is a multi-tasking, uniprocessing system which via multi-tasking CPU 29, programming in ROM 30, program data in RAM 31 and I/O's 30-36 sequentially periodically polls postage meter activities and during each poll reacts to the stimulus received from the polled activity, i.e., executes in response to the received stimulus and the stored program.
- Each of the controlled activities has an I/O control bandwidth, i.e., a maximum response time, which is the sum of the maximum times required for: reading stimulus input data; decoding stimulus raw data; and executing the programmed action. Since CPU 29 polls and executes each activity sequentially, other activities are not serviced during execution of one controlled activity, and wait until the next polling period for servicing the respective activity. However, microcomputer 22 allows each activity when it is polled its maximum bandwidth, if needed, to ensure that the respective activity is under control at all times.
- the address bus 80 from CPU 29 is split into lower 81 and upper 82 address buses.
- Lower address bus 81 is coupled to logic monitor/control 35 which demultiplexes the lower addresses and outputs them on demultiplexed lower address bus 83.
- the demultiplexed lower address bus 83 and the upper address bus 82 are coupled to memories 30, 31, 66, 68.
- Bidirectional data bus 85 is coupled to CPU 29, logic monitor/control 35 and memories 30, 31, 66, 68.
- Logic monitor/control 35 includes the following microcomputer peripherals: interrupt controller 86 which provides an interrupt signal (INTR) to the INTR interrupt input of CPU 29; dual timer 88 for performing software watchdog functions and providing an interrupt signal (TO-INT) to the non-maskable input (NMI) of CPU 29; an illegal memory address trap 90 which provides a void interrupt signal (VOID INT) to the non-maskable interrupt (NMI) input of CPU 29; input parallel port (IP) 92; output parallel port (OP1,OP2) 94; I/O parallel port (IOP) 96; decoder 98 for decoding and demultiplexing inputs and outputs of logic monitor/control 35 including lower address bus 81, data bus 85, chip selects 99, CPU strobes 100, input parallel port 92, output parallel port 94, and I/O parallel port 96; NVM control (logic) 102 for supplying non-volatile memory enable signals (NVM ENABLE) to analog monitor/control 33 for enabling access to NVROM 66 and
- Printing/accounting I/O 36 of microcomputer 22 includes output stage drivers referenced generally by 108 (part of printing accounting I/O 36) which provide: drive signals to the d.c. motor drives in printer unit 24 which set the print wheels (see Figs. 4, 8 and 9); signals to an interposer solenoid drive for energizing a solenoid which controls the position of an interposer which prevents printing unless it is raised by the solenoid (see Fig. 3); and signals which energize light emitting diode (LED) sensors (see Fig. 5). Inputs from LED sensors in printer unit 24 are input to the input parallel port IP of logic monitor/control 35 via printing/accounting I/O 36.
- LED light emitting diode
- Dual timer 88 in logic monitor/control 35 includes a timer T0 which functions as a software watchdog for incorrect (out-of-sequence) program execution.
- TO is started and periodically reset to avoid a non-maskable interrupt (NMI) generated by a TO time-out.
- a time-out interrupt (TO-INT) provided to the non-maskable interrupt input (NMI) of CPU 29 is interpreted by CPU 29 the same as a computer hardware malfunction, and in response thereto, CPU 29 ceases all postage meter control activities, locks access to NVMs 66,68 and the print controls, and then remains in a "halt" state.
- Analog monitor/control 33 which monitors analog functions and with CPU 29 controls accounting in NVMs 66, 68, includes NVM strobes output control 110, printer enable output control 112, system clock monitor 114 and power supply monitor 116.
- NVM strobes output control 112 receives the NV ENABLE signals from logic monitor/control 35 and a CPU write (WR) strobe from CPU 29, and outputs NVM strobes to NVROM 66 and NVRAM 68 for controlling reading and writing of NVROM 66 and NVRAM 68.
- Printer enable output control 112 receives an UNLOCK signal from logic monitor/control 35 and outputs a PRINT ENABLE signal to printing/accounting I/O 36 which enables printing of postage by printer unit 24.
- System clock monitor 114 receives the CPU CLK (clock) strobe from CPU 29 and provides a SYSTEM RESET to logic monitor/control 35 and to RST input of CPU 29.
- Power supply monitor 116 receives regulated and unregulated +5 v from power supply unit 28 and provides a SYSTEM RESET when the +5 v regulated supply falls below a predetermined value and a VUNR LOW signal to CPU RSTA and RSTB inputs, respectively, and a SYSTEM RESET when the +5 v unregulated supply falls below a predetermined value.
- Microcomputer 22 is fully memory-mapped, hence, every memory and I/O has a defined address within the valid (used) system memory blocks. Access to any void memory address is prohibited. Once an illegal address is decoded by illegal memory access trap 90 of logic monitor control 35 it outputs the VOID-INT signal to CPU 29 to lock all the NVM-access and print controls.
- NVM control (logic) 102 keeps the NVM CHIP SELECTS disabled if it fails the CPU's memory-write cycle sequence and keeps the NVM ENABLE strobes inactive if any device chip-select other than the addressed NVM is active, and if the NVM's write-protect latch is enabled (write-disabled).
- NVM control (logic) 102 (Fig. 2) of logic monitor/control 35 includes gating 118 (Fig. 3) which receives the CPU STROBES (INTER CNTRL, METER ENABLE, NVM1 ENABLE, NVM2 ENABLE and START TIMER) and provides NVM write-protection signals (NVM1, NVM2) which are normally active and must be purposely disabled before a write-access is made, and a global lock control (UNLOCK) required for any NVM-access (read or write) and printing which is active upon detection of predetermined faults and is used for immediate shut down of the metering functions.
- a logic fault monitor system comprising timer watchdog 120 (which contains timer TO of dual timer 88 in Fig.
- Gating 130 in analog monitor/control 33 receives the NVM ENABLE strobes NVM1, NVM2 and NVMWR from logic monitor/control 35, the WR strobe from CPU 29 and the SYSTEM RESET from gate 132, and outputs the NVM1 ENABLE, NVM2 ENABLE and NVWWR ENABLE strobes to printer interposer 134 (described below), to NVROM 66 and NVRAM 68.
- Gating 130 also receives the UNLOCK strobe from logic monitor/control 35 and in response thereto and SYSTEM RESET outputs the PRNT ENABLE strobe to an output stage driver 134, which outputs a source drive IPSRC to solenoid 136 of an interposer 138 (described below) in printer unit 24.
- Printer interposer 138 disposed in printer unit 24, prevents printing unless it is raised.
- the position of printer interposer 138 is controlled by solenoid 136 which when energized raises printer interposer 138 for printing and when de-energized drops interposer 138 to prevent printing.
- Solenoid 136 is source driven by the IPSRC signal from output stage driver 134, which must be retriggered (pulsed) periodically by PRNT ENABLE to turn it on. Failure to retrigger output stage drive 134 causes it to turn off and de-energize solenoid 136, which causes interposer 138 to drop and prevent printing.
- the IOP7 output of gating 102 in logic monitor/control 35 is coupled to the output stage driver 140, which supplies a sink drive IPSNK to solenoid 136 to energize it.
- Control of interposer 138 is thus made redundant in that either output stage driver 134 or switch 140 may be turned off to de-energize solenoid 136 and drop interposer 138.
- Analog monitor/control 33 forces the NVM-ENABLE strobes (NVM1, NVM2 and NVMWR ENABLES) and PRINT ENABLE to their inactive states and asserts SYSTEM RESET, when the logic power supply inputs, the system clock, and an NVM-access 'window' (time period of active state) are outside their specified operating limits. These out of range conditions are determined by power supply monitor circuitry 142 and 144 (Fig. 3) (part of power supply monitor 116 in Fig.
- Power supply monitor 116 also includes 5VUNR fail circuit 150 which provides a low 5VUNR signal to the RST B input of CPU 29 when the +5 v unregulated input voltage is low. When active, the RST input causes CPU 29 to go into internal write protect mode.
- NVM control illegal/shorted circuit 140 of analog monitor/control 33 (Fig. 3) provides the access 'window' referred to above (e.g., sixteen system clock cycles) for the NVM-access strobes, both at the input and output signals, to detect any logic "0" short-circuit (stuck-active) on these lines. Once detected, NVM-access and print-enable are blocked by keeping the control outputs in inactive state.
- Analog monitor/control 33 activates the SYSTEM RESET and sets the NVM-access and PRNT ENABLE control outputs to their inactive states when it detects that the supply voltage, or the system clock is beyond its normal operating limit.
- the system is reset at a supply voltage level within the stable operating condition of microcomputer 22, and the NVM-access strobes and print-enable are held stable even at low voltage levels while the rest of the system becomes unstable.
- Analog monitor/control 33 outputs the SYSTEM RESET to the RSIN input of CPU 29 and to gate 126 in logic monitor/control 35, and provides a time delay (e.g., 131 ms) for every activation of the system reset signal.
- a time delay e.g., 131 ms
- Each NVM 66, 68 has an independent write-protect latch in logic monitor/control 35 (control latches 128) which is disabled when deliberate writing to the specific NVM is to be executed; otherwise, the write-protect latches for both NVMs are enabled (default state), blocking any random write-access to the NVMs.
- Access to NVMs 66, 68 and printing are normally inhibited by an unlock-enable latch (control latches 128 in Fig. 3) which is enabled (unlocks) only during a normal program execution, i.e., gating 118 in logic monitor/control 35 (Fig. 3) outputs an active UNLOCK signal. Any detected failure sets this latch to its default disabled (locked) state, and causes logic monitor/control 35 to disable the UNLOCK signal.
- an unlock-enable latch control latches 128 in Fig. 3
- gating 118 in logic monitor/control 35 Fig. 3
- Outputs PF ⁇ and BOK ⁇ from NVRAM 68 are coupled to inputs RSTA ⁇ and BOK ⁇ , respectively, of CPU 29 which monitors NVRAM 68 for low +5V regulated voltage and low battery voltage. In response to an active signal on those lines, CPU 29 locks postage meter 20 as described above.
- NVM's 66, 68 provide redundant data storage to avoid losing critical accounting data in a single-point failure. For the same reason, two redundant batteries, B1 and B2, for the battery backed-up NVMRAM 68, and two complementary control lines IPSRC and IPSNK are provided for interposer solenoid 136.
- output stage drivers 134 depicted in Fig. 4 are provided as drive amplifiers for driving the d.c. motors in printer unit 24.
- One such driver 134 is provided for each d.c. motor 200 to be controlled.
- Fig. 5 depicts the sensors in printer unit 24 for sensing the position of the print wheels and the positions of the printer interposer, shutter and print drum. Further description of control of the d.c. motors 200 is made below.
- Microcomputer 22 also includes a test port 76 which may include test inputs (bus 180) to CPU 29 and logic monitor/ control 35 (for example, for memory accessing, use of external program memory, etc.) in addition to terminals for monitoring selected microcomputer signals, as for example depicted in Fig. 2.
- test port 76 may include test inputs (bus 180) to CPU 29 and logic monitor/ control 35 (for example, for memory accessing, use of external program memory, etc.) in addition to terminals for monitoring selected microcomputer signals, as for example depicted in Fig. 2.
- Echoplex I/O 94, optical interface 72 and keyboard/display I/O 32 may be conventional and are known or may be constructed by those of skill in the art, or specially designed for postage meter 20.
- microcomputer 22 is a multi-tasking system, and the various activities of postage meter 20 are polled and executed in accordance with the system multi-tasking diagram depicted in Fig. 6.
- Microcomputer 22 multiplexes the input/output port (IOP) and sense bus (SO-S3) of logic monitor/control 35 as shown in Fig. 7, and controls input/output signals as set forth in Table I below.
- IOP input/output port
- SO-S3 sense bus
- Logic monitor/control 35 through ports OP1, OP2 and IP (Fig. 2) provides the drive to output stage power drivers 134.
- Table I lists the functional assignments of the ports and their corresponding control states.
- IOP lines and/or combinations of lines may be used for two different functions in different I/O's provided that another signal, such as a clock, required for execution of one of the two functions is inhibited to prevent execution of the non-selected function.
- another signal such as a clock
- Print wheels 218 are mounted to a print drum 217, and the print drum is driven by a motor 219 controlled by microcomputer 22 to print postage as described herein and in patents cited herein.
- the mechanical drive system for the print cycle is uni-directional and allows only one cycle of printing until interposer drive 134 (Fig. 3) is reset. Additionally, a shutter bar (not shown) resets and locks the drive mechanism when the drive mechanism is driven to its home position and allows print drum 217 carrying print wheels 218 (Fig. 8) to be tripped for printing when driven forward.
- Sensor 174 (Fig. 5) via signal SH indicates the position of the shutter bar
- sensor 175 via signal IN indicates the position of the interposer and sensor 173 via signals H0 and H1 (Figs.
- the interposer mechanism blocks the shutter bar from being driven forward when in the down position (printing disabled) and allows the shutter bar to move forward when in the up (printing enabled) position.
- the outputs H0, H1, SH and IN of sensors 173-175 are read from the sense bus, S3-S0 through the LEDB strobes.
- Table II below defines the system response to the possible states of the sense bus.
- Circuitry and programming for carrying out the functions described above may be constructed by those of skill in the art from the disclosure herein and the disclosures of the U.S. patents incorporated herein by reference.
- postage meter 20 includes a plurality of print wheels 218, mounted to a print drum 217, whose positions are set by a digital controller 252.
- Print drum 217 is rotated through a printing area 254 by a motor 219 controlled by microcomputer 22.
- Print drum 217 is rotated between home positions by motor 219 to print the postage set on the print wheels 218 on a mail piece presented in area 254.
- Sensor 173 detects the two home positions of print drum 219.
- Sensor 173 may comprise optical sensors 260, 261 which sense the position of an optical variation (e.g. hole) in a wheel 250 connected to print drum 217.
- print drum 217 is in one home position when the outputs 263, 264 (H0, H1) of sensors 260, 261 are "01" and in the other home position when outputs 263, 264 are "10".
- drum 63 is in a rotated position between home positions.
- the position of print wheels 218 is set by d.c. motors 200, which are coupled to respective print wheels 218 by gearing 214 and a rack and pinion drive 220, 221.
- the racks 220 are disposed in print drum shaft 256, two on one side thereof as shown in Fig. 8, and three on the other side thereof.
- the racks 220 extend within shaft 256, to engage print wheel pinion gears 258 (Fig. 8) attached to respective print wheels 218.
- print wheels 218 are not locked when power to meter 20 is off, as described for example in U.S. Patent No. 4,731,728 referenced above.
- print drum home sensor 173 is coupled to the free end of print drum 217 and respective encoder sensors 205 are coupled between respective d.c. motors 200 and respective rack and pinion drives 220, 221.
- a 10 to 1 gear ratio is provided by gearing 214 between respective motors 200 and rack and pinion gear drives 220, 221. This load transfer ratio provides an accuracy of 1/4 motor shaft revolution, which is sufficient for alignment of racks 220 in print drum shaft 256 by a mechanical aligner plate (not shown).
- the mechanical aligner plate simply aligns the racks relative to each other so that the teeth of all the racks are in alignment, i.e., a particular rack may be moved to +/- 1/2 tooth to align it with other racks. This ensures that the print wheels are all aligned relative to each other at full digit positions for printing.
- the accuracy of the digit position of print wheels 218 is determined by the resolution of the incremental encoder 205.
- the encoder 205 is mounted at the load side, i.e., on the same axis as pinion gear 220.
- the encoder wheel 210 is positioned along the load axis in such a way that an encoder window (state) is within the capture range of the mechanical aligner plate (not shown) to provide full-digit positions of the print wheels, as described above, when the print drum rotates.
- the final position stability control is provided by controller 220. For each "do motor control loop", controller 220 processes the positional and direction information from the encoder 205 and outputs the "do motor electrical drive" based on the difference between the desired and actual positions of the print wheel.
- Controller 220 includes microcomputer 22, (CPU 29 and logic monitor/control 35), d.c. motors 200 (one for each print wheel 218), incremental (relative) position encoders 205 (one for each d.c. motor 200), and motor drive amplifiers 134 (one for each d.c. motor 200). If desired, drive amplifiers 134 may be provided as part of microcomputer 22. Each motor 200 is operated via a closed servo loop implemented in part by microcomputer 22, drive amplifiers 134 and encoders 205. Digital controller 220 contains five parallel software driven servo systems, a functional block diagram of each of which is depicted in Fig. 13.
- Fig. 8 depicts part of the control loop for each of the print wheel setting d.c. motors 200.
- Each control loop includes a driver amplifier 134, a d.c. motor 200 and a position encoder 205.
- Logic monitor/control 35 outputs motor enable (EN) and direction (DIR) drive signals generated by CPU 29 to driver amplifiers 134 which output complementary source (DM1+ to DM5+) and sink (DM1- to DM5-) drive signals to drive respective motors to move respective print wheels towards respective desired positions.
- Position encoders 205 in response to sensor strobes LEDA1 - LEDAS provide respective quadrature output signals on CH A and CH B (D0 and D1) to logic monitor/control 35 for input to CPU 29.
- Logic monitor control 35 provides the sensor strobes on input/output port lines IOP0 - IOP3 (Fig. 5) to a 3 to 8 line decoder 207 which provides the decoded sensor strobes LEDA1 - LEDA5 and a sensor strobe LEDB for interposer sensor 176.
- the quadrature CH A and CH B output signals D0 and D1 from encoders 170 are input to sense bus S0-S3.
- the input data sense bus S0-S3 is a 4-bit input data bus which comprises the optical sensor outputs and switch poles of printer unit 24, connected as OR inputs for multiplex sampling by microcomputer 22.
- the data in the sense bus at any given time represents the output channels of the strobed sensors. Hence, if there is no strobe active, the sense bus lines are pulled-up to logic "1" state. For an optical sensor output, a logic "0" at the sense line indicates an uninterrupted LED light source: a logic "1" indicates an interrupted (blocked) light source.
- respective output stage driver amplifier 134 output complementary position motor drive signals DM1+ to DM5+ and negative motor drive signals DM1- to DM5- to control the five d.c. motors 200 (M1-M5) of digit value selection mechanism 50 (Fig. 1).
- the positive output (DM1+ to DM5+) of driver amplifier 134 is connective to the positive terminal of the respective motor 200 and the negative output (DM1- to DM5-) is connected to the negative terminal of the respective motor.
- driver amplifier 134 The outputs of driver amplifier 134 are complementary so that when one is high (Vs), the other is low, and the high output acts as a source while the low output acts as a sink. When its positive output is high, driver amplifier 134 provides a digit-decreasing drive to the respective motor, and when its negative output is high, driver amplifier 134 provides a digit increasing drive to the respective motor.
- the LEDA1 - LEDA5 signals are sink strobe signals that demultiplex the outputs of the encoders 205 of the five motors or banks, bank #1 (LS bank) to bank #5 (MS bank), respectively, from the multiplexed input sense bus S0-S3.
- the corresponding state of the digit encoder output, DO and D1 are present at the S0 and S1 lines of the sense bus, respectively.
- These open-collector outputs are normally off (open) except when sampling the digit encoder positions.
- the LEDB strobe is a sink drive which demultiplexes the state of the home, shutter, and interposer sensor outputs from the sense bus S0-S3, respectively.
- the open-collector output is normally off (open) except when sampling the state of the print-mechanism (LEDB) group of sensors.
- each print wheel position encoder 205 includes a CH A sensor 208 and a CH B sensor 209 and a position encoder wheel 210 (Fig. 9) coupled to the shaft 212 of a respective motor 200 by gearing 214.
- Shaft 216 of encoder wheel 210 is coupled to a respective print wheel 218 by a rack and pinion drive 220, 221.
- the angular position of print wheel 218 is related to the angular position of encoder wheel 210, which is sensed by means of slotted openings 222 in wheel 210 arranged in outer circular series 224 (CH A) and inner circular series 225 (CH B) and sensors 208, 209.
- Slotted openings 222 have equal circumferential widths and are equidistantly, angularly spaced along the circumference of respective concentric circles. Slotted openings 222 in inner and outer series 225 (CH A) and 224 (CH B) are radially spaced and circumferentially offset by a substantial amount but less than by 180°. In the preferred embodiment, they are offset by 90°. This doubles the number of encoder states available over a single series of openings.
- the CH A and CH B output lines 227, 228 (DO, D1.) from sensors 207 and 208 are coupled to quadrature decoder and counter 306 in microcomputer 22 which supplies the motor drive signals DM+, DM- to motor 200 on the EN and DIR lines and via amplifier 22.
- Sensors 208 and 209 each comprise a light emitting diode (LED) 230, 231 and a photo transistor 234, 235, respectively.
- LEDs 230, 231 are selectively connected in series with a source of power via microcomputer 22 and are positioned as reference points for wheel 210 on one side thereof to project light through a respective series 224, 225 of slotted openings 222.
- Transistors 234, 235 are positioned on the other side of wheel 210 to receive light projected through respective series 224, 225 of slotted openings 222.
- Transistors 234, 235 are connected as switches with their emitters connected to ground and their collectors coupled to microcomputer 22 as the CH A output line 227 and CH B output line 228.
- microcomputer 22 determines when slotted openings 222 pass the reference points of LEDs 230, 231, i.e., when transistors 234, 235 are switched on (logic "0" state on the respective line 227 or 228) by light from LEDs 230, 231.
- Fig. 10 The signals obtained from sensors 208, 209 appearing on the CH A and CH B lines (D0, D1 lines, respectively in Fig. 5) are shown in Fig. 10.
- the CH A and CH B sensor signals are quadrature decoded as described below in connection with Fig. 16 to give the actual position of the respective print wheel.
- Fig. 10 also shows the relationship between the encoder quadrature and electrical degrees including encoder state switching points in electrical degrees and transition times for encoder states.
- one revolution of motor 200 corresponds to a full-digit quadrature state, and nine motor revolutions are required to set a print wheel to all of its digit values, 0-9.
- an encoder transition is equal to 1/4 motor revolution.
- Each print wheel is rotatable between end stops 240, offset from the "0" and "1" digits by a maximum offset distance corresponding to one half motor revolution, which in turn corresponds to a maximum of three encoder transitions.
- All full digit quadrature states are "00" ("S FD ”) states.
- each servo loop 300 includes the following: a motion profile and timing control 302 (W), a summing junction 303, a digital compensation control or filter 304 (Dz), a pulse width modulator (PWM) 305 (Kpwm), an output stage drive amplifier 134 (Ka), encoder sensors 208,209, encoder wheel 210 and an encoder state quadrature decoder and counter 306 (Kp).
- the output stage drive amplifier 134 is shown incorporated within the microcomputer 22, but may physically be located externally of the microcomputer 22 depending on space requirements, etc.
- Motion profile and timing control 302 summing junction 303, digital compensation control 304, pulse width modulator 305 and encoder state quadrature decoder and counter 306 illustrated in Fig. 13 as hardware are implemented by CPU 29 and software.
- Encoder sensors 208, 209 provide digital signals directly, as described in connection with Figs. 5 and 9-12, and PWM circuit 305 provides digital d.c. motor drive signals so that loop 300 does not require an analog-to-digital converter and a digital-to-analog converter. Desired position information contained in motion profile and timing control 302 may be entered by means of keyboard 40 or entered from an external system.
- Fig. 14 shows the timing and I/O port (IOP) multiplexing for control of the five d.c. motors 200 (M1-M5).
- An "X" indicates when the respective DM+ and DM- drive lines to the respective motors are active.
- Each motor sample cycle ts takes 2.5ms, with 500 ms (tcw) being allocated to each motor.
- Tasks including motor control are entered and exited in accordance with the system multi-tasking diagram depicted in Fig. 6. Multi-tasking of postage meter functions in general is described in more detail in U.S. Patent No. 4,710,883 referenced above; operation of postage meter 20 during the motor control cycle is described below.
- Printing/accounting control I/O 36 and digit value selection mechanism 50 are invoked: if (a) a set-postage command is received from keyboard 40, or, from external system 46 via echoplex I/O 34; (b) if the steady-state position of any of d.c. motors 200 is disturbed, i.e., a position error is detected; and (c) during power-up (reset) position control initialization.
- interposer 138 is dropped to inhibit any print-cycle and is raised to allow printing if microcomputer 22 is able to position the digits correctly and accounting in NVRAM 68 has enough funds for the value setting. Otherwise, print interposer 138 remains down.
- the control input to each control loop for a d.c. motor 200 is the desired position, and the output of the respective control loop is the actual digit value setting.
- D.c. motors 200 are in steady-state when there is no change in their final positions over time. Hence, a steady-state position error occurs when the final position changes any time after the last digit-move motion has been concluded.
- This error is detected during the normal check digit positions poll (tc1), and the actual motor positions are updated periodically in the set desired digit response (tc2) through the following sequence for each motor.
- the digit counter outputs are sampled; then the side transition count from the quadrature sequence is decoded. Then the transition count is added to the absolute position count. If any position error is detected, printing/accounting I/O and digit value selection mechanism 50 are invoked to correct the disturbed motor, or motors if more than one has been disturbed.
- each encoder 205 on the CH A and CH B lines are decoded in accordance with the flow chart of Fig. 16.
- the position error is checked in step 354. If it is zero, the microcomputer 22 is set in step 356 to proceed to the next sampling period for the next poll. If it is not zero, the CH A and CH B encoder outputs are read in step 358.
- step 360 the encoder readings saved from the last sampling instant are retrieved, and in step 362, the CH A and CH B output sequence of encoder 205 is compared (Table III) to obtain the sequence direction. If down (determined in step 364, the actual position counter is incremented in step 366.
- step 364 If up (determined in step 364), the actual position counter is decremented in step 368.
- the encoder readings i.e., the counter readings
- step 370 For the next sampling instant.
- the routine is repeated for each encoder in the respective sampling instant of the poll for a respective encoder.
- the counter readings are processed by microcomputer 22 to determine the actual positions of the print wheels, as described, for example, in the patents referred to above.
- microcomputer 22 When a set-postage command is active, i.e., a desired position is input to control loop 300, microcomputer 22 provides motor drive signals to digit value selection mechanism 50 to position the five print wheels to the desired digits effectively simultaneously. As described below, the drive signals are supplied to the d.c. motors sequentially, but the net overall effect is that the print wheels are set effectively simultaneously, i.e., in parallel. After the print wheels have been positioned, the final digit positions are validated to ensure that the motion control positioning accuracy is in line with the full digit mechanize home positions, described below. If a positioning error occurs, a retry algorithm is executed for the print wheel(s) that failed. Digit setting is concluded to be successful when all the print wheels have completed the motor moves and their final positions are full digit home positions.
- the motor commands for the five d.c. motors 200 are derived from the difference between each print wheel's desired and present digit value setting, where the sign (SGN) determines the direction of motion, and the magnitude determines the total distance St to be traveled (displacement) in terms of the number of encoder state transitions. If there is no change in a print wheel digit value, then the magnitude is zero (St equals zero).
- the results for Sd, Td, St and SGN(St) are the command inputs in CPU 29 executing the projected digit-move velocity profile, which is depicted in Fig. 15.
- a retry routine is executed for the print wheels that failed.
- the retry routine includes a positioning control initialization procedure where the initial state of the position counters, relative to the known reference point on a print wheel, is reestablished for the print wheel with a digit value failure before trying again to move to the desired digit position. A maximum of five digit move retries is allowed.
- the motor is driven in the opposite direction of the last motion until it stalls against the endstop 240 (seek-move). Using the information that an endstop is no more than 1/2 motor revolution (1/2 digit), the number of encoder transition counts from the nearest full digit position to the endstop 240 is derived. This is an offset count which cannot be greater than three, as indicated above.
- the end-stops 240, the full digit mechanical home positions and the encoder discrete states must be aligned as shown in Fig. 11.
- a successful move means that the starting position is, indeed, the print wheel's endstop 240, and the final position is a full digit home 0 or 9 (depending on the direction of motion).
- a failure of this move may start another iteration in the opposite endstop, i.e., another retry cycle. However, from this position, the digit-move to the original desired digit value is started. Any digit move failure will cause another retry if still within the limit count (e.g., 5) and, also, the allowable number of retries includes any digit move failures during the reference point initialization.
- a relative incremental encoding scheme is used in control loop 300 where the endstop position for each print wheel is used as the reference point. Upon power up, or system reset, all the print wheel positions are verified relative to these endstop positions. The print wheel digits are set to all zeros, then, set to all nines, and then, back to all zeros. This is called a "soft" initialization procedure. An initialization routine is flow charted in Fig. 16.
- step 402 of initialization routine 400 the desired position setting ("DPS")is set to all 9s.
- step 404 Do parallel set
- respective print wheels are moved to their respective 9 setting.
- the parallel set routine is flow charted in Fig. 18.
- step 406 If no error is detected in step 406, i.e., the sensors detect a 9 home position for each of the motors, the desired position setting is set to all 0s in step 408 and the print wheels are moved in step 410. If no move error (no home position errors) are detected in step 412, then soft initialization is successful and the routine is exited.
- step 414 the displacement Pd is set to its maximum negative displacement.
- the control cycle routine in steps 416 is flow charted in Fig. 19.
- step 418 the displacement is calculated in terms of encoder transitions and offset.
- step 420 a control cycle routine, as described in Fig. 19, is performed. If all full digits are detected in step 422, the algorithm proceeds to step 408. If not, an initialization error is generated. If an error is detected in step 412, and if the number of allowable retries in the retry routine has been not been exceeded (step 424), the initialization routine is repeated. If so, an initialization error is generated.
- a successful "soft" initialization indicates that the initial digit value setting that all the print wheels assumed is correct.
- Motion control failures, or unknown digit value settings trigger a "hard” initialization.
- step 504 the total displacement d for motor m is calculated.
- step 506 the displacement Pd for motor m is calculated in terms of encoder transitions and offset.
- step 508 causes steps 504 and 506 to be repeated until Pd has been calculated for all motors.
- the control cycle algorithm (Fig. 19) is executed in step 512.
- Step 514 determines whether all print wheels are full digits. If so, then the move is successful (step 516). If not, a control error is generated.
- the digital control develops an output in the direction to correct the loop error, i.e., reduce the error to zero. Hence, if no error exists, the output is zero.
- the digital control 304 Dz computes the loop compensation for the error and the output is used by the pulse-width modulator 305 (Kpwm) to drive the d.c. motor to move the load in the direction of the desired position, i.e., the actual Pa will always follow the desired Pd position to reduce the position error e to zero.
- the error may come from the motion profile and timing control 302 which discretizes the desired digit-moved into Pd (every T interval) if invoked by the digit setting control, or, from the change in the actual position Pa if invoked by the steady-state position control.
- the motor position command is presented to the servo loop 300 through the motion profile and timing control 302 (W).
- This element contains the logic for generating the desired position command, Pd, depending on the motion phase, and supervises the parallel motions, i.e., motion start, phases, termination, and fault conditions.
- the servo loop 300 does not include a velocity control loop; motion supervision results in the projected motion velocity profile depicted in Fig. 15, which is based on a calculated mechanical time constant.
- the total desired displacement is presented to the servo loop as Pd, thereby, creating a large initial error which saturates the control at 100% PWM duty cycle, driving the motor to its maximum loaded acceleration, i.e., step function response.
- the time it takes for the motion to reach its peak slew speed depends on the mechanical system time constant.
- the motion enters the second phase when the sampled actual position Pa indicates that the remaining distance to be travelled is equal or less than the computed deceleration distance, Td. Once this occurs Pd becomes the remaining distance discretized every sampling period T at the desired deceleration rate.
- Td computer deceleration time in units of T
- sT elapsed time in units of T.
- the discretized Pd(T) is equal to the total desired displacement.
- the Sd and Td are inputs to digital compensation control 304 computed by the motion profile and timing control 302, together with the desired total displacement (in encoder transition counts).
- the third phase is where Pd remains constant for the settling time period of the motion. The motion is concluded to be complete if no position error is detected within a settling time period, Ts; else, the motion is allowed again to settle within another settling time period for a maximum of ten periods (as in the
- Microcomputer 22 coordinates the five digital compensation controls 304 effectively simultaneously for the five d.c. motors. Since the five controls 304 may have different total displacement commands, i.e., value settings, and may have different response times, the motion completion time among the five d.c. motors varies. Completion of the longest distance-move, or, the slowest move, due to too overdamped (bind) or underdamped (oscillatory) conditions, is awaited before completion of the parallel motion control is concluded. The d.c. motor with the least distance to move, or, with the fastest response time, gets the benefit of extra settling time periods while waiting completion of movements of the last motor to be moved. A maximum timeout of 750 ms (from the start of the motion) is provided for all controls 304 to have zero position errors. The status of the position error for each of the five motors, i.e., zero or not zero, is returned by the motion controller.
- Encoder quadrature decoder and counter 306 (Kp) in servo 300 loop transforms the motor shaft position into a 2-bit Gray Code digital count through the two-channel output of the digit encoder sensors, shown in Figs. 5, 8 and 9. (See the flow chart in Fig. 16 and related description thereof above.)
- the digit sensor output is read (using best-of-three voting), then, the quadrature state is decoded, and depending on the state sequence direction, as shown in Table III below, the actual position counter, Pa, is incremented or decremented from its initial value.
- the count value is an incremental number of encoder state transitions relative to the initial value of the counter.
- an incremental count of 0 is taken which forces a positioning error to be detected at the end of the motion.
- the digital compensation control 304 is a control routine derived from a lead/lag compensation filter design for the closed-loop system 300 shown in Fig. 13. Its output, g(Tn), at every sampling instant T, is a discretized filter output to correct the loop error and provides the desired damping characteristics.
- the control routine is basically a PID controller (proportional-integral-derivative), but differs in implementation of the derivative control because of the coarse encoder resolution of the system.
- the encoder resolution limitation is imposed by the sampling bandwidth because sampling, quadrature decoding, and counting are multiplexed, hence, limiting the cycle period by the execution time to multiplex all five controls 304 (T time interval).
- the control routine 600 for digital compensation control 304 of loop 300 (Fig. 13) is flow charted in Fig. 19.
- the encoder state/count transitions are sampled for a first motor ml in step 602.
- the control output G (TN) for motor ml is computed according to the following in step 604.
- the proportional control is contributed by the K1 x error (T) result, i.e., an output control proportional to the error is always developed in the direction to correct the error.
- the integration X (Tn) function in step 608 is implemented by the summer X, where it keeps on incrementing by K2 every T instant as long as the error is constant and not zero. This ensures correct steady-state positional error and causes control 304 to saturate (driving full power to the respective motor) if an error persists, i.e., bind condition.
- the derivative dE(T)in control 304 in general, develops an output to oppose large changes in the loop error.
- the control 304 is multiplexed within a 2.5ms period as shown in Fig. 14.
- digital compensation control for each motor takes 500us which includes the decoding and counting of the shaft encoder signal, execution of the above routines for G(Tn), dE(T), and X(Tn), the generation of the output drive signal, and the calculation of the next period's desired position (in encoder counts).
- the above routines are repeated for each motor until it is determined in step 610 that the algorithms have been executed for all motors.
- step 612 the allowable move-time counter is decremented which maintains the polling execution time for the five motors.
- the output of digital compensation control 304 is transformed into a pulse width modulated (PWM) signal in pulse width modulator 305 by the routine shown below which generates or updates the PWM signal for the five digital compensation controls every 500us.
- this routine provides five discrete torque (current) values to each motor, i.e., a 500us increment with a 2.5ms period.
- the next period's desired position is determined through a look up table of discretized deceleration distance values with respect to the 2.5ms interval (sampling period), that is, a control deceleration is invoked when 3/4 of the total desired displacement is reached with 100% PWM duty cycle (saturated drive).
- the pulse width modulated outputs to the five d.c motors are updated during execution of control for each of the motors in a period T for the five motor, or T/5 for each motor.
- a microcomputer implemented control loop for controlling a d.c. motor is described in the patents referenced above.
- Those patents further disclose algorithms by which the digital compensation control 304 (or a lead/lag filter) is implemented, and the PWM duty cycle is implemented.
- the disclosures of each of the patents cited above are incorporated herein by reference.
- those with skill in the art by means of the disclosure herein and in those patents may construct program implementing the digital compensation control or lead-lag filter 304, the pulse width modulator 305 and the encoder quadrature decoder and counter 306.
- the particular number of d.c. motors controlled by microcomputer 22 may be set. In the presently preferred embodiment, up to five d.c. motors may be controlled. If less than five are used, a mask is set in printing/accounting I/O for any missing motors. The mask maintains any channel not having a motor channel disabled, i.e., it ignores a position error created in the control loop for the missing motor.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Devices For Checking Fares Or Tickets At Control Points (AREA)
Description
- The invention relates to a system for controlling a plurality of positioning devices such as d.c. motors in apparatus such as an electronic postage meter, and to controlling other functions of the apparatus. More particularly, the invention relates to an electronic postage meter including a plurality of value settable print wheels, and a microcomputer for controlling multiple d.c. motors to set the print wheels and for controlling other postage meter functions. The invention also embodies an incremental position encoder for supplying information related to the actual positions of devices such as print wheels which are to be positioned. The invention has particular application to devices such as electronic postage meters requiring low cost, compact apparatus for controlling positioning of a plurality of devices such as postage value digit devices, e.g., print wheels.
- Relatively accurate positioning of devices such as a print wheel in an electronic postage meter may be obtained using a stepper motor or a d.c. motor. An advantage of a stepper motor over a d.c. motor is that the stepper motor has defined stable equilibrium or detent positions, i.e., discrete positions in a fixed increment or step angle, which allows the stepper motor to be driven in open loop mode. As a result, control of a stepper motor as compared to a d.c. motor is relatively simple and does not require a motion transducer, such as an encoder, and a control loop, although it may be desirable to verify the detent positions of the motor. However, under high inertial loads and opposing load torques, for example, friction, a stepper motor may be unstable and lose step synchronism. To avoid such instability, the size (torque) of the stepper motor is increased in comparison to load requirements to provide sufficient margins at the desired speeds. Thus, a disadvantage of a stepper motor in positioning apparatus in comparison to a d.c. motor is the relatively large size-to-torque ratio needed to ensure stable operation.
- An advantage of a d.c. motor in positioning apparatus in comparison to a stepper motor is that the d.c. motor may be smaller for the same load requirements and yet operate at higher speed than a larger size stepper motor. Additionally, the smaller d.c. motor allows a higher load-to-motor coupling (gear) ratio than a larger size stepper motor for the same load. Thus, the d.c. motor increases the torque available to the load at the desired speed as compared to a stepper motor which at the same torque and coupling ratio will operate at lower speed. Other advantages of a d.c. motor over a stepper motor are the reduced power dissipation (and corresponding reduced heat generation) and reduced power supply requirement for d.c. and stepper motors of comparable size-to-torque ratio. A d.c. motor has a single phase winding with a high back electromotive force, and requires a single output stage driver for the single phase winding. A comparable stepper motor has a two phase winding with the same winding resistance of the single phase d.c. motor winding. Hence, the stepper motor winding requires twice the power supply requirement as the comparable d.c. motor. Also, the stepper motor requires an output stage driver for each winding. Hence, the stepper motor requires twice the number of output stage drivers as the d.c. motor.
- A disadvantage of a d.c. motor over a stepper motor is that the d.c. motor requires a control loop, which adds to the cost and complexity of the positioning apparatus.
- If multiple loads are to be controlled by separate motors, the disadvantages of stepper motors and d.c. motors for position control implemented as described above are multiplied.
- The disclosures of the following U.S. patents are incorporated herein by reference: 4,630,210, 4,631,681, 4,635,205, 4,636,959, 4,646,635, 4,665,353, 4,638,732, 4,774,445 and 4,643,089 all of Salazar et al. All of those patents are assigned to the present Applicant. Those patents disclose an electronic postage meter including a computer-controlled d.c. motor used to control a plurality of mechanical loads, for example print wheels. A stepper motor and gearing selectively couple the same d.c. motor to a plurality of loads. The time-intensive control function for the d.c. motor is implemented by the computer and software, except for the amplifier driving the d.c. motor and an actual position encoder and counting circuitry which feeds back actual positional information. The computer and the software calculate and apply to the d.c. motor, via the amplifier, pulse width modulated (PWM) drive signals utilizing a digital compensator derived from an analysis of the d.c. motor, the motor load, and other control loop components. The d.c. motor is driven according to a predetermined velocity versus time profile stored in the computer. The encoder and counting circuitry provide digital signals to the computer and the computer provides digital PWM drive signals so that analog-to-digital and digital-to-analog converter devices are not required in the controller electronics.
- In the above patents, the computer is dedicated to motor control and separate microprocessors are provided to carry out other postage meter system functions such as keyboard and display control, accounting and printing.
- In the patents referenced above, the actual position encoder is an incremental encoder which provides in response to motor shaft rotation two
electrical signals 90 electrical degrees out of phase, i.e., in quadrature. The two signals together provide N quadrature states per motor shaft rotation. Shaft position is determined by counting the quadrature states and rotation direction is determined from the phase of the two signals, i.e., which signal leads (or lags) the other. In the patents referenced above, the incremental encoder is implemented by a transparent disk having a plurality of opaque lines formed at equidistantly angularly-spaced intervals along one of the disc's opposed major surfaces, and an optical sensing device for serially detecting the presence of the respective opaque lines as they successively pass reference positions. In response to detecting the presence of the opaque lines, the encoder provides two output signals on two separate lines or channels in quadrature. - The two channel, quadrature output of the incremental encoder is decoded by counting circuitry. If desired, the quadraure signals may be decoded by the computer. Whether an external circuit or the computer decodes the quadrature output signals of the encoder depends upon whether the computer's internal counting circuit is available or is being used for other purposes. External decoding circuits are currently available as monolithic integrated circuits, for example, DHC 2000 from Texas instruments Incorporated.
- To achieve high positional accuracy, position controllers of the type described above utilize a high resolution encoder and sample at 1 ms or less intervals, which means that the controllers have a relatively high motor control bandwidth requirement of 1 KHz or greater. High bandwidth controllers utilizing high resolution encoders are relatively expensive.
- Because of the high bandwidth requirement, a processor in such controllers is typically dedicated to motor control. Therefore, larger systems which include a d.c. motor and loop control therefor require other processors for control of other system functions, which increases the size and cost of the larger system.
- U. S. Patent Nos. 4,710,883 of Wilson et al., 4,710,882 of DiGiulio et al., and 4,701,856 of DiGiulio et al., all assigned to the present Applicant, disclose an electronic postage meter comprising a microcomputer for controlling postage meter functions including postage value setting, postage printing and postage accounting. The disclosures of the '883, '882 and '856 Patents are incorporated herein by reference. As disclosed in these patents, a single central processing unit (CPU) performs calculations and data flow within the postage meter and controls postage setting and printing. The '883 Patent discloses that the electronic postage meter therein includes a timer, preferably external to the microcomputer, for providing a periodic interrupt in response to which the microcomputer interrupts a routine being executed and proceeds to examine sensors, inputs and outputs for machine status changes. A queue of individual tasks which comprise the operation of the postage meter are scheduled as required in accordance with machine status. A task switcher proceeds to service tasks in a "round-robin" fashion. Tasks that are inactive or waiting for an event are ignored. The first task encountered that needs to be serviced is granted control of the CPU. When all tasks have been polled, the polling cycle begins again. The tasks quickly perform a function and then relinquish the CPU to wait for an event to occur. This permits the next task in the round-robin to gain the services of the CPU. A task may run to completion or suspend itself and permit task switching. A timer is set to zero each time that a task is activated, and then decremented in 2.5 ms intervals during CPU servicing of that task. Task priorities are assigned.
- The '883, '882 and '856 Patents do not provide specific details of the postage setting and printing apparatus.
- U. S. Patent No. 4,731,728 of Muller, also assigned to the present Applicant, discloses a postage meter having separate microprocessors for controlling postage value selection, accounting and keyboard and display functions. This patent also discloses shutter and interposer apparatus, and an accounting algorithm for controlling printing and postage accounting. The disclosure of the '728 Patent is incorporated herein by reference.
- There is thus a need for a low cost, compact system, both mechanically and electrically, for accurately positioning a plurality of devices such as print wheels in an electronic postage meter, and which, when forming part of a larger system such as a postage meter, carries out other system functions, for example, postage meter keyboard and/or display control, and/or accounting and/or printing functions. There is also a need for a low cost, low bandwidth position encoder for use in a close loop position control system, particularly a low bandwidth system.
- An electronic postage meter print wheel setting optimisation system is disclosed in our UK Patent Application (GB-A) No. 2,166,389. In this mechanism,
print wheels 36 are driven by a drive mechanism e.g. stepping motors 38 at different operating speeds to set the postage printing elements to selected postage value to be printed. A control system e.g. amicrocomputer 30 controls the drive mechanism and its speed of operation, a position detecting systeme.g. amplifier comparator 42, opto-interruptor 44, slotteddisc 46 is coupled between postage value selection and the postage printing mechanism and is further coupled to the control system. This is for detecting the actual setting of the postage printing mechanism elements and allows control means to verify the setting. The control system is operable in response to print element setting error information to control the speed at which the drive mechanism operates to drive the postage printing mechanism settable postage printing elements to a selected postage value. In operation the speed of setting is increased after each setting operation and when improper setting is detected the setting speed is reduced. The postage meter is then operated for the duration of its use at the highest possible setting speed where no error is encountered. - In U.S. Patent (US-A) No. 4,345,193 there is disclosed a system in which the postage amount handles are positioned by a driver. The driver includes motors which, in response to control signals from a postage computer, axially displace shafts along paths generally parallel to the paths of the postage meter handles. The shafts support actuator fingers which couple the shaft movement to the respective handles. An optical interruptor for each shaft senses various shaft positions and provides signals to the postage computer which are used in part to develop the control signals.
- There is disclosed in EP-A-396298 a digital mark-printer operated under control of a microprocessor and control program. A main shaft including a printing head with a plurality of numeral wheels is driven by drive circuits and the position of the shaft and wheels are sensed by sensor circuits, all under control of the microprocessor.
- GB-A-2 223 575 discloses an optical position encoder useable in a franking machine wherein an encoder wheel has gear teeth which mesh with an associated rack.
- However, none of these documents disclose the electronic postage meter claimed herein.
- The present invention provides an electronic postage meter according to
claim 1. - In a specific embodiment, the common drive signal means receives desired and actual position information for the motors and in response thereto provides drive signals to the motors to drive them to the desired positions. The common drive signal means includes means which receive digital signals representing the desired and actual position information for respective d.c. motors and generates for respective d.c. motors respective pulse width modulation (PWM) digital drive signals.
- The common drive signal means receives the desired position information and the actual position information for respective motors, and operates on the desired position information and the actual position information for one of the d.c. motors at a time for generating the drive signals for respective motors. Thus, a control loop is provided for each of the d.c. motors, and each of the control loops shares a common means which generates motor drive signals from desired position information and actual position information for one of the d.c. motors at a time.
- In a specific embodiment, the common drive signal means includes means for generating a motion profile for movement of the d.c. motors in response to desired position information, and pulse width modulation means for generating the PWM drive signals. The PWM means comprises a digital compensation filter coupled to the motion profile generating means which receives actual and desired position information and generates digital compensation signals. The PWM means includes means converting the compensation signals into PWM motor drive signals. Amplifiers may be provided to amplify the PWM signals depending on motor drive requirements, etc.
- Preferably, a computer constitutes the common drive signal means. The computer has a plurality of outputs for outputting PWM drive signals, one for each of the d.c. motors. Preferably, the computer is a microcomputer which preferably comprises a single central processing unit, preferably implemented by a single chip integrated circuit microprocessor. Preferably, the controlled devices are identical, e.g., postage meter print wheels, and the d.c. motors are identical.
- An electronic postage meter is provided which includes a plurality of postage value digit devices, e.g., print wheels, which are set by the postage meter for printing postage on a mail piece. In accordance with the invention, the value digit devices are set in parallel, and the apparatus for setting the value digits is mechanically and electrically compact and of low cost. The postage meter is provided with a plurality of d.c. motors and servo loops including a common drive signal means as described above for setting the digit values in parallel. Further in accordance with the invention, the actual position sensing means comprises a low cost, low bandwidth incremental encoder as described herein. The d.c. motors may be brush or brushless. However, brushless are preferred for their high torque-to-frame ratio since compactness is an important consideration of the invention.
- According to an embodiment of the invention incorporated into an electronic postage meter, a computer controls the motors and preferably is a microcomputer which includes a single central processing unit preferably, a single chip microprocessor integrated circuit. The microcomputer controls other, preferably all, electronically-controlled postage meter functions including accounting, printing information entry and display, fault monitoring, etc.
- An electronic postage meter comprises a plurality of print devices each individually settable to a desired position so that the print devices may print a desired postage value; a plurality of d.c. motors, one for each of the plurality of the print devices, a different one of the d.c. motors being coupled to a different one of the print devices for setting the respective print device to a respective desired position essentially in parallel; actual position sensing means for providing signals related to the actual positions of the print devices; a microcomputer coupled to the d.c. motors and to the actual position sensing means, the microcomputer in response to signals from the actual position sensing means, a desired postage value and programming of the microcomputer sequentially (but effectively in parallel) controlling the d.c. motors to set the print devices to respective desired positions for printing the desired postage value. The microcomputer also monitors and controls at least one, preferably a plurality of, and most preferably all other postage meter functions.
- The microcomputer comprises common means receiving the signals related to the actual positions of the print devices and desired postage values and generating motor drive signals for one of the d.c. motors at a time corresponding to movement of respective print devices towards respective desired positions. The common means in the microcomputer includes the motion profile generating means and the PWM means described above.
- In a preferred embodiment, the electronic postage meter comprises means for entering information into the postage meter including postage values, e.g., a keyboard; a means for displaying information such as postage values, e.g., a liquid crystal device (LCD); and non-volatile memory (NVM) for storing accounting and other information. The microcomputer is coupled to the entering means, the display means, the NVM, the d.c. motors, and the position sensing means and sequentially monitors and controls functions associated therewith including postage accounting.
- There is described herein a low cost, low bandwidth incremental position encoder which provides first and second output signals which contain information of the actual, incremental position of a device, e.g., a print wheel driven by a d.c. motor as described above. The first and second output signals are provided on first and second lines which constitute two channels (CH A and CH B) of the encoder. In a preferred embodiment, the first and second signals are substantially out of phase, but less than by 180°, e.g., 90° out of phase, i.e., they are in quadrature.
- The encoder includes a movable element having first series and second series of variations. The variations of the first and second series extend along respective parallel lines in the direction of movement of the movable element and the variations of the first and second series are transversely spaced with respect to each other. The widths of the first and second variations are equal and offset by a substantial amount, but less than the full width of a variation. The variations of the first and second series are detectable as they pass a reference point and the encoder includes encoder signal means for detecting the variations and providing first and second signals related to detection of the variations of the first and second series, respectively.
- In a specific embodiment, the variations are optically detectable and the encoder signal means comprises means for projecting light at variations in the first and second series of variations and for detecting light emanating from the variations of the first and second series of variations.
- The movable element is a wheel and the first and second series of variations are radially spaced and extend circumferentially about respective circumferences of first and second circles. The circumferential widths of the variations of the first and second variations are equal and circumferentially offset by half the circumferential width of a variation. The encoder signal means provides the first and second signals out of phase by 90°.
- In the preferred embodiment, the variations of the first and second series of variations comprise circumferentially-extending slotted openings in the wheel, the slotted openings being of equal circumferntial width, radially spaced from each other, equidistantly angularly arranged about the respective circumferences of first and second concentric circles, and offset by half the circumferential width of an opening from each other.
- The light projecting means comprises means for projecting light through the slotted openings in the first and second series of openings, for detecting light projected through the openings of the first and second series of openings, and for providing the first and
second signals 90° out of phase. - The advantages of the invention will be more readily perceived from the following description of the preferred embodiments thereof taken in conjunction with the accompanying drawings.
- The invention is illustrated by way of example and not limitation in the figures of the accompanying drawings in which like references denote the same or corresponding parts, and in which:
- Fig. 1 is a block diagram of an example of a postage meter incorporating the present invention;
- Fig. 2 is a block diagram of a single board microcomputer which forms part of the postage meter depicted in Fig. 1;
- Fig. 3. is a block and circuit diagram of the fault monitoring portion of the microcomputer depicted in Fig. 2;
- Fig 4 is a circuit diagram of one of the output stage driver amplifiers which drive d.c. print wheel setting motors in the printer unit of the postage meter of Fig. 1;
- Fig. 5 is a circuit diagram of circuitry in the printer unit for sensing the position of the print wheels and other printer unit structures;
- Fig. 6 is a block diagram illustrating multi-tasking operation of the postage meter depicted in Fig. 1;
- Fig. 7 is a timing diagram illustrating system I/O multiplex control timing of the postage meter depicted in Fig. 1;
- Fig. 8 is a hardware block diagram of servo control loops implemented by the microcomputer depicted in Fig. 2 for controlling the print wheel setting d.c. motors;
- Fig. 9 is a diagram of a portion of the drive mechanism for setting the position of one of the print wheels including an encoder for providing signals related to the position of the print wheel;
- Fig. 10 is a diagram illustrating generation of the position feedback signals by the encoder depicted in Fig. 9;
- Figs. 11 and 12 are diagrams illustrating the relationship of the output signal of an encoder, the d.c. motor shaft position, and corresponding print wheel value digits;
- Fig. 13 is a functional block diagram of the servo loop implemented in part by the microcomputer depicted in Fig. 2;
- Fig. 14 is a timing diagram illustrating the servo control cycle implementation of the microcomputer of Fig. 13;
- Fig. 15 is a diagram of the projected velocity profile for one of the d.c. motors controlled by the microcomputer of Fig. 2;
- Fig. 16 is a flow chart illustrating decoding of the signals obtained from the encoder of Fig. 9;
- Fig. 17 is a flow chart of the initialization routine for controlling the print wheel setting d.c. motors;
- Fig. 18 is a flow chart of the setting routine for setting the positions of the print wheel setting d.c. motors in parallel; and
- Fig. 19 is a flow chart of the control cycle routine for controlling the print wheel setting d.c. motors in parallel.
- In the preferred embodiment, an electronic postage meter is provided having five print wheels. The invention provides five separate closed-loop position controls realized in system controller electronics residing in a 5" x 5" printed wiring assembly. A minimum hardware implementation may be achieved while supporting both multiple position loops control and system operating functions control, i.e., keyboard/display, accounting/printing, and external world communication.
- Multiple position loops control and the system operating functions control may be combined into a single microcomputer system. The motor control elements, except for the output stage amplifier drivers, are implemented by the microcomputer and its programming. In turn, the hardware system is designed in such a way to support the fastest and most efficient CPU execution of microcomputer implemented functions.
- To simplify and reduce the cost of the position feedback hardware and its interface to the controller, each d.c. motor position loop is closed with a low cost, low bandwidth quadrature encoder to digitize the angular position of the motor drive shaft into four sensor states per code cycle (electrical). The number of encoder state transitions and its sequence are decoded by the microcomputer to obtain the incremental actual position counts and the direction of motion. The interface bandwidth between the controller and quadrature encoder is a function of the peak motor speed and the number of encoder state transitions per motor revolution.
- To eliminate the need for an external analog to digital converter device per motor, the shaft encoder information is directly processed by the microcomputer. Hence, the quadrature and phase decoding, and state transition up/down counting (actual position count value) is accomplished by counting circuitry within the microcomputer, i.e., CPU, and not by an external device.
- Each print wheel drive mechanism has a 10-to-1 gear ratio between the pinion gear of a rack and pinion drive and the motor shaft, i.e., 10 motor revolutions makes one pinion gear revolution. With this load transfer ratio, an accuracy of 1/4 (quarter) motor revolution, i.e., 1/4 of a full-digit (one motor, or, 1/10 pinion gear revolution, is equal to one-full-digit) is sufficient for the capture range of a mechanical aligner which positions racks in the print drum drive shaft that are coupled to the print wheels so that all the teeth on the respective racks are aligned with respect to each other. This ensures that the print wheels are all aligned at full digit positions in the printing area. Given this accuracy requirement, the encoder resolution is designed to give four state transitions per motor revolution. At a peak speed of about 4500 RPM, the encoder maximum frequency is approximately one state transition per three milliseconds. Hence, the maximum sampling period (bandwidth) was determined to be 2.5 ms. However, for motor speeds at which the maximum encoder output exceeds the controller bandwidth, tracking error will occur.
- To provide the position control, there is implementation of a digital lead-lag filter routine by the CPU and programming separately for each motor. To handle five separate position loops, motor control is multiplexed within the 2.5 ms sampling period. Hence, each motor control processing takes 500 µs which includes the decoding and counting of the shaft encoder signal, execution of the filter routine, generation of the PWM output drive signals, and calculation of the next period's desired position (in encoder counts). The output of the filter is transformed into PWM drive signals by a PWM routine which generates, or, updates the PWM signal for the five controls every 500 µs. Hence, this routine provides five discrete torque (current) values to each motor, i.e., 500 µs increments with a 2.5 ms period. The next period's desired position is determined through a look-up table of discretized deceleration distance values with respect to the 2.5 ms interval (sampling period), that is, a controlled deceleration is invoked once 3/4 of the total desired displacement is reached with 100% PWM duty-cycle.
- Multiplexing of parallel motion control application and the system functions control was selected in recognition of the following system operational characteristics: (1) the system operating functions control requires a slower response time (about 4 times less) than the motor's position control requirement because of the former's mechanical actuation stimuli, i.e., keyboard, solenoid, and mechanical home positions sensors (except for the external system communication); (2) the printing/accounting is disabled before postage value setting commences and is enabled after setting; (3) the keyboard, display, and serial channel need not be serviced during postage value setting.
- Given the above system characteristics, the invention in its preferred embodiment provides that execution by the CPU of system function control is mutually-exclusive with motion control. In order not to lose track of the actual motor shaft positions (because of the relative encoding scheme), the quadrature decoding and routine counting is executed every sampling period of 2.5 ms, i.e., the up/down counter (shaft position count) is always updated for every encoder state transition. Therefore, the system software invokes motion control only if a postage setting is desired, or, a change in position of any motor is detected (steady-state error). With the latter, the position error can be corrected (i.e., servo) at any time the system function allows, as long as the system keeps track of the actual position count.
- In a parallel-setting value selection mechanism in an electronic postage meter according to the invention, the digit print wheels of each bank must be moved separately to their desired settings (positions). Hence, in a five bank meter (1/1000 cent-bank to 10 dollar-bank), a prime mover is needed for each bank position. However, the selection of a prime mover and for the compact postage meter according to the invention and its associated control system can become difficult for the following reasons: (1) the desired compact size of the meter presents a space limitation for housing the value selection and print drum drive mechanisms, the electronics, and the power supply; (2) the print wheel drive mechanism requires high starting and running torques because of the surface and viscous friction from sliding adjacent drive racks and load coupling tolerances.
- Given the above mentioned physical characteristics, the critical selection criteria of the prime mover was determined to be its torque-to-size ratio. It must be small enough to fit five units in the value selection-drive mechanism area, and must have enough torque and margin to overcome the opposing load torques at the desired setting (motion) speed. The associated dissipation must be minimized to realize system design objectives, i.e. packaging, cost, power requirement, and reliability. Hence, d.c. motors were selected.
- In order to position the digit print wheels correctly in a short and predictable motion time when faced with mechanical and electrical tolerances, the invention utilizes the closed-loop position control system described herein.
- The accuracy of the final digit print wheel position is determined by the resolution of the feedback position encoder. To eliminate the effect of motor-load coupling backlash on the digit position accuracy, in accordance with a preferred embodiment of the invention, the encoder is mounted at the load side, i.e. same axis as the pinion gear of the rack and pinion drive.
- Postage meter 20 (Fig.1) according to the present invention includes a
microcomputer 22, aprinter unit 24, a keyboard/display unit 26 and apower supply unit 28.Microcomputer 22 includes aCPU 29, read only memory (ROM) 30 including non-volatile ROM, random access or read/write memory (RAM) 31 including battery backed-up RAM (non-volatile RAM), and the following input/output ("I/O") circuitry; keyboard/display I/O 32; analog monitor/control 33; echoplex I/O 34; logic monitor/control 35 and printing/accounting I/O 36. -
Keyboard display unit 26 includes akeyboard 40 for entering postage values and commands for operatingpostage meter 20, and adisplay 42 for displaying postage values, commands, messages, etc. Keyboard/display I/O 32 provides an interface for exchange of signals betweenkeyboard 40 anddisplay 42, andmicrocomputer 22. - Analog monitor/
control 33 monitors analog functions and withCPU 29 controls accounting. It receives various regulated and unregulated voltages frompower supply unit 28 for poweringmicrocomputer 22 and for monitoringpower supply unit 28 communicates withCPU 29, and also receives various signals and outputs various signals internal tomicrocomputer 22 for ensuring fail-safe operation and postage accounting ofpostage meter 20. Logic monitor/control 35 monitors logic functions and withCPU 29 performs input/output control and decoding. Echoplex I/O 34 withCPU 29 controls an optical input/output port by means of whichmicrocomputer 22 communicates with anexternal system 46 such as a central system for downloading postage funds tometer 20 and uploading postage usage information frommeter 20. Echoplex I/O 34 (including an optical interface) provides complete electrical isolation ofmicrocomputer 22 from anyexternal system 46 coupled thereto via echoplex I/O 34. -
Printer unit 24 includes a bank of print wheels 218 (see Fig. 8) mounted to aprint drum 217 for printing postage indicia on mail pieces, a digitvalue selection mechanism 50 which sets the print wheels to print a selected postage value and aprint control mechanism 52 which causes the print drum to print the postage value set on the print wheels on a mail piece and monitors structure inprinter unit 24 to ensure thatpostage meter 20 does not print without accounting and does not account without printing. Printing/accounting I/O 36 provides an interface for exchange of signals between digitvalue selection mechanism 50,print control mechanism 52 andmicrocomputer 22. - Referring to Fig. 2,
ROM 30 ofmicrocomputer 22 stores the microcomputer program,RAM 31 stores program data, and the non-volatile memory ("NVM") comprises electrically erasable ROM (EEROM) 66 (hereinafter "NVROM" 66) and battery backed-up RAM 68 (hereinafter "NVRAM" 68).Microcomputer 22 also includes atest port 76. In the presently preferred embodiment,microcomputer 22 is an 8-bit single board microcomputer with an 8-bit multiplexed bus structure and includes a single,multi-tasking CPU 29 embodied by an NSC800 integrated circuit of National Semiconductor Corp., or a 8051 integrated circuit of Intel Corporation, or equivalent. -
Microcomputer 22 is a multi-tasking, uniprocessing system which viamulti-tasking CPU 29, programming inROM 30, program data inRAM 31 and I/O's 30-36 sequentially periodically polls postage meter activities and during each poll reacts to the stimulus received from the polled activity, i.e., executes in response to the received stimulus and the stored program. (See Fig. 6.) Each of the controlled activities has an I/O control bandwidth, i.e., a maximum response time, which is the sum of the maximum times required for: reading stimulus input data; decoding stimulus raw data; and executing the programmed action. SinceCPU 29 polls and executes each activity sequentially, other activities are not serviced during execution of one controlled activity, and wait until the next polling period for servicing the respective activity. However,microcomputer 22 allows each activity when it is polled its maximum bandwidth, if needed, to ensure that the respective activity is under control at all times. - The
address bus 80 fromCPU 29 is split into lower 81 and upper 82 address buses.Lower address bus 81 is coupled to logic monitor/control 35 which demultiplexes the lower addresses and outputs them on demultiplexedlower address bus 83. The demultiplexedlower address bus 83 and theupper address bus 82 are coupled tomemories Bidirectional data bus 85 is coupled toCPU 29, logic monitor/control 35 andmemories - Logic monitor/
control 35 includes the following microcomputer peripherals: interruptcontroller 86 which provides an interrupt signal (INTR) to the INTR interrupt input ofCPU 29;dual timer 88 for performing software watchdog functions and providing an interrupt signal (TO-INT) to the non-maskable input (NMI) ofCPU 29; an illegalmemory address trap 90 which provides a void interrupt signal (VOID INT) to the non-maskable interrupt (NMI) input ofCPU 29; input parallel port (IP) 92; output parallel port (OP1,OP2) 94; I/O parallel port (IOP) 96;decoder 98 for decoding and demultiplexing inputs and outputs of logic monitor/control 35 includinglower address bus 81,data bus 85, chip selects 99, CPU strobes 100, inputparallel port 92, outputparallel port 94, and I/Oparallel port 96; NVM control (logic) 102 for supplying non-volatile memory enable signals (NVM ENABLE) to analog monitor/control 33 for enabling access to NVROM 66 andNVRAM 68; control flip-flops 104 for setting various input, out-put and internal logic monitor/control signals; and an echoplex I/O port 106 for controlling signal exchange between logic monitor/control 35 andoptical interface 72. - Printing/accounting I/
O 36 ofmicrocomputer 22 includes output stage drivers referenced generally by 108 (part of printing accounting I/O 36) which provide: drive signals to the d.c. motor drives inprinter unit 24 which set the print wheels (see Figs. 4, 8 and 9); signals to an interposer solenoid drive for energizing a solenoid which controls the position of an interposer which prevents printing unless it is raised by the solenoid (see Fig. 3); and signals which energize light emitting diode (LED) sensors (see Fig. 5). Inputs from LED sensors inprinter unit 24 are input to the input parallel port IP of logic monitor/control 35 via printing/accounting I/O 36. - Dual timer 88 (Fig. 2) in logic monitor/
control 35 includes a timer T0 which functions as a software watchdog for incorrect (out-of-sequence) program execution. During normal system operation, TO is started and periodically reset to avoid a non-maskable interrupt (NMI) generated by a TO time-out. A time-out interrupt (TO-INT) provided to the non-maskable interrupt input (NMI) ofCPU 29 is interpreted byCPU 29 the same as a computer hardware malfunction, and in response thereto,CPU 29 ceases all postage meter control activities, locks access toNVMs - Analog monitor/control 33 (Fig. 2), which monitors analog functions and with
CPU 29 controls accounting inNVMs strobes output control 110, printer enableoutput control 112, system clock monitor 114 andpower supply monitor 116. NVMstrobes output control 112 receives the NV ENABLE signals from logic monitor/control 35 and a CPU write (WR) strobe fromCPU 29, and outputs NVM strobes to NVROM 66 andNVRAM 68 for controlling reading and writing ofNVROM 66 andNVRAM 68. Printer enableoutput control 112 receives an UNLOCK signal from logic monitor/control 35 and outputs a PRINT ENABLE signal to printing/accounting I/O 36 which enables printing of postage byprinter unit 24. System clock monitor 114 receives the CPU CLK (clock) strobe fromCPU 29 and provides a SYSTEM RESET to logic monitor/control 35 and to RST input ofCPU 29. Power supply monitor 116 receives regulated and unregulated +5 v frompower supply unit 28 and provides a SYSTEM RESET when the +5 v regulated supply falls below a predetermined value and a VUNR LOW signal to CPU RSTA and RSTB inputs, respectively, and a SYSTEM RESET when the +5 v unregulated supply falls below a predetermined value. -
Microcomputer 22 is fully memory-mapped, hence, every memory and I/O has a defined address within the valid (used) system memory blocks. Access to any void memory address is prohibited. Once an illegal address is decoded by illegalmemory access trap 90 oflogic monitor control 35 it outputs the VOID-INT signal toCPU 29 to lock all the NVM-access and print controls. - Logic monitor/
control 35 blocks any access to theNVMs - The specific signals comprising CPU STROBES, CHIP SELECTS, NVM ENABLE, etc., which are shown in either or both Fig. 2 and Fig. 3, are described in more detail below. The fault monitoring portions of
postage meter 20, which ensure thatpostage meter 20 does not print postage ifmeter 20 can not properly account for it, are described with reference to Fig. 3. - NVM control (logic) 102 (Fig. 2) of logic monitor/
control 35 includes gating 118 (Fig. 3) which receives the CPU STROBES (INTER CNTRL, METER ENABLE, NVM1 ENABLE, NVM2 ENABLE and START TIMER) and provides NVM write-protection signals (NVM1, NVM2) which are normally active and must be purposely disabled before a write-access is made, and a global lock control (UNLOCK) required for any NVM-access (read or write) and printing which is active upon detection of predetermined faults and is used for immediate shut down of the metering functions. A logic fault monitor system comprising timer watchdog 120 (which contains timer TO ofdual timer 88 in Fig. 2),illegal address 122 and bus conflict &access trap 90 in Fig. 2),gate 126 and control latches 128 (part of control flip-flops 104 in Fig. 2) forces the NVM1, NVM2 and UNLOCK signals to their default active state (locked) when triggered by the SYSTEM RESET (gate 126) and by signals from circuits 120-124 which indicate a TO timeout, illegal address, bus conflict or - Gating 130 in analog monitor/control 33 (Fig. 3) (corresponding to NVM
strobes output control 110 and printer enableoutput control 112 in Fig. 2) receives the NVM ENABLE strobes NVM1, NVM2 and NVMWR from logic monitor/control 35, the WR strobe fromCPU 29 and the SYSTEM RESET fromgate 132, and outputs the NVM1 ENABLE, NVM2 ENABLE and NVWWR ENABLE strobes to printer interposer 134 (described below), to NVROM 66 andNVRAM 68. Gating 130 also receives the UNLOCK strobe from logic monitor/control 35 and in response thereto and SYSTEM RESET outputs the PRNT ENABLE strobe to anoutput stage driver 134, which outputs a source drive IPSRC to solenoid 136 of an interposer 138 (described below) inprinter unit 24. -
Printer interposer 138, disposed inprinter unit 24, prevents printing unless it is raised. The position ofprinter interposer 138 is controlled bysolenoid 136 which when energized raisesprinter interposer 138 for printing and when de-energized dropsinterposer 138 to prevent printing.Solenoid 136 is source driven by the IPSRC signal fromoutput stage driver 134, which must be retriggered (pulsed) periodically by PRNT ENABLE to turn it on. Failure to retrigger output stage drive 134 causes it to turn off and de-energizesolenoid 136, which causes interposer 138 to drop and prevent printing. The IOP7 output of gating 102 in logic monitor/control 35 is coupled to theoutput stage driver 140, which supplies a sink drive IPSNK to solenoid 136 to energize it. Control ofinterposer 138 is thus made redundant in that eitheroutput stage driver 134 or switch 140 may be turned off to de-energizesolenoid 136 and dropinterposer 138. - Analog monitor/control 33 (Fig. 3) forces the NVM-ENABLE strobes (NVM1, NVM2 and NVMWR ENABLES) and PRINT ENABLE to their inactive states and asserts SYSTEM RESET, when the logic power supply inputs, the system clock, and an NVM-access 'window' (time period of active state) are outside their specified operating limits. These out of range conditions are determined by power
supply monitor circuitry 142 and 144 (Fig. 3) (part of power supply monitor 116 in Fig. 2), which respectively receive the +5 v regulated input and the +5 v unregulated input frompower supply unit 28 and provide out of range signals togate 132, by system clock monitor 146 which provides a signal togate 132 when the system oscillator clock output byCPU 29 is out of range, and by NVM control illegal/shorted 148 which provides an output togate 132 when the NVM access strobes are illegal or shorted. Power supply monitor 116 also includes5VUNR fail circuit 150 which provides a low 5VUNR signal to the RST B input ofCPU 29 when the +5 v unregulated input voltage is low. When active, the RST input causesCPU 29 to go into internal write protect mode. - NVM control illegal/shorted
circuit 140 of analog monitor/control 33 (Fig. 3) provides the access 'window' referred to above (e.g., sixteen system clock cycles) for the NVM-access strobes, both at the input and output signals, to detect any logic "0" short-circuit (stuck-active) on these lines. Once detected, NVM-access and print-enable are blocked by keeping the control outputs in inactive state. - Analog monitor/
control 33 activates the SYSTEM RESET and sets the NVM-access and PRNT ENABLE control outputs to their inactive states when it detects that the supply voltage, or the system clock is beyond its normal operating limit. During power down, the system is reset at a supply voltage level within the stable operating condition ofmicrocomputer 22, and the NVM-access strobes and print-enable are held stable even at low voltage levels while the rest of the system becomes unstable. - Analog monitor/
control 33 outputs the SYSTEM RESET to the RSIN input ofCPU 29 and togate 126 in logic monitor/control 35, and provides a time delay (e.g., 131 ms) for every activation of the system reset signal. - Each
NVM - Access to
NVMs control 35 to disable the UNLOCK signal. -
- NVM's 66, 68 provide redundant data storage to avoid losing critical accounting data in a single-point failure. For the same reason, two redundant batteries, B1 and B2, for the battery backed-
up NVMRAM 68, and two complementary control lines IPSRC and IPSNK are provided forinterposer solenoid 136. - In additional to
output stage drivers output stage drivers 134 depicted in Fig. 4 are provided as drive amplifiers for driving the d.c. motors inprinter unit 24. Onesuch driver 134 is provided for each d.c.motor 200 to be controlled. Fig. 5 depicts the sensors inprinter unit 24 for sensing the position of the print wheels and the positions of the printer interposer, shutter and print drum. Further description of control of the d.c.motors 200 is made below. - Microcomputer 22 (Fig. 2) also includes a
test port 76 which may include test inputs (bus 180) toCPU 29 and logic monitor/ control 35 (for example, for memory accessing, use of external program memory, etc.) in addition to terminals for monitoring selected microcomputer signals, as for example depicted in Fig. 2. - Echoplex I/
O 94,optical interface 72 and keyboard/display I/O 32 may be conventional and are known or may be constructed by those of skill in the art, or specially designed forpostage meter 20. - As discussed above,
microcomputer 22 is a multi-tasking system, and the various activities ofpostage meter 20 are polled and executed in accordance with the system multi-tasking diagram depicted in Fig. 6.Microcomputer 22 multiplexes the input/output port (IOP) and sense bus (SO-S3) of logic monitor/control 35 as shown in Fig. 7, and controls input/output signals as set forth in Table I below. -
- Some IOP lines and/or combinations of lines may be used for two different functions in different I/O's provided that another signal, such as a clock, required for execution of one of the two functions is inhibited to prevent execution of the non-selected function.
- Print wheels 218 (see Fig. 8) are mounted to a
print drum 217, and the print drum is driven by amotor 219 controlled bymicrocomputer 22 to print postage as described herein and in patents cited herein. - In order that
postage meter 20 not print without accounting and not account without printing, the mechanical drive system for the print cycle is uni-directional and allows only one cycle of printing until interposer drive 134 (Fig. 3) is reset. Additionally, a shutter bar (not shown) resets and locks the drive mechanism when the drive mechanism is driven to its home position and allowsprint drum 217 carrying print wheels 218 (Fig. 8) to be tripped for printing when driven forward. Sensor 174 (Fig. 5) via signal SH indicates the position of the shutter bar,sensor 175 via signal IN indicates the position of the interposer andsensor 173 via signals H0 and H1 (Figs. 5 and 8) indicates the three states of the print drum position: home one state (drum within detent home position); rotated state, drum out of detent home position; and home two state, drum within detent home position. The interposer mechanism blocks the shutter bar from being driven forward when in the down position (printing disabled) and allows the shutter bar to move forward when in the up (printing enabled) position. -
- Accounting with respect to loading
postage meter 20 with postage and maintaining values of postage printed, postage remaining, etc., may be conventional, and programs for causingmicrocomputer 22 to perform such accounting may be constructed by those of skill in the art. U.S. Patent No. 4,731,728, cited above, discloses a postage meter having a shutter, an interposer and postage accounting. - The following U.S. Patents all assigned to the present Applicant disclose analog monitor/control circuitry, logic monitor/control circuitry and fault monitoring circuitry which may be used in the postage meter disclosed herein: 4,675,550 (Hafner), 4,686,388 (Hafner), 4,698,829 (DiGiulio), 4,701,856 (DiGiulio et al.), 4,706,159 (Hafner), 4,710,882 (DiGiulo et al.), 4,746,818 (Hafner) and 4,747,057 (DiGiulio et al.). The disclosure of all of the patents cited immediately above are incorporated herein by reference.
- Circuitry and programming for carrying out the functions described above may be constructed by those of skill in the art from the disclosure herein and the disclosures of the U.S. patents incorporated herein by reference.
- Referring to Fig. 8,
postage meter 20 includes a plurality ofprint wheels 218, mounted to aprint drum 217, whose positions are set by adigital controller 252.Print drum 217 is rotated through aprinting area 254 by amotor 219 controlled bymicrocomputer 22.Print drum 217 is rotated between home positions bymotor 219 to print the postage set on theprint wheels 218 on a mail piece presented inarea 254.Sensor 173 detects the two home positions ofprint drum 219.Sensor 173 may compriseoptical sensors wheel 250 connected to printdrum 217. For example,print drum 217 is in one home position when theoutputs 263, 264 (H0, H1) ofsensors - Referring to Figs. 8 and 9, the position of
print wheels 218 is set by d.c.motors 200, which are coupled torespective print wheels 218 by gearing 214 and a rack andpinion drive racks 220 are disposed inprint drum shaft 256, two on one side thereof as shown in Fig. 8, and three on the other side thereof. Theracks 220 extend withinshaft 256, to engage print wheel pinion gears 258 (Fig. 8) attached torespective print wheels 218. - In order to reduce space requirements,
print wheels 218 are not locked when power tometer 20 is off, as described for example in U.S. Patent No. 4,731,728 referenced above. In order to further reduce space requirements, printdrum home sensor 173 is coupled to the free end ofprint drum 217 andrespective encoder sensors 205 are coupled between respective d.c.motors 200 and respective rack and pinion drives 220, 221. A 10 to 1 gear ratio is provided by gearing 214 betweenrespective motors 200 and rack and pinion gear drives 220, 221. This load transfer ratio provides an accuracy of 1/4 motor shaft revolution, which is sufficient for alignment ofracks 220 inprint drum shaft 256 by a mechanical aligner plate (not shown). The mechanical aligner plate simply aligns the racks relative to each other so that the teeth of all the racks are in alignment, i.e., a particular rack may be moved to +/- 1/2 tooth to align it with other racks. This ensures that the print wheels are all aligned relative to each other at full digit positions for printing. - The accuracy of the digit position of
print wheels 218 is determined by the resolution of theincremental encoder 205. To eliminate the effect of motor-load coupling backlash on the digit position accuracy, theencoder 205 is mounted at the load side, i.e., on the same axis aspinion gear 220. Theencoder wheel 210 is positioned along the load axis in such a way that an encoder window (state) is within the capture range of the mechanical aligner plate (not shown) to provide full-digit positions of the print wheels, as described above, when the print drum rotates. The final position stability control is provided bycontroller 220. For each "do motor control loop",controller 220 processes the positional and direction information from theencoder 205 and outputs the "do motor electrical drive" based on the difference between the desired and actual positions of the print wheel. -
Controller 220 includesmicrocomputer 22, (CPU 29 and logic monitor/control 35), d.c. motors 200 (one for each print wheel 218), incremental (relative) position encoders 205 (one for each d.c. motor 200), and motor drive amplifiers 134 (one for each d.c. motor 200). If desired, driveamplifiers 134 may be provided as part ofmicrocomputer 22. Eachmotor 200 is operated via a closed servo loop implemented in part bymicrocomputer 22,drive amplifiers 134 andencoders 205.Digital controller 220 contains five parallel software driven servo systems, a functional block diagram of each of which is depicted in Fig. 13. - Fig. 8 depicts part of the control loop for each of the print wheel setting d.c.
motors 200. Each control loop includes adriver amplifier 134, a d.c.motor 200 and aposition encoder 205. Logic monitor/control 35 outputs motor enable (EN) and direction (DIR) drive signals generated byCPU 29 todriver amplifiers 134 which output complementary source (DM1+ to DM5+) and sink (DM1- to DM5-) drive signals to drive respective motors to move respective print wheels towards respective desired positions.Position encoders 205 in response to sensor strobes LEDA1 - LEDAS provide respective quadrature output signals on CH A and CH B (D0 and D1) to logic monitor/control 35 for input toCPU 29.Logic monitor control 35 provides the sensor strobes on input/output port lines IOP0 - IOP3 (Fig. 5) to a 3 to 8line decoder 207 which provides the decoded sensor strobes LEDA1 - LEDA5 and a sensor strobe LEDB for interposer sensor 176. The quadrature CH A and CH B output signals D0 and D1 fromencoders 170 are input to sense bus S0-S3. - The input data sense bus S0-S3 is a 4-bit input data bus which comprises the optical sensor outputs and switch poles of
printer unit 24, connected as OR inputs for multiplex sampling bymicrocomputer 22. The data in the sense bus at any given time represents the output channels of the strobed sensors. Hence, if there is no strobe active, the sense bus lines are pulled-up to logic "1" state. For an optical sensor output, a logic "0" at the sense line indicates an uninterrupted LED light source: a logic "1" indicates an interrupted (blocked) light source. - Referring next to Figs. 4, 5 and 8, in response to drive motor enable (EN) and direction (DIR) signals output by logic/monitor/
control 35 on output ports OP1 and OP2, respective outputstage driver amplifier 134 output complementary position motor drive signals DM1+ to DM5+ and negative motor drive signals DM1- to DM5- to control the five d.c. motors 200 (M1-M5) of digit value selection mechanism 50 (Fig. 1). The positive output (DM1+ to DM5+) ofdriver amplifier 134 is connective to the positive terminal of therespective motor 200 and the negative output (DM1- to DM5-) is connected to the negative terminal of the respective motor. The outputs ofdriver amplifier 134 are complementary so that when one is high (Vs), the other is low, and the high output acts as a source while the low output acts as a sink. When its positive output is high,driver amplifier 134 provides a digit-decreasing drive to the respective motor, and when its negative output is high,driver amplifier 134 provides a digit increasing drive to the respective motor. - The LEDA1 - LEDA5 signals (Fig. 5) are sink strobe signals that demultiplex the outputs of the
encoders 205 of the five motors or banks, bank #1 (LS bank) to bank #5 (MS bank), respectively, from the multiplexed input sense bus S0-S3. When any of the strobes is active, the corresponding state of the digit encoder output, DO and D1, are present at the S0 and S1 lines of the sense bus, respectively. These open-collector outputs are normally off (open) except when sampling the digit encoder positions. - The LEDB strobe is a sink drive which demultiplexes the state of the home, shutter, and interposer sensor outputs from the sense bus S0-S3, respectively. The open-collector output is normally off (open) except when sampling the state of the print-mechanism (LEDB) group of sensors.
- Referring to Figs. 8, 9 and 10 each print
wheel position encoder 205 includes aCH A sensor 208 and a CH B sensor 209 and a position encoder wheel 210 (Fig. 9) coupled to the shaft 212 of arespective motor 200 by gearing 214.Shaft 216 ofencoder wheel 210 is coupled to arespective print wheel 218 by a rack andpinion drive print wheel 218 is related to the angular position ofencoder wheel 210, which is sensed by means of slottedopenings 222 inwheel 210 arranged in outer circular series 224 (CH A) and inner circular series 225 (CH B) andsensors 208, 209. - Slotted
openings 222 have equal circumferential widths and are equidistantly, angularly spaced along the circumference of respective concentric circles. Slottedopenings 222 in inner and outer series 225 (CH A) and 224 (CH B) are radially spaced and circumferentially offset by a substantial amount but less than by 180°. In the preferred embodiment, they are offset by 90°. This doubles the number of encoder states available over a single series of openings. The CH A and CH B output lines 227, 228 (DO, D1.) fromsensors microcomputer 22 which supplies the motor drive signals DM+, DM- tomotor 200 on the EN and DIR lines and viaamplifier 22. -
Sensors 208 and 209 (Fig. 5) each comprise a light emitting diode (LED) 230, 231 and aphoto transistor LEDs microcomputer 22 and are positioned as reference points forwheel 210 on one side thereof to project light through arespective series openings 222.Transistors wheel 210 to receive light projected throughrespective series openings 222.Transistors microcomputer 22 as the CH A output line 227 and CH B output line 228. These outputs are sensed bymicrocomputer 22 to determine when slottedopenings 222 pass the reference points ofLEDs transistors LEDs - The signals obtained from
sensors 208, 209 appearing on the CH A and CH B lines (D0, D1 lines, respectively in Fig. 5) are shown in Fig. 10. The CH A and CH B sensor signals are quadrature decoded as described below in connection with Fig. 16 to give the actual position of the respective print wheel. Fig. 10 also shows the relationship between the encoder quadrature and electrical degrees including encoder state switching points in electrical degrees and transition times for encoder states. - Referring to Figs. 10, 11 and 12, one revolution of
motor 200 corresponds to a full-digit quadrature state, and nine motor revolutions are required to set a print wheel to all of its digit values, 0-9. Correspondingly, an encoder transition is equal to 1/4 motor revolution. Each print wheel is rotatable between end stops 240, offset from the "0" and "1" digits by a maximum offset distance corresponding to one half motor revolution, which in turn corresponds to a maximum of three encoder transitions. All full digit quadrature states are "00" ("SFD") states. - Referring to Fig. 13, each
servo loop 300 includes the following: a motion profile and timing control 302 (W), a summingjunction 303, a digital compensation control or filter 304 (Dz), a pulse width modulator (PWM) 305 (Kpwm), an output stage drive amplifier 134 (Ka), encoder sensors 208,209,encoder wheel 210 and an encoder state quadrature decoder and counter 306 (Kp). The outputstage drive amplifier 134 is shown incorporated within themicrocomputer 22, but may physically be located externally of themicrocomputer 22 depending on space requirements, etc. - Motion profile and
timing control 302, summingjunction 303,digital compensation control 304,pulse width modulator 305 and encoder state quadrature decoder and counter 306 illustrated in Fig. 13 as hardware are implemented byCPU 29 and software.Encoder sensors 208, 209 provide digital signals directly, as described in connection with Figs. 5 and 9-12, andPWM circuit 305 provides digital d.c. motor drive signals so thatloop 300 does not require an analog-to-digital converter and a digital-to-analog converter. Desired position information contained in motion profile andtiming control 302 may be entered by means ofkeyboard 40 or entered from an external system. - Fig. 14 shows the timing and I/O port (IOP) multiplexing for control of the five d.c. motors 200 (M1-M5). An "X" indicates when the respective DM+ and DM- drive lines to the respective motors are active. Each motor sample cycle ts takes 2.5ms, with 500 ms (tcw) being allocated to each motor. Tasks including motor control are entered and exited in accordance with the system multi-tasking diagram depicted in Fig. 6. Multi-tasking of postage meter functions in general is described in more detail in U.S. Patent No. 4,710,883 referenced above; operation of
postage meter 20 during the motor control cycle is described below. - Printing/accounting control I/
O 36 and digitvalue selection mechanism 50 are invoked: if (a) a set-postage command is received fromkeyboard 40, or, fromexternal system 46 via echoplex I/O 34; (b) if the steady-state position of any of d.c.motors 200 is disturbed, i.e., a position error is detected; and (c) during power-up (reset) position control initialization. - Whenever the digit
value selection mechanism 50 is used,interposer 138 is dropped to inhibit any print-cycle and is raised to allow printing ifmicrocomputer 22 is able to position the digits correctly and accounting inNVRAM 68 has enough funds for the value setting. Otherwise,print interposer 138 remains down. - The control input to each control loop for a d.c.
motor 200 is the desired position, and the output of the respective control loop is the actual digit value setting. D.c.motors 200 are in steady-state when there is no change in their final positions over time. Hence, a steady-state position error occurs when the final position changes any time after the last digit-move motion has been concluded. This error is detected during the normal check digit positions poll (tc1), and the actual motor positions are updated periodically in the set desired digit response (tc2) through the following sequence for each motor. The digit counter outputs are sampled; then the side transition count from the quadrature sequence is decoded. Then the transition count is added to the absolute position count. If any position error is detected, printing/accounting I/O and digitvalue selection mechanism 50 are invoked to correct the disturbed motor, or motors if more than one has been disturbed. - The quadrature output signals of each encoder 205 on the CH A and CH B lines are decoded in accordance with the flow chart of Fig. 16. At each
sampling instant 352, the position error is checked instep 354. If it is zero, themicrocomputer 22 is set instep 356 to proceed to the next sampling period for the next poll. If it is not zero, the CH A and CH B encoder outputs are read instep 358. Instep 360, the encoder readings saved from the last sampling instant are retrieved, and instep 362, the CH A and CH B output sequence ofencoder 205 is compared (Table III) to obtain the sequence direction. If down (determined instep 364, the actual position counter is incremented instep 366. If up (determined in step 364), the actual position counter is decremented instep 368. The encoder readings (i.e., the counter readings) are then saved instep 370 for the next sampling instant. The routine is repeated for each encoder in the respective sampling instant of the poll for a respective encoder. The counter readings are processed bymicrocomputer 22 to determine the actual positions of the print wheels, as described, for example, in the patents referred to above. - The longest time that digit position counters are not sampled (actual positions are not updated) during steady-state motor control occurs during the accounting cycle which lasts for 220 ms.
Microcomputer 22 is still in control with one extended sampling interval, T = 220 ms, because a steady-state disturbance, such as, "stick-tion", vibration, inprinter unit 24, in general, has a frequency lower than the extended sampling frequency. This enablesmicrocomputer 22 to provide a true closed-loop position control for the digitvalue selection mechanism 50 ofprinter unit 24. - When a set-postage command is active, i.e., a desired position is input to control
loop 300,microcomputer 22 provides motor drive signals to digitvalue selection mechanism 50 to position the five print wheels to the desired digits effectively simultaneously. As described below, the drive signals are supplied to the d.c. motors sequentially, but the net overall effect is that the print wheels are set effectively simultaneously, i.e., in parallel. After the print wheels have been positioned, the final digit positions are validated to ensure that the motion control positioning accuracy is in line with the full digit mechanize home positions, described below. If a positioning error occurs, a retry algorithm is executed for the print wheel(s) that failed. Digit setting is concluded to be successful when all the print wheels have completed the motor moves and their final positions are full digit home positions. - The motor commands for the five d.c.
motors 200 are derived from the difference between each print wheel's desired and present digit value setting, where the sign (SGN) determines the direction of motion, and the magnitude determines the total distance St to be traveled (displacement) in terms of the number of encoder state transitions. If there is no change in a print wheel digit value, then the magnitude is zero (St equals zero). - From the desired total displacement St and a constant deceleration (d), the deceleration distance Sd and the deceleration time interval Td are determined for every motor to be controlled, where Sd = 0.125 ∗ABS(St), in number of encoder transactions; Td = SQRT (2∗ Sd/d), in units of sampling interval, T; d = deceleration rate = 36.57142857 in number of encoder transactions per T2. Further details controlling selection of those values may be found in the patents cited above and used by those of skill in the art to elect appropriate values for particular motors used. The results for Sd, Td, St and SGN(St) are the command inputs in
CPU 29 executing the projected digit-move velocity profile, which is depicted in Fig. 15. - A retry routine is executed for the print wheels that failed. The retry routine includes a positioning control initialization procedure where the initial state of the position counters, relative to the known reference point on a print wheel, is reestablished for the print wheel with a digit value failure before trying again to move to the desired digit position. A maximum of five digit move retries is allowed. The motor is driven in the opposite direction of the last motion until it stalls against the endstop 240 (seek-move). Using the information that an endstop is no more than 1/2 motor revolution (1/2 digit), the number of encoder transition counts from the nearest full digit position to the
endstop 240 is derived. This is an offset count which cannot be greater than three, as indicated above. To be able to use theendstop 240 as a reference point for the relative encoding scheme for each print wheel, the end-stops 240, the full digit mechanical home positions and the encoder discrete states, must be aligned as shown in Fig. 11. Once a motor is at the endstop position, the distance from theendstop 240 to the opposite direction's farthest full-digit home position is calculated, i.e., total displacement, St = 9 digit move counts plus the offset count (see Fig. 11). With this total distance input, the motor is driven to the farthest full-digit home position to validate the established reference point. That is, a successful move means that the starting position is, indeed, the print wheel'sendstop 240, and the final position is afull digit home 0 or 9 (depending on the direction of motion). A failure of this move may start another iteration in the opposite endstop, i.e., another retry cycle. However, from this position, the digit-move to the original desired digit value is started. Any digit move failure will cause another retry if still within the limit count (e.g., 5) and, also, the allowable number of retries includes any digit move failures during the reference point initialization. - A relative incremental encoding scheme is used in
control loop 300 where the endstop position for each print wheel is used as the reference point. Upon power up, or system reset, all the print wheel positions are verified relative to these endstop positions. The print wheel digits are set to all zeros, then, set to all nines, and then, back to all zeros. This is called a "soft" initialization procedure. An initialization routine is flow charted in Fig. 16. - Referring to Fig. 17, in
step 402 ofinitialization routine 400 the desired position setting ("DPS")is set to all 9s. Next in step 404 (Do parallel set), respective print wheels are moved to their respective 9 setting. (The parallel set routine is flow charted in Fig. 18.) If no error is detected instep 406, i.e., the sensors detect a 9 home position for each of the motors, the desired position setting is set to all 0s instep 408 and the print wheels are moved instep 410. If no move error (no home position errors) are detected instep 412, then soft initialization is successful and the routine is exited. - However, if any of the print wheels fails to execute the soft-initialization sequence correctly, i.e., a position error is detected in
step 406, then, the digit move retry routine in steps 414-422 is invoked. This is called a "hard" initialization. Instep 414, the displacement Pd is set to its maximum negative displacement. The control cycle routine insteps 416 is flow charted in Fig. 19. Instep 418, the displacement is calculated in terms of encoder transitions and offset. Instep 420, a control cycle routine, as described in Fig. 19, is performed. If all full digits are detected instep 422, the algorithm proceeds to step 408. If not, an initialization error is generated. If an error is detected instep 412, and if the number of allowable retries in the retry routine has been not been exceeded (step 424), the initialization routine is repeated. If so, an initialization error is generated. - Thus, a successful "soft" initialization indicates that the initial digit value setting that all the print wheels assumed is correct. Motion control failures, or unknown digit value settings trigger a "hard" initialization.
- In the
parallel setting routine 500 flow charted in Fig. 19, the desired and actual postage setting formeter 20 are referenced instep 502. Instep 504, the total displacement d for motor m is calculated. Instep 506, the displacement Pd for motor m is calculated in terms of encoder transitions and offset. Step 508 causessteps step 512. Step 514 determines whether all print wheels are full digits. If so, then the move is successful (step 516). If not, a control error is generated. - Referring to Fig. 13, generally in a servo loop, the digital control develops an output in the direction to correct the loop error, i.e., reduce the error to zero. Hence, if no error exists, the output is zero. In particular, if an error, +, exists between the desired position (Pd) and the actual position of the motor, as detected through the encoder transition count (Pa) in a sampling instant (T), the digital control 304 (Dz) computes the loop compensation for the error and the output is used by the pulse-width modulator 305 (Kpwm) to drive the d.c. motor to move the load in the direction of the desired position, i.e., the actual Pa will always follow the desired Pd position to reduce the position error e to zero. Hence, the error may come from the motion profile and
timing control 302 which discretizes the desired digit-moved into Pd (every T interval) if invoked by the digit setting control, or, from the change in the actual position Pa if invoked by the steady-state position control. - Since the control portion of
loop 300 is digital and essentially software-driven, a control is executed every sampling instant, nT. And since there are five d.c.motors 200 inpostage meter 20, each control execution time (per motor) is T/5. (The timing for such control multiplexing scheme is shown in Fig. 14.) The sampling period, T, therefore, is limited by the maximum software execution time of the motion controller routines described below. - The motor position command is presented to the
servo loop 300 through the motion profile and timing control 302 (W). This element contains the logic for generating the desired position command, Pd, depending on the motion phase, and supervises the parallel motions, i.e., motion start, phases, termination, and fault conditions. Theservo loop 300 does not include a velocity control loop; motion supervision results in the projected motion velocity profile depicted in Fig. 15, which is based on a calculated mechanical time constant. - At the first phase of the motion, the total desired displacement is presented to the servo loop as Pd, thereby, creating a large initial error which saturates the control at 100% PWM duty cycle, driving the motor to its maximum loaded acceleration, i.e., step function response. The time it takes for the motion to reach its peak slew speed depends on the mechanical system time constant. The motion enters the second phase when the sampled actual position Pa indicates that the remaining distance to be travelled is equal or less than the computed deceleration distance, Td. Once this occurs Pd becomes the remaining distance discretized every sampling period T at the desired deceleration rate. Pd(T) = 1/2 X d X [(Td-sT)]2 , where Pd(T) = discretized deceleration distance in encoder transition counts; d = desired deceleration rate in encoder transition counts per T2; Td = computer deceleration time in units of T; and sT = elapsed time in units of T. At the end of the computed deceleration time Td (in units of T), the discretized Pd(T) is equal to the total desired displacement. The Sd and Td are inputs to
digital compensation control 304 computed by the motion profile andtiming control 302, together with the desired total displacement (in encoder transition counts). Hence, the third phase is where Pd remains constant for the settling time period of the motion. The motion is concluded to be complete if no position error is detected within a settling time period, Ts; else, the motion is allowed again to settle within another settling time period for a maximum of ten periods (as in the case of an underdamped system). -
Microcomputer 22 coordinates the five digital compensation controls 304 effectively simultaneously for the five d.c. motors. Since the fivecontrols 304 may have different total displacement commands, i.e., value settings, and may have different response times, the motion completion time among the five d.c. motors varies. Completion of the longest distance-move, or, the slowest move, due to too overdamped (bind) or underdamped (oscillatory) conditions, is awaited before completion of the parallel motion control is concluded. The d.c. motor with the least distance to move, or, with the fastest response time, gets the benefit of extra settling time periods while waiting completion of movements of the last motor to be moved. A maximum timeout of 750 ms (from the start of the motion) is provided for allcontrols 304 to have zero position errors. The status of the position error for each of the five motors, i.e., zero or not zero, is returned by the motion controller. - Encoder quadrature decoder and counter 306 (Kp) in
servo 300 loop transforms the motor shaft position into a 2-bit Gray Code digital count through the two-channel output of the digit encoder sensors, shown in Figs. 5, 8 and 9. (See the flow chart in Fig. 16 and related description thereof above.) At every sampling instant, Tn, the digit sensor output is read (using best-of-three voting), then, the quadrature state is decoded, and depending on the state sequence direction, as shown in Table III below, the actual position counter, Pa, is incremented or decremented from its initial value. Hence, the count value is an incremental number of encoder state transitions relative to the initial value of the counter. In case of the quadrature decoding error of counting two transitions in a sampling interval (due to electrical noise, or, encoder/motor deviations accepted tolerance), an incremental count of 0 is taken which forces a positioning error to be detected at the end of the motion. - The
digital compensation control 304 is a control routine derived from a lead/lag compensation filter design for the closed-loop system 300 shown in Fig. 13. Its output, g(Tn), at every sampling instant T, is a discretized filter output to correct the loop error and provides the desired damping characteristics. The control routine is basically a PID controller (proportional-integral-derivative), but differs in implementation of the derivative control because of the coarse encoder resolution of the system. - The encoder resolution limitation is imposed by the sampling bandwidth because sampling, quadrature decoding, and counting are multiplexed, hence, limiting the cycle period by the execution time to multiplex all five controls 304 (T time interval). This results in the
servo loop 300 not including a velocity loop, due to the coarse position resolution feedback. This produces the following effect in the loop characteristic: the rate of change of the position error per sampling interval, de/T, is normally zero; low open-loop dc gain to maintain stability; low servo control bandwidth with 25 to 50 ms settling time and about 50% overshoot; and zero steady-state position error. - The
control routine 600 fordigital compensation control 304 of loop 300 (Fig. 13) is flow charted in Fig. 19. The encoder state/count transitions are sampled for a first motor ml instep 602. Then, the control output G (TN) for motor ml is computed according to the following instep 604.
THEN X(Tn - 1) = 0
ELSE
G(Tn) = K1 * E(Tn) + X(Tn - 1) - Then, the pwm counters and output drivers are updated for motor M1 in
step 606. Next instep 608, the derivative d E(T) and the integration X(Tn) are computed as follows:
dE(T) = E(Tn) - E(Tn - 1)
IF dE(T) -NOT 0
THEN X(Tn) = 0
ELSE X(Tn) = X(Tn - 1) + SGN[E(Tn)] * K2, where
E = position error count; Pd = desired position count; Pa = actual position count; X = summer; refers to the value of the variable at the present sampling instant, and (Tn - 1) is at the last sampling instant; K1 = proportional control constant (dc gain) = 3; and K2 = integral control constant = 0.01953 - From the above routines for computing G (Tn), d E(T) and X (TN), the proportional control is contributed by the K1 x error (T) result, i.e., an output control proportional to the error is always developed in the direction to correct the error. The integration X (Tn) function in
step 608 is implemented by the summer X, where it keeps on incrementing by K2 every T instant as long as the error is constant and not zero. This ensures correct steady-state positional error and causescontrol 304 to saturate (driving full power to the respective motor) if an error persists, i.e., bind condition. The derivative dE(T)incontrol 304, in general, develops an output to oppose large changes in the loop error. The routine approximates this control by resetting the integral control summer, X(Tn) when an encoder state transition occurs, i.e., dE(T) = not 0, and canceling the integral control output, X(Tn- 1), whenever the position error, E(Tn), becomes zero, causing a zero output dead-band at the home position crossings. - To handle five separate position loops, the
control 304 is multiplexed within a 2.5ms period as shown in Fig. 14. Hence, digital compensation control for each motor takes 500us which includes the decoding and counting of the shaft encoder signal, execution of the above routines for G(Tn), dE(T), and X(Tn), the generation of the output drive signal, and the calculation of the next period's desired position (in encoder counts). Thus, referring to Fig. 19, the above routines are repeated for each motor until it is determined instep 610 that the algorithms have been executed for all motors. - Then in
step 612, the allowable move-time counter is decremented which maintains the polling execution time for the five motors. Step 614 determines whether the polling execution time has elapsed by time-out of a timer. If it has not, the algorithm recycles and continues. If it has the routine proceeds to step 616 wheremicrocomputer 22 determines if there is a position error. If there is not (i.e., E(Tn)m =0),microcomputer 22 exits from the digital compensation control algorithm. If there is (i.e., E(Tn)m = 0), a move error is generated. - The output of
digital compensation control 304 is transformed into a pulse width modulated (PWM) signal inpulse width modulator 305 by the routine shown below which generates or updates the PWM signal for the five digital compensation controls every 500us. Hence, this routine provides five discrete torque (current) values to each motor, i.e., a 500us increment with a 2.5ms period. The next period's desired position is determined through a look up table of discretized deceleration distance values with respect to the 2.5ms interval (sampling period), that is, a control deceleration is invoked when 3/4 of the total desired displacement is reached with 100% PWM duty cycle (saturated drive).Pulse width modulator 305 converts the digital control output, G(Tn), into a voltage equivalent, Veq, where - The pulse width modulated outputs to the five d.c motors are updated during execution of control for each of the motors in a period T for the five motor, or T/5 for each motor. The following routine illustrates update of the pulse width modulated drives to the five motors starting with the motor (m) being controlled at the T/5 time instant, where m = 1, 2, 3, 4, 5 for the five motors.
LET G(Tn) = G(Tn)m + 1
FOR i = m TO (m - 1)STEP 1MODULO 5
IF G(Tn)i = 0
THEN PWM OFF
ELSE
G(Tn)i = G(Tn)i - SGN[g(Tn)i] * 1
PWM OFF: IF G(Tn)i = 0
DIRECTION OUTPUT = dont' care
ENABLE OUTPUT = 0
PWM POS: IF SGN[G(Tn)i] = (+)
DIRECTION OUTPUT = 0
ENABLE OUTPUT = 1
NEXT i - Signals generated as described by the above algorithm drive the output
stage drive amplifiers 134 which switch the motor voltage supply Vs (Fig. 13) to the d.c. motor terminals according to the PWM duty cycle. - A microcomputer implemented control loop for controlling a d.c. motor is described in the patents referenced above. Those patents further disclose algorithms by which the digital compensation control 304 (or a lead/lag filter) is implemented, and the PWM duty cycle is implemented. As stated above, the disclosures of each of the patents cited above are incorporated herein by reference. Thus, those with skill in the art by means of the disclosure herein and in those patents may construct program implementing the digital compensation control or lead-
lag filter 304, thepulse width modulator 305 and the encoder quadrature decoder andcounter 306. - The particular number of d.c. motors controlled by
microcomputer 22 may be set. In the presently preferred embodiment, up to five d.c. motors may be controlled. If less than five are used, a mask is set in printing/accounting I/O for any missing motors. The mask maintains any channel not having a motor channel disabled, i.e., it ignores a position error created in the control loop for the missing motor. - Certain changes and modifications of the embodiments of the invention herein disclosed will be readily apparent to those of skill in the art.
- Accordingly the invention is not considered to be limited to the specific details of the particular description and drawings herein. Reference is made to EPC Article 69 and its Protocol.
Claims (10)
- An electronic postage meter comprising: a plurality of print devices (218) each individually settable to a desired position so that said devices can print a desired postage value; a corresponding plurality of incremental position encoders (205) each of which provides respective signals related to the actual positions of said print devices (218), each encoder (205) having a movable wheel having first series and second series of variations, the variations of the first and second series extending along radially spaced concentric lines in the direction of movement of said movable wheel and the variations of the first and second series being spaced with respect to each other, the variations of the first and second series being detectable, each said encoder including encoder signal means for detecting at a reference point said variations and providing first and second signals related to detection of said variations of said first and second series, respectively; a microcomputer (22) coupled to motor (200) and said encoders (205); characterised in that the widths of the first and second variations are equal and offset by a substantial amount, but less than the full width of a variation; in that said motors (200) are d.c. motors (200) arranged to operate in parallel to position the print devices (218); and in that each d.c. motor (200) has a drive gear shaft (212) carrying a gear in engagement with peripheral gear teeth on said corresponding position encoder (205), the encoder (205) having a shaft (216) which in turn carries a gear (221) in engagement with a print device (218).
- The postage meter of claim 1 wherein said postage meter includes a single microcomputer (22) having a single central processing unit (29) for controlling said d.c. motors.
- The postage meter of claim 2 wherein said single microcomputer (22) receives said signals related to the actual positions of said print devices (218) and desired postage values and includes pulse width modulation means (305) for providing pulse width modulation drive signals for coupling to said d.c. motors (200).
- The postage meter of claim 3 wherein said pulse width modulation means (305) comprises a digital compensation control (304).
- The postage meter of any of claims 1-4, which includes at least one of the following monitored and controlled by said microcomputer (22): means (32) for displaying information; means (40) for entering information; means (52) for causing said print devices to print; and means (36) for accounting for postage printed by said print device.
- The postage meter of any of claims 1-5 wherein said entering means comprises a keyboard (40).
- The postage meter of any of claims 1-5 wherein said entering means comprises an optical input port.
- The postage meter of claim 6 or 7 wherein microcomputer (22) includes means for generating a motion profile for movement of said d.c. motors in response to desired position information, and wherein said pulse width modulation means (305) comprises a digital compensation control (304) coupled to said motion profile generating means and said sensing means to receive said digital signals therefrom for generating a digital compensation signal, said pulse width generating means (305) including means converting said compensation signal into pulse width modulated motor drive signals.
- The postage meter of claim 8 wherein said computer has a plurality of outputs for outputting pulse width modulated drive signals, one for each of said d.c. motors (218), and wherein said control system includes a plurality of amplifiers (134), one for each of said d.c. motors (218), said coupling means coupling respective computer outputs to respective amplifiers (150) and respective amplifiers (150) to respective d.c. motors (218).
- The postage meter of claim 9 wherein said print devices (218) are identical and said d.c. motors (200) are identical.
Priority Applications (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US07/423,822 US5121327A (en) | 1989-10-18 | 1989-10-18 | Microcomputer-controlled electronic postage meter having print wheels set by separate d.c. motors |
CA002032538A CA2032538C (en) | 1989-10-18 | 1990-12-18 | Microcomputer-controlled electronic postage meter having print wheels set by separate d. c. motors |
EP91301228A EP0499725B1 (en) | 1989-10-18 | 1991-02-15 | Electronic postage meter having print wheels set by separate D.C. motors |
DE69126423T DE69126423T2 (en) | 1991-02-15 | 1991-02-15 | Electronic franking machine with separate DC motors for setting the type wheels |
US07/727,037 US5130710A (en) | 1989-10-18 | 1991-07-08 | Microcomputer-controlled electronic postage meter having print wheels set by separate D.C. motors |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US07/423,822 US5121327A (en) | 1989-10-18 | 1989-10-18 | Microcomputer-controlled electronic postage meter having print wheels set by separate d.c. motors |
CA002032528A CA2032528A1 (en) | 1989-05-18 | 1990-04-24 | Reloading system for pitch error correction data |
EP91301228A EP0499725B1 (en) | 1989-10-18 | 1991-02-15 | Electronic postage meter having print wheels set by separate D.C. motors |
Publications (2)
Publication Number | Publication Date |
---|---|
EP0499725A1 EP0499725A1 (en) | 1992-08-26 |
EP0499725B1 true EP0499725B1 (en) | 1997-06-04 |
Family
ID=27168847
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
EP91301228A Expired - Lifetime EP0499725B1 (en) | 1989-10-18 | 1991-02-15 | Electronic postage meter having print wheels set by separate D.C. motors |
Country Status (1)
Country | Link |
---|---|
EP (1) | EP0499725B1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5389863A (en) * | 1993-02-08 | 1995-02-14 | Ascom Autelca Ag | Rotor movement sensing system |
US5654614A (en) * | 1995-04-14 | 1997-08-05 | Ascom Hasler Mailing Systems Ag | Single-motor setting and printing postage meter |
CA2897069C (en) | 2006-06-23 | 2017-10-10 | Kba-Notasys Sa | Numbering device for typographic numbering |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0276402A1 (en) * | 1986-12-22 | 1988-08-03 | Siemens Aktiengesellschaft | High precision angular position encoder using photo-electric detection |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4345193A (en) * | 1980-02-27 | 1982-08-17 | Bell & Howell Company | Driver for postage meters |
DE3111949C2 (en) * | 1981-03-23 | 1985-06-20 | Francotyp - Postalia GmbH, 1000 Berlin | Adjustment device for franking and value stamp machines |
GB2166389B (en) * | 1984-10-04 | 1988-10-26 | Pitney Bowes Inc | Electronic postage meter print wheel setting optimization system |
US4635205A (en) * | 1984-10-04 | 1987-01-06 | Pitney Bowes Inc. | Microprocessor controlled d.c. motor for indexing postage value changing means |
GB8820742D0 (en) * | 1988-09-02 | 1988-10-05 | Alcatel Business Systems | Optical encoder |
US5050495A (en) * | 1989-05-05 | 1991-09-24 | Wu Sheng J | Print wheel setting mechanism |
-
1991
- 1991-02-15 EP EP91301228A patent/EP0499725B1/en not_active Expired - Lifetime
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0276402A1 (en) * | 1986-12-22 | 1988-08-03 | Siemens Aktiengesellschaft | High precision angular position encoder using photo-electric detection |
Also Published As
Publication number | Publication date |
---|---|
EP0499725A1 (en) | 1992-08-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5130710A (en) | Microcomputer-controlled electronic postage meter having print wheels set by separate D.C. motors | |
US5121327A (en) | Microcomputer-controlled electronic postage meter having print wheels set by separate d.c. motors | |
US3978457A (en) | Microcomputerized electronic postage meter system | |
US4271481A (en) | Micro computerized electronic postage meter system | |
US4306299A (en) | Postage meter having means transferring data from a working memory to a non-volatile memory under low power conditions | |
US4367676A (en) | Postage meter value selecting system | |
EP0177048B1 (en) | Apparatus and process employing microprocessor controlled d.c. motor for controlling a load | |
US5021781A (en) | Two stage quadrature incremental encoder | |
EP0499725B1 (en) | Electronic postage meter having print wheels set by separate D.C. motors | |
US4675841A (en) | Micro computerized electronic postage meter system | |
EP0177056B1 (en) | Postage meter apparatus and process employing computer controlled d.c. motor for indexing postage value changing means | |
US4631681A (en) | Microprocessor controlled d.c. motor and application therefor | |
EP0177055B1 (en) | Postage meter apparatus having microprocessor controlled d.c. motor for controlling a postage meter and process for use in the same | |
EP0177051B1 (en) | Printing apparatus comprising microprocessor controlled d.c. motor for controlling print value selection means and process for operating printing apparatus | |
US4421023A (en) | Printer control systems for electronic postage meter | |
CA2032600C (en) | Fraud detection in postage meter having unsecured print whells | |
EP0611107B1 (en) | Rotor movement sensing system | |
CA2032633A1 (en) | Microcomputer-implemented control of separate d. c. motors for setting a plurality of postage meter print wheels | |
US4628476A (en) | Completing an incomplete trip in an electronic postage meter | |
EP0111321B1 (en) | Methods and apparatus for initializing the print wheels in an electronic postage meter | |
DE69126423T2 (en) | Electronic franking machine with separate DC motors for setting the type wheels | |
US5224416A (en) | Electronic postage meter assembly enabling connection of any printwheel-setting motor connector to any printwheel-setting motor | |
US4559443A (en) | Initializing the print wheels in an electronic postage meter | |
CA2080943C (en) | Electronic postage meter having microcomputer-controlled motor-printwheel alignment | |
CA1255003A (en) | Electronic postage meter print wheel setting optimization system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): CH DE FR GB LI |
|
17P | Request for examination filed |
Effective date: 19930128 |
|
17Q | First examination report despatched |
Effective date: 19941006 |
|
GRAG | Despatch of communication of intention to grant |
Free format text: ORIGINAL CODE: EPIDOS AGRA |
|
GRAH | Despatch of communication of intention to grant a patent |
Free format text: ORIGINAL CODE: EPIDOS IGRA |
|
GRAH | Despatch of communication of intention to grant a patent |
Free format text: ORIGINAL CODE: EPIDOS IGRA |
|
GRAA | (expected) grant |
Free format text: ORIGINAL CODE: 0009210 |
|
AK | Designated contracting states |
Kind code of ref document: B1 Designated state(s): CH DE FR GB LI |
|
REG | Reference to a national code |
Ref country code: CH Ref legal event code: EP Ref country code: CH Ref legal event code: NV Representative=s name: E. BLUM & CO. PATENTANWAELTE |
|
REF | Corresponds to: |
Ref document number: 69126423 Country of ref document: DE Date of ref document: 19970710 |
|
ET | Fr: translation filed | ||
PLBE | No opposition filed within time limit |
Free format text: ORIGINAL CODE: 0009261 |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: NO OPPOSITION FILED WITHIN TIME LIMIT |
|
26N | No opposition filed | ||
REG | Reference to a national code |
Ref country code: GB Ref legal event code: IF02 |
|
PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: FR Payment date: 20060217 Year of fee payment: 16 |
|
PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: GB Payment date: 20060223 Year of fee payment: 16 |
|
PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: CH Payment date: 20060227 Year of fee payment: 16 |
|
PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: DE Payment date: 20060331 Year of fee payment: 16 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: LI Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20070228 Ref country code: CH Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20070228 |
|
REG | Reference to a national code |
Ref country code: CH Ref legal event code: PL |
|
GBPC | Gb: european patent ceased through non-payment of renewal fee |
Effective date: 20070215 |
|
REG | Reference to a national code |
Ref country code: FR Ref legal event code: ST Effective date: 20071030 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: DE Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20070901 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: GB Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20070215 Ref country code: FR Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20070228 |