
B–61404E/08
15. CUSTOM MACRO APROGRAMMING
295
(a)Unconditional branch
G65 H80 Pn ; n : Sequence number
[Example] G65 H80 P120 ; (Diverge to N120)
(b)Conditional divergence 1 #j. EQ. #k (+)
G65 H81 Pn Q#j R#k ; n : Sequence number
[Example] G65 H81 P1000 Q#101 R#102 ;
#101=#102, go to N1000
#101
0#102, go to next
(c)Conditional divergence 2 #j. NE. #k (0)
G65 H82 Pn Q#j R#k ; n : Sequence number
[Example] G65 H82 P1000 Q#101 R#102 ;
#101
0#102, go to N1000
#101=#102, go to
(d)Conditional divergence 3 #j. GT. #k (u)
G65 H83 Pn Q#j R#k ; n : Sequence number
[Example] G65 H83 P1000 Q#101 R#102 ;
#101 u #102, go to N1000
#101 x #102, go to next
(e)Conditional divergence 4 #j. LT. #k (
<)
G65 H84 Pn Q#j R#k ; n : Sequence number
[Example] G65 H84 P1000 Q#101 R#102 ;
#101 t #102, go to N1000
#101 y #102, go to next
(f) Conditional divergence 5 #j. GE. #k (y)
G65 H85 Pn Q#j R#k ; n : Sequence number
[Example] G65 H85 P1000 Q#101 R#102 ;
#101 y #102, go to N1000
#101 t #102, go to next
(g)Conditional divergence 6 #j. LE. #k (x)
G65 H86 Pn Q#j R#k ; n : Sequence number
[Example] G65 H86 P1000 Q#101 R#102 ;
#101 x #102, go to N1000
#101 u #102, go to next
(h)P/S alarm occurrence
G65 H99 Pn ; Alarm No. : 500
+n
[Example] G65 H99 P15 ; P/S alarm 515 occurrence
NOTE
1 If positive numbers were designated as sequence numbers
at branch designations, they are searched forward first and
then, backward. If negative numbers were designated, they
are searched backward first and then, forward.
2 Sequence number can also be designated by variables.
(Example) G65 H81 P#100 Q#101 R#102 ;
When conditions are satisfied, processing
branches to the block having the sequence
number designated with #100.
D Branch instruction