8 Example Application
8.3 Programming of the processing stations
"MC_CamIn"
The cam disc synchronization is started with a rising edge at the "execute"
input.
//+++ Realize machine function +++
//Function block calls
//Interpolation (if cam disc is not interpolated)
#instInterpolateCam(Cam := #CamDisc,
//Synchronous operation
#instMcCamIn(Master := #AxisMaster,
Subsequently, the internally saved output signals for the function block are also
passed on to the output parameters of the FB.
//+++ Generate output data +++
#Busy := #statBusy;
#Error := #statError;
#ErrorID := #statErrorId;
8.3.5
Application of material
At the beginning, the current parameters of the technology object used, are also
determined in the "OutputCamOperation" function block:
Positioning axis technology object:
Determination of the modulo settings of the technology object, in order to be
able to correctly calculate the position for the start of the synchronism in
relation to the position of the conveyor belt.
TOs of S7-1500(T)
Entry ID: 109743134,
V1.0,
Execute := NOT (#statCamIsInterpolated));
Slave := #AxisSlave,
Cam := #CamDisc,
Execute := #statExecute,
MasterOffset := #statMasterOffset,
SlaveOffset := 0.0,
MasterScaling := 1.0,
SlaveScaling := 1.0,
MasterSyncPosition := #statMasterSyncPosition,
SyncProfileReference := 1,
MasterStartDistance := #statMasterStartDistance,
ApplicationMode := 0,
SyncDirection := 1,
InSync => #InSync);
05/2017
43