Intelligent Motion Systems MDrive34AC manual Using User-DefinedSPI, SPI Timing Notes, Section

Page 50
Using User-Defined SPI

SECTION 2.4

Using User-Defined SPI

The MDriveAC Plus can be configured and operated through the end-user's SPI interface without using the IMS

SPI Motor Interface software and optional parameter setup cable.

An example of when this might be used is in cases where the machine design requires parameter settings to be changed on-the-fly by a software program or multiple system MDriveAC Plus Microstepping units parameter states being written/read.

SPI Timing Notes

1.MSb (Most Significant bit) first and MSB (Most Significant Byte) first.

2.8 bit bytes.

3.25 kHz SPI Clock (SCK).

4.Data In (MOSI) on rising clock.

5.Data Out (MISO) on falling clock.

Figure 2.4.1: SPI Timing

Check Sum Calculation for SPI

The values in the example below are 8-bit binary hexadecimal conversions for the following SPI parameters:

MRC=25%, MHC=5%, MSEL=256, HCDT=500 mSec, WARNTEMP=80.

The Check Sum is calculated as follows: (Hex) 80+19+05+00+00+01+F4+50

Sum = E3

1110 0011

 

1’s complement = 1C

0001 1100

(Invert)

2’s complement = 1D

0001 1101

(Add 1)

Send the check sum value of 1D

Note: 80 is always the first command on a write.

Note: Once a write is performed, a read needs to be performed to see if there is a fault. The fault is the last byte of the read.

Part 2: Interfacing and Configuring

2-21

Image 50
Contents 42TM Excellence in MotionTM34 TM OPERATING INSTRUCTIONSMDriveAC Plus Microstepping Revision R031808 Low Voltage Installation Informationinaccuracies Intended Use Important informationQualification of personnel This page intentionally left blank Part 2 Interfacing and Configuration Table Of ContentsPart 1 Hardware Specifications 1-132-12 Section 2.3: Using the IMS SPI Motor InterfaceSection 2.4: Using User-DefinedSPI 2-21Part 2: Interfacing and Configuration List Of FiguresPart 1: Hardware Specifications AppendicesPart 2: Interfacing and Configuration List of TablesPart 1: Hardware Specifications AppendicesGETTING STARTED Connecting AC PowerConnect Opto Power and Logic Inputs MDriveAC Plus MicrosteppingMotion Settings DialogInput Settings Dialog Connecting Parameter Setup CableInstall the IMS SPI Motor Interface Figure GS.2: MDriveAC Plus CDmICROSTEPPING PART HARDWARE SPECIFICATIONSExcellence in Motion TM Page Intentionally Left Blank Relevant to Firmware VersionSECTION ConfiguringFeatures and Benefits Introduction to the MDrive34AC Plus Microstepping20 Microstep Resolutions up to Thermal Specifications General SpecificationsElectrical Specifications I/O SpecificationsMotor Specifications Setup ParametersMDriveAC Plus Microstepping Setup Parameters DefaultConnectors Mechanical SpecificationsDimensions in Inches mm Control KnobNEED A CABLE? Pin Assignment and Descriptionavailable to interface to the 19-PinM23 Connector The following cordset isPin # Pin Assignment - P1 I/O, SPI and EncoderConnections FunctionOptions and Accessories Outside: Pins 1Inside: Pins 13 - Features and Benefits Introduction to the MDrive42AC Plus MicrosteppingConfiguring Motor, Power Supply, and Drive Electronics20 Microstep Resolutions up to I/O Specifications Electrical SpecificationsThermal Specifications Communications SpecificationsDefault Setup ParametersMDriveAC Plus Microstepping Setup Parameters Table 1.4.1: Setup ParametersConnectors Mechanical SpecificationsDimensions in Inches mm P1 P3NEED A CABLE? available to interface to the 19-PinM23 ConnectorPin Assignment and Description The following cordset isPin # Pin Assignment - P1 I/O, SPI and EncoderConnections FunctionPin Pin Pin Outside: Pins 1Inside: Pins 13 - Internal Encoder Options and AccessoriesParameter Setup Cable and Adapter Control KnobSection 2.3: Using the IMS SPI Motor Interface PART INTERFACING AND CONFIGURINGSection 2.2: Connecting SPI Communications Section 2.4 Using User-DefinedSPIPage Intentionally Left Blank Relevant to Firmware VersionOptically Isolated Logic Inputs Isolated Logic Input Pins and ConnectionsLogic Interface and Connection MD-CS10x-000Wire Color ReferenceDirection Isolated Logic Input CharacteristicsStep Clock QuadratureUP/DOWN CW/CCW TIMING STEP/DIRECTION TIMINGQUADRATURE TIMING Figure 2.1.3: Clock Input Timing CharacteristicsMicrostepping Optocoupler ReferenceMDriveACPlus Optocoupler ReferencePNP Open Collector Interface Sourcing NPN Open Collector Interface SinkingMDriveACPlus Microstepping Input Connection ExamplesFault Temperature Warning Output Switch Interface SinkingSwitch Interface Sourcing Switch Interface ExampleFigure 2.1.8 Minimum Required Connections Minimum Required ConnectionsFigure 2.1.7: Fault Output interfaced to an LED SPI Signal Overview Connecting SPI CommunicationsConnecting the SPI Interface +5 VDC OutputMicrostepping #2 SPI Pins and ConnectionsMDriveACPlus Microstepping #1 MDriveACPlus 2-11Color Coded Parameter Values Using the IMS SPI Motor Interface InstallationConfiguration Parameters and Ranges MDriveAC Plus Microstepping Setup ParametersFile View Settings ScreenIMS SPI Motor Interface Menu Options Perform File OperationHelp UpgradeRecall 2-141.MSEL: Microstep Resolution Select MSEL Microstep Resolution SelectionExit Connected/Disconnected IndicatorFactory HCDT Hold Current Delay TimeEnable Active High/Low Screen 2 I/O Settings Configuration ScreenInput Clock Filter Settings Input Clock TypeMDriveAC Plus Microstepping Fault Codes Fault IndicationIMS Part Number/Serial Number Screen 2.Serial Number: the serial number of your unit The IMS SPI Upgrader ScreenUpgrade Instructions Port Menu Initialization ScreenCommunications Port Operations Check Sum Calculation for SPI Using User-DefinedSPISPI Timing Notes SECTIONTable 2.4.1: SPI Commands and Parameters SPI Commands and Parameters2-22 Relevant to Firmware VersionSPI Communications Sequence READWrite Page Intentionally Left Blank Relevant to Firmware VersionAppendix C: Optional Cables and Cordsets APPENDICESAppendix B: Gear Boxes Appendix D: Interfacing an EncoderPage MDrive34AC Plus Microstepping Motor SpecificationsMDriveAC Plus Microstepping Motor Performance MDrive34AC – 120VACMDrive42AC Plus Microstepping Double LengthTriple Length MDrive42AC – 120VACDouble Length Motor SpecificationsSingle Length 1147 oz-in/810 N-cmSection Overview APPENDIX BMDrive with Planetary Gearbox Product OverviewCalculating the Shock Load Output Torque TAB ExampleFigure B.1: MDrive23 Torque-SpeedCurve Table B.1: Planetary Gearbox Operating Factor Weight of Conveyor Belt A-11A-12 A-13 MDrive34AC Plus2 Planetary Gearbox Parameters Planetary Gearbox for MDrive34AC Plus2A-14 PM81 Gearbox Ratios and Part NumbersPM105 Gearbox Ratios and Part Numbers Planetary Gearbox for MDrive42AC Plus2A-15 A-16 PM120 Gearbox Ratios and Part NumbersAPPENDIX C MD-CC300-000 USB to SPI Parameter Setup CableInstallation Procedure for the MX-CC300-000 Optional Cables and CordsetsA-18 A-19 Determining the Virtual COM Port VCPAdapter A-20P1 - Expanded I/O Configuration MD-CS10x-000CordsetPin Assignment and Wire Colors Function3-PinEuro AC Connector MD-CS20x-000CordsetTable C.2: Euro AC Wire Color Chart MD-CS200-000MDriveAC Plus Microstepping Pin ConfigurationAPPENDIX D Factory Mounted EncoderEncoder Signals A-24Linear Slide Option FeaturesAPPENDIX E MDrive34Plus Linear SlideMechanical Specifications A-26Specifications ScrewWARRANTY TWENTY-FOUR24 MONTH LIMITED WARRANTYOBTAINING WARRANTY SERVICE intelligent motion systems, INC Excellence in Motion