Instruction List; Example Of S12Con Configuration - UIrobot UIM241 Series User Manual

Rs232 instruction control miniature integrated stepper motor controller (closed-loop)
Table of Contents

Advertisement

UIM241 Miniature Integrated Stepper Motor Controller(

8.8 Instruction List

The following table shows the instructions mentioned in this chapter, the detail of those
instructions is descriped at the end of the document.
Instruction Description
SCF;
SCF;
SFB;
STG;
STG;
STO;
STO;

8.9 Example of S12CON Configuration

When configuring S12CON, user needs to first fill every bit of the S12CON according to
the information provided in previous sections, and then affixes the suffix code 0000 (binary).
An example is provided below.
System Description
A reciprocating mobile platform has one ON/OFF stroke limit sensor at each end. When
the mobile table hit the sensor, a 0V presents.
Requirements:
As soon as one sensor S2 is hit, the stepper motor starts to run reversely until the
1.
table hits the other sensor S1.
As soon as S1 is hit, the stepper motor starts to run positively, until the table hits S2.
2.
Realization:
First stop the motor by sending: OFF;
1.
We are not interested in the rising edge of S2, so set S2RACT<3:0> = 0000
2.
It is required Start and Run Reversely on S2 failing edge, so, set S2FACT<3:0>
3.
=0010
Same as 2, set S1RACT<3:0> = 0000
4.
It is required Start and Run Forwardly on S1 failing edge, so, set S1FACT<3:0>
5.
=1010
Fill the S12CON with above bits, get: S12CON = 0000 0010 0000 1010 (binary)
6.
Affix the suffix-code 0000 to S12CON, get:
7.
SCFG = 0000 0010 0000 1010 0000 (binary)=0x20A0 (hex)=8352 (decimal)
Send instruction:SCFx 20A0; or SCF 8352;
8.
Set up desired speed, by sending instruction: SPD 5000;
9.
10. Burn parameters into EEPROM, by sending: STO;
11. Press any one of the limit sensors, the mobile platform will work.
12. Disconnect the user device, and restart the UIM241 controller, the system will
automatically run.
UI Robot Technology Co. Ltd.
Set sensor control configuration register η
Check sensor control configuration register
Check sensor status
Set digital input sampling mode
Check digital input sampling mode
Store motion control parameters
Bind motion control parameters to sensor edge
M4120170509EN
)
Closed-loop
Page
86
87
88
92
93
94
95
Page 45

Advertisement

Table of Contents
loading

This manual is also suitable for:

Uim24102Uim24108Uim24104

Table of Contents