Home
        Placement_Logbook
         Contents
1.              2459 OHLSO 245 15 01 2000 11 53 51 GAT 245 09TQHUG  248 O9T GHOSE 246 15 01 2007 1 53 55    GA1 246 O9TOHOSE  247409 TLHG 5 24  15 01 2000 11 55 00 GA1 247 09TLHJ75   24809TLHDN 3 245 15 01 2000 1 65 05  GAl 248 09TLHO13    2 09T LHR 11 249 1501 a0 11 55 45 GA1 24409TLHAT 1    250 15 01 2001 11 55 55 GAT 250HJSTLHOE 2 4  Dok Colin Heco  0S   GenA  ccess Lobels GenAoc gsl    Hew   Bave   Bave As   Open    Export    Seting POE    FileName  c SeiaGaltd   Fomai  NoOFF   amp  T Al  Storing POS Browse      Export      Copyright    2000 FG Wilson  Engineering  Lid   Old Glenem Road  Lame  Morthen Ireland     BT40 1EJ             Generating  saving  and opening serial numbers     gt  Click  Generate  to generate a new serial number  this new serial number will be added to  the serial list and appear in the SN edit box  The generated serial number is directly  related to the current system time  amp  date  with an added 8 bit CRC  The edit box    Next     shows the counter for the next serial number to be generated  this field is incremented  automatically after generation of every serial number  The user is permitted to modify the     Next    edit box  Note  If a serial number all ready exists with the same counter value as  the one being generated  the generated serial number will NOT be added to the list       gt  Click  Save As  or  Save  to save a generated serial list   Save As  will always ask the  user for a filename  while  Save  will save changes to an existing 
2.            z FG Wilson  Access J000   Setup Program    Bile Apps Tools Help  Load Apps      cnn    Language Editor Colgate Controller       Sa FG Wilson  Engingenng  Lid  Old Gleam Rosa Lame Ce    Northem irelend  BT  TEs           All the communications will be stored in one dialog and will be called from a number of different  locations  Screen shot shown below       Loading Fila  O  fork Colin McCord  1029315153  amp  TH          Yonable Intonation Slot       The program will have direct access to a database  which   will design and program  Program  structure must be flexible and readable    spent some time thinking on the design of the program  structure     This project is a large one and will take some time to complete  the Access 3000 controller is in  the early stages of development  hence   will also need to design a test program to test the  communications running on laptop connect to PC via RS232        BEng  Hons  Electronic Systems Page 61 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Week 42  _ Monday 21 05 2001 to Friday 25 05 2001  Continue working on my configuration program for the new Access 3000 controller     developed a function that could encrypt or decrypt a string up to 500 characters long  It uses a    128 bit key and without this key it is almost impossible to decrypt and encrypted string  This  function can be used in any program and will be very us    CString CA3KApp  Cryptor unsigned long  const Pass  CString
3.          BD   Wo ilim 1 db    Gonfiquretion       BEng  Hons  Electronic Systems Page 64 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Week 43    Monday 28 05 2001 to Friday 01 06 2001  Continue working on my configuration program for the new Access 3000 controller     Wrote the communication protocol for uploading the main code       switch  state    case WaitforResponse   case BldPkt     read a line from file     case SendPkt     send out the packet     case WtPktAk     wait for ACK     case PktAkTmo     packet timeout     case NkPkt     receive NAK       case ProcEnd    case Cancel     error  abort operation          Designed dialogs for editing panel configuration  screens shot in the following pages           Access 000 anfiguration Editor    y wisi se ry Se     e em   Setpoints   Inputs   Outputs    Annucietoe   Calibmetion   La gees    E mrtlog      ea    Little code for has been added yet  lm just playing around with ideas and trying to design a  flexible structure  Screen shot of the    Misc    tab shown above        BEng  Hons  Electronic Systems Page 65 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord             BEng  Hons  Electronic Systems Page 66 98425145       Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord                                           BEng  Hons  Electronic Systems 98425145       Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Acorns 000 Cont
4.        Delete Curent Remon Access 4000 Control Panel Database       Fie In        fou are eboul to delete 1 recordis  G  S    n Ihyvou dick Yes  yo won tbe ele bo eE  Ean       undo the Delete apesan   Ave you sure wantio delete there raconds           TOQUE mirsi PSR yar as SHO  Dink users wih level J  Wear Hama  poolin  Adrran  access  or tre  ugereho added the  Password record  will be pennited Change Password  ta delete il  Cured Pieced ig  User Mame  colin    Yenrike Order   SAP Huniber E g Prete  Date the record was added posyon        gerehe added the record   Enoki Hew Paggeaord   erby haw Passwcecl    ee ee       Eda User    CA User Heme fcir  Laval  aamin    E Works  Order Mumbar     Dae  enon   User  coke   Passeard    ieee ain    Warty Pess   lasuga  firen 1 2000    rent pastvord i   encoded an r oee  alsbase     Cancel     oe  cen           Change Pessan       BEng  Hons  Electronic Systems Page 13 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Week 18    Monday 20 11 2000 to Friday 24 11 2000    Continued working on the Access 4000 database program  additional features where added   improvements to existing features where also made     One additional feature was to restrict any record to one user at any one time  e g  no two  users can access the same record at any one time  This was accomplished by locking records  that where in use by other users  an AfxMessageBox will appear with the message     Sorry   record     nWorks or
5.      Security is very important  it recommended that some sort of password is used to protect the  remote configuration of any panel  maybe level 3      Example Access 3000 configuration text file        ID Block   Works Order Number   D2336A 001     System   Communication   1  Unit Address   1  Data Speed   9600  Comms   4       BEng  Hons  Electronic Systems Page 48 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord        Calibrate   VT Phase A Offset    VT Phase A Gain   1 000  VT Phase B Offset   0  VT Phase B Gain   1 00     Setpoints    Voltage High Status   1  Voltage High Setpoint   457  Voltage High Time   5  Voltage High Action   2     Inputs     Outputs     Security    Level 1 Password   1111  Level 2 Password   2222  Level 3 Password   2004    Remote Password   9999    Similar to Windows INI files  this has on main advantage over the Access 4000 configuration text  files       e Customers can easy modify the setpoints without any technical knowledge  then load  the modified configuration to their controller     But there is one disadvantage the file cannot be directly transmitted to the controller  it must be  simplified at the PC end before transmission  Hence the code in the load program is more  complex     It is foreseen that the seam load program can load access 4000 and access 3000 text and S19  files  seen its not as simple as transmitting the access 3000 configuration directly you must be  able to detect which your sending  Acces
6.   Al    co    ISO1    oc    C  X1  LM  X1  4   W     U       SS       s    9   1  6   5    a    2    Se  Pa            ag    2              My Access 4000 database program has been given out to a few engineers to use in replace of  the existing database program  any problems  bugs  or suggestions will be relayed to me  This  trial period may last a couple of months  any required changes to the program will be made  Once  test period is over and all problems are fixed the program will be released and a copy of the  program will be given to all concerned     Finished Access 4000 database program technical report  the report was 60 A4 pages in length   excluding source code  and contains all technical information required by any  engineer programmer to understand how my program works quickly and easily  Using this  technical report as a guild he she will be able to modify the program  quickly and easily        BEng  Hons  Electronic Systems Page 46 98425145    Colin K McCord    Sunday  20 July 2003 Industrial Placement Logbook       Added a number of additional topics including  Front Cover  Introduction  Data Flow Diagram   Data flow paths  Class structure  Class Description  Appendix 1    MDB data source description   Appendix 2     Hierarchy Chart  Appendix 3   CDaoRecordSet Class Members     The data flow diagram shows how data is transferred throughout the program  it was drawn in  AutoCAD Release 14  screen shot is shown below          Data Source  Panel mdb           Tabl
7.   The main reason for not using flash in production is cost     We need to have two prototypes ready for the end of the week  so was given the task to check  both prototype PCB boards making sure there are no broken tracks  This was achieved using  multimeter in buzzer mode  using schematic as a guild checked every connection  Next after it  has been confirmed that the PCB are correct    started to populate both boards with all their  components  hence getting some much needed soldering practice     After the boards had been finished    tested them  Connected to 12V power supply  connect RX   and RX  to TX  and TX  of the Access 4000 and switched on    noticed straight away that a view  LED   s where constantly on  using mulitmeter it was discovered that a couple of BS170 transistor       BEng  Hons  Electronic Systems Page 43 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       where dead  Always a circuit between collector and emitter   Replaced faulty transistors and  tested again  both prototype SCI Annunciation where working    There was a slight worry the voltage regulator will over heating  mounted to small heat sink  a  high voltages    left the SCI Annuciator running on 28 Volts for 6 hours  to seek how hot this  voltage regulator got  After 6 hours there was a small amount of heat  but the heat sink seamed  to be doing a good job in displacing the heat and the tested was seen as a success     Next using AutoCAD R14    design label strip
8.  First Name  and Second Name   e Added move controls to menu bar  tool bar and form view dialog box  adding the  appropriate functions for the controls        BEng  Hons  Electronic Systems Page 7 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       e Added controls    Add        Edit        Delete    and    Delete All     along with code to make  them function  and popup dialog boxes for    Add     amp     Edit       e Other controls included     go to        Search        Sort       e List control added  along with a new class    CDataBaseListView     this class  displays the complete database in the form of a table  Controls added to allow the  list control window to be load    e Windows message handler added  for column click  right mouse click  left mouse  click etc    code added to allow the database to be sort when a column is clicked   Also a popup menu appears when you right click on an item in the list  allows you  to Del Edit the select item  Also if an item in the list is clicked it become the  current item in both the list  amp  form views    Screen dump of the test database program shown below       J DataBase   DateaBal  Bie Edi Becod Maw Window Hap  Oa oP Boat ed RE MSE eo    Edt Contents sl  Luda he Fa    ead   Ede   ecradane Tory  T March Hary  Dolsie   Dakin Al   EjMeanons Dionna  ms    oot AL ance    bia x10 Moco Alen    Piira  te          sil a       Siocon Julie  ay Tee  Ken  Sart A Moons Daid     Escan Nams E  Go  fSacond N
9.  He will go about his normal tasks  and if he requires to load TXT or S19 files to the Access 4000       BEng  Hons  Electronic Systems Page 42 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       control panel my program will be used  If program has been proven to run reliably  it will replace  the existing MS dos version     Sometime in the future the bootstrap code in the Access 4000 control panel will be modified to  allow uploading as well as downloading  My program can easily and quickly be modified to  accommodate any new features  as they   re required     On Thursday     There a customer in Saudi Arabia was having a problem with the Oil Pressure  variations   they  where using Access 4000  The customer was told to put a resistor across the Oil Pressure pins  on the Access 4000 control panel  and if a constant value of oil pressure was displayed there was  nothing wrong it the Access 4000 control panel  The customer try this and a problem with the  Access 4000 control panel was ruled out     The customer was given a number of possible solutions  one included putting a 0 1uF capacitor in  parallel with the oil pressure sender  But the customer wanted use to test the possible solutions   FG Wilson has sold this type of Gensets all over the world and never had any problems with the  oil pressure before  so in order for us to fix the problem we need to be able to recreate it     So   was given the task of finding a Genset in Larne with the sa
10.  Serial Only  GA1 201 Q9TWHBBC  GA1 202 Q9TWHBAY  Serial X3    GA1 201 Q9TWHBBC  GA1 201 Q9TWHBBC  GA1 201 Q9TWHBBC    GA1 202 Q9TWHBA9  GA1 202 Q9TWHBA9  GA1 202 Q9TWHBA9       Next  Click  Export  the file will be created and notepad will load automatically if the  extension   txt was used     Creating  amp  printing disk labels      gt     Load the Microsoft Word document    GenAccessV2 doc     note  the Microsoft Excel  spreadsheet    Data source xls    should load automatically     The document uses a technique known as mail merge  Disk numbers  Serial numbers   and Part numbers are stored in the Microsoft Excel spreadsheet and merged with the  word document when printed     The document deals with 8 sets  24 disks  at once  using 3 A4 label sheets  Make sure  printer is on manual feed  or 3 A4 label sheets have been inserted into the feeder tray     Export serials using format    Serial X3    and No  OFF    8     then cut  amp  paste the serials  directly into the Serial number column in the    Data source xls    spreadsheet     From the word document    GenAccessV2 doc    click the icon ial  Merge to  printer   24 labels should now be printing using the imported serial numbers    ee ie a i  es r a    Far Wiikeag NT Far Windia HTF    Wia 1   Vi makes r OF  GenAccess v l l GenAccess w 1 1  Disk 1 a  3 Cesk 3 of  Sena Ho  GAl 201 Qe THES Sena Ho  GA1 20L eT WHEE  Peart Hix 6201 193 Fart Ho  60 123       BEng  Hons  Electronic Systems Page 29 98425145    Sunday  20 July 20
11.  Test c   fixed a  couple of minor bugs  and made it more user friendly  The program was not originally  designed for use by anyone else other than me  It was email to Hong Kong to help them test  the Modbus protocol   designed for the Access 4000 control panel     Carried out Basic Module Functional Tests  these tests followed a similar pattern to the tests  carried out on the Auto start Module     Week 11    Monday 02 10 2000 to Friday 06 09 2000    Cl panel test       Software development in    C      The Cl panel  has a RS232 to RS485 RS422 converter  which needs to be tested   this is done by linking RX  with TX   RX  with TX   which is known as a loop back  test  The RS232 side of the communications board is connected to a PC via  COM1   My program    Cl_test exe     which was designed specifically for this task  is then  executed on the PC  once the test is started  the producer is completely automatic   and takes 4 seconds  if all tests pass  or 9 seconds  if all tests fail  to complete the  automated tests   Tests include      gt  Different baud rates  9600 bps  14400 bps  19200 bps  38400 bps  57600 bps   and 115200 bps  Program starts at the slowest  9600 bps  and works its way  to the fastest  115200 bps     gt  Three different tests are carried out on each baud rate     v Test 1  Data 0 to 255 to 0 TXed  amp  RXed with 16 BIT CRC   v Test 2  Random Data form 0 to 255 TXed  amp  RXed with 16 BIT CRC   v Test 3  Random Data 0x00 or OxFF TXed  amp  RXed with 16 BIT 
12.  after a couple of different  approaches managed to find a way to make it work     The code was placed into a new Class and can be included into any MFC application  making  it easy to add bitmaps to menu items  The code can be reused over and over again     Window Standard Menu    B Edt Search Help    Owner drawn menu with bitmaps  View Slope Blane ls    O Hen ChisH   Ga Open  Crh  Doe   B ire Eig  Sitit    amp  Pant  CP  Pant Preys  Port Setup             All menus in my Access 4000 control panel database program including popup menus have  been replaced with these new owner drawn menus    think it adds character to the program   Below are screen shots of some of the menus within the program showing the new owner  drawn menus                Before After  BEES roe Heip EE Window Holp  Change User Password Ah F10 E Change Laer Pasreord  AlteF 1p  Sdminisietan Took F12 1 S  dminisintion Toms Flz    i   iptione Albeo le ations AO    win          BEng  Hons  Electronic Systems    Page 24 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Before After       Before After          Before After       Before After          BEng  Hons  Electronic Systems Page 25 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Experimented with then added hyperlinks to my Access 4000 control panel database  program  again code placed into separate Class which is included using  include  This class  allows you to add a hyperlink to any s
13.  circuit  diagram was now finalized and design of the PCB can start  There was a small fault discovered in  the software of the Annunciator  normally when an alarm is active the appropriate LED flashes on  and off  But this is no good for use with the relay board  as the relay will also switch Off and On   The solution was to modify the PIC software to read one of the spare digital switches on the  Annuciator PCB  If Switch   1 for solid LEDs hence solid relay Switch   0 for flashing LEDs     Both the schematic and PCB will be design  using CADstar for windows 3 0  Two days were  spent learning and getting familiar with this powerful application     Some time was spend in coming with some why of keeping the relay and annuciator active during  cranking  originally a small circuit was design for the relay board with would allow a 9V pp3  battery to power the relay board and Annunciator  But this idea was abandoned because the       BEng  Hons  Electronic Systems Page 52 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       current consumed by the each relay is 50mA  there are 8 relays on each board  two board can be  used   hence 8 x 50mA   400mA X 2   800mA  Annunciator takes 200mA  Hence 1 A is required  form the battery  for the worst case scenario  Good quality PP3 battery can deliver 500mA  so it  would not be up to task  The Annuciator case is compact and a larger battery would be two large     It was decided to leave it  if the customer exper
14.  components grouped together  every component in a group of  components is the same value     The spool file used for manufacture of the PCB board will be sent away next well  It will take at  least a week for the boards to arrive  5 prototype board will be ordered   When they arrive   will  populate them with components and will be involved in the testing producer       have gained a new skill  creation of schematic and PCB drawings using CADstar for windows  3 0  A nice break from software  enjoyed every minute     The following report were generated in CADstar       Board Status Report  Cadstar Design Editor Version 3 0  Design  D   Work COLINM 1 Projects SCIANN 1 RELAYB 1 RELAY41 pcb    Design Title        BEng  Hons  Electronic Systems Page 54 98425145    Sunday  20 July 2003    Industrial Placement Logbook    Colin K McCord       Cadstar PCB Design   16 Layer Defaults    Date  Friday  April 06  2001  Time  3 25 PM       Min Max Total  Number of components 59 59  Number of Testpoints  Area of components  sq cm  57 902 57 902  Component board density 58 58  Number of equivalent 16 pin ICs 11 11  Area per equivalent IC  sq cm  9 109 9 109  Area X length Y length   sq cm   cm   cm   Board outline 100 200 6 000 16 700  All Min Max Total  Number of pads 177 177  Number of Testpoint pads  Layer pair codes Number of vias   Through Hole  1  Total 1  Nets Mixed width nets Connections  Total number 51 124  Unrouted Unrouted Stapled Routed Routed  Conns Segments Conns Necked Unneck
15.  directly from the database  The database program will  have included COM communications  user will select    Export to Access 3000         4  Upload panel configuration directly to the database  The database program will have  included COM communications  user will select    Import from Access 3000         5  Configure panel in real time  Communications Protocol could be included in the  maincode  Activated by the user selecting it from within the menus of the controller or  the controller is able to automatically leave GenAccess or Modbus when a certain  signal is received and return when configuration is complete     Configure panel in real time    Windows based program displays current configuration  when the user changes a setpoint a  communication message block is sent automatically updating the setpoint  There is continuous  communication with the program and the controller at all times  if communication is  stopped unreadable for a certain period of time the controller will leave this configuration mode   return to Modbus or GenAccess      This program will come in useful for customers without access to the database   This program should also be able to         Upload and Download Configuration files     Upload and Download Language files     Download maincode     All this functions should be included in one program with a user friendly interface and must be  easy to use  Maybe consideration should be taken on including these functions in future versions  of GenAccess
16.  is fully compatible with the original   mdb    2  Although the database file was created with Microsoft Access  the program does not  require Microsoft Access to be installed on the machine to run  The exe file at present  is only 380Kb in size  it is so small it can easily be executed from a floppy disk    3  The program is designed specifically for this task  hence the program is much easier  to use than the monster Microsoft Access     The database stage is only the first stage of many  because it is such a large project it has  been split up into stages  and the program will be released at each stage  it could be  sometime before all stages are complete  The finished project will include  Internet TCP IP  communication  which will let customers have access to the database from anywhere in the  world updating there data as required     At present my job is to create the database stage  Stage 1  with easy readable code  as it will  be use as the bases  for any additional stages at a later date  The modifications may not be  completed my me  so its important that my coded is easy to read and contains lots of  comments        BEng  Hons  Electronic Systems Page 19 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Week 22  Monday 18 12 2000 to Friday 22 12 2000    Developed a small dialogue based MFC program  for creating and editing access 4000 text  files  There is a dos program already in use  but a windows based application would be a  lar
17.  it as flexible as p m Enable Password Protection Wa  possible  Created a view  dialogues to view a possible Change Password    structure  Added three level    password control system to the Operesior Ci Lewel 1      program along with all the    code to make it work  using my Technican   Level 2  new encryption function to   store passwords in the window reti errre pat rashid    registry         picca i iai          BEng  Hons  Electronic Systems Page 62 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       peen           up Program       Carried out some work on the database section  creating a dialogue layout and implementing  code for user profiles and passwords including adding  editing  and deleting users  Some code  was reused from the Access 4000 database program  hence saying time     olobade   O  ork int hy d if Aak mdb    Admin Tools    Administrator  Administrator  Test Engineer  Design Enginner     Guest    23 05 2000 2a 05 2001  25 05 2000 2605 2001  25 05 2001  20 05 2001  2e  05 2000  21 06 2001  23 06 2001    Adminstrator  Adrminisial  r  Guasi    T a a oer A a       Database section will be the last to be completed  but it   s about to like about the structure and  make sure the program can cope        BEng  Hons  Electronic Systems Page 63 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord           Screen dump of Add User Dialogue     B gd r    Screen dump of configuration section on database dialogue 
18.  pone k2 Works Onder   BAP Mumber  EMC    aia reson Diste the record wee added  1 3 00 Lembe _Sonquesion      dmpe        Enota Lise who addedthe record  ebleck Leet User impos File  Security Liser De  rad Iot    Sul Chame i Fel 1  Fut Chennel 3 r Field 9  kirse  Sul Chamel Field   FautChennsld   Field d j      BEBE             Record Databas Toto Record  1 of 222 __ New Record   Del Record   Change Bees     Ge    Reedy     KWE       Week 15  Monday 30 10 2000 to Friday 03 11 2000    Added admin tools to database     e Display a list of all users   e Display User History   e Add a user   e Edita user        BEng  Hons  Electronic Systems Page 9 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       e Del auser   e Clear User history     Only users with level 3  Admin  Access will have access to the admin tools     Screen shot of the admin section shown below  this is how it appears at present  will properly  be modify in the coming weeks  so the appearance may change       16 10 2000 oa Tin  2H 10 200  O13  19005  200   2 10 2000    din   DE   TE   TE   DE   ani TE  coin Arin   1D dmana DE    degil DE  Pimi TE  l aia a    nrc    O71  2000  10 2000 1406 2000  OF 71 2000    cH 10 200  101200    Sr ie Pe A a E a A a a    110 200 zj    PTALA rT      Tabia      Tabiin View     p Conos Podi            C usario   Lage   Smell   att   o     ae     UserlList __bat_  Bepon    pe j a  Jali       On Tuesday of this week    attended the training course    Contr
19.  pot   Few   44  0  2628 261000   Tat   da  0  ZEZE 261111    Waming  This computer pregam is protected by  copyrigh lav end intemetional testes  Uneuthonzed  reproduckon or distribution of this program  of any portion  of mey result in seware cemil and criminal penalties  and  wall be prowecuted    FG Wilson  Engineering  Lid      Old Glaneem Road  Lame     Northem Ireland BT40 1EJ       Week 26    Monday 22 01 2001 to Friday 26 01 2001       Experimented with serial communications using Microsoft Visual C   6 0  example code was  found on the Internet  soon   was able to send and receive characters    also discovered direct  access to the hardware is not allowed under Windows NT  Interaction with the serial port was  achieved through a file handle and various WIN32 communication API   s  This method is Windows  95 compatible       decided to create a small windows based master program for the Access 4000 control panel   using my Modbus protocol  GenModbus workspace was created using MS Visual C   MFC  wizard     Started adding code to initialize the communications  then function to read  amp  receive a character     Created a real time timer  which by default will be called every 50ms  This function will contain the  protocol for transmitting queries and receiving responses  The first time the timer is called the  Modbus query for read all controls is transmitted  1 1 0 0 0 10 3D C6   The next time the timer is  called the RX buffer is checked to see if a character has been
20.  received  if no character has been  received nothing happens and the function returns  This can happen a max of three times  50ms  x 3   150ms timeout  then the query frame will be transmitted again  One a character is received   the reset of the response frame is received and checked  if valid the received data is added to the       BEng  Hons  Electronic Systems Page 31 98425145    Sunday  20 July 2003    Industrial Placement Logbook Colin K McCord       array table n   Next query for Status   Alarms etc    Below shows the basic operation of the timer    function       Void Timer       Called every 50ms            switch  m_state          case TX_CONTROLS     Build and transmit Modbus query frame for reading all controls   Limit   0    m_state   RX_CONTROLS    Break     case RX_CONTROLS     if  char has bee received       Receive  amp  decode Modbus response frame and if valid  add data to Table n     m_state   TX_ALARMS   else  limit   limit   1   if   limit  gt  3  m_state   RX_CONTROLS         Break     Case TX_ALARMS     Build and transmit Modbus query frame for reading all Alarms   Limit   0    m_state   RX_ ALARMS    Break     case RX_ ALARMS     case    case    case    case    if  char has bee received       Receive  amp  decode Modbus response frame and if valid  add data to Table n     m_state   TX_ MONITORING   else  limit   limit   1   if   limit  gt  3  m_state   RX_ ALARMS     Break   TX_MONITORING   RX_ MONITORING   TX_CONFIG   RX_CONFIG   if  char has bee re
21.  running this 55mS of processing  power is enough to keep the panel operating normally  But when the engine  is running there are lots of complex calculations being carried out  and 55mS  of processing power is not long enough to finish them all  therefore the panel  slow down     Solution  There is a 1 5ms delay before characters are read  the program was  redesigned inorder to make this a max timeout  which only occurs if there is  no character to read  So if there is already a character in the buffer there will  be no time delay  while before the program waited 1 5ms before receiving  every character  This solution was implemented and was proven to work     Testing complete  protocol working as expected     A technical report was typed up     e Contents  Introduction  Block Diagram  Modbus Protocol  Testing  Test Results     PC to Laptop  Test Results     PC to Access 4000 using emulator   Test Results     PC to Access 4000 using Genset   Appendix 1     modbus c  Appendix 2     test c  Appendix 3     mbpc c    Week 8  Monday 11 09 2000 to Friday 15 09 2000    3 Modular control units  which include    Autostart Module        Basic Module     amp     AC Module      where subcontracted out and designed by FSL Electronics LTD  Before FG Wilson accepts  these modules  they must be fully checked and tested  to make sure then meet are  requirements       was given the Technical Specification for modular control units     C    Source code for all three  modules  and circuit diagra
22.  str  bool Encipher        unsigned long  const Pass   pointer to 128 bit password  CString str   string to encrypt decrypt    bool Encipher   true for encrypt  false for decrypt  Encrypted or decrypted string is returned     It uses the tiny encryption algorithm  this algorithm is one of the fastest and most efficient  cryptographic algorithms in existence  David Wheeler and Roger Needham developed it at the  Computer Laboratory of Cambridge University  It is a feistel cipher  which uses operations from  mixed  orthogonal  algebraic groups     XORs and additions in this case  It encrypts 64 data bits at  a time  8 characters  using a 128 bit key     It is highly resistant to differential cryptanalysis  and achieves complete diffusion  where a one bit  difference in the plain text will cause approximately 32 bit differences in the ciphertext  after only  six rounds  I use 32 rounds   Performance on a modern desktop computer or workstation is very  impressive     For example     unsigned long pass 4      pass 0    OxFF1287EA     128 bit key   cannot decode with this key     pass 1    0x12345678   pass 2    0x64944953   pass 3    0x37552745     CString temp   temp   Cryptor pass  This is a test   true      temp will equal  0odzz0x1819wi81lu3bfin0kin7g4  This function will be used to for passwords  serial numbers  etc   and will be used in my  programs   Also worked on the layout and    program structure of the Boris Secuity   Detebase    configuration program  trying    to make
23.  the current baud rate  The baud section lets the user select the baud rate   9600 to 56K     SCI Annuciator Frame format             SOl ADDR   DATA1   DATA2   DATA3   DATA4   DATAS5 ENC BCC                               SOl   7Eh  start of information   ADDR  30 3F  address 0 TO 15   DATA   Binary data for channel 1 to channel 20   ENC   Encoding information   BCC   Block check sum  if SUM   ADDR DATA1 DATA2 DATA3 DATA4 DATA5 ENC  then BCC is the one   s complement of the LSB of SUM    The encoding information is used to recover the received data  Because the SCI annuciator is  designed to work with GenAccess  some control characters like 0x01  SOH   0x06  ACK    0x10  EOS   0x18  CAN   should be avoided to transmission  IF any data equals one of these  control characters  the data will be inverted and hence the corresponding bit in ENC is set to  1  The bit 7 in NEC is always set to 1 to ensure that it is not one of the control characters  The  bit O is to make sure BCC is not one of the control characters  If the calculated BCC equals  one of the characters  the bit 0 in ENC will be set to 1  and BCC is calculated again     The content of ENC is as below        Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0          1 DT5 DT4 DT3 DT2 DT1 0 BCS                            DTn   1  DATAn in the frame is inverted   DTn   0  DATAn in the frame is normal   BCS   1  The old BCC was one of the control characters  with BCS 1  it is not     It is clear the SCI annuciator data fram
24. 0 July 2003 Industrial Placement Logbook    Colin K McCord       Created a help file  wrote user manual and detailed technical report  which included       CONTENTS    Introduction    Class Structure  CA3kApp    CViewPrint    Class Description  CA3kApp    CDAORecordSet Classes    Programming Tips  Tip 1  Adding modem functionally     Tip 10  Adding additional communication protocols     Program Resources  Accelerators    Dialog Boxes    Appendixes    Appendix 5     A3ktest c    Also carried out work on many other small projects     THE END    Pages 75 to 86       BEng  Hons  Electronic Systems Page 76    98425145    Weeks 46 to 56  _ Monday 18 06 2001 to Friday 31 08 2001    Finished configuration program for the new Access 3000 controller  including database section       s 3000 Database   O WorkyColin McCord  3029A3k mdb BBE    Design Enginner   Administr   Administrator   Design Enginner   Administrator 2rAl7 2001   Design Enginner Zh 2001   Guest ThE 20n agiit  Adrninistal  r 09 08 2001       Created a help file  wrote user manual and detailed technical report  which included       CONTENTS    Introduction    Class Structure  CA3kApp    CViewPrint    Class Description  CA3kApp    CDAORecordSet Classes    Programming Tips  Tip 1  Adding modem functionally     Tip 10  Adding additional communication protocols     Program Resources  Accelerators    Dialog Boxes    Appendixes    Appendix 5     A3ktest c    Also carried out work on many other small projects     THE END    Page
25. 000 database program  additional features where added   improvements to existing features where also made     Additional features include      e Save size  amp  positions of windows  including the main frame  main control window   configuration windows and the administration tools window  The size  amp  positions of these  windows where save into the windows registry  just before the program is close and  restored on start up  Default positions have been programmed for initial first time use     Begisry Edit view Help    Access 4000 Corral F  E Canfig  D Recent File List      E TaolBerBerl  E ToolBer Eart    E Taoolfer Ber   E ToolBerBer3  E ToolBerBerd  D ToolBerBark     TaoolBer Ber     E ToolBerSummery    My Computer  HKE    _CURRENT_USER Scttware FG Wilson Access 4000 ContolPsnelDstebase Setings    Harme    Date       ETETE  ial inderePas    abse not sof    29 3200  32000  1  1 0 0 765 537     ai irdoePos_CAdmin Took view  D 1 1  1  1  1 812 203 630 606   indos Pas _OCaibraie vie  D 1 1  1  1  1 152 234 770 511   mdee Pos _OCenmencan ie    O11 1 1 12350 456 607   aby inde Pog Ongui vier il ad dd  i indore _ODupuls vier  D 141 41 1 1 203 445 753 652   wos Poa OF eneies    D111 M65 349     minos    Coury ig  D11 17 21 140 390 500 57 9     jinde Pos OS en oie iew    Qed e187  799 643     lipid Pos _CSyaternvies a a la a Ld             e Save size  amp  positions of all toolbars and status bar  again stored in the windows registry  just before the program is close and restore
26. 03 Industrial Placement Logbook Colin K McCord       How the serial number is generated    The serial number is generated using tables of codes  which are direct related to the date  amp  time  of the system  hence the date  amp  time can be decoded at a later date  The codes are letters or  number  which   tried to pick a random  These codes are stored in arrays in the computer  program hence coding and decoding can easily be achieved                                                                                                                                                                                                                                                                                                                                            Serial Number Counter Month Year Date Min Hour Sec 8 Bit CRC                           Month Code Year Code Year Code Hour Code Hour Code   1 Q 2000 Q 2012 1 0 E 12 G  2 G 2001 9 2013 O 1 M 13 F  3 K 2002 A 2014 P 2 N 14 D  4 U 2003 8 2015 L 3 B 15 S  5 O 2004 Z 2016 M 4 V 16 A  6 P 2005 6 2017 N 5 C 17 P  7 5 2006 W 2018 3 6 X 18 O  8 D 2007 7 2019 2 7 Z 19    9 J 2008 S 2020 T 8 L 20 U  10 K 2009 5 Other 0 9 K 21 Y  11 3 2010 X 10 J 22 N  12 6 2011 2 11 H 23 R   Date Code Date Code Min Code Min Code  1 P 17 C 1 2 Z 33 34 1  2 L 18 R 3 4 X 35 36 P  3 M 19 D 5 6 C 37 38 O  4 O 20 X 7 8 V 39 40 l  5 K 21 E 9 10 B 41 42 U  6 N 22 S 11 12 N 43 44 Y  7 l 23 Z 13 14 M 45 46 T  8 J 24 WwW 15 16 0 47 48 R  9 U 25 A 17 18 9 49 
27. 2003 Industrial Placement Logbook Colin K McCord       Shown below is a screen shot of    Page Setup    dialogue              Contguraticn p Mergins  Offset     Mesomun number of roves j    j    u  Al pereese Fone Gl   Lest Figa      Bigwa niseriber ot nyes            par page  Landacapej Wi Tap   1   Boom   100    Administetan Tools          eer Fistor Header  Access 4000 Daisbhase  User History       User List Header jAccess 4000 Dates   Ues List          Locked Rec Header  sore  e 4000 Daishase   Locked Recorda       WOM Treabilty Header  orks Order Number Tracibilty Repar       Trece Userrhlesder  aer Traubit Repor    F Wax Ho  afrecords M Hex Pa  ofrecords Moa  AY pernege fs m per page  3 E      rerishon  Printer   Mame  WFG FR HPJET_ELEC 3       Fota Paper Ad    Ea  C Landscape   For best resuhs vse AA peper sine        Stage one  The Database stage  of the application is almost compete  for the next couple of  weeks the program will be tested within are group  E11     Electronic Control Design   with the  database file stored within a network drive  O      The program will be tested for reliability  ease of use  etc    The program will then be modified  depending on test results and suggestions  this producer may have to be repeated several  times  but eventually the program will be released to replace the existing database  hopefully  within 1 to 2 months      The program has a number of advantages over the existing Microsoft Access based   database      1  My program
28. 32MB of RAM  S19 files worked fine  but    had a problem with the text files  At about 50  the communication slowed and the Access 4000  control panel timeout and load failed  At frist   did not understand why this was happening  but  then discoved that   was incrementing the process bar after every byte hence creating a delay  between the bytes  The reason why the S19 files works was because there is a delay between  blocks when waiting for the ACK  hence the processor was able to catch up     Once it was discovered what was causing the problem  the problem was easily fixed  The solution  was to change to step size of the processor bar to 50  and step it every 50 bytes instead of every  one  This solution worked fine  Although there was no problem with the S19 files  it is bad and  wasteful programming to increment the process bar after every byte  The process bar was  updated after every block  hence no delay between bytes within a block     Before the changes where made  loading S19 files on my computer  PIII     Windows NT  used  10  of the processor  it now uses 2  of the processor  Before the changes where made  loading  TXT file on my computer  PIII     Windows NT  used 45  of the processor  it now uses 4   These  values where taken from the    Window NT Task Manager        Created a small help file using    Help workshop    describing how to operated the program  After a  couple more hours of testing    passed the program file to another team member who will test it  
29. 4000 control panel  and testing can begin     Week 5  Monday 21 08 2000 to Friday 25 08 2000    Converted the PC version of the Modbus communication protocol for Access 4000 control  panel  Source code complied using Cosmic C  program uploaded to access 4000 panel  Two  Access 4000 panel  power supply  RS232 to RS485 converter  given to me inorder to carried  out functional tests     Changes made to the technical specification  my program was modified to suit  e g  using  relative addressing instead of Absolute  The program was designed  so that changes can  easily be made  and this proved to be the case as there was no problems when making the  necessary changes     The two Access 4000 control panel  with Modbus installed where connect to my PC  via the  RS232 to RS485 converter  My test program was used to test the protocol  Later once a view  basic tests where carried out  the Access 4000 control panels where connected up to a  hardware emulator  which emulated a Genset running  AC voltage  speed  and a number of  Alarms  e g  Emergency Stop      A series of detailed tests where carried out  the Modbus communication program was  operating as expected  Changes where made to the test program display the length of time it  took a slave device to respond     Week 6  Monday 28 08 2000 to Friday 01 09 2000    Tests continued  testing in great detail  every  function  control  status  alarm  monitoring  and  configuration  Making detailed notes  as report is required at a later d
30. 5 to S000   Deteutt 5   Lite  iow          BEng  Hons  Electronic Systems Page 72 98425145    Sunday  20 July 2003    Industrial Placement Logbook    Colin K McCord         also added    Spin    controls to many edit boxes  allowing changes to the value using the    Up    and     Down    arrow button or using the arrow key while within the edit control  which has an attached    spin control      If errors are detected when user clicks    Write to Controller    or ties to save the configuration to  disk the following dialog appears              Alesse corect all errors before tng sgam     Note  Emors are normally heghlighted     Errors howe been detected in configuration          Conhguraton MST be emor tree  beture ming to disk or controler wall be pernitted     Note the presents of     Misc      amp      System     this tells the user that there are invalid fields in both of  these tabs and all other tabs are error free     Values information about the configuration is stored in an standard window INI file  if this file does  not exist default values was are hard coded into program are use  only a valid INI file will override    this hard coded values   the follow is part of the INI file to date        WON    min   0   max   4294967294  default   0    tooltip   Range  0 to 4294967294   Default   validchar   0123456789  LimitText   10     WON   last number    min   1   max   255   default   1   tooltip   Range  1 to 255  validchar   0123456789  LimitText   3     Spare 1    mi
31. 50 E  10 H 26 Q 19 20 8 51 52 Ww  11 B 27 7 21 22 7 53 54 Q  12 Y 28 6 23 24 6 55 56 L  13 G 29 8 25 26 5 57 58 K  14 V 30 9 27 28 4 59 60 J  15 T 31 4 29 30 3 0 H  16 F 31 32 2  Sec Code Sec Code Sec Code Sec Code Sec Code Sec Code  1 2 A 11 12 H 21 22 N 31 32 Z 41 42 Ww 51 52 U  3 4 S 13 14 J 23 24 B 33 34 2 43 44 E 53 54    5 6 D 15 16 K 25 26 V 35 36 4 45 46 R 55 56 O  7 8 F 17 18 L 27 28 C 37 38 6 47 48 T 57 58 P  9 10 G 19 20 M 29 30 X 39 40 Q 49 50 Y 59 8  0 3                      GA1     is added to the front of generated serial number   GA1                      successfully competed and tested 50 Set of GenAccess 1 1 control software  where the serial  numbers for each set were created using my serial generation program  Using mail merge the  labels where easily printed once the design of the document was complete     The serial generation program has been written so that it is easy to use  and easy to export the  serials into excel and in turn merge with the labels document  4 page Quick Start Guide has been  written explaining in detail how to operate the program  and print the labels        BEng  Hons  Electronic Systems Page 30 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       The Hyperlink class   wrote last week was reused  screen shot below       About seral Geneanato       Sial Generetorior Gencorss vl  Copyrigh    2001 Fis Witson  Engi Li  All nghis reserved    Miertin 1 08a   Department    Date  19 Jantary S000      Website 
32. Access 3000 controller  Access 3000  configuration      Requirements          BEng  Hons  Electronic Systems Page 59 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Configuration is conducted during bootstrap  There are four main functions       Export main code to flash memory     Export configuration file to serial EEPROM     Import configuration to PC     Export TEXT file to flash memory     On the PC side each function is performed using batch mode communication  i e  each function  can be started by selecting Export Main Code  Export Configuration File  Import Configuration file  etc     During bootstrap if    M    or    C    or    U    or    T    is received 5 times  the software goes to one of the  defined functions  When the function is completed  the software enters Configuration State that  allows the user to perform another function     The configuration software should be well structured for future modification  Since remote  configuration using modem will be included  the corresponding program block should be inserted  as a dummy function     Calibration program and database function may be required to be included in the future  so the  software structure should be flexible to accommodate these applications     Spend most of the week thinking about the program and how to make the operation of the  program as easy as possible  Easy to use user interface  hence no training required for users    Jotted down a couple of rough idea o
33. CONSTAT DEMARRAGE    INTEAVALLE DEMARRAGE  NOMBRE TENTATIVES    DEF AUT PRECHALPFAGE  posees    Ey  2                Screen shot of    about    dialog shown below          The program is small only 100KB in size  its simple to use  and can easily be modify     Finished for Christmas holidays  on Thursday 21 December        BEng  Hons  Electronic Systems Page 21 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Week 23    Tuesday 02 01 2001 to Friday 05 01 2001  Started back on Tuesday 2    of January 2001  after Christmas and New Year holidays     Most of my time was spent making additions  modifications and improvement to my Access  4000 database program     Spend some time making my code more readable  by adding comments  simplifying  and  deleting redundant code     Four popup menus were added      1  Right click on main control window   Right click on Admin tools window   Right click on Tool Bar    Right click on any configuration window        2  3  4    Sra    Added coded  to check for changes before closing the program  if changes are detected the  user will be asked if he she wants to save the changes  or not        Updated control buttons for loading configuration windows  previously say you click on   System  the system section window will be created  or activated  Well   have now change it  so that if the window is already created and is the activated window  it will be destroyed  So  we have Create  Activate  then Destroy     Chang
34. CRC   The program is designed to be easy to use  as it will be used to test PCBs straight  of the production line  Anyone without any specific knowledge can operate the  program with ease   Program displays a simple pass or fail  beside tested baud rates  the user also as  the option after testing is complete for a detailed report  which included details of  all three test carried out on each baud rate        BEng  Hons  Electronic Systems Page 6 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       e Program designed  coded and tested  by me  Works well and will be put to  practical use in the near future   e Function Include       void main_menu  void     void Com_Test  void      int test1  void     int test2  void     int test3  void     void report  void     void interrupt com_handler  void    void trans int c     int readchr  char  c     unsigned short CRC16  unsigned char  message  unsigned short  data_length      void baud_rate int rate     void help  void         Week 12    Monday 09 10 2000 to Friday 13 10 2000    Next project is a database using    Microsoft visual C   6 0     ODBC Data Source  MS Access  97 Database  DAO     have not used Microsoft visual C   6 0 before nor had any experience  with object oriented programming     The week was spent playing around with visual c    creating small applications  Example  source was downloaded form the Internet  including step by step worked examples  Also the  MSDN Library was used as a sou
35. Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       INDUSTRIAL PLACEMENT LOGBOOK    Week 1  Monday 24 07 2000 to Friday 28 07 2000    Induction   e Company History    Company Rules    Company dress code    Employee Health and Safety Handbook    Quality Assurance  It is the quality policy of the company  in accordance with   International Standards ISO 9001 to design and manufacture quality products and   provide services to satisfy customer   s needs and to meet all applicable statutory   and regulatory requirements     Factory Tour     e Main Office Block   e CEC  e Electronic LAB  e Main factory     shop floor     Was told that my first project would be software development     Modbus communications for  Access 4000     using turbo C 3 0 for dos  so spent some time getting familiar with turbo C and  creating small programs    have had experience with Turbo C before  so this was not a  problem     Detailed technical information about Modbus was obtained  and   familiarised myself with the  protocol  Before   had never heard of the Modbus communication protocol     Week 2  Monday 31 07 2000 to Friday 04 08 2000    The detailed technical specification for the Modbus Communication Protocol for Access 4000   was not completed yet  and would not be released until next week  So was given the task of  designing a user friendly test program  to test the Modbus communication protocol  this test  program was not specific to Access 4000  it was designed to be flexibl
36. Unassigned 26 3  Total 26 3  All Min Max Total    End of report       BEng  Hons  Electronic Systems Page 56 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Week 37  _ Monday 09 04 2001 to Friday 13 04 2001   Given the task to design a small dos program to allow the test engineers to easily test the  communications of every Access Annuciator made  The program needed to be simple to  operated  hence there are only 3 items on the main menu     Screen shot of main menu below             Access Annuciator Test Program    Start    Ait I  Help      hit 2  Quit    hit 0       Screen shot of help screen shown below             Help    Usage     1  Connect COM1 to RS232 side of the ADAM converter   2  Connect Access Accunciator to RS485 side of the ADAM converter  eg RX   Annunciator  to TX   ADAM   RX   Annuciator  to TX   ADAM    3  Connect power supply to both ADAM converter and Access Annuciator   4  Power up the power supply   5  Run AnnTest exe from PC   6  Hit 1 to start testing procedure     Three tests are carried out      1  All LEDs Solid On    2  All LEDs Quick Flash   Shutdown fault   3  All LEDs Slow Flash   Alarms     Program Information       Ver  1 05   By  Colin K McCord   Date  09 04 2001   Department  Electronic Control   Copyright   C 2001 FG Wilson  Engineering  Ltd    Hit  Anykey  to return to main menu       The communication protocol used in the Access Annuciator is extremely simple when compared  to such protocols like Modbu
37. ate     A couple more technical specification changes  meant that changes where made  program  recompiled  amp  uploaded into Access 4000 panel  Which included an additional function     function 3     Read Holding Registers     which originally was not a support access 4000  Modbus function     Random noise tests carried out as before using my test program  there are 6 different types of  random noise included in my program  all 6 where used and left running for at least an hour in  each mode  This tested Modbus reliability  making sure that the Modbus communication  protocol will not affect the normal operation of the Access 4000 control panel under any  condition        BEng  Hons  Electronic Systems Page 3 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Week 7  Monday 04 09 2000 to Friday 08 09 2000    The Modbus program was uploaded to an Access 4000 control panel connected to a Real  Genset  tests where carried out  including basic tests like remotely starting the generator  stop  the generator  emergency stop etc       Problem  Access 4000 control panel slows down  when running continuous random  noise  when the engine is running  Problem does not occur when the engine  is not running  When engine is stopped  the panel returns to normal running  speed     Reason  Modbus is called every 125mS  when random noise is transmitted  continuously  Modbus is activated for 80mS leaving just 55mS for normal  program operation  When engine is not
38. ation  Double Date    Winding  ioo   Crank Cam Can      Untadaess  i    Mo  ofPhases  7    Crank Duration  for  Det Speed  i5 No of Teath  7    Crank Delay   Gen4ccass E  Protocol h E Mo  ol Polas h   Crank Riopaats   i Plated Kiowan  80 System volage I Sofware Control Status   75 Raed ku  YT Fatio  0   Spoel   fcc    Syster Frequency   ff cometo aois  p speez                                  BEng  Hons  Electronic Systems Page 23 98425145    Sunday  20 July 2003    Industrial Placement Logbook    Colin K McCord       Lots of key shortcuts where added                About Alt A Setpoints F5   Copy Ctrl C Inputs F6   Close Alt C Outputs F7   New Ctrl N Security F8   Open Ctrl O AdminTools F12  Options Alt O ToolBar Alt F1  Print Ctrl P Statusbar Alt F2  Print Preview Ctrl Alt P ConfigToolbar Alt F3  PageSetup Alt S Copy Ctrl Insert  Print Setup Ctrl Alt S Add Alt Insert  Paste Ctrl V Paste shift Insert  Delete Rec Alt DELETE Prev Record     Shift Left  Last Record  Shift DOWN Next Record   Shift Right  Main F1 First Record   Shift Up  Commerical F2 Cut Ctrl X  System F3 Exit Alt X  Calibrate F4       Small modifications also made on my Text Editor program and serial number generator  program     Week 24  _ Monday 08 01 2001 to Friday 12 01 2001    Experimented with and then added owner drawn menus with bitmaps to may Access 4000  control panel database program  The purpose of using this was to mimic the menu style used  in Visual C   5 0 6 0 and MS Word  This was not easy  but
39. be found or the user selects  open in the file menu  The existing database was large and complex  so it was going to take  some time to display all the appropriate views tables     Most of the data is stored in a table called  tbISETTINGS   this table contains 135 columns  and at present 230 records  in order make life easy of the operator this table was split into 8  views  Commercial  System  Calibrate  Setpoints  Inputs  Outputs  Security  Main  a  Multidocument child window was required for each view        BEng  Hons  Electronic Systems Page 8 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Using Combo boxes  Edit boxes  Check boxes  Radio Buttons  and many others the all eight  form view was designed and working  included a save function which saved changes to the  database  Also dialogs for adding  deleting  records where also added     Security was high in importance  the database is to have a 3 level  DE  TE  Admin    username and password security system  the existing database already had several tables   which where for user control and monitoring  Table  tblusersstatus  contained the fields     Username        Level        Status        Lastlogged     and    Password Changed Date     This table had to  be auto updated in the background without the users knowledge  The table  tbIUSERHIST   contains the fields    LastDate        LastUser        Issue        WON     this table stores the user history   e g  every record the user vie
40. ceived      Receive  amp  decode Modbus response frame and if valid    add data to Table n     m_state   TX_CONTROLS     Complete loop       break        BEng  Hons  Electronic Systems Page 32 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       This meant that constant communication can be achieved  net step was to display the table n  on  the screen updating the display every time it   s changed  Created a new muliti doc template called     Address Allocation Table     this window displays the table in it raw form  See screen shot below       Slave 1   Address Allocation Table       Controls  00   OF   1111101000111011    Status   Alarms  10  3F   101160111000111100001111100000111111000000101011    Monitoring  40   7E    4041 4243 4445 4647 4849 4446 ACAD AEAF 5051 5253  9455 5657 5859 5456 SCSD SESF 6061 6263 6465 6667  6869 6468 OCHD bEBF TOTI 7273 7475 T677 7879 TATB  TOTO TETF    Configuration  80   Co    05DE 0004 000E 0020 DOFO OOOF 00DE 0019 0037 000A  002D 0004 0369 0226 0000F 0097F 000A 0062 000E 0061  000A 0038 0042 0046 0004 0004 0001 0457 0AAE 00S  1150 1563 1404A    On Thursday 25  of January   attended an internal training course    Material Master Creation    Amendment     Cources for Engineers     Length 2 hours  which showed how to Create   modify  Material Master records in SAP  Included a practical exercise  Fill out material master creation  form for item 7  amp  11d on drawing MGS3687A     Added configuration dialogue to Ge
41. d on start up  default positions have been  programmed for initial first time use    e Added Titles to the tile bars of all configuration windows    e Added Tractability table to administration tools  this allows Admin to select a works order  number  the program then looks through the user history and filters out everything expect  the records that are relevant to the select works order number  Select print on the menu  bar will printout the    Works Order Number Tractability Report        E Administation    Tenis  kimyosi accasa  Panel  mab                 wor  eme  tastGote  Last eer             be 22680 zHenn teri s2000 crcl rary   ipa zHenn 16 100 cmai   PAREA  31ga 19 10 2000 EmA   Ea a  31a renn Tana shagan    OEE  37 19102000 2 10 2000 REMH    EEE 36 2 10000 2010 2000 kei   E a  IRA 0000 201072000 thaith    fe 23580 4h 10f2000 2o 10f2000 cmalray    ers 42 2311 2000 23 11 2000 colin   erie 46 2311  2000 23 11 2000 eon   Era 47 21172000 23711 2000  Sai   EEEa  423 11 2000 23 11 2000 Coli   Ersa 4802 2000 T100 coin       Table   iors    j Record   UserHisiory 7 Locked Rec Baiah  En  2580  C User List E WON Trecabaibhy Eri   mee  Tot ah    The default database was originally stored in an INI file  the program has now been modified  so that it is stored in the windows registry  If no path is found  will occur when running for the       BEng  Hons  Electronic Systems    P     age 15 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       first tim
42. der   SAP number      ID     n nls being use by user      m_Pass    gt m_LastUser    n nRecord is locked  try again later     if a users attempts to access an locked  record     The records where locked by adding the record ID and User name  to a table specifically  designed for the task  Before the program moves to any records  its looks up this table and  checks that the record it was requested to move to is not locked  Upon logout the program  makes sure there are not any lock records by that user  if any are found they will be remove   hence unlocking the records  The same occurs upon login  the reason for this is to make sure  there are not any lock records by that user  which could occur if the user did not logout   Power cut  Computer crash      Another additional feature was to create a new record from an existing one  e g  makes a  copy   The user clicks the tick box at  the bottom of the dialog  once ticked    the combo box below is activated and   a  the user selects the source record  a  selai riches        The default selected source record will Clete   izana  be the current record   Once an   appropriate    Works Order Number    is Usar  coln  entered for the new record the OK Aa E    button is activated     Issue   o0 24y11 2000    On OK              e  f tick box not ticked  new record Papy    created with default values  T Moke a copy of on existing record   e  f tick box ticked  new record    Works Ondar Mumbar        created with all the values from the  so
43. e  a File dialog appears and asks the user to select the default database file    Microsoft Access   mdb      s Regisiry Edstow       Begis Edt View Help            2 E Access 4000 Corno Pe    Meme Date  Be  orig      fae   Chateau   velies not sel   E ReacentFile list g    Detautt at    Chriyties yaoodss Panel nck             hy Compier HEET_OURRENT_ USER SotwvarerG vilaon Access 4000 Cona Panel Deiabese  Contig    EJ    Many other improvement and bug fixes where made   Modbus    The Modbus protocol   developed  has now been released for sometime now  and there is an  official software upgrade available for all existing customers of the access 4000 control panel     On Thursday   demonstrated the basic operation of the Modbus protocol  for customers that  where interested in making use of the Modbus protocol  The demonstration was carried out  using my Modbus test program  in the Genset test bays  The customers appeared to be  happy with the protocol  which passed all their tests  and plan to make use of the protocol  by  developing their own windows based software for controlling and monitoring the Genset  The  Modbus protocol is medium that lets communicate between the Access 4000 control panel  and their software application take place     Week 20    Monday 04 12 2000 to Friday 08 12 2000      took three float holidays between Monday and Wednesday of this week     Thursday was spent evaluating the control software for Access 4000 Modbus  it was  developed in China  They a
44. e Table Table Table Table        tblTextFile   D2726h 001      bISETTINGS    tbIUSERHIST     tbluserstatus                 l  v bl ry La x    J       Program       x a Y 4    a  CTextFileSet      gt  CPassWordControlSet CPanelSet CUserHistSet 4  gt   CUserStatusSet  lt 4  x PU VV VME UYU x    Y           CAddNewRecord  e    CChangePassDig lt    GDeleteRecDig le     gt    gt  CPanelView  id    L    CSecuirtyView     gt   CSetpointsView    COutputsView    CSystemView 24  gt z    CinputsView F4 ma CCalibrateView    CCommercialView   lt         gt  CPanelDoc         bi  CAdminToolsView 4     o a ry pCAdmin SelectUserDig   4     gt  CAdminAddUserDig     gt  CAdminEditUserDig     gt  CAdminSelectWonDLg             Output   Input Pa          l  ra X        Text File          08 March 2001    Data Flow Diagram    Re  Electronic Control Department i Page 2    Access 4000 Database   Technical Report       Configuration File Printer         Colin K McCord          Week 33  Monday 12 03 2001 to Friday 16 03 2001    Cleaned up source code for my Access 4000 control panel program  adding additional commits  and simplifying the code  Also a view minor modifications very made most of which improve  speed  the database is quite large and is stored on a network drive  network drives are much  slower than the hard drives  Startup time was decreased by half just by making the code more  efficient  improvements made through the program  A bug that caused the program to crash was  discovered and f
45. e and theoretically  could be used to test any Modbus communication protocol  no matter the application     Modbus test program     e Main Menu  Wait for Response Frame   Build  amp  Transmit Query   Build Query with bad CRC   Manual RTU frame with CRC   Manual RTU frame no CRC   Auto Random blocks     TX   Simulate Random Noise   Change Baud Rate    About  10  Quit  e Code needs to be readable  reusable  by others and I   e Program designed  coded  tested  and checked by me   e Changes will be made at a later date  making the test program more specific to the  test of Modbus on Access 4000   e Functions include       void main_menu  void     void interrupt com_handler  void    void trans int c     int readchr  char  c     void test_TX  void      OCONOARWNH       BEng  Hons  Electronic Systems Page 1 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       void test_RX  void     unsigned short CRC16  unsigned char  message  unsigned short  data_length     int RD_function int function  char  func_str    void RD_error int err  char  func_str j    int wait_chr char  wc     void test_CRC  void     void manual_RTU  void     void auto_RTU  void     void rand_NOISE  void     void manual  void     void baud_rate  void     void INPUT  unsigned short int  temp     void about  void      Week 3  Monday 07 08 2000 to Friday 11 08 2000    Received a copy of the Modbus communication protocol for access 4000 technical  specification  which contained all the details 
46. e is not as complex as the Modbus data frame  but it  does its job well  Unlike Modbus the communication between the access 4000 control panel  and the SCI annuciator is not bi directional   Modbus designed to work with up to 255 slave  devices  and a simple data frame is all that   s needed     Week 16    Monday 06 11 2000 to Friday 10 11 2000    Monday OFF     took my Second floating Holiday  still have 6 more floats to take before the  Christmas Holidays  It has been confirmed by my manager  Dr Ning Li  that   can move a  couple of days across to the new year  or take the money  The plan is a present that   take 3  more before the Christmas holidays and pass 3 days to next year     Continued working on    Access 4000 control panel database    program  added    Export  Configuration File        Export Text File    and many small modifications     The configuration file looks like this             CCC  1000102823 1 1 1 1 1 1 1  9600 4 14 17 5 50  4  3  96  4  380  1  8  300  7   7 3 0 0 0 0 1 000 0 1 000 0 1 000 0 1 000 0 1 000 0 1 000 0 1 000 1   1 000 0 1 000 1 242 5 2 1 198 5 2 1 55 5 2 1 45 5 2 1650 0 1199 0 2 1   14 7 5 1 11 3 10 1 12 10 0 3 0 0 95 0 30 0 10 0 0 0 0 1 0 0 1 1 0 0   1 1 0 0 1 1 0 0 1 0 0 0 0 1 1 0 1 0 1 1111 2222 2004  9999             BEng  Hons  Electronic Systems Page 11 98425145             Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       It contains all the configuration setpoints stored in the database  and is downloaded direc
47. ed  Widths Segments Segments  Signal 50 25 161  Signal 15 10 294  vec 50 25 61  GND 50 25 105  Total 621  Percentage of routed connections to total connections 100  Component Unrouted Route Route  Layer Copper Copper Teardrops Segments Segments Length   cm   Top Elec 2 308 132 579  Top Assembly  Top Glue Spot  Top Paste  Top Placement  Top silk  Top Solder Resist  No tracks  No vias  Universal ARD  GND  Sig 2  Sig 3  Sig 4  Sig 5  Sig 6  Sig 7  Sig 8  Sig 9  Sig 10  Sig 11  Sig 12  Sig 13  VCC  Bottom Elec 313 161 085    Bottom Assembly  Bottom Glue Spot       BEng  Hons  Electronic Systems    Page 55    98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Bottom Paste   Bottom Placement  Bottom silk   Bottom Solder Resist  Doc 1   Doc  Doc  Doc  Doc  Doc  Doc  Doc  Doc 9   Doc 10   Doc 11   Doc 12   Doc 13   Doc 14   Doc 15   Doc 16   Unassigned   Total 2 621 293 664    oNN       Layer Text Errors Figures Areas Templates    Assembly   Glue Spot  Paste  Placement  silk   Solder Resist  No tracks   No vias   Universal ARD   GND  Sig  Sig  Sig  Sig  Sig  Sig  Sig  Sig 9   Sig 10   Sig 11   Sig 12   Sig 13   VEC   Bottom Elec   Bottom Assembly  Bottom Glue Spot  Bottom Paste   Bottom Placement  Bottom silk   Bottom Solder Resist       DIDO BUN          Doc 1 26 3  Doc 2 26 3  Doc 3 26 3  Doc 4 26 3  Doc 5 26 3  Doc 6 26 3  Doc 7 26 3  Doc 8 26 3  Doc 9 26 3  Doc 10 26 3  Doc 11 26 3  Doc 12 26 3   Doc 13 26 3  Doc 14 26 3  Doc 15 26 3  Doc 16 26 3  
48. ed the format of the buttons use for loading the configuration windows  when a  configuration window is activated  for example  system  the button system will be highlighted if       BEng  Hons  Electronic Systems Page 22 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       user selects or opens a different window the appropriate button will be highlighted  Also if the  use clicks on a highlighted button  the window associated with that button is close     New Highlighted Buttons Screen Shot 1       E Acceas 4000 Control Parel Dalabase   C nvhles actas g Annel m  Eis ot Becod iew Jools Window Help  D a p Ba OD earth Ww a e H       jem  amp  8 oF y   HE   E                Main Controls C  myfiles  access Panel mdb  Current Record    Commercial     M    Piesse Select Works Order   SAP Number Tied     System  oona   Works Order  SAP Number       Language  oni guretion        Main    Calibrate 1075700 Dale the record wes added  1 4 01 Lasi Dede  Setpelnts dnoble User who addad tha record  eoin LasttJsar      Impoet Fie      Inpiris a     Laer Defined Tent    Ohiparts     auh Chanel 1   Feld    Feut Channel   Fiekd 3    Mere  puh Channel  Fiald    Foxit Channel 4 3 Field 4 E GE  it a  3   22       Goto Record        System OOO Neb Works Cinder   SAP   Calibrate    Outpui Reley 1 Output Raley 2     Expansion Por  Setpoints  FF Shatue i Santua Fe Sites    Inps Funning O E Action Running oe Action  Annuciesor    Athan  dampita   Secwmiiy       F Commurnc
49. ema    Murhaa  7 iarl   Apcom hae E Ascending    oor   Eo    Jea C Descending    Quick Search    Simon          For Ho    Ft    The test database program  which   designed  amp  coded form scratch  give me a little practice  using Microsoft Visual C   6 0  This test database program may be small  but it give me a lot  of experience and knowledge  as this program made use of many basic features included in  visual C    including dialog boxes  edit boxes  menu bar  tool Bar  list ctrl  buttons  combo   Database  CRecordset  amp  CDaoRecordset  AfxMessageBox and many more     At the end of the week   felt   had gain a great deal of knowledge about programming with  Microsoft Visual C   and was know capable of creating a number of small applications  while  just two weeks earlier   had no knowledge  had never used C   before      Week 14    Monday 23 10 2000 to Friday 27 10 2000    Was given a copy of the existing database    Panel mdb    created in Microsoft Access 95  since  my program must be backward compatible  e g  must load the old databases     started writing  the code to access the database through a visual C   program  using the DAO database  interface  The reason why   used the DAO interface and not the ODBC Data Source  Administrator is because DAO lets you get direct access to the   mdb file  and does not  require the data source to be added to the ODBC before hand  hens it is possible to select the    mdb file just as you would any other if the default path cannot 
50. en OM Access 4000 micobosrd for  bootstrap mode  then dick  Losd          Lesa JO  Work Colin McCord  10294519  amp  TXT adk  19k  619    The program was designed to be simple to used  the user first needs to specify the S19 or TXT  file to load to the Access 4000 control panel  There are four ways to specify the file       Type filename and path into combo box    Click  Browse     and select filename using standard Windows open dialog   Combo box contains last 5 files  select using downward arrow    Drag file into dialog     RODD    Next  user reboots the Access 4000 control panel and while in bootstrap mode user clicks  Load    loading dialog appear and file starts to load     The last 5 files are stored in the Windows registry  screen shot below            E Aegistinry Editor  Registy Edi iew Help  Fis lsc     Marne Daia           EHE Access 4000 Control Je   Deteult  fralue cet sel   FH Gentodoue Jet  Herr    OrWork  Colin McCord  3025  519 8 TT onig sy tet   mE Load Ej Jet  hem  Dh Worki Colin McCord  1020519  amp  TAT Teathiles ENG bd  BE  Filc List Jejen    Dy Work Doin MeCord  029519  amp  TAT akr  1 5k s19   E Recent File List  at  herd Dork Godin MicCoed  029  519 8 TAT  Tefies GER  tet     Setings  x eb hems  De Work Codin McCord  J029  319  amp  TaT akm  H19     n  jat  LasiPlename    Oc Work oln MeCond  30295134 TAT onig ytd     hy Computar HKEY CURRENT _USER Sotware FG Yilon Lost FileList    The loading dialog using progress meter shows the percentage complete d
51. ending Text and S19 files  The communication protocol for text and S19 files differ  so it was important to detect  which was being sent     The text file communication protocol was really simple  it consisted of sending the text file out in  one large block then waiting for ACK once complete  The S19  main code  file communication  protocol was also simple  it consisted of sending the S19 file out in 80 byte blocks  waiting for  ACK after every block  If timeout occurs or NAK the last block is repeated  max number of NAKs  is 10  then error message to many NAKs will be displayed  and max number of timeouts is 5     The baud rate used is 9600bps  1 stop bit  and no party  This format is fixed and cannot be  change  reliability is more important than speed  It takes about 4 min 30 seconds to load 220Kb   19 file  Access 4000     Ver 1 19K   about 5 second for 3195 byte language text file and about       BEng  Hons  Electronic Systems Page 40 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       1 5 seconds to load 336 bytes configuration text file  Note the text files  both configuration and  language files can be exported directly form my Access 4000 database program  also my Access  4000 text editor can be used to edit or create new language text files     Screen shot of main dialog shown below              Load  Specity File    579 of    TXT   Ble Help  i  Spechy the S19 0r TAT file to be loaded to the Access 4000       mitroboerd  Seiten OFF th
52. ens at the PC end   Calculated the CRC  All bytes excepted the CRC bytes are used in the calculation   Store block into an array     Unsigned char block 100    block 00    SC   block 01    DA   NB         block 02     block 03       B01   block       B     Then call CRC     Length   NB 1   block 02   1  CRC16 block  length    Why add one to NB   NB does not count SC  DA and NB  But does count the 16 bit CRC  hence if we add one all bytes are used in  the CRC calculation expect the two CRC bytes     Changes to Controller protocol  Strtoul   or strtol   are not required  code can be simplified     Use 16 bit CRC instead of checksum        BEng  Hons  Electronic Systems Page 71 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Week 45  _ Monday 11 06 2001 to Friday 15 06 2001  Continue working on my configuration program for the new Access 3000 controller   Added code for Tabs    Misc    and    System    and tested using my test program running on a laptop    connected via RS232  Change my made about the checking of the frame using ticks and    X   s   instead the following happens for invalid values          A small message pops up if that control is active and tells the user why it   s wrong  Note  all invalid  fields are highlighted in red  User will not be permitted to write configuration to file or controller if  errors are present       added ToolTips  which display important information when the mouse floats over a field       Fa  PPsnge  
53. ers    Cost of optional relay board  including  components  PCB  Bolts  nuts  washers  and  10 way ribbon cable        eff    OO    Week 38    Monday 23 04 2001 to Friday 27 04 2001    5 PCB relay boards arrived  along with the components   ordered from RS  Checked every relay  board PCB with multimeter  making sure there were no broken tracks or design errors  Populated  all 5 relay boards with components  getting some soldering practice     After two relay board prototypes had been constructed  they were connected to a prototype  Access annuciator so operational tests could be carried out  Each relay was turned on one by  one using my Access annuciator test program  and normally closed and normally open pins were  checked using a mulitmeter in buzzer mode     The relay functioned properly  and the other three boards were completed  Next was reliably  testing  this involved leaving all relays on and checking that they where still work after a long  period of time     Using a hand drill   drilled 8 holes on the back of the Access annuciator box  these holes were for  mounting of two relay boards  Two relay boards were screwed into place and connected to the  Access annuciator via 10 way ribbon cables  The Access annuciator  which is mounted on the lid  of the box  was connected to a power supply with communications connect to my PC via RS232  to RS485 converter     The power was switched on and using my Access annuciator test program all 16 relays were  switched on  Power sup
54. file or ask the user for a       BEng  Hons  Electronic Systems Page 27 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       filename if current list is unsaved  Standard window   s    save    dialogue is used for saving  new serial lists      gt  Click  Open  to load a previously saved serial list  standard window s    open    dialogue will  appear to allow the user to select the file easily  Generated GenAccess1 1 serial lists will  have the extension    gsl     eg SerialList gsl   only files of this type will be displayed in the  open dialogue making life easier for the user      gt  Clicking  New  will clear the serial list  Warning program does not check for changes if  user has not saved the existing serial list  that list changes will be lost forever     Decoding serial numbers     gt  All serial numbers generated by this program are directly related to the system time  amp   date  So it is possible to decode a serial number  to find out the date  amp  time it was  generated  Click  Decode SN  to open the decode dialogue show below     Decode Serial Number   Into Key Components  User input  Seral Mumber 41 250 O9TLHOE   eg GAl 201 09TWHBEC       Computer Generoted  Counter   250 Date   15 00 2001 Time   11 55 55      Calculmed CAC  E2 i equal io SM CAC E2   Hence a  veil  Senel Number hos been decoded successtulhy   C        gt  Type the serial number that you want to decode into the    Serial Number    edit box  then  click  Decode   The 
55. ge improvement  so the go ahead was given to create a new windows based application     The program was made as simple as possible  and designed for ease of use  the main control  dialog is shown below          The user can create a new text file by selecting    new    from the File menu     The user can select a text file in there ways     1  Click the    Open    Button    2  Click the    Open    menu item under    File      3  Drag a text file into the dialog window     Once a text file has been selected  the user clicks the button Editor  for display  amp  edit of the  selected text file      Mocorlk Deskiop  I exif iles LNG ba     Se  r  el  a  i  pon aaa  S          T  E  m     i       The editor contains 7 pages  was contain all 181 strings used on the Access 4000 control  panel  The user can edit any string  which is saved directly to the text file when the  Apply  or   OK  buttons or pressed        BEng  Hons  Electronic Systems Page 20 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       The main use of this program will be in the creation of new languages  at present there are  12  The static labels will always be in English  hence using this as a guild you can translate  the text file into any alphabetic based language  A screen shot of the editor with FRE txt  loaded show below       SYSTEME DE FREOUENCE  ODE DE COUPLAGALT        a          PM ISEUIL PHUILE Nbre de DENTS  Nbre de POLES    Deteut Ereag SYSTEME DE TENSION    Hit        
56. generated it is compared with the Serial  Edit Box   If they  match the license details are added to windows register and program starts as normal  else       BEng  Hons  Electronic Systems Page 17 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       AfxMessageBox appears saying that invalid license details have been entered and asking the  user to check for mistakes  If  Cancel  is pressed the program unloads and access to program  denied  until valid user license has been entered     Week 21    Monday 11 12 2000 to Friday 15 12 2000    Continued development of my database application  including many small bug fixes  visual  improvements  improved more readable code     Added    Trace User    table to Administration tools  this allows a user to be selected then a  complete history of that user is displayed  The database  UserHistory  is used to generate the  table  the program goes through every record within  UserHistory  and filters out all the  records that are related to the selected user  Print code was updated for printing of this  additional table     m Administrahon Tools  Co nilet access Panel mdb           Wye feu       9 111 2 2000    coin Ader 1122000 PVT ef   eso  coin Admir 112 eo 3417100 2AA  coin Admin Tae  FEC ADO   Galin Mc  Bcoin Admn 112 e000 Ne A000    Solin Me  colin Adnun 11922000 PEC DEL Colin Me  colin Admi Taye e000 S122 e000 teste 111  cofin Admin 142 Foon ziari   TITEST 300  coin Admin 14922000 44aneenio tonning  coli
57. h will test the communications of the above  program  The reason why   needed a test program is that the Access 3000 is in the early stages  of development and it will be at least Christmas before a prototype is operational  The test  program needs to have a good program structure  as Dr Ning Li can use it as a guide  reuse  sections of code  to write the access 3000 bootstrap code  hence the reason why   used C and  not Visual C   for compatibility and keeping the code simple     Week 44  _ Monday 04 06 2001 to Friday 08 06 2001       Continue working on my configuration program for the new Access 3000 controller     Design communication protocol for uploading main code to the Access 3000 controller  Designed  communication protocol for uploading and download Access 3000 configuration     Updated program with these new communication protocols    designed a small dos based test  program that will simulate the Access 3000  the reason why   used a dos based test program is  that it will allow the communication protocol functions to be directly copied when program on the  actual Access 3000 takes place  no advanced C   functions      Tested the protocols  with the configuration program running on my PC and my test program  running on a laptop with an RS232 connect between them  Any bugs that were found during  testing were fixed and re tested    even tested both protocols up to 115200 BPS  there were no  major problems   successfully managed to get all communication protocols wo
58. he effect of voltage variation on  the unit  confirmed the correct operation of the Unit over the specified operating  voltage range of 150 to 280 VAC  Ramped the supply voltage over a 20 minutes  period from 150 VAC to 0 VAC  The unit need not operate but must fail safe     Note  Current test  carried out using three current transformers  connected to 3    variable voltage transformers  to simulate current  Current was adjusted by  changing the applied voltage to the current transformers  current was check  using calibrated Tektronix THS720P Scope Meter     Voltage test  carried out using variable a voltage transformer  the voltage was  check using calibrated fuke 87 multimeter     Frequency test carried out using calibrated function generator     Test report was typed up  and signed by both my testing partner and    We where  given a week for these tests  finished one day early     Week 10    Monday 25 09 2000 to Friday 29 09 2000    Monday OFF     took my first floating Holiday    Carried out Autostart Module Functional Tests       Description  The Autostart module provides remote start capability  3 attempt crank  together with  enchanted engine monitoring and protection     Summery Test Procedure    Start   Stop Tests   Power On tests     press ROR button once  and record all LEDs and current  consumption    Speed learning     Set over speed default values to 3500Hz  When Genset is  running  record the LEDs under following two conditions  Running time  lt 10s   FTT   Run
59. iences problem with the relays dropping out during  cranking they can use a separated power supply to power the Annuciator  This problem will not  occur in most cases  it may occur when the Annuciator is a long distance from the Generator   1000s Meters  hence there will be a large voltage drop across the line and the Annuciator will  power down  At About 6 Volts   Hence no signal to relays and relay will drop out even though  their drop out voltage is 5  of there rated voltage     Also this week   generated 50 more serial numbers for GenAccess 1 1 software application using  my serial generation program   wrote in January  150 disk labels were then printed using the mail  merge technique     Week 36  _ Monday 02 04 2001 to Friday 06 04 2001    Started design off the PCB  the first thing was to set the size of the board  It was decided that the  board will be 165mm by 60mm  and it would have two electrical layers for routes  Then spent  some time positioning the components on the board  marking sure that there are no physical  problems  Originally   had the 5 V regulator at the top of the board but later move it to the bottom  as   did not like it to be close to the ribbon cable incase the ribbon cable started to melt     After   had the components placed were   wanted them   started to manually route the tracks   using thick 50 25 tracks for GND  VCC  Relay terminals and thin 15 10 tracks for signals  Once all  routes were completed using    Design Rules Check    all routes 
60. iquration Editor    eee          Qutputs Arnucieter   Calibration                  f    dal   a  ll                     f  1      J  el       a al Me e   lt i          rr cess    Joan Co nficyur ation Edin r       Misc   System   Setpaints   Inputs   Outputs   Annucietor Calibration  Fault Log                      BEng  Hons  Electronic Systems 98425145       Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord                                                                BEng  Hons  Electronic Systems 98425145       Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Access 1000 Contiquration Editor    Eile Tools Help    qf velidveue   valid Velue Fiesd tram Controller   bite ta Controller      Misc   System   Setpoints   Inputs   Quiputs   Annuciaior   Calibration   Faut Log   Eventlog      Address Tabia Operation Cista  Addr HeDeg   gt  Daie HeDer    Hours Pun   g Steets Count   i  000  000            Ei   y  Senice Time   of    001  001      gt   Oo  002      gt   3 00s      gt  D  DDS    gt   105  005    gt   008  006      gt   007  07      gt                       OFF 255   OFF  255  For   cdwence Users amy  OFF  255    OFF  255    000  013      OFF  255    OE  014   lt  gt  OFF  255           Sei Address    Change  Viti to Contraller  Every Byin     NOTE  No Checks ere cemad out       Ta Fis Wilzon  Erginaenng  Lid   Old Glenarm Road  Lame    Close        Marhiern ireland  BTA 1E J       Started work on an MS dos based test program  whic
61. ixed     After all the modifications very made  the source code was added to a 31   2 floppy disk along with  the source code for the serial generator  This disk was then stuck to the back of my technical  report  which was then filed  Current program version is 1 99a      Small amount of work was carried out on my GenModBus program  Access Annuciator  Access  4000 and the new Tel Panel     Access 3000 is in the early stages of development  Technical Specification not finished  it will be  somewhere in between the Access 2000 and Access 4000  It will be cheaper and have fewer  features than the Access 4000  but be more expensive than the Access 2000 but have more  features        BEng  Hons  Electronic Systems Page 47 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       My task was to think of several methods of configuration the panel  The access 4000 has a  configuration text file that is exported from a database  which is then loaded to the controller  using load exe  This file is very low level and cannot be easily be modified manually    Possible methods for configuring of Access 3000       1  Download configuration file using load exe  while controller is in bootstrap mode  or and maincode  The configuration will be exported form a database     2  Upload panel configuration to a file using load exe  while controller is in bootstrap  mode or and maincode  This file can then be imported back to the database     3  Download panel configuration
62. l more  time to complete its calculations  store incoming characters in the buffer and respond to  Modbus commands     Evaluation was complete  report written     Also modifications were made to my Access 4000 control panel database program  they  included many small improvements in the program structure  making it more readable and       BEng  Hons  Electronic Systems Page 16 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       easier to modify  Plus serial number generation program was written  serial number check  and dialogue for user input were added to main database program     The serial number generator  is a dialogue based MFC program  a password is required for  access to the program  After the correct password as been entered the dialogue shown below  is displayed       Access 4000 Control Oatabese   Serial Humber Generstor       Name   Colm McCord  Addrasa   e Upper lsterloo Road  Larne  Sere  CASE   Five  S86b 1F FS    on   on      The user enters Name  amp  Address  hits the  Generate  button and the 16 digit serial number is  generated  the serial number is depend on both the name  amp  address and all fields are case  sensitive  This program is not for general use  but only for administrator use only  he she will  generate a user or company license  which will then be passed on  not the program      When the main database program start ups it will check the windows register  for license  details if found  it will generate its own 
63. lso stated that sometimes the response too a Modbus command  sent to the controller was too slow  normally the master should expect a response for a query  within 128ms  But as discovered when evaluating there control software  the average  response time is slow when the engine is running  and sometimes slower than 128ms     The reason for a slower response when engine is running is because there is a lot of complex  calculations taking place and the processor is being pushed to the limit  as a result the  Modbus communication slows slightly  as it is a lower priory     There is not much that can be done to improve the response time on the Access 4000 control  panel as it would require a faster processor  which is not an option at present  One solution is  to increase the timeout on Master control software to 150ms  this will reduce the number of  repeats     The main problem was not the response time  When engine is running  only when engine is  running  exception error OA  Gabbled Message  appears approx  5  of the time  this occurs  because the processor is involved in complex calculations and sometimes it misses a  character  e g  character fails to be added to the buffer   If there is a cap of more then 1 5ms  between character a timeout will occur and exception error OA  Gabbled Message  will be  send to the master  then master will repeats the query  A some gap between commands will  reduce the change of this occurring  as It will give the processor in the control pane
64. maximum of 5 times  After 5 times an  error message will be displayed in the dialogue box  and had been pressed to dialogue will not  close  If setpoint was updated successfully  a message saying so is also displayed and if  OK   was pressed the dialogue will close     The dialogue uses a combo box to select setpoints  user can stay in the dialogue and change a  number of setpoints by selecting them on the combo box  changing there value and press  Apply    If the user hits the  Select  button on the    Panel Setpoints  amp  configuration    view beside a setpoint   that setpoint will be selected automatically when the dialogue is loaded        BEng  Hons  Electronic Systems Page 36 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Screen shot of    Modify Setpoint    dialogue          Modify Setpoint    Setpoint  Cronk repeats  number cd trys        BE e EEES  Bultar Address   HE Relative Addrass   03                                  Seipoint Changed Successiully  Nonna  response  message has been ecered borm Slave 1           Note  All views save the window size  amp  position when closed onto the Windows registry  which  are restored when loaded        amp  Aegistry Editor    Registy Edit View Help                                                                                     E FG Wilson Jie Gein   HH Access 4000 ControlPanel D  eaea palue not set     H GerModbus  lab  indowPios 2 D1 12892581 16  E Carty zj   fa  vindowFing_ CAleem vie
65. me problem  and if one could be  found investigate  Took a walk to bay F  Genset test bay   asking the technicians if they had  come across this oil pressure problem during testing  They had never had a problem with the oil  pressure  they seamed to think that the problem was a faultily oil pressure sender     There is not a Genset in Larne with the same problem  hence we cannot test any of the possible  solutions  Email explaining this was sent  and they will have to try to fix the problem themselves  using are suggestions as a guild     Week 30    Monday 19 02 2001 to Friday 23 02 2001    Carried out some work on the new SCI Annunciator  this is a redesign of the existing Access  4000     remote SCI Annuciator  Using RS422 communications  the Annunciator can display up to  20 faults  e g  Low Battery Voltage  High Battery Voltage  High Frequency  Low Frequency  etc      The Annuciator only receives the information it does not transmit  so only two of the  communication cables are required RX  and RX   As well as the 20 LEDs for the faults there is  another one that flashes On Off when communications is working  also there is a    lamp test    push  switch which when pressed all LEDs light  The push switch also shuts off the buzzer when an  alarm is active     A PIC is used  for the prototype stage this PIC contains flash memory which can be changed as  many times as necessary  when in production the PICs used will have PROM memory  write  once  the program cannot be changed
66. mplete   This is really just an experiment to gain more knowledge on how to create custom graph oriented  controls  screen shot below       Sieve 1   Test Analogue Meters     AW ii    Phase AVoltage    Phase   Voltage    Phase    Voltage  20 0 245 0   20 0    S00  ig    BEF f  f   es Fi    Line AB Voltage  416 0    ow    Fhase A Cumeni  111    Line BC Voltage  405 0    Lt  15    Phase A Current  10 6    255 0    5 Page   Curent  193       Other Experiments include         LED displays  e Resizing of controls    Pie charts        BEng  Hons  Electronic Systems Page 51 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Week 35    Monday 26 03 2001 to Friday 30 03 2001    Design of relay board PCB for Access 4000 3000 remote Annunciator  each relay board will have  8 relays  The remote Annuciator has two ribbon cable sockets each can control 8 relays  the relay  board must be designed so that the same relay board can be used for faults 1   8 and 9     16     5 Volt relay are used  using a 5V regulator  L7805ABV  the voltage operating range of the relay  board is 7 5 to 30 Volts  Logic signals from the Annunciator are fed into a transistor  BS170   which in turn switches on the relay      hh    ECI    B  W    OC        5 Ec2  24 WAY AISING CLAMP    j    EC2  24 WAY RISING CLAMP       ECI EC2  i  WAY IDC IK  IX TRA4 24 WAY RISING CLAMP  1a In TA4         1 F BUA    Constructed and tested the design in the electronics lab  the design work well so the
67. ms  My job was to find possible problems in the design of these  modules  Hardware  amp  Software  and to familiarise myself with the technical specification as    will be involved in the functional tests in the following weeks     This included      e Reading and understanding the Technical Specification    e Checking Source Code for possible problems    e Checking Hardware components by download datasheet form the Internet  Check that  these components will equal standards set by the    Technical Specification           BEng  Hons  Electronic Systems Page 4 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Week 9  Monday 18 09 2000 to Friday 22 09 2000    Carried out AC Module Functional Tests       Description   The AC Metering module provides a voltage  frequency and current metering  capability   Series star 50Hz  Parallel star 60Hz  Single phase 50Hz  Single Phase  60Hz  The difference would only be in the covering label      Summery Test Procedure    LEDs Display Pattern  Volt  V1     V8  IA  A1     A8  IB  B1     B8  IC  C1     C8  Freq   F1     F8     Equipment and wiring diagrams    Voltage test  191V to 280V     Frequency test  50Hz  45 to 55  60Hz  54 to 67 5     Three Phase Current Test  4 bit dip switches for FSD  full scale deflection   16  sets of current test results    Single Phase current Test    Genset Test  connected AC module to a Genset  Set DIP switches for the Genset   Validation Test  Supply Voltage Test   Simulated t
68. n   0   max   255   default   0   tooltip   Range  0 to 255  validchar   0123456789  LimitText   3   Label   Spare 1      Spare 2   min   0  max   255    default   0   tooltip   Range  0 to 255  validchar   0123456789  LimitText   3   Label   Spare 2      Spare 3   min   0    Default     Default     Default     0    0    0    0    Units     Units     Units     Units  none    none    none    none       BEng  Hons  Electronic Systems    Page 73    98425145    Sunday  20 July 2003 Industrial Placement Logbook    Colin K McCord       max   255  default   0  tooltip   Range  0 to 255   Default  0   Units  none    validchar   0123456789  LimitText   3  Label   Spare 3      Spare 4    min   0   max   255   default   0   tooltip   Range  0 to 255   Default  0   Units  none    validchar   0123456789  LimitText   3  Label   Spare 4      Unit Address   min   1   max   255  default    tooltip    validchar  LimitText    ange  1 to 255   Default  1   Units  none  0123456789  3    io ae     Protocol   default  tooltip  Note    0  Range  GenAccess or Modbus   Default  GenAccess   Units  none  0    gt  GenAccess  1    gt  Modbus    towed     Data Speed    default   0   tooltip Range  9600 to 38400   Default  9600   Units  bps   Note 0    gt  9600  1    gt  14400  2    gt  19200  3    gt  32768  4    gt  38400     Remote Config Flag     default   0   tooltip   Range  0 or 1   Default  0   Units  none   Spare 5    min   0   max   255   default   0   tooltip   Range  0 to 255   Default  0   Unit
69. n dmr 141E r000 aH yian dizmesi  colin Admn 1492 2000 iinn Dee  colin Admn 1422000 S142  2000 23580  colin Admin 14122000 47 142  2000 1000102829     Table     C UsarHistory 1   WON Trachiliy    userid    freee Uaad    e Locked Rac       Page setup dialogue added  This dialogue lets the user modify page layout settings  including  configuration  margins  offset   administration Tools  orientation and printer settings  All data  is stored within the window   s registry with default values hard coded into the application for    first time use   le    Registry Editor        Heip    Hame      Data          ab   Detauk   2  Bottcen   ae Lan  28 ri_Locked_Piec_Heeder  fe  fi_Man_Rec_Admnin_Landscape  Eim Mar Pec Ainin Frair   ijma Raw Contig _Langscage    nn ias P Coig _Prorai   fa  rn_Trace_WeerHeeder    ab  rn_Lser_Higtory_Heacler  ab en_Liger Ligh Header    abm AN Troc Header   Height   Ei  Top                                HE TooBer Bars    Tooier Bard    i              eg Ano viney Ganer       My Computer HKEY _CURRENT_USEA Sotware FG WisonyAccess 4000 Control Perel Dstebase PaqeSe          value nol Set    DeOD 0064  O00    DeOO00000  0     Aptess 4000 Daisbase  Locked Recards     De 0020  ee    DeO00037 4   Dagoni  40     e000 Id  61       Jaer Trecbilty Repon       Aves 000 Dashade  User Higbury    Apress 40000 Daaiase  User Lat      Works Order Number Tracibilite Repon     dhd i    e064  HO     j       BEng  Hons  Electronic Systems Page 18    98425145    Sunday  20 July 
70. n paper  spending a lot of time thinking about the program  structure and flexibility     Week 41    Monday 14 05 2001 to Friday 18 05 2001    Continued working on the design of the configuration program for the new Access 3000  controller  At this early stage of development   concentrated on program structure and layout  All  the communications will be stored in the same dialog class  and can be inserted directly into any  program       played around with dialogs trying to design and simple easy to use program  Screen dump of  the man dialog shown below  Note  at this early stage dialog may change        zz FG Wilson  Access J000   Setup Program  Ble Apps Tools Help    ee      Spec m  n code  conigqunahon or lenguage file io be loaded to  LILA Access J000 microboard          Ook Colm Melon 09 5198 TAT  TestFilas FRE tet E    Load   Browse          PG Wilson  Engine enng  Lid  Old Glenarm Road  Lame   Nothem Ireland  BT 40 1EJ          BEng  Hons  Electronic Systems Page 60 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       The first and main tab is the    Load    tab this section is simpler to the Load program   designed for  Access 4000    felt that this was a good idea  as my load program is used widely throughout the  world  hence when the user sees this program for the first time he she is already familiar with the  operation     The other Tab    Apps    contains applications  which experience operators can make use off   Screen dump below
71. nModbus exe  see screen shot bellow       COM Conliguratoan       Sime Adie fi    Baud Aate  aenn     Communiceson  COM  F Timer ms   50  Timeout Multiplier   4  p Advanced    Read Interval Timeout   10 Byte Size  Pead Total Timeout Constant   10 fa E       Panty  Read Total Timeoul Mukipliar   1  No pany i  Ho panty      Write Tote  Timeout Constari 50 Stop Bits    Wits Total TimecutMuliipier   1  1 H    Started work on a mulitidocument view for viewing the panel configuration        BEng  Hons  Electronic Systems Page 33 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Week 27   _  Monday 29 01 2001 to Friday 02 02 2001  Monday to Wednesday off took three floating holidays     Thursday  continued working on my windows based monitoring program for Access 4000 control  panel using my Modbus protocol  which   developed and tested  several months ago  This  program is for test proposes only and will properly not be released to the outside world  as the  Modbus protocol on Access 4000 was designed for customers to develop there own programs  easily     The only test program FG Wilson currently has for testing the Modbus protocol on Access 4000  control panel is the dos program   developed many moons ago  this program is very low level and  only an engineer could understand how to operated and understand what happening  Again this  program was not designed for customer use  but customers in Hong Kong needed a test program  and my small dos test p
72. ning Time  gt  10s  FPT     Crank Sequence Test     disconnect fuel supply  press start button  During the  process  check the LED status and record the result    Faulty MPU test     disconnect MPU signal  press start button  check LEDs and  crank        BEng  Hons  Electronic Systems Page 5 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Cold Weather Start Stop     The glow plug and the glow LED will energise for 5 sec  before the engine starts to crank  Check if the sequence is OK    Remote Start Stop   Battery Voltmeter  use power supply and function generator to simulate Genset  running    Oil Pressure  Simulate Genset running  Use a pot to adjust the sender resistance   Water Temperature  Simulate Genset running  Use a pot to adjust sender  resistance    Emergency stop during engine stop    Emergency stop during engine running    Emergency stop during cranking  disconnect fuel supply     Low Oil Pressure    High Engine Temperature    Over Speed   Supply Voltage Test     operating voltage range  6     17V     Voltage ramp down form 6V to OV over a 20 minute period  unit need not operate  but must fail safe    Reverse Voltage Test     connected reverse voltage 17 VDC to the module for 1  hour  Afterwards check if unit still works     Test report was typed up  and signed by both my testing partner and    Three days  was given for these tests  finished one day early     Modified my Modbus Protocol Test Program for Access 4000 control panel 
73. o Friday 18 08 2000    Connected Laptop and PC using RS232  COM1  running my Modbus test program on the PC   test exe   and the PC version of the Modbus communication protocol on the laptop   mbpc exe   Starting running through a detailed test producer      Function 1     Read Coil Status   Function 2     Read Input Status   Function 4     Read Input Registers   Function 5     Force Single Coil   Function 6     Preset Single Register   Unknown function       OoOooooo       BEng  Hons  Electronic Systems Page 2 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Q Bad CRC   Q Short message   Q Modbus reliability   Mirror bugs where found  and fixed  testing continued until   was happy that everything was  working properly  Bugs where even present on the test program  which where successfully  fixed  Every time changes where made to the Modbus protocol  it was imported to quickly  check that the changes did not affect other parts of the program        After everything was working properly  Modbus reliability was tested  again using my test  program  This was achieved by running my random noise routines  there are several different  types and all where tested and left running for at least 30 minutes  Modbus was then checked  to see if it was still operational after the simulated random noise tests   Program must never  crash      At this stage as was satisfied  that the Modbus communication protocol was ready to be  converted for use on the access 
74. ol Systems    in the CEC  The  course length was 71   2 hours  and went into considerable detail on most of FG Wilson   s control  panels  Including Circuit diagrams  ISO standards  Price  Quality  functional description   advantages  disadvantages  defects  components etc    control systems  looked at in detail  included      Engine Interface Module    Starter Motor Solenoid  EIM SR    Glow Plug  pre heat    Fuel Control Solenoid   Safety relays   1001 Control System   drawing D19443B    2001 Control System   drawing D20449A    LCPO  LCP1  LCP2 Control Panels  drawings D18494F  D20025B  D22640B   4001  amp  4001E Control Systems  drawing D18495G  D19516D    Ribbon Field Cable Interface  drawing D22628C    Remote Annuciators   Automatic Transfer Switches   TC     Transfer Switch   Mti     Transfer Switch   Access 4000 Control Panel   6000 Series Control System    SCI Annuciator Data Frame          BEng  Hons  Electronic Systems Page 10 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Created a test program in Turbo C 3 0 for dos  reusing old code form my Modbus test  program  The program was a small simple program compared to the Modbus test program  it  was designed to be small and simple to use  On the main menu the user has three choices     Build        Baud        Quit     The build section lets the user input a test data frame form the  keyboard the BCC is then calculated and added to the frame which is then transmitted  through COM1 at
75. ply voltage was then increased to 28 volts  worst case condition for the 5   Volt voltage regulator 7805      After some time the voltage regulators and relays had become very hot  but seemed to be stable  as the temperature didn   t get any hotter as time went on  Heat sink working well   After 8 hours  the annuciator and relay boards  still hot  will still operating correctly  This test was carried out       BEng  Hons  Electronic Systems Page 58 98425145       Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       twice and will properly be left running all of next week during office hours  making sure the design  is reliable     Week 39    Monday 30 04 2001 to Friday 04 05 2001    Carried out detailed functional tests on Access Annunciator relay board   designed  These tests  included reliably testing  which involved turning on all relays and left running for long periods of  time     The Access Annunciator  with two relay boards fitted  where tested beyond their normal operating  conditions  When connected to access 4000 controller it is unlikely that more than 5 faults at  anyone time would occur    carried out reliability tests with all 20 faults active  hence all 16 relays  were active     It   s extremely difficult to get all 20 faults to occur using the Access 4000 controller  hence the  Access Annunciator was connected to my PC using RS232 to RS485 converter  My Access  Annuciator test software  Advanced version    developed a couple of months ago  
76. ppears which allow the user to change the value of that setpoint        BEng  Hons  Electronic Systems Page 35 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Screen shot of Panel Setpoints  amp  Configuration shown below       Slave 1   Panel Seipoints  amp  Configuration    Crank Frequency  Cutout APH High setpoint i  Durston time  sec  High time dealery  sac   Delay  SEC  Low segpaint 0   Rapaats  no of tres  Lowima daley  sac   Vohage  Hagh setpoint px  High time delay  seg  Low setpoint gW   Low time delay  sec    4    Beter Voltage  High setpoint 0   High tire delay  sec   Los setpoint fy    Lew rne deley  sec      Bater Charger  Fail setpoint  v  11 0    Be   k    AN  aeee eeil        Osencurmant     Sepoini  Time delay  sec    ce kekk keek    Change    Fail irme deley  sec    4  Change         Other     Remote Steet Time    Appr low oil Pressure   Appr high engine temp  Low Coolant temp sepoi   Fault profesct ter delay  Sec     sor it LE  Belay OFF   o  Change      Setpoint   1666 Change      TE seg   ile ome     4 ne Ge Changa   E  u Chenge      ii    i    Hi  uith       Added Modify setpoint Dialogue  communication is stopped when the dialogue is opened and  started again when closed  If the setpoint value is change and OK or APPLY are hit  the program  communicates with the Access 4000 control panel and requests that the setpoint should be  changed to the new value     If timeout occurs the program tries again  this will happen a 
77. rce of reference  including sample code  documentation   technical articles  the Microsoft Developer Knowledge Base     Step by step example programs included    Step by step example database included     1  Displaying text  1  Creating a simple database   2  Adding event handlers  2  C    Access interface   3  Creating a dialog box  3  Adding names   4  Displaying two views  4  Updating names   5  Using pointers  5  Deleting names   6  Creating a list  6  Merging the database   7  Moving within the list   8  Editing the list   9  Saving the list  Final year object oriented programming notes  10  Adding a list control  was download  and use as reference     11  Editing using hints  URL  _http   tree engj ulst ac uk oop oop pdf  12  Select the current item  By  Dr  Colin R Turner  13  Using LPARAM values  Date  April 18 2000  14  Adding a pop up menu   15  Using callback   16  Sorting the columns  Also detailed information was found at  17  Owner draw  http  Awww freeskills com     Week 13  Monday 16 10 2000 to Friday 20 10 2000    Continued preparing for my next project  created a simple database using Microsoft Access   called    Names mdb     This was added to the ODBC Data Source Administrator  as a System  DSN using Microsoft Access Driver    mdb      Using the MFC AppWizard  exe  including database support a new c   project was created     The program developed as follows     e Added form view dialog box  Child   including four edit boxes for the four fields   ID  Title 
78. ren  Phase BVokoge   li  Line BC Voltage    Phase C Vokes   j Line CA Voltage    Hours Fun   Starts    Rpm    Frequency   0 0 Power Factor Fuel level    Phese E Curent    Phase C Cwreni    q4 1443  11443      The above screen shot was taken when connect to an actual Access 4000 control panel  but it  was not connected to an generator  or simulator box at this stage  that will be tested next week        BEng  Hons  Electronic Systems Page 34 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Screen Shot of Status   Alarms Overview             Slave    Simus    Alarms Overndew  Low oil Pressure  _ Spare Feull 1    Spare Feti       Resered Reserved  Resend Reserved  FPeserved Reserved  Resend Reserved        Digital signals  either 1 or 0  Highlighted   logic 1  e g     Heart Beat    was at logic 1 when this  screen shot was taken     Screen Shot of Power Overview           All fields are double byte numbers expect for    Total kWh    which is a 32 bit number  it is blank on  the screen shot because this feature was disabled on the Access 4000 control panel     The program can tell that the    Total kWh    feature is disabled when it   s high word is equal to  FFFFh  if disabled the program displays nothing in the edit box     The    Panel Setpoints  amp  Configuration    view displays the current values of all the setpoints  configurable in the access 4000 control panel  also a button  Change  beside every setpoint   when clicked a dialogue box a
79. required for designing the Modbus protocol for  Access 4000    was given Source code form the exciting FG Wilson protocol  to use as a  reference  to make sure the Modbus protocol will be compatible with the program structure of  the access 4000 panel without major changes to exciting software  e g  Modbus will be called  every 125mS      Summery  Modbus Protocol      e Modbus protocol is a messaging structure  widely used to establish master slave  communication between intelligent devices  A Modbus message sent from a  master to a slave contains the address of the slave  the    command     e g     read  register    or    write register      the data  and a check sum    e Since Modbus protocol is just a messaging structure  it is independent of the  underlying physical layer  It is traditionally implemented using RS232  RS422  or  RS485 over a variety of media     Requirements like the Modbus routine will be called every 125mS  created major design  problems a first  but were soon ironed out     Design produce     e Block diagram   e C programming using the block diagram as reference     The first version of the Modbus communication protocol was designed to run on a PC  this  was to allow for easy testing  between laptop and PC using RS232     Functions include     void interrupt com_handler     void trans int c    int readchr  unsigned char  c    int wait_chr char  c    unsigned short CRC16  unsigned char  message int length    void modbus        Week 4  Monday 14 08 2000 t
80. rking correctly        BEng  Hons  Electronic Systems Page 70 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       The protocols include error detection  e g  if CRC check sum is incorrect the PC is asked to  repeat the last block     Next   add code for saving the configuration  the format use was binary mode  not ASCII   which  included an added CRC  Hence if the CRC fails the file is deemed corrupt       original sent the S19  main code  file through the communication port in ASCII mode  as Access  4000   but put forward the idea of using binary mode as this would reduce upload time by half  My  Ideal was given the go ahead and the protocol was changed  Along with an Added 16 bit CRC  instead of using Motorola   s standard 8 bit check sum  giving better error detection     Main Code        22402000000046DA20002800000020404000204040002040400020404000204040002040408  Use binary mode       SC DA NB B01 B02 B03 B04 B05 BO6      CRCLOW CRCHIGH    SC   Start Character  ASCII character    S      0x53    DA   Digital Address  0x02    NB   Number of bytes following  including 16 bit CRC  0x24   B01   Byte 1  0x02    B02   Byte 2  0x00    B03   Byte 3  0x00     CRCLOW   CRC low byte  CRCHIGH   CRC high byte    The original S19 file format check sum is replaced with 16 bit CRC  as used in Modbus   where the check sum  is replaced with the lower CRC byte and the high byte is added to the end of the frame with the NB field being  incremented  This all happ
81. rogram was sent     Once communication protocol was complete and tested using my mbpc exe program running on  a laptop  PC simulation of the Access 4000 Modbus protocol   Using RS232 link  the programs  communications were checked  the address allocation table on the mbpc exe have been set to  pre programmed values  so the first thing was to check that the windows application received the  whole table correctly  After a view modifications the monitoring communication using a timer has  been tested to work correctly  Also checked that the communication did not crash when  communication was lost  the protocol worked as designed and continued communication as soon  as it was reestablished     Next added 4 additional views  for viewing the received information at a high level  hence any  body can understand quickly and easily what happening       1  Generator Overview  e g  Phase A B C Voltage  Line AB  BC CA Voltage  etc      2  Status   Alarms Overview  e g  General Alarm  High Bat Voltage  Low Bat Voltage  etc      3  Power Overview  e g  Total kW  Total kVr  Total KVA  etc      4  Panel Setpoints  amp  Configuration  e g  High frequency setpoint  Low frequency setpoint  etc       These four additional views take the data directly of the array Table n   which is filled by the  communication protocol     Screen Shot of Generator Overview       Slave 1   Generntor Overview       Water Tamparciure   one    Ol Preseure Battery voltage    Phase AVokege   D Line AB oltage Phase A Ca
82. rol Department A3k_Cfg2 dwg       BEng  Hons  Electronic Systems Page 50 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Week 34    Monday 19 03 2001 to Friday 23 03 2001    Populated the final prototype Tel Panel PCB board  getting more soldering experience  After  completion of the population of all PCB components    was involved in the testing of the PCB  board this included  testing the communications  RS232 to RS422  using my does Cl test  program which   design 6 months ago     After the communication passed  the auto dialer was tested  Then using GenAccess software and  Access 4000 controller  the Tel panel was tested in detail         Using Modem communications at baud   s 9600bps  19200bps  32768bps      Direct link RS232 to RS422 at baud   s 9600bps  19200bps  32768bps     Direct link RS232 to RS485 at baud   s 9600bps  19200bps  32768bps     All tests were successful  hence design modification made for VT noise resistance did not affect  the operation of the Tel Panel  Also proves that   soldered all components in the correct place   using only the schematic diagram as a guild     The reset of the week was spent playing around with a view new concepts in visual C     including custom controls    designed a sample customs analogue meter for use for my  GenModbus application  Created a copy of my GenModbus application and modified the copy   the reason is that visual effects are time consuming and   will properly not have time to co
83. rse work     Week 32  _ Monday 05 03 2001 to Friday 09 03 2001    Carried more work on the Access Annuciator  using RS and Farnel compiled a complete PCB  component price list  in each case the price was taken if ordering 100  at anyone time  This give  a idea on how much it   s going to cost  although FG Wilson will properly get special discounts so       BEng  Hons  Electronic Systems Page 45 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       the actual price is almost certain to be less than my estimated price  Below is a copy of the price    list   complied     ie CAPACITOR CERAMIC c1 c4  c7 c11  c14   a ee ee e  244 3825  RS    10 WAY IDC EC3 4   0 33   0 66  214 1002  RS    100   5    TR4   0 08   0 08  228 6903  RS 100UF 50V 12 13   0 08   0 15  R21 26  R31   0 15   1 05       2   ery   0 08   0 08  2     e  S   EE    R    ajla  S          S    ZITO  FS   48566  RS 7   0 50  251 732 FA Z   0 02  217 4005  RS     0 32  ZTE FE   0 08     0 67    KLIPPON  TEITER   038  PETES    1 94  STE FA   0 29  TTEA   0 50  ZT 56 FS    1 56  SEE TAO T   0 92  1052227 RS as   0 36  TOOTS ak A  ETT ES      1 15  SEBO FA z  nae   1 94  7920065 5      7 51  iSO FS i 20 18  SOARS E   5 00  SOOT AS 5   0 25  ZOE TS z   0 39  O A   FSGETRNSOETER     1 13  SATIS  maca   SETS  S   TUE   0 45    328 2429  RS    PIC16LC63A  PIC MICROCONTROLLER U7   1 74   1 74  o4i P         FA    Farnell   RS    RS Catalogue TOTAL   31 78       oc  SS    8       A    pag    R   E
84. ru  wmc os rier  Help reer  nipwg  Genergior Oversee  Power Drenices  Monta Status   Alans  Pane  Setpoint   Gorigursdon  E  Address Allocation Table  i  7  About     F di nnn raii    JERBE    E         BEEE     ae      All Windows  Dialogues and menu items are directly linked to the help file  for example if you  press F1 when the    COM Configuration    dialogue is active  The help topic    COM Configuration2  will appear        BEng  Hons  Electronic Systems Page 39 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Thursday  amp  Friday was spent in the electronic lab  Helping to carrier out voltage transient tests on  the new Cl panel  It had previously fail some of these tests at Queen University Belfast  we were  checking the modifications made worked     The first test was to send these voltage transient signals through the main voltage input on the Cl  panel  each transient test lasted for 1 minute  Tests included      1kV transient on Ground line     1kV transient on Ground line     1kV transient on Live     1kV transient on Live     1kV transient on Neutral     1kV transient on Neutral     2kV transient on Ground line     2kV transient on Ground line     2kV transient on Live     2kV transient on Live     2kV transient on Neutral     2kV transient on Neutral     VVVVVVVVVVV V    The Cl panel continued working as normal at 1kV  at 2kV RS485 communication died  but  recovered when voltage transient was stopped  No permit damage was cau
85. s  These label strips are inserted behind the main  label displaying in English each fault  Next given the task to get a rough price of all the  components using RS   priced each component  which where then added for a total     Week 31    Monday 26 02 2001 to Friday 02 03 2001    Started to write the technical report for my Access 4000 database program  The Access 4000  database program   have created is only the first step of many  At a later date Internet  communications and other functions will be added  another engineer will properly complete these  future modifications  So it   s important that the code is easy to read  with a fixable programming  structure  The technical report is to make life easier for any engineer who wants to modify the  database program  it will contain a detail description on every class with a brief description of  each function       completed the detailed description of each class along with a brief description of each function       CMainFrame  CPanelApp  CPanelDoc  CPanelView  CAdminToolsView  CAboutDlg  CAboutSerialNumberDlg  CAddNewRecord  CAdmin_SelectUserDlg  CAdminAddUserDlg  CAdminEditUserDlg  CAdminSelectWonDlg  CChangePassDlg  CDeleteRecDlg  ClmportTxtDlg  COptionsDlg  CPageSetupDlg  CPasswordDlg  CCalibrateView  CCommercialView  ClinputsView  COutputsView  CSecurityView  CSetpointsView  CSystemView  CPanelSet  CTextFileSet  CUserHistSet  CUserStatusSet       BEng  Hons  Electronic Systems Page 44 98425145    Sunday  20 July 2003 Ind
86. s  none    validchar   0123456789  LimitText   3  Label   Spare 5     Note the tab     is for are use only and a master password will be set for access  This feature will  not be documented and only a selected few will have access  In unless the master password has    been entered on startup this tab will not be included     This section gives the user direct access to the Address Allocation Table  which can be written  directly to the Access 3000 control  no error checks are carried out and the user must have  detailed technical knowledge and is not designed for ease of use  Items like    Hours Run    can be  changed to any value  FG Wilson does not want the customers getting access to this section  so    great care has to be taken not to leak any passwords  this is FG Confidential RED     The code for the Address Allocation Table is complete        BEng  Hons  Electronic Systems Page 74    98425145    Sunday  20 July 2003    Industrial Placement Logbook    Colin K McCord       Weeks 46 to 56  _ Monday 18 06 2001 to Friday 31 08 2001    Finished configuration program for the new Access 3000 controller  including database section       6 3000 Databases   0 4ork Colin McCord    AIK mdi     E ix     00 Database   Oioi Colin W    Design Enginner  Administr  Administrator  Design Enginner  Adminigtrator  Design Enginner  Guest  Adminietalor       3k nv    arrg  zpal 2001  TO0e 2001  09 08 2001    Ze 02001          BEng  Hons  Electronic Systems    Page 75    98425145    Sunday  2
87. s 4000 text files already have conheaders of CCC and  TTT  which can be used to detect existing Access 4000 files  different conheaders will be added  to the top of the access 3000 text file     It is also possible to change the access 4000 text file to a similar format  without changing the  bootstrap code  The text file will be in the new high level format  the load program detects that the  file is a new access 4000 text file and converts it back to the old format and stores it in a CString   which is then transmitted     Load program should be able to        Upload Access 4000 and Access 3000 S19 Maincode files   Upload and Download Access 4000 existing formatted text files   Upload and Download new Access 4000 high level text files   Convert between old and new access 4000 configuration text files   Upload and Download Access 3000 text files        fe o    I   ve also drawn a few high level flowcharts for possible communication protocol for uploading and  download access 3000 configuration text files  Some screen shots show below          BEng  Hons  Electronic Systems Page 49 98425145    Sunday  20 July 2003    Industrial Placement Logbook    Colin K McCord       How the Configuration file is Transmitted     Byte 0x00     C      Byte 0x01     C    Byte 0x02     C    Byte 0x03    EEPROM _Table 0x00   Byte 0x04    EEPROM _Table 0x01   Byte 0x05    EEPROM_Table 0x02        Byte 0x202   Byte 0x203  Byte 0x204   Byte 0x205     EEPROM _Table 0x1FF   CRC High Byte   CRC Low By
88. s 75 to 86    
89. s and GenAccess  The Annuciator only receives data it does not  transmit  hence only 2 of the 4 wires are used from the RS485 communications     When the user hits  1  the first of three tests are carried out          Test 1   All LEDs Solid On  Switch On       Check all LEDs are Solid On    Hit  AnyKey  to continue          If Annuciator communications are working correctly all LEDs should now be on           Test 2   All LEDs Quick Flash  Shutdown Fault       Check all LEDs are flashing Quickly    If buzzer sounds reset using switch     Hit  AnyKey  to continue          If Annuciator communications are working correctly all LEDs will be flashing quickly        BEng  Hons  Electronic Systems Page 57 98425145             Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord             Test 3   All LEDs Slow Flash  Alarms       Check all LEDs are flashing slowly    Hit  AnyKey  to Finish       If Annunciator communications are working correctly all LEDs will be flashing slowly     When user hits  Anykey  to finish a communication block is sent to switch off all LEDs and main  menu appears  The program is design to be small  easy to use  and reliable     Order components from RS required for 5 prototype relay boards  after Easter   will build and test  the relay boards     Carried out detail costing of Access Annunciator including       Cost of PCB Components   Cost of PCB   Cost of populating PCB with components   Cost of case   Cost of Screws  bolts  nuts and wash
90. sed           Aboul Cea oct    Dr Ning Li           BEng  Hons  Electronic Systems Page 38 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Week 28    Monday 05 02 2001 to Friday 09 02 2001    Continue working on GenModus monitoring program  improved code structure and reliability   Added an icon on the status bar which flashes green then yellow when Modbus communications  are operating correctly the Icon is red when in disconnect mode  If communication fails the icon  will not flash  Screen shot of the status bar below          Program was tested on Access 4000 control panel using hardware simulator to simulate the  Genset  The program works fine  no problems found yet     There is another change of plan  the program will now be placed on the web for customers to  download hence a small help file had to be created  It was decided that the program will make a  good test program  and will be available to the customers of Access 4000 free of charge     Created a help file using    Help Workshop    and    Microsoft word     this is the first time I   ve created a  windows help file and it took some time to learn how to compile such a file  See Screen shot  below               Help Topics  GenModbus for Access 4000 Application Help  Contents   Index   Find      Click atopic  and then dick Display Or dick another tab  such as Index        Lh  Genkodbus  E  Summary   nder   MD Hanus    7  File menu      Vie   ru    z    E     Contals menu  Tools me
91. sed to the Cl panel  during any of these tests     Next  using a coupling clamp all external cables were subjected to these transient signals  Cables  tested included RS485  AutoDialer faults and the telephone cables  both Autodialer and modem    In every case the coupling clamp was charged to 1kVolts  both Positive and Negative signal  where tested  RS232  GenAccess  to RS485  Access 4000  communication slowed when voltage  transient signals were active but recovered as soon as each test was complete     Large voltages such as 1kVolt  amp  2kVolt signals where being used  hence it was vital to follow  strict safety producers  Cl panel did not pass all tests first time  modifications where made and  tests repeated until it passed  The Cl panel will be tested officially on Saturday at Queens  University Belfast  Production cannot start until the Cl panel passes all of these tests  if any fail it  could hold back production for weeks     Week 29    Monday 12 02 2001 to Friday 16 02 2001    Started work on a small dialog based windows program  propose of which is to load   txt and    S19 files to the Access 4000 control panel  There already exists a dos version called load exe   but for it to work correctly you must leave Windows  The communication protocol used is  extremely simply compared with Modbus  plus   had a copy of the source code form the MS dos  load exe     Using the source code from the MS dos load exe as a guild   started to write the communication  protocol for s
92. serial number form the name  amp  address fields and  hence compare the generated serial number with the one stored in the windows registry     i Regisiry Editor            Begar Edi wiee Help       JE FG Wilson     Heme Data    E Access 4000 Contral Pan 1a Detna  felis noi se   j  Conte   biaddrass  Od Gemar Road Lame  Marthem Iralgrd    By license    J Recert File Lisi    L  al Sati   ot    My Conmguter HEEY_CURRENT_USER Sotwere FG WilsonAccess 4000 Control Panel Detabess yicanse          fale  ernie   Dobr bolon   FG Wilson  Enginesreng  Lid   asarin ngra   1 7A  ADEI  567I           If the generated serial number does not match the generated one  or there are no license  details  will occur when program first installed onto a machine  a dialogue box will appear  asking the user to enter user license details        Access 4000 Conia Panel Deleabase   Product Seral Number    IN Alesse enar you product licere details  HOTE  all falda  i Gre caje serie  eg all leiers must ba in cored case        Heme  Olin Mieord  FG Wilson  Enginering  Lid  Address  fora ener Aoi  Lane  Morten irela d       saial 7 A0 517A ACE9 SE73    aming  This companar program is proteciad by capynght  lev ond intemeabonal fechas  Linguthonzed reproduction or  Gistibutan ofthis program  or any partion af  amp  many reeultin  severe chil and ciminal penalties  and wil ba prosecuted     When OK is pressed the serial number is generated once again using the Name  Edit Box   and the Address  Edit Box   once 
93. serial number has now been decoded and the edit boxes    Counter         Date    and    Time    will show the results  Because the serial number contains an 8 bit CRC  it is possible to check the serial number is valid  if valid the serial number was properly  decoded correctly  If the CRC is invalid the serial number may not be decoded correctly   this will occur if there is a type mistake in serial number or this program did not generate  the serial number  e g  serial number 1 to 200 were not generated with this program and  cannot be decoded      Exporting serial numbers     gt  First  set the starting position and the number off serials you wish to export  For example  if starting position was 201 and number off was 50  serials 201 to 250 will be exported  If  the tick box    All  gt  Starting POS    is ticked  the edit box    No OFF    will be disabled and all  serials after the starting position will be exported      gt  Next  type in a filename into the    Filename    edit box for best result include the extension    txt  Or click  Browse      which will allow you to enter your path and filename using the  window   s standard    save    dialogue        BEng  Hons  Electronic Systems Page 28 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord        gt      gt     Next  Select the format       All Fields    Time Full Serial Number       201 Q9TWHBBC 201 15 01 2001 1L 52323 GA1 201 Q9TWHBBC  202 Q9TWHBAY 202 15 01 2001 11351323 GA1 202 Q9TWHBA9 
94. tatic text box  easily and quickly  Two lines of code are  all that is required  once the hyperlink class has been included into any MFC application     Inside the class is code  to change the colour of the text to blue  underline  and change the  mouse pointer to a hand when the mouse hovers over the hyperlink  Screen shot shown  below       Anau  Armas AUN Comino  Farel Oainbnsa          BEng  Hons  Electronic Systems Page 26 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Week 25  Monday 15 01 2001 to Friday 19 01 2001    Tasks for this week     1  Write a computer program to generate serial number for GenAccess 1 1 control software   2  Create Word document for printing disk labels for GenAccess 1 1 control software   3  Print 50 sets  50 X 3 disks  of labels for GenAccess 1 1 control software   4  To stick labels onto 150 floppy disks   5  Copy GenAccess1 1 control software onto the disks   6  Test all sets by installing GenAccess1 1 control software   7  Write quick start guide on how to operator the generator and print labels     Screen shot from my Serial Generator for GenAccess 1 1            m 7     enal Generator lor GenAccess v1 1    Fie Genersie Export Tools Help           Ganerate     Tools     Meg   257 sn   41  250 09TLHOE  Generate Decode S    Generated Serial Murnber List        Genersted Seral Full Saris  Number  2435097 GHeBF 15 01 2000 11 53 29  GA1 243 09TOHSEF  24ebO9TOHZAE 244 15 01 5001 11 53 33 Ga4  244 09TQHA4A5   
95. te             Access 3000 will store incoming characters into temp array  byte n    byte 0 to  2  checked for  CCC   CRC calculated and compared with byte 0x203   amp   byte 0x204   If CRC OK byte 0x03 to 0x202  will be copyied to EEPROM    Address table        Start    Y    Transmit request to send  configuration file    Timeout  Wait for ACK   Timeout in 250ms     Y    Transmit Configuration  File   With added 16 bit CRC     Wait for ACK   Timeout or NAK  S   Timeoutin5 Sec   gt     Stop    Start          Transmit request to  receive panel     configuration    ae    Wait for ACK   Timeout in 250ms        Y    Receive configuration  and store incoming  characters in temp array    Stop       CRC       Check Bad CRC Send ACK    Configuration file similar to windows INI file format  for example        ID Block   Works Order Number   D2336A 001     System   Communication   1  Unit Address   1  Data Speed   9600  Comms   4     Calibrate    VT Phase A Offset   0  VT Phase A Gain   1 000  VT Phase B Offset   0  VT Phase B Gain   1 00            Setpoints   Voltage High Statu   Voltage High Setpoint  Voltage High Time   5  Voltage High Action   2        Inputs    Outputs      Security   Level 1 Password   1111       Remote Password   9999    Access 3000   Concept Design 15 March 2001    Config COM Protocol DL    A3k_Cfg1 dwg    Colin K McCord    Electronic Control Department    Access 3000   Concept Design 16 March 2001    Config COM Protocol UL    Colin K McCord    Electronic Cont
96. tly  into the Access 4000 control panel  The file starts with    ccc    and ends with          this is always  the case  The individual setpoints are then separated by commas  e g  1000102823 above is  the SAP works order number and 9600 is the baud rate etc       The text file  once exported is also downloaded directly into the Access 4000 control panel   Each file starts with    TTT    and ends with    and messages are separated with commas  The  database a present contains 12 text files for 12 different languages  table  tblTextFile    FRE   DAN  ITA  DUT  NOR  SPA  POR  SWE  ENG  FIN  GER  ICE  The language that is selected  on the current record is exported  For example if the current record has ENG as its language   when the user hits    export text    the ENG text file will be export  while if the current record has  GER as its language  the GER text file will be export     Text file  ENG                                  IRE  SCROLL TO A i MENU ITEM   THEN PRESS ENTER    OVERVIEW   ENGINE  ALARM LOG    GENERATOR   CONFIGURE   CONTROL  V                                                 Engine Temp  Low Oil Pressure  Fault Channel 1  Fault Channel  2 Fault Channel 3  Fault Channel 4             Text file GER                                   TIT  MENUEEINTRAG y HERVORHEBEN   UND ENTER DRUECKEN    UEBERS    MASCHINE   ALARMBER     GENERATOR   KONFIG    STRT KONT V  A                                                                          Nied Oeldruck  Fault Channel 1  Fa
97. ult Channel 2  Fault  Channel 3  Fault Channel 4             The above text files are summarised as the full text file contains 182 messages   commas     For both the    Export Configuration    and    Export Text    a standard file dialog was used       Sein  atere ooo a TE          T HOR tet    a  DAH tet   uj DUT bt M  PORti    E SPA  ii  FIN tet T  SWE ti  i  FRE bs  i  tet be   i  GER ed   E  CE tet   E  IT Ate    ave Be hype  Text Fite  txt    Tancal       Week 17    Monday 13 11 2000 to Friday 17 11 2000    Continued working on    Access 4000 control panel database    program  Added    import text  file          import Text File    sat t  renga        Souree  jajengid Grose    Languege   EEE    cence     impor        BEng  Hons  Electronic Systems Page 12 98425145       Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       This imports a text file into an existing or new language record     Options dialog added this option dialog lets the user specific the default database  which will  be loaded automatically on start up  The data is stored in an INI file  c  Panel_config ini  which  is loaded on start up  If the default database does not exist or is not valid or the INI file does  not exist  the user is ask to select the database via a standard file dialog  and the INI is  updated   created        Detsul Dalehase  Cymen access Pane mdb Bi           Cancel           Many other small improvements  amp  bug fixes where made  some where visual improvements
98. urce record  copy   except fields      Works Order Number        Date     r      User        Last User     amp     Issue     which SEO L   will not be the same as the source  record     The feature enable disabled users was added  this feature lets admin users disable enable     level 1     amp     level 2    users  If a user is disabled that user will not be granted access to the  system  An AfxMessageBox will appear saying    User profile disabled by Admin  Access  denied     Locked users are added to table with CRC which validates that  the users are  disabled     Other additional features included      e Save all dialog when main frame is closed    e Close all multidocument windows when the main control window is closed    e Print user history table  amp  Print user lost table    e Sense each user locks their current record  therefore the max number of users is equal to  total number of records  If there are already the maximum number of users logged in no  more are users will be granted access  This is unlikely to happen  as there are 60 users in  total and there are at present 230 records and its unlikely that the records count will  decrease but in fact will probably increase     Many small visual displays  bug fixes and performance improvements very made        BEng  Hons  Electronic Systems Page 14 98425145    Sunday  20 July 2003    Industrial Placement Logbook Colin K McCord       Week 19    Monday 27 11 2000 to Friday 1 12 2000    Continued working on the Access 4
99. uring the loading  process  also the bytes send and total number of bytes are also shown  Screen dump below       Loading Fila  Oc Work Cobin McCord  30234513  amp  TST          File loaded successtulky    Di srs tirs    7195 of 3195 Pigiggi iii Hi paa A           BEng  Hons  Electronic Systems Page 41 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       If load was successful the  Cancel  button is change to  OK  and the  Retry  button remains  disabled  If load was unsuccessful the  Rety  button is enabled     The about dialog     About Lond    i Loed for Access 4000 Control Panel  wo Cop night    2001 FG Wilson  Eng  Lick All rights egarad       Wersion 1 0078   Ey Colm k pico  Depmtment z igi   Date 15 Feburery 2001  Website bia aes heilsan con  Tel   44  0  2828 26100  Faz   44  0  2028 260111    i  Warning  Thie computer progam is protected bry  copyngh law and international reesies Unauthorized  reproduction of detibution of thee progres  or any portion  Of it rey resul in Severe chal and criminal paneities  anc   will be prosecuted     FG Wilson  Engineerng  Lid     Old Glenarm Road Lame   Northem Ireland BT 40 1E       Program tested on Access 4000 control panel  and after a view modifcations the program seems  to work fine  The computer l am using is running Windows NT and has a PIII proccessor with  128MB of RAM  so it was important to test on other operating systems and older PCs     Started testing on Windows 95 running on P133 with 
100. ustrial Placement Logbook Colin K McCord       Detail description and screen shots of all panel resources  Accelerators  Bitmaps  Dialog boxes   Icons  Menus  String Table and Toolbars  where added to the technical reported    Carried out more work on the new SCI Annunciator  design changes where made to the plastic  cover  Using AutoCAD R14 changes were made to the design of the plastic face  see screen shot  below               Oo     a            eal       as  Kj        TT    ACCESS ARNUACLATOR       Notice name has been changed from    SCI Annunciator    to    Access Annunciator     the reasons for  the change is that the new remote Annunciator only works with the Access 4000 control panel  It  is foreseen that it will also be compatible with the new Access 3000 control panel  which is at the  early stages of development     These design changes included increasing the size of the metal cover by 20mm at all edges  the  reason of this change is to allow mounting to the wall from the front  4 additional holes will be  drilled in the metal cover  the size of the plastic face will be increased which will cover these  additional holes  Hence if customer whishes to front mount the Annuciator they can punch a hole  in the plastic cover and insert their screws     On Thursday 1  March 2001 at 14 30 had my first visited from my academic placement officer Mr   George Jackson  Answered a view questions and he filled in a few forms  give details on his  marking scheme and written cou
101. w M11 LiL 257 640  S65   Ga Recerd File List  ist  WindowPos CComStatusview    O 1  1  1  1  1 643 299 958 404   a jue  WindowPos_CGenModbus  iew    O1  1  1  1  1 982 303 1017 648   Gj ToolBarBewt  E  WindowPos_CGenQverview  0 1 0 630 1  1 0 4 640 253   Gy ToolBar  Bari q e WindowPos_CPowerview 0 1111   1  649 3 959  254    4   Pa   Lb WindowPos_CSetonints View  0 1 0 630  1  1 295 1 1020 646   My Computar HKEY CURRENT _USER  Software  FG Wilson  Genktodbus Setings a    Next  need to add Genset controls  Start    Stop    Estop    Reset        Estan    O srop   E Stop   C Reset    The control code has been added to the timer  8 more states have been added  TX_START   RX_START  TX_STOP  RX_STOP  TX_ESTOP  RX_ESTOP  TX_RESET  RX_RESET     If timeout occurs the query message will be repeated  this will happen a max of 3 times and state  will move back to TX_CONTROLS  If successful state moves back to TX_CONTROLS  These  controls have been tested on the laptop and the  Reset  control has also been tested on the panel  it self  all work as expected  When generator simulator becomes available next week the other  control will be tested fully  All views  Controls   Disconnect    Connect   etc  are available on the  menu bar  toolbars and the context menu        BEng  Hons  Electronic Systems Page 37 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       Screen shot of context menu show below  note my bitmap menu code from my database program  has been reu
102. was used to  active all alarms     Voltage was set at 29 volts  and the Annunciator with all 16 relays active  was left to run  constantly for up to 8 hours  This was repeated several times  afterwards the relay boards and  Annuciator where still working as normal  But it did get extremely hot  hence temperature reading  where taken  result table shown below                      Voltage Relay B1 Relay B2 Current Hours Room Temp   Temp Reading   29 40 All 8 ON All 8 ON 580 mA 8 26 5  C 63 6  C   29 40 4 ON 4 ON 410 mA 4 26 3  C 51 4  C   29 40 4 ON All 8 OFF 280 mA 2 26 3  C 39 2  C                         The results above were taken with no air holes on plastic box  air holes were added and the  following results were obtained                      Voltage Relay B1 Relay B2 Current Hours Room Temp   Temp Reading   29 40 All 8 ON All 8 ON 580 mA 8 26 8  C 53 0  C   29 40 4 ON 4 ON 410 mA 4 26 3  C 39 4  C   29 40 4 ON All 8 OFF 280 mA 2 26 3  C 32 2  C                               The relay boards were fully functional after all of the reliably tests     Order PCB components from RS for Access Annunciator PCB  the final prototype PCB board is  due next week    will build and test the new board sometime next week     Week 40  _ Monday 07 05 2001 to Friday 11 05 2001    Populated and tested the final prototype PCB board for the Access Annunciator  there were no  problems and Access Annunciator is due to be released soon     Started working on the design of software for the new 
103. were checked for errors       Route to Route Comp Copper to Route  Pad to Pad Comp Copper to Pad  Route to Pad Comp Copper to Via   Pad to Via Comp Copper to Copper  Route to Via Comp Copper to Comp Copper  Via to Via Text to Comp Copper  Copper to Copper Text to Copper  Neck Unneck Seg Too Short Text to Pad   Route to Copper Text to Via   Pad to Copper Text to Route   Thin Route Segment Teardrop to Comp Copper  Via to Copper Teardrop to Copper  Isolated Copper Teardrop to Pad   Route Offset Teardrop to Via   Drill Holes too close Teardrop to Route   Route to Board Outline Teardrop to Text   Pad to Board Outline Teardrop to Teardrop   Via to Board Outline Text to Text   Copper to Board Outlin Incomplete Routing    Comp Copper to Board Outline Text to Board Outline  Teardrop to Board Outline    Any errors found were fixed and error check compiled again to confirm  Other automatic checks  include    Electrical Rules Check        Connection Check    and    Design Comparison     Once all routes  were routed without errors  copper ground plane was added to the top electrical layer  Automatic       BEng  Hons  Electronic Systems Page 53 98425145    Sunday  20 July 2003 Industrial Placement Logbook Colin K McCord       check carried again after ground plane was added to make sure it no to close to routes other than  GND     Bottom Layer    Top Layer          5 PTIT  TU ESS a       es       Ha      GEEEE       d  il        re  re  a  a             Notice that I   ve tried to keep the
104. ws modifies is store here  at present there are 2500 records   These two tables where added to my program and automatic code to use update these tables  was added     Also by this time you needed a password  amp  username to login  all usernames are stored in  the table  tblusersstatus   the password was encoded onto the database using various  encoded techniques  Another option was to stored the password in the windows registry  but  this had the draw back that  that if the user when to a different machine there system would  no longer have a record of his hers password  and this was ruled out early on  Storing the  password on the database meant that any user could use any computer  as the password  was not stored locally  put actually encoded onto the database     Because the system uses a 3 level security system  some users have restrictions imposed on  them  e g  only users with level 3 Admin Access or the user who created the record in the first  place can delete it  Also starting working on a Class that viewed the User History User List  table  including deleting adding users   only level 3 Admin operators will have access     Screen dump of the main section show below          J  Apers AND Cantal Pane  Dalabkass  C lmevwdiles eccese Panal  mdt  Fie Edt Bacom Yew  need Took Window Hala   D ae   gt  me   WH 4b HM te AG FP              Cammerclall Ec jewdiles eccess Panel  meds  yale FE Export Fale  Calibiate      Alsace Solco Works Order   SAF Mumbar Tat       Selpaints
    
Download Pdf Manuals
 
 
    
Related Search
 Placement_Logbook  placement logbook  work placement logbook 
    
Related Contents
Centrifuga Philco Turbo Juicer  Philips EXP3360 User's Manual  benutzerhandbuch    UltraView Encoder 10 and UltraView Decoder 10 User Manual  PDF - 下関市  クリエイティブバナーズタワー 取扱説明書 一  NGF-728 User's Manual - VOLKTEK Ethernet & fiber  G41C-VS User Manual      Copyright © All rights reserved. 
   Failed to retrieve file