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 specific block without any conditions. The format is G65 H80 Pn, where n represents the block number. For example, G65 H80 P120 will move the program execution to block N120.
Conditional transfer 1 checks if two variables are equal. If #j equals #k, it transfers to the specified block. The format is G65 H81 Pn Q#j R#k. For instance, G65 H81 P1000 Q#101 R#102 means if #101 equals #102, the program will go to block N1000.
Conditional transfer 2 checks if two variables are not equal. If #j is not equal to #k, the program moves to the target block. The syntax is G65 H82 Pn Q#j R#k. An example would be G65 H82 P1000 Q#101 R#102, which triggers a jump if #101 is not equal to #102.
Conditional transfer 3 evaluates if one variable is greater than another. If #j is greater than #k, the program jumps to the designated block. The format is G65 H83 Pn Q#j R#k. For example, G65 H83 P1000 Q#101 R#102 will trigger a transfer if #101 is larger than #102.
Conditional transfer 4 checks if one variable is less than another. If #j is less than #k, the program goes to the target block. The structure is G65 H84 Pn Q#j R#k. An example is G65 H84 P1000 Q#101 R#102, which causes a jump when #101 is smaller than #102.
Conditional transfer 5 checks if one variable is greater than or equal to another. If #j is greater than or equal to #k, the program jumps to the specified block. The format is G65 H85 Pn Q#j R#k. For instance, G65 H85 P1000 Q#101 R#102 will trigger a transfer if #101 is equal to or larger than #102.
Conditional transfer 6 checks if one variable is less than or equal to another. If #j is less than or equal to #k, the program jumps to the target block. The syntax is G65 H86 Pn Q#j R#k. An example is G65 H86 P1000 Q#101 R#102, which activates a jump if #101 is equal to or smaller than #102.
The H99 code is used to generate a programmable system (PS) alarm. When executed, it triggers an alarm with the number 500 + n, where n is a user-defined value. This feature is useful for signaling errors or special conditions during program execution.
box packaging custom, paper box with insert, color paper box, custom printed boxes, folding paper box
Zhuhai Yingwei Packing Products Co., LTD , https://www.yingweipacking.com