Official GSK Agents in South Africa
Tel: +27 11 626 2720, [email protected]
GSK218MC Series Machining Center CNC System PLC&Installation Connetion Manual
138
V
o
lume
III Function
CHAPTER NINE PROGRAMMING CODE
9.1 User Macro Program
Brief
It is very essential to perform the same operation repeatedly for the subprogram, but the
variable, arithmetic, calculation, logic operation and condition branch can be used for the
user macro program function, which is very easy to develop the current program. The
machining program can be called the user macro program by a simple code, as the calling of
the subprogram.
Fig. 9-1-1
It means that one function is programmed by the user macro, which becomes the general
function. Namely, the data variable (changeable and undefined data) can be compiled the program.
For example, the user macro program can be used for the composed technology.
Signal User macro program input signal
UI000~UI015
(
G054
,
G055
)
[Type] Signal input
[Function] Do not offer any function to the controllable unit. These signals are regarded
as one of the system variable, which is read by the macro program, and it is
used for the interface signal between macro program and PLC.
The corresponding system variables of these signals are shown below:
Table 9-1-1
Signal
Address
Variable
UI000 G54#0 #1000
UI001 G54#1 #1001
UI002 G54#2 #1002
UI003 G54#3 #1003
UI004 G54#4 #1004
UI005 G54#5 #1005
UI006 G54#6 #1006