VMIVME-4140-011 Single-axis return to zero 2- Pulse return to zero programming introduction: Stepper motor (servo motor)
VMIVME-4140-011 Motion control is mainly applied to control stepper motors and servo motors, such as stepper motors in
Run, no matter how you run it, and finally bring it back to the “0” position of the absolute position,
This way is what we call the pulse back to zero, and it is necessary to use the motion instruction in single-axis motion
Absolute operation mode. 【 Control requirements 】
Control a stepper motor motion positive and negative rotation, motor drive subdivision is 2000 (electronic gear ratio is
1:1).
VMIVME-4140-011 To the start switch X0 a signal, the stepper motor in increments (on the basis of the existing pulse increase
After the motor is stopped, invert 2 laps in an incremental manner and isoelectric
After the machine stops, turn 1 circle in the absolute (pulse position specified by the coordinate) and wait for the motor
Stop, and then give the sensor X1 (pulse back to zero signal) a communication number to realize the stepper motor pulse back
Zero. 【 Action analysis 】
Start the switch to the input signal, is to add an instruction waiting for input, in the addition of single-axis motion
Instruction, incremental forward running 5 laps, that is, the displacement value is 2000×5=10000, the motor stops,
Add single axis wait instruction;
VMIVME-4140-011 The motor is incremented to reverse 2 turns and add the single-axis motion instruction, that is, the displacement value is 2000×
2=4000, the motor stops, and then add a single axis to wait for the command.
The motor absolutely turns 1 circle, add the single axis motion instruction, the operation mode is absolute, and the displacement value is
2000 times 1=2000.
VMIVME-4140-011 Wait for sensor X1 to have a signal, the motor pulse back to zero, add wait for input instructions, and then add
Single axis motion command, return to the “0” point position with absolute operation mode. 【 Control Flow chart 】
According to the action analysis, each action is an instruction, and each instruction is in the form of a flow chart
Connect.
Attached is wechat pic_20240511082217.jpg