Motion MMI-8S installation manual

Page 24

Programming

The software program used with the MMI/SR4/SMC system is only a "Serial Driver" routine. The main purpose of the program is to send and receive commands between the host and the MMI microprocessors. The motion control software (firmware command set) is contained only in the CY545. The QBASIC serial driver contain examples of typical operations required by the host computer software, such as: opening the comm (serial) port, sending/receiving characters, loading the 545 memory, handling the Busy status, and diagnostic capability. Included in the sample program are routines of 545 commands which exercise the motion system during manufacturing tests. Two types of routines are demonstrated; (1) downloading a string of commands from a keyboard file and (2) loading a string of commands to EEprom memory.

The sample listing is commented and contains information about how to operate a 545 system. It

is helpful to "read the listing" even for non-computer types.

Line 0-20 defines the variables and create symbols for control characters.

Line 30-100 assigns the Basic function keys for common functions.

Line 120 creates the time delay used between characters so that fast computers do not get ahead of the serial card and the MMI.

Line 130 defines the serial port as the ACTIVE device; PRINT #ACTIVE sends characters to the active port.

Line 200-400 creates the introduction screen display

Line 500-999 is the down-load test routine which is sent to the 545 when this program is first run.

Line 1010-1410 is the Self-Test program. The GOSUB 2500 is the time delay for the write cycle of the EEprom memory.

Line 1500-1800 is a sample homing routine with a limited number of re-tries; loop counter, input test, and message transmission are demonstrated in this program.

Image 24
Contents MMI-8S MULTI-AXES Motion System Introduction Page Page Page Contents SR4 CY 233 Command SET SummaryWrite ReadIntroduction Service Access TOP Cover Removal ProcedureHardware Description OperationWrite Mode Read ModeStatus Echo Mode ID and Status CodesTable of ID and Status Codes LED Displays ProgrammingPage Page SMC Step Motion Controller Assembly Also Refer to CY 545 Command SET SummaryPage Page Page Page Page Clear Load F6Exit F5 W,OPage YES ADW0DPage Page Program Listings See Mmidemo program XT Type CPU DB-25 IBM Style PINAT Type CPU DB-9P IBM Style MAC DINMMI Fuse Failure Indicates Driver FailurePage Operation and Installation Manual For MS Series MS MiniStep translator /driver cardPage Page Power Supply & Motor Connections GND Current Control Dial Appendix Section Page Appendix B Description of Homing and Abort Loop page 1/2 Appendix B Description of Homing and Abort Loop page 2/2 Appendix C Motor Current Adjust Appendix D Motor Wiring Schemes Page Page Appendix E Appendix F 2/2 Appendix Specifications MMI Parameter MIN MAX Unit