Intelligent Motion Systems MDriveAC manual Using User-Defined SPI, SPI Timing Notes

Page 48

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 48
Contents 34 TM Low Voltage Installation Information UL Application Details and Conditions of AcceptanceTable Of Contents Appendices List Of Figures List of Tables Connecting AC Power Connect Opto Power and Logic InputsMDriveAC Plus Microstepping Before You BeginConnecting Parameter Setup Cable Install the IMS SPI Motor InterfacePart Hardware Specifications Intentionally Left Blank Configuring Features and BenefitsIntroduction to the MDrive34AC Plus Microstepping Page MDrive34AC Plus Microstepping Detailed Specifications General SpecificationsSetup Parameters Single LengthMechanical Specifications Dimensions in Inches mmP1 19-Pin M23 Connector I/O and SPI Communications Pin Assignment and DescriptionPin Assignment P1 I/O, SPI and Encoder Connections Options and Accessories P3 Connector AC PowerPin Introduction to the MDrive42AC Plus Microstepping Page MDrive42AC Plus Microstepping Detailed Specifications Setup Parameters 76.2 Pin Assignment and Description Pin Assignment P1 I/O, SPI and Encoder Connections Outside Pins 1 Options and Accessories Part Interfacing Configuring Intentionally Left Blank Isolated Logic Input Pins and Connections Logic Interface and ConnectionOptically Isolated Logic Inputs Step Clock DirectionQuadrature Up/DownDirection StepChannel a Channel BOptocoupler Reference Optocoupler ReferenceInput Connection Examples Open Collector Interface ExampleFault Temperature Warning Output Switch Interface ExampleSwitch 7 Fault Output interfaced to an LED Minimum Required ConnectionsConnecting SPI Communications SPI Pins and Connections SPI Master with Multiple MDriveAC Plus MicrosteppingSPI Clock Using the IMS SPI Motor Interface Installation Configuration Parameters and RangesColor Coded Parameter Values Motion Settings Screen Read-Only Part Serial Number Screen IMS SPI Motor Interface Menu OptionsFile ViewUpgrade RecallHelp Screen 1 The Motion Settings Configuration Screen Msel Microstep Resolution SelectionConnected/Disconnected Indicator FactorySet ExitScreen 2 I/O Settings Configuration Screen Enable Active High/LowInput Clock Type Input Clock FilterFault Indication IMS Part Number/Serial Number ScreenIMS IMS Serial Number IMS SPI Upgrader Screen Upgrade InstructionsUpgrading the Firmware in the MDriveAC Plus Microstepping Initialization Screen Port MenuUsing User-Defined SPI SPI Timing NotesCheck Sum Calculation for SPI SPI Commands and Parameters MSBWrite SPI Communications SequenceIntentionally Left Blank Appendices MDriveAC Plus Microstepping Hardware Revision R121707 MDriveAC Plus Microstepping Motor Performance MDrive34AC 120VACMDrive34AC 240VAC Single LengthDouble Length Triple LengthMDrive42AC Plus Microstepping MDrive42AC 120VACOz-in/810 N-cm MDrive with Planetary Gearbox Section OverviewProduct Overview Selecting a Planetary GearboxCalculating the Shock Load Output Torque TAB FactorsReduction Ratio Nominal Output Torque Speed in Full Steps per SecondShock Load Output Torque =1.6 =1.7 =1.9System Inertia Type of SystemLead Screw Conveyor Belt Rack and PinionRotary Table Belt DriveChain Drive Figure B.6 Chain Drive System Inertia ConsiderationsPlanetary Gearbox for MDrive34AC Plus2 MDrive34AC Plus2 Planetary Gearbox ParametersPM81 Gearbox Ratios and Part Numbers Planetary Gearbox for MDrive42AC Plus2 MDrive42AC Plus2 Planetary Gearbox Parameters PM105PM105 Gearbox Ratios and Part Numbers MDrive42AC Plus2 Planetary Gearbox Parameters PM120 PM120 Gearbox Ratios and Part NumbersMD-CC300-000 USB to SPI Parameter Setup Cable Installation Procedure for the MX-CC300-000Installing the Cable/VCP Drivers Optional Cables and CordsetsFigure C.4 Hardware Update Wizard Screen Figure C.7 Hardware Update Wizard Finish Installation Determining the Virtual COM Port VCPAdapter To Controller InterfacePin Assignment and Wire Colors MD-CS10x-000 CordsetMD-CS20x-000 Cordset MD-CS201-000Pin Configuration Interfacing the Internal Differential Optical EncoderFactory Mounted Encoder Encoder Signals Differential EncoderFeatures Linear Slide OptionMDrive34Plus Linear Slide Speed-Force Limitations†Specifications Mechanical SpecificationsWarranty Excellence in Motion