![FATEK FBs-CBE Manual Download Page 212](http://html.mh-extra.com/html/fatek/fbs-cbe/fbs-cbe_manual_546538212.webp)
Advanced Function Instruction
7 -4 8
FUN 65
LBL
LABEL
FUN 65
LBL
S : Alphanumeric, 1~6 characters
z
This instruction is used to make a tag on certain address within a program, to provide a target address for
execution of JUMP, CALL instruction and interrupt service. It also can be used for document purpose to
improve the readability and interpretability of the program.
z
This instruction serves only as the program address marking to provide the control of procedure flow or for
remark. The instruction itself will not perform any actions; whether the program contains this instruction or not,
the result of program execution will not be influenced by this instruction.
z
The label name can be formed by any 1
~
6 alphanumeric characters and can’t be duplicate in the same
program. The following label names are reserved for interrupt function usage. These “reserved words”, can’t
be used for normal program labels.
Reserved words
Description
X0+I
~
X15+I
(
INT0
~
INT15
)
X0
−
I
~
X15
−
I
(
INT0
−
~
INT15
−
)
labels for external input (X0
~
X15) interrupt
service routine.
HSC0I
~
HSC7I
labels for high speed counter HSC0
~
HSC7
interrupt service routine.
1MSI
(
1MS
)、
2MSI
(
2MS
),
3MSI
(
3MS
),
4MSI
(
4MS
),
5MSI
(
5MS
),
10MSI
(
10MS
),
50MSI
(
50MS
),
100MSI
(
100MS
)
Labels for 8 kinds of internal timer interrupt
service routine.
HSTAI
(
ATMRI
)
Label for High speed fixed timer interrupt
service routine.
PSO0I
~
PSO3I
Labels for the pulse output command
finished interrupt service routine.
Only the interrupt service routine can use the label names listed on above table, if mistaken on using the
reserved label on the normal subroutine can cause the CPU fail or unpredictable operation.
The label of following diagram illustration served only as program remarks (it is not treated as a label for call
or jump target). For the application of labeling in jump control, please refer to JMP instruction for
explanation. As to the labeling serves as subroutine names, please refer to CALL instruction for details.
65
LBL
PGM1
Program 1
65
LBL
PGM2
Program 2