Application of Cycling Calling by Siemens

Author:My life circle Time:2022.09.18

适用于西门子系统

Suitable for Ximen subsystem

In the processing procedure, the segment that needs to be used for circulation is often encountered. Generally, it will not be repeatedly written into the same program segment.

example 1:

N10 AA:

N20 G0 G64 D1 Z = 10 M3 S600

N30 G1 ~

N40 G1 ~

N50 g0 g60 z = 10 d1

N60 BB:

N70 g0 x100 y80

N80 Repeat Aa BB

N90 g0 x200 y80

N95 Repeat Aa BB

N100 m5 ...

Analysis:

1. AA and BB are casual names. Generally, letters or letters can be added with numbers, but they need to add ":", otherwise the default is code, unavailable.

2. N20 to N50 is the processing program. After repeat, AA and BB are connected, which means to repeat the processing content between AA and BB, which is equivalent to copying the content of AA and BB and then executed again. Pay attention to the space between AA and BB.

Example 2:

N10 AA:

N20 G0 G64 D1 Z = 10 M3 S600

N30 G1 ~

N40 G1 ~

N50 g0 g60 z = 10 d1

N60 endLabel:

N70 g0 x100 y80

N80 Repeat AA

N90 g0 x200 y80

N95 Repeat AA

N100 m5

Analysis:

EndLabel means ending the label (note that there must be a colon), that is, the content of the AA group is over. In the subsequent program segment, the Repeat AA is the content of the label of the AA (N20 to N50).

Well, I believe that through the above explanation, we should have a certain understanding of the usage of Endlabel and Repeat. Applying in simple programming in the future will make the program simple and clear. If you have any questions, you can comment or leave a message in time. Let's discuss together. Progress together, thank you for your support!

- END -

Huawei enrolled online car rental market?Looking forward to the disruption, the effect depends on the intensity!

Wen | Stupid snakeFrom the perspective of related data, compared with European and...

iPhone 14 is released today. The standard version and PRO version of the sales are polarized. Can emergency "add orders" boost the industrial chain?

21st Century Business Herald reporter Zhang Sainan Shanghai reportOn September 16, the three iPhone 14 series models were officially released (iPhone 14 Plus will be released on October 7), and the ne