SoftwareDescription
FlexibleAutomation
5−5
5.1.2 Program Modules PM
The program modules contain program segments which are related with
respect to their technological or functional features, e.g. program mod
ules for tool changers, transfer units, etc. From a program module, other
program modules and data modules can be called.
Due to the possibility of parametrization, these PMs can be written inde
pendent of the actual operands. During module call, the current parame
ters for the respective processing operation are passed to the program
modules.
Possible parameter types are:
D Input parameters: operands, constants
D Output parameters: operands
A total number of 512 Program Modules are available. Module length is
256 instructions and can be expanded if necessary.Program modules
and organizational modules combined allow a nesting depth of 32 mod
ules.
A program module is normally terminated with end of module (EM). If
end of program (EP) is used as the terminating command, the program is
aborted and an input/output cycle is started.
PM1
ControllerOn
A
AN
CM
CM
−STON
−STOFF
DM1
PM10
EM
DM1
S
ControllerOff
A
O
R
EM
−STOFF
−NOTOFF
−XSTON
−XSTON
PM1
CM
P0=
P1=
P2=
P3=
P4=
CM
P0=
P4=
EM
B
B
B
B
B
B
B
PM12,5
I3.0
I3.1
I3.2
I3.3
O1.6
PM12,5
I2.0
O1.7
.
.
.
.
.
.
.
.
.
.
A
A
A
O
=
EM
B
B
B
B
P0
P1
P2
P3
P4
A
A
A
O
=
EM
B
B
B
B
P0
P1
P2
P3
P4
PM12
PM10
NOP0
Fig.5−3Example of programming Program Modules