cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Running a SMC3 stepper controller with ctrlX CORE

CodeWasi
Established Member

Running a SMC3 stepper controller with ctrlX CORE

How can I run a SMC3 stepper motor with a ctrlX CORE?

Tags (2)
1 REPLY 1
CodeShepherd
Community Moderator

Re: Running a SMC3 stepper controller with ctrlX-CORE

SMC3 (Stepper Motor Controller from Cannon-Automata)

Purpose of the paper:

  • Discover the configuration steps to run the external stepper motor controller as IO Device.
  • Realize the usage of SMC-internal interpolation for positioning - and velocity mode.
  • Note that the ctrlX runs just the MDT/AT communication without support on ServiceDataObjects by CoE.

 

Preparation:

  1. Connect the SCM3-Ecat device with the ctrlX (XF24-EcatM) directly or connect to the already existing line with other Ecat-Slave(s).
  2. Start the ctrlX-IOEngineering. Add the corresponding SMC3 XML device-description-file to the device database.
  3. Scan the network and add the SCM3 to the configuration, Download the configuration into the ctrlX.
  4. From now, the data_containers (MDT/AT) related to the SMC3 card are registered by the datalayer and access is provided in general.
  5. Either use our website to access or optional any other Rest-client like Yarc/Rested/…

 

Please note that the SMC3 provides the communication profile CoE, which the ctrlX-EcatMaster is not yet supporting. Hence, we can operate just via the standard MDT/AT cyclic communication and we cannot run Service-data-objects using acyclic communication. For instance, reconfiguring the SMC3 is not feasible with our Ecat-Master – the related SDO functionality is planned but not yet implemented.
In case changes on the SMC-parameters are needed, the access has to be provided by an alternative method. Imagine running during setup phase a 3rd party EcatMaster providing CoE.


Simply command the SMC3 in the corresponding ‘Mode of Operation’ ( -> 1 – pp mode positioning) and operate the ‘ControlWord’  (like described below) should bring the stepper in action.

A HOMING message is part of the MDT-mapping. With respect to the variety of homing options further details are available in the attached SMC3 datasheet.

 

Navigate the datalayer tree and enter the data directly in the website or operate the data-point using the corresponding url/payload by any Rest-client for instance.

grafik.png

  1. OPMode
    Mode of Operation = 1dez (ppMode Positioning)
    Mode of Operation = 3dez (ppMode Velocitiy)

  2. ControlWord
    Example - details on datasheet
    decimal-value
    Enable Power bit so/ev/qs/eo 15
    Rel. positioning (abs/rel bit) +64 79
    Change set immediately        +32 111
    New Setpoint                        +16 127

grafik.png

 

REMARK!

In case of operating the SMC and the stepper is not reacting like expected without signing Error-flag it might be, that the SMC is running with configured microstep. Means - every set is subdivided by 256 microsteps. Keep in mind that 1 revolution becomes then 200 * 256 = 51200 !

It may be hard to realize that the stepper is operating correctly – since the movement is too small to recognize by watching.

 

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist