Macro Function Instruction List
G Code
H Code
Features
Definition
G65
H80
Unconditional Transfer
GO TO n
G65
H81
Conditional Transfer 1
IF #j = #k, GOTO n
G65
H82
Conditional Transfer 2
IF #j ≠#k, GOTO n
G65
H83
Conditional Transfer 3
IF #j > #k, GOTO n
G65
H84
Conditional Transfer 4
IF #j < #k, GOTO n
G65
H85
Conditional Transfer 5
IF #j ≥ #k, GOTO n
G65
H86
Conditional Transfer 6
IF #j ≤ #k, GOTO n
G65
H99
Generate PS Alarm
PS alarm number 500 + n appears
Unconditional transfer is used to jump directly to a specified block number without any conditions. The format is: G65 H80 Pn, where "n" represents the block number. For example, G65 H80 P120 will immediately move the program execution to block N120.
Conditional Transfer 1 checks if two variables are equal. The syntax is: G65 H81 Pn Q#j R#k. If #j equals #k, the program jumps to block n. Otherwise, it continues to the next line. Example: G65 H81 P1000 Q#101 R#102 means if #101 equals #102, go to N1000.
Conditional Transfer 2 checks if two variables are not equal. The format is: G65 H82 Pn Q#j R#k. If #j is not equal to #k, the program moves to block n. Otherwise, it proceeds to the next instruction. For instance, G65 H82 P1000 Q#101 R#102 means if #101 ≠#102, jump to N1000.
Conditional Transfer 3 compares if one variable is greater than another. The command is: G65 H83 Pn Q#j R#k. If #j > #k, the program transfers to block n. Otherwise, it continues with the next step. An example is G65 H83 P1000 Q#101 R#102, which means if #101 > #102, go to N1000.
Conditional Transfer 4 checks if one variable is less than another. The format is: G65 H84 Pn Q#j R#k. If #j < #k, the program goes to block n. Otherwise, it executes the next line. For example, G65 H84 P1000 Q#101 R#102 indicates that if #101 < #102, jump to N1000.
Conditional Transfer 5 checks if one variable is greater than or equal to another. The format is: G65 H85 Pn Q#j R#k. If #j ≥ #k, the program jumps to block n. Otherwise, it proceeds to the next instruction. For example, G65 H85 P1000 Q#101 R#102 means if #101 ≥ #102, go to N1000.
Conditional Transfer 6 checks if one variable is less than or equal to another. The syntax is: G65 H86 Pn Q#j R#k. If #j ≤ #k, the program moves to block n. Otherwise, it continues with the next line. An example is G65 H86 P1000 Q#101 R#102, meaning if #101 ≤ #102, go to N1000.
The PS alarm function (H99) is used to generate a specific alarm message during program execution. When activated, it displays an alarm number of 500 + n, where n is the value provided in the command. This is useful for error handling and system monitoring in CNC operations.
cosmetic label,custom cosmetic labels,cosmetics private label,skincare labels,cosmetic product labels
Zhuhai Yingwei Packing Products Co., LTD , https://www.yingweipacking.com