JZGKCHINAIndustrial Control Technology Sharing Platform
Open the following files
- SoMachine: V4.3
- LMC058FW: 4.0.3.6
- LMC058SW: 4.0.3.7
- LXM28FW: 1.6.2.0
- LXM28SW: 1.75.17
Origin return function block, as follows:


1

1: After the origin return is started, the motor runs towards the reverse limit direction (first speed segment). When the reverse limit is encountered, the motor runs in the opposite direction, and after detecting the falling edge of the reverse limit, it runs to the motor Z phase stop (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the forward limit is encountered, the motor stops, and the servo driver displays AL015 alarm.


1

2: After the origin return is started, the motor runs towards the forward limit direction (first speed segment). When the forward limit is encountered, the motor runs in the opposite direction, and after detecting the falling edge of the forward limit, it runs to the motor Z phase stop (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the reverse limit is encountered, the motor stops, and the servo driver displays AL014 alarm.


1

7: After the origin return is started, the motor runs towards the forward limit direction (first speed segment). When the origin signal rising edge is detected, the motor runs in the opposite direction, and after detecting the origin signal falling edge, it runs to the motor Z phase stop (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the forward limit is encountered, the motor runs in the opposite direction (first speed segment), and after detecting the origin signal falling edge, it runs to the motor Z phase stop (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the reverse limit is encountered, the motor stops, and the servo driver displays AL014 alarm.


1

8: After the origin return is started, the motor runs towards the forward limit direction (first speed segment). When the origin signal rising edge is detected, the motor runs in the same direction to the motor Z phase stop (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the forward limit is encountered, the motor runs in the opposite direction. After detecting the origin signal falling edge, the motor runs in the opposite direction (first speed segment). After detecting the origin signal rising edge, the motor runs in the same direction to the motor Z phase stop (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the reverse limit is encountered, the motor stops, and the servo driver displays AL014 alarm.


1

9: After the origin return is started, the motor runs towards the forward limit direction (first speed segment). When the origin signal rising edge is detected, the motor runs in the same direction. After detecting the origin signal falling edge, the motor runs in the opposite direction (first speed segment). After detecting the origin signal rising edge again, the motor runs in the same direction to the motor Z phase stop (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the forward limit is encountered, the motor runs in the opposite direction (first speed segment). After detecting the origin signal rising edge, it runs to the motor Z phase stop (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the reverse limit is encountered, the motor stops, and the servo driver displays AL014 alarm.


1

10: After the origin return is started, the motor runs towards the forward limit direction (first speed segment). When the origin signal rising edge is detected, the motor runs in the same direction to the motor Z phase stop (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the forward limit is encountered, the motor runs in the opposite direction (first speed segment). After detecting the origin signal rising edge, the motor runs in the opposite direction. After detecting the origin signal falling edge, the motor runs in the same direction to the motor Z phase stop (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the reverse limit is encountered, the motor stops, and the servo driver displays AL014 alarm.


1

11: After the origin return is started, the motor runs towards the reverse limit direction (first speed segment). When the origin signal rising edge is detected, the motor runs in the opposite direction, and after detecting the origin signal falling edge, it runs to the motor Z phase stop (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the reverse limit is encountered, the motor runs in the opposite direction (first speed segment). After detecting the origin signal rising edge, the motor runs in the same direction. After detecting the origin signal falling edge, it runs to the motor Z phase stop (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the forward limit is encountered, the motor stops, and the servo driver displays AL015 alarm.


1

12: After the origin return is started, the motor runs towards the reverse limit direction (first speed segment). When the origin signal rising edge is detected, the motor runs in the same direction to the motor Z phase stop (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the reverse limit is encountered, the motor runs in the opposite direction. After detecting the origin signal rising edge, the motor runs in the same direction. After detecting the origin signal falling edge, it runs to the motor Z phase stop (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the forward limit is encountered, the motor stops, and the servo driver displays AL015 alarm.


1

13: After the origin return is started, the motor runs towards the reverse limit direction (first speed segment). When the origin signal rising edge is detected, the motor runs in the same direction, and after detecting the origin signal falling edge, the motor runs in the opposite direction (first speed segment). After detecting the origin signal rising edge again, the motor runs in the same direction to the motor Z phase stop (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the reverse limit is encountered, the motor runs in the opposite direction (first speed segment). After detecting the origin signal rising edge, the motor runs in the same direction to the motor Z phase stop (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the forward limit is encountered, the motor stops, and the servo driver displays AL015 alarm.


1

14: After the origin return is started, the motor runs towards the reverse limit direction (first speed segment). When the origin signal rising edge is detected, the motor runs in the same direction to the motor Z phase stop (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the reverse limit is encountered, the motor runs in the opposite direction (first speed segment). After detecting the origin signal rising edge, the motor runs in the opposite direction. After detecting the origin signal falling edge, the motor runs in the same direction to the motor Z phase stop (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the forward limit is encountered, the motor stops, and the servo driver displays AL015 alarm.


1

17: After the origin return is started, the motor runs towards the reverse limit direction (first speed segment). When the reverse limit is encountered, the motor runs in the opposite direction, and when the falling edge of the reverse limit is detected, it stops (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the forward limit is encountered, the motor stops, and the servo driver displays AL015 alarm.


1

18: After the origin return is started, the motor runs towards the forward limit direction (first speed segment). When the forward limit is encountered, the motor runs in the opposite direction, and when the falling edge of the forward limit is detected, it stops (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the reverse limit is encountered, the motor stops, and the servo driver displays AL014 alarm.


1

23: After the origin return is started, the motor runs towards the forward limit direction (first speed segment). When the origin signal rising edge is detected, the motor runs in the opposite direction, and when the falling edge of the origin signal is detected, it stops (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the forward limit is encountered, the motor runs in the opposite direction (first speed segment). After detecting the origin signal rising edge, the motor runs in the same direction to the motor Z phase stop (second speed segment). The current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the reverse limit is encountered, the motor stops, and the servo driver displays AL014 alarm.


1

24: After the origin return is started, the motor runs towards the forward limit direction (first speed segment). When the origin signal rising edge is detected, it stops, and the current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the forward limit is encountered, the motor runs in the opposite direction (first speed segment). After detecting the origin signal rising edge, the motor runs in the same direction, and after detecting the origin signal falling edge, the motor runs in the opposite direction (second speed segment). After detecting the origin signal rising edge again, it stops, and the current position is set as the Position value of the MC_Home_LXM28 function block (pulse count); when running, if the reverse limit is encountered, the motor stops, and the servo driver displays AL014 alarm.

1

25: After the origin return is started, set the Position value (pulse count) of the MC_Home_LXM28 function block to the current position
-
Forward limit: P2-1x parameter: 16#0x23; alarm when the driver displays: AL015
-
Reverse limit: P2-1x parameter: 16#0x22; alarm when the driver displays: AL014
In the above origin return modes, if limits and origin signals are used, they must be set through DI points; otherwise, the error code of the function block when executing the function block will be 75.


Author Introduction
Li Zhen
Expert in Motion Control Products
Schneider Electric (China) Co., Ltd.
OEM Technical Center of Industrial Automation Business Unit
Independently wrote “120 Examples of Schneider Electric SoMachine Controller Application Skills“
Participated in writing “Schneider EcoStruxure Machine Controller Application and Programming Advanced“


Previous Highlights



1.Smart200&V90 Servo System:15 lessons updated
2.B&R Live Courses: 30 lessons updated
3.PKS Quick Start: Beginner & Intermediate – All
4.Classic Open Course in Industrial Control:35 lessons updated5.New Product Recommendations: 10 lessons updated