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
Line
Line
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
Line
Line
Line