Programming the AMC-III                                        Version 2.48
-----------------------

This disk contains this READ-ME file and the file AMC for programming the
AMC-III with an IBM-compatibel PC via a serial port (COM1 or COM2).

INSTALL: 
--------
To install, you have to copy all the files in a directory (Ex: C:\AMC\)
and start with AMC_E.EXE


Language:
---------
Language is selected with parameter D (deutsch) or E (english)


Selection of COM-port:
----------------------
The default COM port is COM1; additionally the COM-port number may also be
given by a parameter.
e.g.:    AMC E   <CR>  programming via COM1 in english
      or AMC E 1 <CR>  programming via COM1 in english
      or AMC E 2 <CR>  programming via COM2 in english


Preparations:
-------------

Connect the AMC to the PC with the special cable.
This cable contains a RS422 (AMC) <> RS232 (PC) interface converter.

If your PC has only 9-pole connectors for the COM-ports, you have to use
a standard 9 <> 25 pole converter. If you want to make this converter by
yourself, only three wires have to be connected:

                9-pole sub.-D (f)       25-pole sub.-D (m)

                      2   O--------------------O  3
                      3   O--------------------O  2
                      5   O--------------------O  7


Make sure that no (mouse-)drivers are active on the used COM-port!

Start the AMC-x program as decribed above. A screen message will ask you
to switch on the AMC. If the AMC is already powered-up at this time, you
have to switch the AMC off and on, because the programming request will
only be acknowleged in the AMC power-up sequence.


Important note:
-----------------
If the AMC is in the programming mode, no converter functions will be active.
when leaving the programming mode by exiting the AMC-x program, the con-
verter functions will be active immediately (with the new parameters).
So make sure, that your car won't run away at this time ... !


Changing values:
----------------
After the AMC is powered up in the proramming mode, strike any key on the PC
and all parameters will be displayed on the screen. Some of the values are
read-only, others can be changed within a certain range. The range will be
shown at the bottom line in this format: (minimum ... standard .... maximum)

With the ENTER- ,TAB or cursor-keys the different parameters can be selected.
For changing a value (parts of) the old value has to be deleted with the
backspace-key before the new value can be entered.

After changing a value (which is valid and not read-only) and leaving the
corresponding input field, the new value is sent to the AMC, programmed and
echoed back to the PC. If there is a communication error (no or bad echo-
value), an error message will appear at the bottom line and an acustical
warning can be heared. In this (seldom) case, try to reenter the value again.

Values out of range will not be accepted and an error message will also
appear on the bottom line.

When changing the type of AMC or the type of motor, different values will
change at one time and the screen will be redrawn completely.


Online-help:
------------
By pressing the F1 key an online help window will appear showing more details
about the selected item. The window will disappear by striking any key. After-
wards normal editing is possible again.


Leaving the AMC program properly
--------------------------------
You can exit the program by the ESC-key. The value in the selected input
field will be programmed in the AMC, if changed to a valid value before, but
we suggest not to leave the program by pressing ESC in an input field, which
was just changed before, because you have not the possibility to re-enter the
value on communication errors.

When leaving the AMC program, the AMC will recalculate the checksum for the
parameters and will also store this value, which is invisible for the user.
After this an AMC reset will be performed and the AMC will run in normal
converter mode. (remember the important note above!)
After the successful internal checksum-test the new values will be active.

If the checksum-test should fail, default values will be used. The default
values should make it possible to reach then next service station, where
the actual AMC- & Motor- parameters must be reprogrammed to get the best
performace again.


Leaving the AMC-x program inproperly
------------------------------------
If no communication is possible, the program can be aborted by pressing
<CTRL-BREAK>, but in this case the checksum, will not be updated and will
be false, if there were values changed before. Further the AMC will stay
in programming mode until the converter is switched off.

Another way of inproper leaving the AMC program is done by turning off
the PC and / or the AMC before leaving the AMC program with the ESC-key.

It is strongly recommended to run the AMC-x program again in all these cases
and to leave it properly to get a valid checksum for the parameters.


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! new, since PC-program version 1.2 / AMC-program version 1.6:                  !
! ------------------------------------------------------------                  !
!                                                                               !
! kickdown-range:          don't change from zero  (not available)              !
! ---------------          otherwise strange things will happen !!!             !
!                                                                               !
! brake-relay hysteresis:  should be set to 20A for AMC-program releases >= 1.6 !
! -----------------------  will not work with AMC-program-releases < 1.6        !
!                                                                               !
!                  -----------------------   relay on                           !
!                  |               |                                            !
!                  v               ^                                            !
!                  |               |                                            !
! ----------------------------------         relay off                          !
! |----------------|-------|-------|-------------------> (negtive motor current)!
! 0                40      50      60                                           !
!                          ^- rekup. current brake relay                        !
!                   <----- 20 ----->                                            !
!                          ^- brake-relay hysteresis                            !
!                                                                               !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!



Program description of AMCMON E                                    Version 2.34
-------------------------------

The program AMCMON E x is catching and displaying all data, which is transmitted
via the serial port of the AMC running in converter mode. It shows the inter-
nal values of the AMC-III and can therefore also be used for troubleshooting.

Preparations: connect the AMC-III with the special cable to COM1 or COM2 of
              the PC and turn on the AMC main switch.

Start of the programs:  AMCMON E x    , and you will be prompted for the AMC-type
                     or AMCMON E x yyy, where yyy is the AMC-type e.g. 325

x determines the used COM-Port of the PC, that means AMCMON E 1 uses COM1
                                                     AMCMON E 2 uses COM2

On the screen these values will appear:

pedal operation ..........    Amp
motorcurrent ref. ........    Amp
motorcurrent act. ........    Amp
economy ..................    Amp
battery current ..........    Amp
battery voltage ..........    Volt
temp. power stage (min.40C)  C
rotor speed ..............    upm
rotor speed ..............    upm
slip frequency ...........    mHz
slip integral  ...........    mHz
max.slip integral ........    mHz

PROCESSOR PORT 2  ................... 16-bit binary

                  BRTTDRHLI1CCCCCC                                     IN- or
                  OOOOREUUB0TTSSRR                                     OUTPUT
                  FF-+EKBBFKOUOUOU                                      of P
                  ||||||||||||||||____> PWM                               OUT
                  ||||||||||__________> clock-signal                      OUT
                  |||||||||___________> battery current as a clock-signal OUT
                  ||||||||____________> LED low battery (inverted)        OUT
                  |||||||_____________> LED high battery (inverted)       OUT
                  ||||||______________> brake light relais on for regen.  OUT
                  |||||_______________> motor triangle                    I/O
                  ||||________________> cruise control TO+ key (inverted)  IN
                  |||_________________> cruise control TO- key (inverted)  IN
                  ||__________________> regeneration off                   IN
                  |___________________> driving current disable            IN

PROCESSOR PORT 3  ................... 16-bit binary

                  RDWBRTRTBGGGGDSC
                  UORHXXXXEZZZZIKS
                  K  E0011RPHRL
                  ||||||||||||||||____> EEPROM control                    OUT
                  |||||||||||||_______> sensorpulses / -direction motor    IN
                  |||||||||___________> malfunction (inverted)             IN
                  ||||||||____________> serial ports                      I/O
                  ||||________________> bus control                       OUT
                  ||__________________> EEPROM control                     IN
                  |___________________> forewards-/backwards switch        IN


Furtermore the elapsed time since start of the program will be shown.
You can reset this value every time you hit the <SPACE> key.

The programm can be aborted with the <F10> key.

