Manual: Prepared Solution 9300 Servoplc / Ecsxa
Manual: Prepared Solution 9300 Servoplc / Ecsxa
Manual: Prepared Solution 9300 Servoplc / Ecsxa
Manual
Prepared Solution
FlyingSaw
9300 ServoPLC / ECSxA
Important note:
This software is supplied to the user as described in this document. All risks resulting from its quality or use
remain the responsibility of the user. The user must provide all safety measures against possible incorrect
operation.
We do not take any liability for direct or indirect damage, e.g. profit loss, order loss, or any loss regarding
business.
The versions for the project file and the application library for the Prepared Solution are
displayed in the following format using codes C3999/001 and C3999/003:
Code Possible settings: Comment
Default Selection
C3999 - 0 ... {1} ... 99.99 Display code: version for the Prepared Solution (subcode 1:
1 project file, subcode 2: application library 1, subcode 3:
2 application library 2):
3 The numerals one and two define the main version
The numerals three and four define the subversion
The numerals five and six define the service-pack
The files are installed automatically by the setup provided on the product CD.
Parameterisable Programmable
variant variant
Predefined interfaces
The system is configured entirely using codes (parameter interface). The function of the
individual codes for setting parameters is listed in chapter 11.3.1.
When the parameterisable variant is used, the following Lenze software tools are required:
The configuration of the signal flow beyond the core functionality in the case of the
programmable variant is left to the user, as is the changing/modification/extension of existing
sub-routines in/to the Prepared Solution (e.g. error handling). The interface between the sub-
routines that contain the core functionality and the application sub-routines as well as the
system blocks is similar to the templates for the software packages and uses global variables.
The significance of the global interface variables is listed in chapter 11.2.
TIP!
The core functionality of the Prepared Solution cannot be changed by the user in either variant.
In this way it is ensured that unintentional malfunctions cannot be programmed or monitoring is
disabled.
When the programmable variant is used, the following Lenze software tools are required:
Keywords Courier bold ...starts with FUNCTION and ends with END FUNCTION.
Do not use the Online Controller inhibit command for an emergency stop via
the PC, as this command only arrives at the controller with a delay.
Tip TIP!
If you keep the mouse pointer over a symbol on the toolbar for a short time, the
corresponding command is indicated in a "tooltip".
Variable names
The conventions used by Lenze for the variable names of its system blocks, function blocks and
functions are based on the so-called Hungarian Notation. This notation makes it possible to
identify the most important properties (e.g. the data type) of the corresponding variable by
means of its name, e.g. DIGIN_bIn1_b.
You will find information about the conventions in the appendix of the DDS Online
documentation “Introduction to IEC 61131-3 programming”.
Parallel slave
A parallel slave is an axis which is synchronised from standstill to a master axis travelling with the constant
speed vm. The synchronous speed vFS is reached at a previously determined position (master slave position,
cutting position).
In the illustration below, the difference between a "parallel flying saw" and a "diagonal flying saw" is shown.
The relationship between the speeds can be seen in the vector diagram. If the cutting angle is α=90, the
vectors are on top of each other. In this case, the speeds are equal, i.e. the synchronous speed of the flying
saw corresponds to the master speed of the material path. This Prepared Solution only includes the "parallel
flying saw".
vFS
vSaw v Material
v Saw
vBahn
vMaterial
Circular saw
i M
Circular saw carriage vFS
i
“Flying saw“ drive
M
Carriage drive
Master drive
Master frequency
connection
Tool
Gearbox
Feed rolls
The overall installation always includes a feeding process, in this case a feed roll, a system for
detecting material speed and, if necessary, a transport process for the processed material after the
flying saw.
Task
Filling moving containers
The picture above shows a "Flying saw" application. Continuous material such as extruded material has to
be cut to length. As soon as the cutting process starts, the saw is synchronised to the speed of the material
to be cut to length. During the cutting process, the saw runs in synchronism.
At the end of the process, the saw moves back to its initial position.
The synchronising process either started by cutting mark or cutting length control can be synchronous or
oversynchronous:
• Oversynchronous:
The "Flying saw" moves faster than the material/belt during the
synchronising process. It starts exactly at the cutting position and
catches up with all increments made during the synchronising
process. Then the saw axis has achieved angular and rotational
speed synchronism and switches the synchronised signal. Then the
machining process can be started.
line-speed
Material- / Bahn-
geschwindigkeit
Sägegeschwindig-
sync-speed
keitsverlauf
t
synchronous-
Synchron-Signal
signal
t
• Synchronous:
The "Flying saw" never moves faster than the material. For this
purpose an offset is calculated online and the "Flying saw" therefore
starts before the cutting position reaches the saw. The advantage
this mode offers for synchronisation is primarily that maximum
process speeds for the synchronous axis cannot be exceeded. This
situation could be the case when the master speed for the material
to be machined is already very high and the synchronous axis would
hit the maximum speed limit trying to catch up with the cutting point.
Material- / Bahn-
line-speed
geschwindigkeit
Sägegeschwindig-
sync-speed
keitsverlauf
t
synchronous-
Synchron-Signal
signal
t
V
line speed
V
sync speed
reverse speed
start trigger
(length-
calculator)
t
The trigger for the saw axis is the start signal (positive edge), in the above example triggered by
the internal length calculator. The saw axis then starts and is in synchronism on reaching the
line speed. An "oversynchronous" movement is not necessary, as the saw axis is started earlier
using a calculated offset.
The same applies to starting using a mark on the material.
V
line speed
V
sync speed
reverse speed
start trigger
(length-
calculator)
t
The trigger for the saw axis is the start signal (start trigger), in the diagram above triggered by
an internal length calculator. The saw axis then starts and catches up all increments that have
passed. After the "oversynchronous" movement the saw is synchronous. Unlike the
"synchronous" synchronisation the axis starts immediately at the cutting mark and catches up all
increments to achieve synchronicity.
Switching between synchronous and oversynchronous operation is performed via the
application control word using the Synchronisation mode bit (default bit 05). Here setting the bit
means that the axis is synchronised synchronously. If the bit is not set the axis moves
oversynchronously during the synchronisation movement.
target-length
llength-integrator
start-signal
The length calculator integrates the material speed registered by the measuring wheel or by a
digital frequency coupling. The integral, designated with length integrator in the above
illustration, starts at zero and runs against the setpoint length entered. If the setpoint length is
reached, a Boolean signal (start signal) is generated and the flying saw starts the synchronising
process. Meanwhile the length integrator is reset to the value zero, so that the next length can
be calculated.
line-speed
synchronize back-profile
saw-speed
cut-ready
The above diagram shows a mark-controlled flying saw. The start signal for a synchronising
process then is not generated by the length calculator as in the case of length-controlled
operation, but it is directly cut on the material on marks. The marks are read in the drive via
touch probe and the motion process is started, as illustrated above.
V
line-speed
Material- / Bahn-
geschwindigkeit
V
Sägegeschwindig-
saw-speed
keitsverlauf
t
Ausgang
signal „axis-synchron“
„Synchronlauf
erreicht“
Eingang
start gap
„Lücke fahren“
t
Eingang
cut ready
„Sägung
beendet“
t
Ausgang
home-pos avail
„Grundposition
erreicht“
t
Ausgang
status: gap ready
„Lücke fahren
ausgeführt“
t
Using the "make gap" function the saw carriage is briefly moved oversynchronously in relation
to the material before the saw blade is pulled out. In this way a gap forms between the cut edge
and the saw blade and marks from saw blade on the cut edge are prevented. This function is
suitable for cut edge protection for delicate material. This function can also be used for
separating the cut material.
Can the following physical requirements be taken into account in your application?
You should take into account the following basic design items in your application:
Your specific application
can be represented via a
modification of the example
¾ Free travel (distance from initial position – end position) must be sufficient so
? NO solution. that a process sequence can be performed successfully
Please contact your Lenze ¾ Maximum cut duration
YES representative. ¾ Maximum velocity of the carriage
¾ Maximum synchronisation velocity
Do you want to process in "parallel" and your process does not require "diagonal"
processing?
HMI
External
terminal
extension
Is a higher-level PLC/IPC connected via a bus system, a terminal extension (e.g. Lenze
series EPM terminal extensions) or an HMI connected using the system bus or the
automation interface (AIF)?
Machine parameters
The machine parameters define the relationship between the application measuring system and
the incremental measuring system (internal measuring system in the controller). The following
variables define the relationship between one motor revolution and a feed motion in the
application measuring system:
• Feed constant: this defines by how many application units the load moves when the drive
makes one complete revolution on the output side of the gearbox. This constant is generally
given in [units/rev].
Example: on a spindle drive the feed constant is the same as the pitch on the spindle,
scaled in [mm/revolution].
• Gearbox ratio, divided into numerator and denominator term: both the numerator and
denominator term are generally given as integers (corresponding to the number of teeth on
the gearbox stages).
• Resolution of one motor revolution: the ServoPLC internally resolves one motor revolution
into 65536 (=216) steps.
The conversion between the two measuring systems can be carried out with the knowledge of
these mechanical machine constants using the following formulae:
a) Conversion from application units [units] to incremental units [incr.]:
Zi 65536[incr. / rev]
[incr.] = [units ] ⋅ ⋅
N i mFeedConstant [units / rev]
As part of the "FlyingSaw" Prepared Solution, the mechanical machine constants are entered
using codes.
Example:
A position is to be converted from [units] = 123.4567mm into an incremental value. The
mechanical system for this example has the following characteristics:
TIP!
When the parameterisable variant of the "Flying saw" Prepared Solution is used, the conversion
of variables in application units into incremental variables is effected automatically.
The machine parameters are set in the user codes using a parameter setting tool (e.g. GDC or
DDS).
On completion of the cut, a gap can be generated between the piece cut and the length of
material using this input. For this purpose the saw carriage is briefly accelerated and in this way
generates the gap required by the operator. The size of the gap can be adjusted. The "Gap
done" output signals when the separation is complete.
The gap is started using the application control word with the Start make gap bit (default bit 08).
This input must receive a signal as soon as a cut or processing operation has been completed
mechanically. This feedback triggers the saw carriage return cycle to its initial position. The
direction of the signal (rising or falling edge) can be adjusted. If there is no signal, the saw blade
moves to the rear software limit switch and triggers an alarm. Each "Cut done" signal
increments the built-in cut counter
The cut done signal is triggered using the application control word with the Cut done signal bit
(default bit 07).
A rising edge on this input starts a cutting process immediately, independent of the cutting
length set. The next cut again is the same as the pre-selected length, unless an immediate cut
is triggered again. This function for instance makes it possible to cut out poor sections of
material during production is running. The built-in scrap counter is incremented with each
immediate cut.
A top cut is started using the application control word with the Trigger top cut bit (default bit 06).
2.15 Homing
After the machine is switched on, the zero point for this measuring system must be made known
to the drive (home position). As the home position is mostly defined by specific sensors (e.g.
home proximity switches, limit switches or the zero pulse from the motor feedback system), it is
necessary to move past these sensors as part of homing. During this process the homing mode
defines the traversing direction for the homing and the type of signals evaluated. The following
homing modes can be selected:
• Homing mode 0:
The drive rotates in positive direction (clockwise rotation) until the negative edge from the
homing switch is detected. The next zero pulse from the motor feedback system or the next
touch probe signal on the digital input allocated defines the home position (machine zero
point).
If the home position does not represent the zero point of the absolute measuring system
used, the home position can be defined in relation to the zero point for the measuring system
using an offset (machine zero distance, C3227/000). After the homing has been completed,
the drive stays on the position 0.000[units]:
Home position
Homing speed
C3227/000
Control signal
"Perform homing"
Status signal
"Homing done"
In the example shown above, the home position represents a negative value in relation to
the measuring system zero point, because after the acquisition of the zero pulse/touch probe
signal the drive continues to move in the positive direction to a position 0.0000[units].
• Homing mode 1:
(like homing mode 0, but negative traversing direction)
TIP!
Instead of the zero pulse for the feedback system, it is also possible to define a touch probe
signal as the signal for the homing, derived from digital input E4 (however, this is not
common in mode 0 and 1).
Homing mode 8:
The drive rotates in the positive direction (clockwise rotation) until a zero pulse from the
motor feedback system is detected or a touch probe signal is detected on the related digital
input. This signal defines the home position (machine zero point).
If the home position does not represent the zero point of the absolute measuring system
used, the home position can be defined in relation to the zero point for the measuring system
using an offset (machine zero distance, C3227/000). After the homing has been completed,
the drive stays on the position 0.0000[units]:
Home position
Homing speed
C3227/000
Control signal
"Perform homing"
Status signal
"Homing done"
In the example shown above, the home position represents a positive value in relation to the
measuring system zero point, because after the acquisition of the zero pulse/touch probe
signal the drive reverses and moves back to the measuring system zero position
(0.0000[units]).
• Homing mode 9:
(like homing mode 8, but negative traversing direction)
TIP!
Instead of the touch probe signal from digital input E4, it is also possible to define the zero
pulse for the feedback system as the signal for defining the homing (however this is not
common in modes 8 and 9).
If limit switches are used for the homing, it must be ensured that the drive detects a limit switch
at the latest after a traverse path of ±231-1 increments. Otherwise the homing must be started
again using a positive signal edge on the corresponding control signal.
Apart from the homing mode (C3213/000), the speed (C3242/000) for the homing and the ramp
times (C3252/000) for the homing can be set using further parameters.
Altogether the following parameters have an effect on the sequence of the homing:
TIP!
In the parameterisable variant of the flying saw the homing switch is permanently linked to
digital input 3 on the servo PLC!
C3101 750.0000 -214000.0000... {0.0001 ... 214000.0000 Entry for the acceleration
[units/s^2]} The selection relates to the entry for the machine
parameter
C3102 750.0000 -214000.0000 {0.0001 ... 214000.0000 Entry for the deceleration
[units/s^2]} The selection relates to the entry for the machine
parameter
Activated software limit positions ensure that the drive does not move past the software limit
positions under any circumstances, even if the drive is set to positions beyond the software limit
positions by the positioning control (e.g. continuous signal on manual inching, positioning to an
invalid target position, …). In these cases early braking and shutdown of the drive is initiated by
the respective software limit position.
The software limit positions are active if
• the home position for the measuring system is known (accordingly the software limit
positions are inactive during homing) and
• the positive software limit position (C3223/000) is set greater than the negative software limit
position (C3224/000).
The distance between the software limit positions must not be more than 231-1 increments.
Code Possible settings: Comments
Default Selection
C3223 3600.0000 0.0000... {0.0001 ... 214748.0000 Definition of the positive software limit
[units]} Comment: software limits are only active if the home position
for the axis is known and is not set to 0.
C3224 -3600.0000 -214748.0000... {0.0001 ... 0.0000 Definition of the negative software limit
[units]} Comment: software limits are only active if the home position
for the axis is known and is not set to 0.
TIP!
If a 0 is entered for the software limit positions, the software limit positions are deactivated.
If the drive moves to a limit switch in the negative or positive direction, then it is possible to
retract the actuated limit switch in the opposite direction by using the inching mode.
Example:
The negative limit switch (E2) has been reached and triggers the error with the number 401.
The limit switch can be retracted using the "inching positive" function and the error is reset
automatically. The axis automatically remains stationary after retracting.
The same applies to the software limit positions. The software limit position to which the drive
has moved, in the positive or negative direction, can also be retracted in the opposite direction
using the inching mode.
TIP!
After a limit switch that has been approached is retracted, the axis stops automatically and
changes to the "Standby" state
Attention!
For the retracting function after a damping process, hardware limit switches may not be
overtravelled! If limit switches are overtravelled, the retracting function is deactivated.
V
line speed
V
sync speed
Ausgang
synchronous-
„Synchron-Signal“
signal
t
delay of synhronous-
Verzögerung des
signal in [ms]
Synchron-Signals
in [ms]
Target position
Starting position
+ C3218/000
- C3218/000
Following error
signal
The magnitude of the following error shutdown value can be set using the code C3218/000.
3 Functions
The cut counter is incremented after each cut started by the length calculator. The counter is
incremented by exactly one cut as a function of the "Cut done" signal. In the "Mark control"
mode the "Cut done" signal is also used for incrementing.
The cut counter is reset using the application control word with the Reset cut counter bit (default
bit 15)
The operator can trigger the scrap counter externally for sorting out pieces detected visually that
do not meet the quality requirements. The scrap counter records each external trigger signal.
The scrap counter is increased using the application control word with the Increment scrap
counter bit (default bit 13)
The scrap counter is reset using the application control word with the Reset scrap counter bit
(default bit 16)
The cut counter is incremented with each step. If a piece cut cannot be used for some reason
(e.g. material defect), the cut counter can be reduced by one. The cut counter is automatically
decremented if scrap has been detected.
The top cut counter is incremented with each top cut. The immediate cuts triggered by the user
are also counted. On the triggering of an immediate cut the top cut counter is incremented, the
scrap counter incremented and the cut counter decremented.
The top cut counter is reset using the application control word with the Reset top cut counter bit
(default bit 14)
Each counter can be reset independently. It is also possible to reset all counters with one
signal.
The counters (cut counter, scrap counter and top cut counter) are reset using the application
control word with the Reset counters bit (default bit 17)
On the use of the master frequency input (connector X9) as the master value, the incoming
pulses from the incremental encoder connected are counted. The speed of the master axis is
then determined with the aid of the number of encoder increments and the master frequency
constant (code C0425/000).
In order to achieve an exact cutting result, the flying saw requires the speed of the material
path. For this purpose, in practice often a measuring wheel in combination with an incremental
encoder is used. The measuring wheel is pressed on the material path by means of a spring, so
that no slip can develop between the material path and the measuring wheel. Like this, the
incremental encoder connected to the measuring wheel measures the speed of the material.
Usually incremental encoders with two tracks with zero pulse, shifted by 90 degrees, are used
to be able to use the so-called quadruple evaluation that provides for a resolution improvement.
The resolution can further be increased by using measuring wheels with a small diameter or by
mounting a gearbox between the measuring wheel and the incremental encoder, increasing the
speed of the incremental encoder.
diameter
Durchmesser
Impulsgeber
encoder
In practice it has been shown that the resolution of the registration of the material position has
to be 10 times higher than the cutting accuracy required. This means that if a cutting accuracy
of 1 mm is to be achieved, the encoder at least has to provide 10 position encoder increments
for a material feed of 1 mm. Here one can benefit from the quadruple evaluation brought about
by the use of incremental encoders. During the position registration each edge of the position
tracks is evaluated, by which the resolution of the position is quadrupled. (A 1024-pulse encoder
provides 4096 edges per revolution.) Therefore one position encoder increment corresponds to
the 1/(4 pulse number)-th part of a revolution.
Example:
Cutting accuracy required: 0.5 mm
Diameter of impeller: 200 mm
Circumference of impeller: 628.32 mm
The measuring wheel is directly coupled to the incremental encoder.
Calculation of the required edges per revolution to achieve the required accuracy of 0.5 mm:
10 ⋅ U Measuring _ wheel
number _ of _ edges min = ⋅ i Measuring _ wheel
required _ accuracy
where:
Number of edgesmin = minimum required number of edges of incremental encoder
UMeasuring wheel = circumference of measuring wheel
iMeasuring wheel = gearbox ratio between the measuring wheel and incremental encoder
10 ⋅ 628,32 mm
number _ of _ edges min = ⋅ 1 = 12566,4
0,5 mm
The flying saw Prepared Solution can be controlled using a higher-level control over various bus
systems (AIF interface):
Control interface
Meaning
Bit 00: Dependent on the setting in code C4000/000 C4000/000 = 0: System variables
Bit 01: Dependent on the setting in code C4000/000 DCTRL_wAIF1Ctrl and
Bit 02: Dependent on the setting in code C4000/000 DCTRL_wCAN1Ctrl are always
Bit 03: Dependent on the setting in code C4000/000 set to zero.
Bit 04: Dependent on the setting in code C4000/000
System control word
(not used)
The signal sources for the data words (shown in the illustration as Word 0, Word 1, Word 2 and
Word 3) are dependent on the operating mode C4000/000:
Signal source Word 0 Word 1 Word 2 Word 3
3
C4000/000 = 0 - C3261/000 C4135/000
C4000/000 = 1 CAN1_wDctrlCtrl CAN1_nInW1_a CAN1_nInW2_a CAN1_nInW3_a
C4000/000 = 2 CAN2_nInW1_a CAN2_nInW2_a CAN2_nInW3_a CAN2_nInW4_a
C4000/000 = 3 CAN3_nInW1_a CAN3_nInW2_a CAN3_nInW3_a CAN3_nInW4_a
C4000/000 = 4 AIF1_wDctrlCtrl AIF1_nInW1_a AIF1_nInW2_a AIF1_nInW3_a
C4000/000 = 5 AIF2_nInW1_a AIF2_nInW2_a AIF2_nInW3_a AIF2_nInW4_a
C4000/000 = 6 AIF3_nInW1_a AIF3_nInW2_a AIF3_nInW3_a AIF3_nInW4_a
The figure on the previous page of the 32-bit application control word (word 3 and word 4)
shows the factory-set default configuration. The user can also adapt the configuration of the
application control word using the codes C4010/001 to C4010/032 to suit specific requirements.
As an example it is shown in the following how the application control word can be re-configured
bit by bit with the aid of the parameter setting software GDC:
Start
Save the modified settings safe against mains failure using C0003/000 = 1.
Step 3
End
Status interface
Meaning
Bit 00: Dependent on the setting in code C4000/000
Bit 01: Dependent on the setting in code C4000/000
Bit 02: Dependent on the setting in code C4000/000
Bit 03: Dependent on the setting in code C4000/000
Bit 04: Dependent on the setting in code C4000/000
Bit 05: Dependent on the setting in code C4000/000
Bit 06: Dependent on the setting in code C4000/000
Word 0
Bit 07: Dependent on the setting in code C4000/000
Bit 08: Dependent on the setting in code C4000/000
Bit 09: Dependent on the setting in code C4000/000
Data word 1
(not used)
Word 1
Bit 00: Program initialisation
Bit 01: Homing done
Bit 02: Synchronised signal
Bit 03: Gap made
Bit 04: STATUS standby
Bit 05: STATUS homing active
Bit 06: STATUS inching in positive direction active
Word 2
Bit 07: STATUS inching in negative direction active
Bit 08: STATUS top cut active
Bit 09: STATUS automatic selected
Bit 10: STATUS top cut in the ongoing process
Bit 11: STATUS length cut active
Bit 12: STATUS mark cut active
Bit 13: STATUS error active, global error message
The output of the individual status words to system variables (shown in the illustration as Word
0, Word 1, Word 2 and Word 4) is dependent on the operating mode C4000/000:
Signal source Word 0 Word 1 Word 2 Word 3
4
C4000/000 = 0 - - C4150/000
C4000/000 = 1 CAN1_wDctrlStat CAN1_nOutW1_a CAN1_nOutW2_a CAN1_nOutW3_a
C4000/000 = 2 CAN2_nOutW1_a CAN2_nOutW2_a CAN2_nOutW3_a CAN2_nOutW4_a
C4000/000 = 3 CAN3_nOutW1_a CAN3_nOutW2_a CAN3_nOutW3_a CAN3_nOutW4_a
C4000/000 = 4 AIF1_wDctrlStat AIF1_nOutW1_a AIF1_nOutW2_a AIF1_nOutW3_a
C4000/000 = 5 AIF2_nOutW1_a AIF2_nOutW2_a AIF2_nOutW3_a AIF2_nOutW4_a
C4000/000 = 6 AIF3_nOutW1_a AIF3_nOutW2_a AIF3_nOutW3_a AIF3_nOutW4_a
The figure on page 3-31 (word 2 and word 3) shows the factory-set default configuration of the
32-bit application status word. The user can also adapt the configuration of the application
status word using the codes C4012/001 to C4012/032 to suit specific requirements.
It is shown in the following how the application status word can be re-configured bit by bit with
the aid of the parameter setting software GDC:
You'll find the code in the complete code list or in the Short setup => Control/status interface menu
Start
Click the code and select the status information that you want to represent using this status bit.
Step 2
Example: If the signal for the "double length" is to be displayed, select C4012/007 = 17 (Double Length) and
accept using Ok.
? If the configuration of further status control bits is to be changed, continue with step 1.
YES ⇒ 1
NO
Save the modified settings safe against mains failure using C0003/000 = 1.
Step 3
End
TIP!
The application status word is displayed using code C4150/000 independent of the operating
mode you select using C4000/000.
4.1 Requirements
Lenze hardware
Product Type designation Hardware version Firmware version
Lenze software
Product Type designation Version
Third-party components
Product Comment/specification
Limit switch (normally closed Safety-related sensors, operation without limit switches not allowed
contact)
Measuring wheel Design as per documentation
Encoder (measuring wheel) Design as per documentation
Master frequency
Encoder
Attention!
Limit switches represent safety-related devices for a linear axis and must always be wired up
(see also next chapter)!
CAN-LO
master-frequency
CAN-HI
measuring wheel
CAN-GND
120Ω termination
controller enable
homing mark
cut ready
0V DC
TP-Sync
9
-1A1 X5 X9 X5 X5 X4
1 2 3 4 5 6 7 8 9
39 59 9 pole sub d (male) 28 E1 E2 E3 E4 E5 ST GND HI LO
Control voltage master freq. input digital inputs state bus system bus
Lenze power supply
ServoPLC
Type: 93xxET master freq. output digital outputs state bus
X10 9 pole sub d (female) X5 A1 A2 A3 A4 X5 ST
1 2 3 4 5 6 7 8 9
error detected
axis synchron
CINH
Attention!
The connection plan shown gives the elementary wiring necessary for the correct function of the
Prepared Solution.
Attention!
The basic wiring (e.g. connection to mains and motor, connection of the feedback system) is not
given in this chapter. For further information on the basic wiring of the device, please refer to
chapter 4 in the operating instructions for the device (can also be downloaded from the Lenze
homepage www.lenze.de).
CAN-LO
master-frequency
CAN-HI
measuring wheel
CAN-GND
120Ω termination
homing mark
controller enable
TP-Sync
0V DC
-1A1 X6 X8 X6 X4
1 2 3 4 5 6 7 8 9
39 59 9 pole sub d (male) 28 E1 E2 E3 E4 GND HI LO
CINH
Attention!
The connection plan shown gives the elementary wiring necessary for the correct function of the
Prepared Solution.
Attention!
The basic wiring (e.g. connection to mains and motor, connection of the feedback system) is not
given in this chapter. For further information on the basic wiring of the device, please refer to
chapter 4 in the operating instructions for the device (can also be downloaded from the Lenze
homepage www.lenze.de).
Requirements:
Start The servo controller is configured and wired as per the wiring diagram in chapter 4.3.1 and the
product documentation.
The axis is inhibited using terminal 28.
The axis is supplied with the control voltage using the terminals 59 (+24V DC) and 39 (0V).
Understanding of code parameter setting using the keypad XT EMZ9371BC
The Prepared Solution and the necessary Lenze software tools are installed on your PC/laptop as
per chapter 4.2.
The system bus adapter EMF2177IB / EMF2173IB has been successfully installed.
By means of the XT EMZ9371IB keypad or GDC, set the following codes on the servo controller of the flying
saw axis in the order given:
Step 1
C2108/000 2 = Stop the PLC currently running
C0002/000 0 = Set default setting
C0350/000 Node address for the servo axis (each node address is only allowed to be assigned once on
the system bus)
C0352/000 1 = Servo controller for the flying saw is bus master on the system bus
C0003/000 1 = Save system bus settings safe against mains failure
Fully isolate the flying saw servo controller and wait until the red and green status LEDs on the servo
Step 2 controller go out, however at least 20s.
Status LEDs
AIF slot
Connect your PC/laptop to the system bus for the servo axis using the PC-system bus adapter EMF2177IB /
Step 3 EMF2173IB (it is also possible that you have several axes in the drive system):
System Servo
bus controller
TIP!
To make it easier to make the connection a three-pin system bus connector is included with the
PC-system bus adapter EMF2177IB / EMF2173IB; using this connector the PC-system bus
adapter can be straightforwardly connected to the system bus.
Start the GDLoader and run a search for all drives connected via the system bus. GDLoader now scans the
Step 5 system bus and finds the servo drive:
Now allocate the files to the required servo axis by clicking the corresponding icons in the column on the left:
Step 6
Allocate the parameter file (GDC file) by clicking the GDC parameter set file icon in the column on the left:
Step 7 This step is called for operating the GDLoader. The scope of supply of the Prepared Solution does not include
a GDC file
Start the download to the servo axis by clicking the Download icon:
Step 8
Click Go to main menue>> (Continue to main menu) to open the main GDLoader window:
Step 10
Break the connection to the servo controller by clicking the Ausloggen (Log out) button:
Step 11
End
The program has been fully loaded into the controller.
Start GDC and run a scan on the system bus for drive controllers connected. GDC finds the
Step 1
drive controllers connected. These include the drive controller that is loaded with the
FlyingSaw_SPLC_Vxxxxxx project or with the FlyingSaw_ECS_Vxxxxxx project.
Double-click the drive for the flying saw axis and read the parameters back from the drive.
Step 2
Start the motor data wizard:
Follow the instructions in the motor data wizard to correctly set the motor connected.
Once you have finished setting the parameters for the motor, close the motor data wizard.
Open the parameters for the configuration of the speed and position feedback system
Step 3 ( (Motor/Feedback systems) Î (Feedback systems)):
Attention!
Applications with position feedback on the load side are not supported by the parameterisable
variant of the Prepared Solution. If it is necessary to use a position feedback system on the load
side, use the programmable variant of the Prepared Solution.
TIP!
Calculation of the maximum traversing speed (C1240/000).
Caution: The limit must be set such that it can still be reached with the max. motor speed:
The maximum acceleration figure is determined from the maximum motor torque
and the moment of inertia to be accelerated:
An initial reference value can be defined using the maximum speed set in C1240.
If it is ensured the machine can accelerate to maximum speed in a time defined by you,
for C1250 the following is found:
Open the parameters for the configuration of the measuring wheel (FlyingSaw_SPLS_V0100 Î settings flying saw):
Step 5
The normalisation factor is determined automatically and displayed in the codes C3003
(numerator normalisation factor) and code C3004 (denominator normalisation factor).
TIP!
The calculation of the normalisation factor is explained in chapter 9.
TIP!
You will find further information on the homing in chapter 2.12.1
Parameterise the settings for manual jog (short setup Î profile settings):
Step 7
Set the following codes for setting the parameters for manual control:
C3100/000 = Velocity for manual control in [units/s]
C3101/000 = Acceleration for manual control in [units/s^2]
C3102/000 = Deceleration for manual control in [units/s^2]
Parameterise the profiles for the return travel of the flying saw and for the approach of the basic position next :
Step 8
Step 9
The parameter settings are now saved safe against mains failure.
End The basic settings for the peripheral drive functions are now complete.
Attention!
The commissioning of the Prepared Solution described in the following relates to the
parameterisable variant.
Requirements:
Start The parameters for the servo controller for the flying saw axis have been set to suit the specific
case, as described in chapter 4.4.3.
The axis is inhibited using terminal 28.
The axis is supplied with control voltage using terminals 59 (+24V DC) and 39 (0V) and with power
using terminals L1, L2 and L3.
Start GDC and perform a search for the drive controller connected to the system bus. GDC finds the servo axis
Step 1 as follows:
Double-click the servo controller for the flying saw axis and upload the parameter data for the selected drive from
GDC to your PC.
Select the interface via which you want to control the Prepared Solution :
Step 2
TIP!
The bit assignment for all 32 control bits of the application control word (word 3 and word 4) can be
changed as required.
Test the correct operation of the application control word (word 3 and word 4) by setting/resetting the control bits
Step 3 for the functions used in the higher-level PLC and checking the corresponding representation of the control
commands in code C4136/000:
Step 4
Check the correct feedback of the application status word (word 3 and word 4) from the servo controller for the
flying saw axis to the higher-level PLC. For this purpose you can display the actual application status word from
code C4150/000 and compare it with the value received in the PLC:
Enable the servo controller by connecting terminal 28 to 24V. Test the positive manual control functions by
Step 5 setting the corresponding control bit in the application control word (positive manual control: bit 2).
If the drive does not move from the initial position in the direction of the cutting position during positive manual
control, change code C3000/000 (motor mounting direction) so that the required position polarity is achieved.
Test the homing function on the axis by setting the corresponding control bit in the application control word (start
Step 6 homing: bit 0).
Possibly correct the settings for homing if the reference run does not proceed as desired.
Now enter the parameters of the flying saw, which are required for length- and mark-controlled operation.
Step 7
Set the following codes for setting the parameters for the flying saw:
C3009/000 = Set here the delay time for the synchronised signal. The entry is made in [ms] and has
the background that on axes with a large moment of inertia it may occur that a control
process is still taking place to compensate for a possible following error as the
synchronised signal is output.
C3010/000 = Simulation velocity in the unit [inc/ms]
(This value is only processed if bit 20 in the application control word is set, otherwise input
X9 is always processed as the velocity!)
C3012/000 = The acceleration time describes the ramp during the period when the flying saw axis
reaches master speed. The entry is made in the unit [ms].
C3013/000 = The deceleration time describes the ramp during the period the axis needs to decelerate
from the master speed to zero and then to reverse and move to the initial position.
C3014/000 = If you want to create a gap in the material, you can define the length of the gap using this
parameter. The entry is made in the unit [units].
C3016/000 = With very "large" tools the width of the cut can be compensated. E.g. this setting is
necessary for very wide and coarse saw blades, as a large amount of material is removed
in the cut and this material is then missing from the length. The entry is made in the unit
[units].
C3223/000 = position of the positive software limit switch, entry in [units]
C3224/000 = position of the negative software limit switch, entry in [units]
TIP!
To set the software limit switches you can move the drive using manual control to the required
position and then apply the position from code C5000/000 in the codes for the software limit
switches.
The commissioning of the length-controlled and mark-controlled operation is described in chapter 5 and 6.
Step 8
TIP! You will find information on the bit assignment for the application control word/status word as a
function of C4000/000 in chapter 3.8.2.
End
Attention!
The commissioning of the length-controlled operation of the Prepared Solution described in the
following relates to the parameterisable variant.
Requirements:
Start The parameters for the servo controller for the flying saw axis have been specifically set to suit the specific
case, as described in chapter 4.4.3.
The axis is supplied with control voltage using terminals 59 (+24V DC) and 39 (0V) and with power using
terminals L1, L2 and L3.
Initial situation:
• The servo axis is not indicating any error.
• The servo axis is enabled.
• Application control word and application status word have not been specifically set using C4010/0xx and
C4012/0xx.
• The axis has been successfully homed.
Start GDC and perform a search for drive controllers connected to the system bus. GDC finds the drive
controllers connected. These include the drive controller loaded with the FlyingSaw_SPLSC_V0100 project.
Step 1
Application with ECSxA
You can describe your application for length-controlled operation using the following parameters:
C3007/000 Enter is this parameter the set length of the continuous material that you want to process. This
parameter is entered in the unit [unit]
Now check in the application status word whether the bits for the starting conditions are set correctly.
Step 3
The following bits must be set for starting the length-controlled operation:
Bit 00 Program initialisation complete.
Bit 01: The axis home position is known.
Bit 04: The axis is in the "Standby" state.
Bit 14: The normalisation factor has been calculated.
Bit 18: The axis is in the initial position.
To start the length-controlled operation, set the following bits in the order given:
Bit 04: Change to the "Flying saw mode" state
Bit 06: Perform a top cut
After bit 06 is set in the application control word, the axis synchronises to the line speed. The material is
processed once synchronicity has been achieved.
Reset bit 06.
When the processing is complete and the flying saw axis is to move back to the initial position, activate bit 07.
This "cut done signal" causes the axis to decelerate and subsequent positioning at the initial position.
By performing the top cut you have started length-controlled operation. All other start signals for synchronising
are generated by the length calculator which calculates equidistant lengths.
If you want to stop operation, bit 04 must be reset. The axis is then back in the "Standby" state. A change to
length-controlled operation can be made at any time as described in step 4.
End
Attention!
The commissioning of the Prepared Solution described in the following relates to the
parameterisable variant.
Requirements:
Start The parameters for the servo controller for the flying saw axis have been specifically set to suit the specific
case, as described in chapter 4.4.3.
The axis is supplied with control voltage using terminals 59 (+24V DC) and 39 (0V) and with power using
terminals L1, L2 and L3.
Initial situation:
• The servo axis is not indicating any error.
• The servo axis is enabled.
• Application control word and application status word have not been specifically set using C4010/0xx and
C4012/0xx.
• The axis has been successfully homed
Start GDC and perform a search for drive controllers connected to the system bus. GDC finds the drive
Step 1 controllers connected. These include the drive controller loaded with the FlyingSaw_SPLC_V0100 project.
You can describe your application for length-controlled operation using the following parameters:
C3007/000 In this parameter enter the set length. If a mark is not detected within the set length, the
material is processed as per the set length set here. This parameter is entered in the unit
[unit].
C3015/000 Distance between a touch-probe detection and the initial position of the tool. The entry is made
in the unit [units].
C3017/000 Activation of the length monitoring during mark control. The monitoring can be activated or
deactivated using this parameter.
Now check in the application status word whether the bits for the starting conditions are set correctly.
Step 3
The following bits must be set for starting the length-controlled operation:
Bit 00 Program initialisation complete.
Bit 01: The axis home position is known.
Bit 04: The axis is in the "Standby" state.
Bit 14: The normalisation factor has been calculated.
Bit 18: The axis is in the initial position.
To start the mark-controlled operation, set the following bits in the order given:
Bit 04: Change to the "Flying saw mode" state
Bit 10: Activate mark cuts
A top cut is not necessary in mark-controlled operation. The processing is started at the first mark on the
material.
Once bit 10 is activated, a cut is made at the next mark detected.
If you want to leave mark-controlled operation again, then deactivate bit 10. The flying saw is then still in the
"Flying saw mode".
The "Flying saw mode" state is left by resetting the bit 04.
End
7.1 Overview
The states for the Prepared Solution are represented by a so-called state machine. The state
machine indicates a total of 11 states between which it is possible to change as follows:
The individual states are represented in the Prepared Solution using a global variable g_wState
(ENUM) and also displayed to the operator using the code C3990/000.
TIP!
The code C3990/000 is permanently linked to the parameterisable variant in the GDC Monitor
window such that the states of the Prepared Solution can be easily followed.
POU is called independent of the state machine and is therefore a process that runs in parallel
to the state machine. If the error handling detects an error state, the interface to the state
machine ensures the state machine changes to the 'Trouble' state. A reset to the 'Standby' state
is only possible after the cause of the error has been rectified and the error acknowledged.
The POU ErrorHandling is not part of a library in the project, instead it is programmed externally
in structured text as IEC code. In this way the existing error handling can be expanded with
error messages defined by the user.
TIP!
You will find further information on handling errors in the section on the programmable variant of
the Prepared Solution, chapter 8.3
8 Program extensions/supplements
Program extensions and supplements are possible if the programmable variant is used as the
basis for the Prepared Solution. The program is edited using the Lenze software Drive PLC
Developer Studio (DDS), version V2.2 or later. The chapters that follow require basic knowledge
of the IEC programming languages and the configuration of programmable logic controllers.
Task 1 contains the main core of the application. This task must always be processed with the
highest priority, even if the user adds further tasks. It is called at 2ms intervals.
Task 2 calls the machine sequence in which the axis control is applied. In addition calculations
are made and the master frequency evaluated using the normalisation factor.
TIP!
The user can add further tasks and call custom programs in these additional tasks. Here the
following conditions are to be observed:
• No task is allowed to have a higher priority and a shorter interval time than task 1.
• No user tasks are allowed to have a higher priority and/or a shorter interval time than task
2.
• Further networks can be added to the existing program blocks (e.g. POU MotionControl),
as long as the processing times for the task called do not cause any task overflow.
9 Dimensioning aspects
encoder constant[inc/umdr]
encoder resolution[inc/units] =
measuring wheel constant[units/umdr]
Drive parameters:
• Feed constant [units/r]
• Gearbox factor numerator
• Gearbox factor denominator
Total resolution:
motor resolution[umdr/units]
resolution[inc/umdr] =
encoder resolution[inc/units]
For the normalisation of the flying saw, two concepts for a master frequency source will be
considered.
1. Master frequency source measuring wheel
2. Master frequency source Servo / Servo PLC (master frequency coupling)
feedconstant [units/r]
Feedback
engine
x9
DFIN constant (C0425) [inc/r]
TIP!
Measuring wheel constant: e.g. a measuring wheel with d= 250mm, measuring wheel
constant=250mm*pi=785.4mm/r
TIP!
The normalisation factor is automatically calculated in the application and entered in the codes
C3003/000 and C3004/000.
feedconstant[units/r]
feedconstant [units/r]
Feedback Feedback
x7/x8 x7/x8
x9
x10
Task information
Can be called in: Cyclic task Time-controlled task Event-controlled task Interrupt task
(INTERVAL) (EVENT)
dnPosDiffOutSaw DINT Setpoint for the positional deviation for the synchronisation
¾ For this setpoint to be actively switched to the interface, the variable
bExternSetValuesEnable must be set to TRUE.
¾ dnPosDiffOutSaw -> MCTRL_dnPosSet_p
dnMCTRL_dnActIncLastScan DINT Phase difference in [inc] between latching time and starting time for the task
Task information
Can be called in: Cyclic task Time-controlled task Event-controlled task Interrupt task
(INTERVAL) (EVENT)
dnPosLimitSwitch DINT Input for the position of the positive software limit switch
¾ The entry is made in the application unit [units] and must have the value > 0.
The reference here is the home position.
¾ The software limit position is only active for an entry > 0.
dnNegLimitSwitch DINT Input for the position of the negative software limit switch
¾ The entry is made in the application unit [units] and must have a value <0. The
reference here is the home position.
¾ The software limit position is only active for an entry <0.
bHomePosAvailable BOOL Input for the signal "Homing done"
¾ The software limit position monitoring is only activated once the home position
is known
Axis MC_AXIS_REF Machine parameters
¾ Data structure with elements that contain the machine parameters in the
internal measuring system.
¾ Connect this input to a global variable written by the FB L_MCMachineData.
Task information
Can be called in: Cyclic task Time-controlled task Event-controlled task Interrupt task
(INTERVAL) (EVENT)
dnPulseSensor DINT Number of pulses from the encoder at the measuring wheel
¾ 10000 = 1.0000 [inc/rev]
dnFeedConstant DINT Feed constant
¾ 10000 = 1.0000 [unit/rev]
wGearNum WORD Gearbox factor numerator
Task information
Can be called in: Cyclic task Time-controlled task Event-controlled task Interrupt task
(INTERVAL) (EVENT)
SimulationMasterFrequency_v INT A master value can be simulated with this variable. The master value is also acquired in inc/ms and
processed in the function block. The simulation enables the functions to be tested without receiving a
fixed master value from a master. The entry is made in [inc/ms]
bSelectInputFrequency BOOL This input makes it possible to switch between the master value simulation and the signal DFIN
FALSE The master value from the input
MasterFrequency_DFIN_nIn_v is used
TRUE The master value from the input
dnNormalizationNum DINT Numerator for the normalisation factor. The normalisation factor is calculated in the function block
RatioNormFlyingSaw .
dnNormalizationDen DINT Denominator for the normalisation factor. The normalisation factor is calculated in the function block
RatioNormFlyingSaw .
nFilteringDFIN INT Master value filtering. The filter time is defined in the unit [ms]. Only the output signal
nFrequencyDFINNorm_v is filtered.
nFrequencyDFINNorm_v INT Output of the normalised master frequency. In addition to the output variable nFrequencyDFIN_v this
output is adapted to the axis parameters using the normalisation factor.
The filtering is only active if the master value is defined using input X9 on the servo axis. The filter time
is not taken into account in the simulation.
Task information
Can be called in: Cyclic task Time-controlled task Event-controlled task Interrupt task
(INTERVAL) (EVENT)
Task information
Can be called in: Cyclic task Time-controlled task Event-controlled task Interrupt task
(INTERVAL) (EVENT)
bModusSynchronize BOOL Here the mode for the flying saw is defined. In principle a differentiation is made between two modes.
The "Synchronous" mode in which the saw blade is never faster than the master value and the
"Oversynchronous" mode is which the saw unit briefly "overtakes" the master value on starting until all
increments have been caught up.
FALSE Flying saw "Oversynchronous" mode
bOffsetUsed BOOL Information that the offset has been taken into account in the cut.
This variable must be handled in the machine sequence.
FALSE Offset for an actual cut has not yet been
used.
bCalculateNewOffset BOOL Information that a new offset must be calculated for a subsequent cut.
This variable must be handled in the machine sequence.
FALSE Do not calculate a new offset
Task information
Can be called in: Cyclic task Time-controlled task Event-controlled task Interrupt task
(INTERVAL) (EVENT)
bStartDeceleration BOOL Using this variable the saw unit is decelerated after a cut and then positioned at the home position.
The variable is processed logically in the machine sequence and is typically activated by the sawing
action itself.
FALSE No deceleration of the saw unit
bStartSynchronize BOOL Start a synchronisation process. The input is connected to the variable bStartSynchronizeprozess
from the function block LengthCalculation in the library FlyingSawV0100.lib.
FALSE No start
TDelaySynchronSignal TIME Delay for the synchronised signal. In this way settling after the synchronising process is taken into
account. The setting is made in the unit [ms].
bReset BOOL The integrators for the synchronising process are reset when the variable is set.
bResetAll BOOL In addition to bReset, when this variable is set the positional deviation is set to zero.
nCompensationTrimming INT Correction that is added to the setpoint. This correction is used to compensate for an error caused by
the system propagation time.
This input is to be connected to the block LengthCalcualtion nCompensationTrimming
dnOffsetSynchronize DINT Offset for "synchronous" synchronisation. The value is calculated online by the function block
OffsetCalculation.
This input variable must be connected to the function block OffsetCalculation.
dwTif DWORD Flying saw deceleration time. The entry is made in the unit [ms]
dnGapLengthInc DINT Length of the gap. The entry is made in the unit [inc]
bResetError BOOL In case of an error, the block and as a result all active integrators are reset. The variable must be
included in the application's reset handling.
dnOffset_TP DINT Distance between the touch probe signal detected and the initial position of the flying saw. The entry is
made in the unit [inc]
bStatusGap BOOL Status signal "Gap made". The signal is output when a gap has been made in the material.
bFail_b BOOL Status signal "Error". The signal is output when an error has been detected during the synchronous
process.
The function block calculates the three elements for the internal data array from the major and
subversions using the following formula:
adwVersion[1] := ((dwProRelease * 100 + dwProLevel)*100)+dwProServicePack;
adwVersion[2] := ((dwLib1Release * 100 + dwLib1Level)*100)+dwLib1ServicePack;
adwVersion[3] := ((dwLib2Release * 100 + dwLib2Level)*100)+dwLib2ServicePack;
The field variable adwVersion is intended for indication in display codes with two decimal
positions. In this way the user can straightforwardly determine the version states for the project
and libraries.
On the display of the code values the versions are indicated so that they are easy for the user to
read (e.g. using GDC):
Interface
Task information
Can be called in: Cyclic task Time-controlled task Event-controlled task Interrupt task
(INTERVAL) (EVENT)
Variable names
Inputs (Variable type: VAR_INPUT)
Identifier Data type Meaning
wProRelease WORD main version for the project:: the value entered must be in the range between 0 and 99.
wProLevel WORD subversion for the project:: the value entered must be in the range between 0 and 99.
wProServicePack WORD version of service-pack: the value entered must be in the range between 0 and 99.
wLib1Release WORD main version for library 1 (e.g. application library): the value entered must be in the range between 0
and 99.
wLib1Level WORD subversion for library 1 (e.g. application library): the value entered must be in the range between 0 and
99.
wLib1ServicePack WORD version of service-pack: the value entered must be in the range between 0 and 99.
wLib2Release WORD main version for library 2 (e.g. basic library): the value entered must be in the range between 0 and 99.
wLib2Level WORD subversion for library 2 (e.g. basic library): the value entered must be in the range between 0 and 99.
wLib2ServicePack WORD version of service-pack: the value entered must be in the range between 0 and 99.
Interface
Task information
Can be called in: Cyclic task Time-controlled task Event-controlled task Interrupt task
(INTERVAL) (EVENT)
Variable names
Inputs (Variable type: VAR_INPUT)
Identifier Data type Meaning
byInputSource BYTE Selection of the control source for the application:
0 Control code
1 CAN1
2 CAN2
3 CAN3
4 AIF1
5 AIF2
6 AIF3
wCAN1_wDctrlCtrl WORD Input for the system variable CAN1_wDctrlCtrl
wDCTRL_wAIF1Ctrl WORD Output of the control word for the system variable DCTRL_wAIF1Ctrl
wCtrlW1_a INT Output of the data word (depending on the value on byInputSource derived from the variables
wInternalCtrlW1_a, wCAN1_nInW1_a, wCAN2_nInW2_a, wCAN3_nInW2_a, wAIF1_nInW1_a,
wAIF2_nInW2_a or wAIF3_nInW2_a)
bBit00 BOOL Control bits 0 to 31:
bBit01 The individual bits are formed from the internal double control word dwCtrlWord. Here any output bit
bBit02 bBit00, bBit01 … bBit31 can be assigned to any bit in the double control word (dwCtrlWord.0 …
bBit03 dwCtrlWord.31). The internal index variable abyCtrlWord[i] (i = 0 … 31) is used for the assignment; the
… index i addresses the required output bit bBit00, bBit01 … bBit31 and the value of abyCtrlWord[i] the
bBit30 required source bit in the double control word (dwCtrlWord.0 … dwCtrlWord.31). The value range
bBit31 allowed for abyCtrlWord[i] is 0 … 31.
Interface
Task information
Can be called in: Cyclic task Time-controlled task Event-controlled task Interrupt task
(INTERVAL) (EVENT)
Variable names
Inputs (Variable type: VAR_INPUT)
Identifier Data type Meaning
byOutputSource BYTE Selection of the target interface for the status information for the application:
0 Status code
1 CAN1
2 CAN2
3 CAN3
4 AIF1
5 AIF2
6 AIF3
wDCTRL_wStat WORD Input for the system status word (system variable DCTRL_wStat)
wStatW1_a INT Definition of the first data word as required (depending on the value on byOutputSource this value is
output to the variable wInternalStatW1_a, wCAN1_nOutW1_a, wCAN2_nOutW2_a,
wCAN3_nOutW2_a, wAIF1_nOutW1_a, wAIF2_nOutW2_a or wAIF3_nOutW2_a)
bBit00 BOOL Definition by bit of the status information (bits 0 to 31):
bBit01 The individual bits are formed from the internal double status word dwStatWord. Here any input bit
bBit02 bBit00, bBit01 … bBit31 can be assigned to any bit in the double status word (dwStatWord.0 …
bBit03 dwStatWord.31). The internal index variable abyStatWord[i] (i = 0 … 31) is used for the assignment;
… the index i defines the required bit in the double status word (dwStatWord.0 … dwStatWord.31) and
bBit30 the value of abyStatWord[i] the required input bit bBit00, bBit01 … bBit31 for this output bit. The value
bBit31 range allowed for abyStatWord[i] is 0 … 31.
11 Appendix
TIP!
During use measuring wheels are subject to wear resulting in a reduction in their
circumference. You can correct for this wear using the code C3005/000
11.2.1 Global
Global variables (Variable type: VAR_GLOBAL)
Identifier Data type Value/meaning
g_dnScaleWheel DINT Circumference of the measuring wheel
g_dnPulseSensor DINT Encoder pulses from the measuring wheel
g_nFrequencyDFIN INT Input frequency of the measuring wheel
g_nFrequencyDFINNorm INT Standardised input frequency of the measuring wheel
g_bStartlengthCalculator BOOL Start the length calculator
g_dnCutLengthInput DINT Set length
g_dnGapLengthInput DINT Length of the gap
g_dnGapLength_p DINT Length of the gap in increments
g_bMarkenSyncAxtive BOOL Activate mark synchronisation
g_bOffsetUsed BOOL Offset taken into account during a length cut
g_bCalculateNewOffset BOOL Calculate new offset
g_dnTir DINT Flying saw acceleration time
g_bOffsetConsider BOOL Offset value has been taken into consideration
g_dnOffsetLengthCalculator DINT Offset for the length calculator
g_dnOffsetSynchronize DINT Offset for the synchronisation
g_bStartDecelerationSaw BOOL Start of the deceleration ramp
g_nCompensationTrimming INT Increments that are compensated during the synchronisation
g_nCompensationTrimmingUsed INT Compensation completed
g_dnCutterKompensation DINT Width of cut compensation
DelaySynchronSignal INT Delay on the synchronised signal
g_bReset BOOL Reset
g_bResetSync BOOL Reset the synchronisation
g_bExternSetValuesEnable BOOL Switch to external setpoints
g_dnAbortCalcOffset_units DINT Calculation of the offset is interrupted just before synchronising
g_dnAbortCalcOffset_Inc DINT Calculation of the offset is interrupted just before synchronising
g_dnActualValueLengthCalculator DINT Actual length calculator value
g_nSpeedOutSaw INT Flying saw set speed
g_dnPosDiffOutSaw DINT Setpoint for the phase controller
g_bAutomaticFlag BOOL Automatic mode is active
g_bWatchLengthTP BOOL Mark monitoring active
g_ManualProfile Profile Profile for jogging
g_SecondProfile Profile Profile for the movement to the initial position
g_BackProfile Profile Profile for return positioning after a synchronous movement
g_FreeDriveLimitSwitch Profile Move clear from limit switch
g_Profile Profile Profile data
g_Axis Axis Axis data
11.2.2 VarCounter_FS
Global variables (Variable type: VAR_GLOBAL)
Identifier Data type Value/meaning
g_bCountUpHeadCut BOOL Increment top cut counter
g_bCountDownHeadCut BOOL Decrement top cut counter
g_bResetHeadCutCounter BOOL Reset top cut counter
g_bCutCounterUP BOOL Increment cut counter
g_bCutCounterDOWN BOOL Decrementing cut counter
g_bResetCutCounter BOOL Reset cut counter
g_bCutCounterUP_NOK BOOL Increment scrap counter
g_bResetLengthNOKCounter BOOL Decrement scrap counter
g_bResetAllCounter BOOL Reset all counters
g_nCounterHeadCut INT Number of top cuts
g_nCutCounterOK INT Number of pieces cut
g_nCutCounterNOK INT Number of scraps pieces that have been separated out using immediate cuts
11.2.3 VarErrorHandling
Global variables (Variable type: VAR_GLOBAL)
Identifier Data type Value/meaning
g_bTrip BOOL Trip active
g_bWarnung BOOL Warning active
g_bMessage BOOL Message active
g_bFailQSP BOOL Axis is in QSP
11.2.4 VarInterfaceFlyingSaw
Global variables (Variable type: VAR_GLOBAL)
Identifier Data type Value/meaning
g_bDriveReady BOOL Drive ready signal
g_bStartHoming BOOL Start homing
g_bHomingMark BOOL Homing cam
g_bManualJogPos BOOL Inching in positive direction
g_bManualJogNeg BOOL Inching in negative direction
g_bStartPositioningHome BOOL Move to initial position
g_bAutomatic BOOL Start automatic operation
g_bCutReady BOOL Cut done signal
g_bHeadCut BOOL Trigger top cut
g_bStartGap BOOL Make gap in the material
g_bTPUnrealised BOOL Mark not detected during mark control
g_bMarkenSync BOOL Activate mark synchronisation
g_bModusSynchronize BOOL Synchronisation mode
g_bTripReset BOOL Reset error
g_bTripresetMultiPlex BOOL Reset error using multiplexer
g_bUserTripSet BOOL Set user error
g_bImperialUnits BOOL Switch between imperial and metric measuring system
g_nSimulationFrequency INT Simulation speed
g_bSelInputFrequency BOOL Switch between DFIN and simulation
g_dnFollowErrorLimt DINT Following error limit
g_bHomePositionAvailable BOOL Home position known
g_bGapStatus BOOL Gap made in the material
g_bAxisSynchron BOOL Axis synchronised signal
g_wActualFaultNumber WORD Actual error number
g_bHomingBusy BOOL Homing is active
g_bPosBusy BOOL Positioning is active
g_bDoubleLength BOOL Double length detected
g_dnActPosFlyingSaw DINT Actual position of the axis
g_byCtrlMode BYTE Multiplexer mode
g_nFiltering INT Master speed filtering
g_dwTiFlyingSaw DWORD Flying saw acceleration time
g_dwTifFlyingSaw DWORD Flying saw deceleration time
g_dnOffsetTP DINT Distance between mark detection and the initial position
g_bSoftwareLimitsActive BOOL Software limit switches active
g_bCutCounterUP_NOK_Multi BOOL Operate scrap counter via the multiplexer
11.2.5 VarLimitsSwitches
Global variables (Variable type: VAR_GLOBAL)
Identifier Data type Value/meaning
g_bLimitSwitchPos BOOL Positive hardware limit switch
g_bLimitSwitchNeg BOOL Negative hardware limit switch
g_bPosLimitSwitch BOOL Positive software limit switch
g_bNegLimitSwitch BOOL Negative software limit switch
g_dnPosLimitSwitch DINT Position of the positive software limit switch
g_dnNegLimitSwitch DINT Position of the negative software limit switch
11.2.6 VarNormFactor
Global variables (Variable type: VAR_GLOBAL)
Identifier Data type Value/meaning
g_bCalculatedFac BOOL Normalisation factor calculated
g_dnNormalizationNumerator DINT Normalisation factor numerator
g_dnNormalizationDenumerator DINT Normalisation factor denominator
11.2.7 VarOperationVisu
Global variables (Variable type: VAR_GLOBAL)
Identifier Data type Value/meaning
g_bStartHomingVisu BOOL Start of homing via the visualisation
g_bManualVisu BOOL Start of manual operation via the visualisation
g_bManualJogPosVisu BOOL Positive inching of the axis via the visualisation
g_bManualJogNegVisu BOOL Negative inching of the axis via the visualisation
g_bAutomaticVisu BOOL Start automatic via the visualisation
g_bHeadCutVisu BOOL Trigger top cut via the visualisation
g_bCutReadyVisu BOOL Trigger cut done signal via the visualisation
11.2.8 VarStatusMachine
Global variables (Variable type: VAR_GLOBAL)
Identifier Data type Value/meaning
g_bStandBy BOOL "Standby" mode
g_bHomingActive BOOL "Homing active" mode
g_bManualJogPosActive BOOL "Inching positive" mode
g_bManualJogNegActive BOOL "Inching negative" mode
g_PositioningActive BOOL "Positioning" mode
g_bHeadCutActive BOOL "Top cut" mode
g_bAutomaticActive BOOL "Automatic" mode
g_bHeadCutAutoActive BOOL "Top cut in automatic operation" mode
g_bLengthCutAutoActive BOOL "Length cut" mode
11.2.9 VarVersion
Global variables (Variable type: VAR_GLOBAL)
Identifier Data type Value/meaning
C_wFlyingSawProjectVersionER WORD main version of the project
C3001 0 0: Not inverted Inversion of the master frequency (DFIN). Necessary if the
1: Inverted measuring wheel is mounted counter-rotating.
C3003 1 0... {1} ... 65536 Gearbox factor numerator of measuring wheel
C3004 1 0... {1} ... 65536 Gearbox factor denominator of measuring wheel
C3005 1 0... {1 ... Circumference of the measuring wheel
[units]} 2147483647
C3006 1 0... {1 ... Number of increments from the encoder connected to the
[Inc/rev]} 2147483647 measuring wheel
C3007 7500000 0... {1 ... Entry of the set cut length. The entry is made in the format cut
[units]} 2147483647 length in units * 10000.
Example: 1234.56 mm set length, entry in code: 12345600
units.
C3009 100 0... {1[ms]} ... 32767 Delay on the signal "axis synchronised"
C3010 500 0... {1[Inc/ms]} ... 32767 Simulation speed (simulation of the master frequency input)
C3012 1500 0... {1 ... Flying saw acceleration time, during the synchronising
[ms]} 4294967295 process
C3013 2500 0 {1 ... Flying saw deceleration time, after the synchronous
[ms]} 4294967295 movement
C3014 5.0000 0.0000 {1 [unit]} 214000.0000 Length of the gap that is to be made after processing the
material
C3015 0.0000 0.0000 {1 [unit]} 214000.0000 Mark detection offset. Distance between mark detection and
flying saw initial position.
C3016 0.0000 0.0000 {1 [unit]} 214000.0000 Width of cut compensation
C3017 0 0: Not activated Monitoring of the mark detection. Length between the marks
1: Activated is monitored using the length calculator and a cut "forced" if a
mark is not detected.
C3100 500.0000 -214000.0000... {0.0001 ... Speed for manual movement of the axis (inching operation,
[units/s]} 214000.0000 valid for positive and negative inching)
C3101 750.0000 -214000.0000... {0.0001 ... Acceleration for manual movement of the axis (inching
[units/s^2]} 214000.0000 operation, valid for positive and negative inching)
C3102 750.0000 -214000.0000... {0.0001 ... Deceleration for manual movement of the axis (inching
[units/s^2]} 214000.0000 operation, valid for positive and negative inching)
C3200 0.0000 -214000.0000... {0.0001 ... Position of the return movement profile. Movement to the
[units]} 214000.0000 initial position. The initial position should be home position!
C3201 1200.0000 -214000.0000... {0.0001 ... Speed for the return movement profile for the initial position
[units/s]} 214000.0000 movement
C3202 750.0000 -214000.0000... {0.0001 ... Acceleration for the return movement profile for the initial
[units/s^2]} 214000.0000 position movement
C3203 750.0000 -214000.0000... {0.0001 ... Deceleration for the return movement profile for the initial
[units/s^2]} 214000.0000 position movement
C3213 0 0: >_Rn_MP/TP Definition of the homing mode:
1: <_Rn_MP/TP
8: >_MP/TP Symbology:
9: <_MP/TP > Movement in positive direction
< Movement in negative direction
Lp Positive limit switch
Ln Negative limit switch
Rp Positive edge on the homing switch
Rn Negative edge on the homing switch
MP/TP Zero pulse from the motor feedback system or
touch-probe edge on a digital input
C3218 10.0000 0.0001... {0.0001 ... 214748.0000 Entry of the following error shutdown limit
[units]}
C3223 0.0000 0... {0.0001 ... 214748.0000 Limit position for the positive software limit
[units]} Comment: software limits are only active if the home
position for the axis is known and the limits are not set to
zero.
Possible settings:
C3224 0.0000 -214748.0000... {0.0001 0 Limit position for the negative software limit
[units]} Comment: software limits are only active if the home
position for the axis is known and the limits are not set to
zero.
C3225 100.0000 -214748.0000... {0.0001 ... 214748.0000 Home offset
[inc]}
C3242 100 1 {1[rpm]} ... 16000 Speed for the homing
C3252 5.00 0.01 {0.01[s]} ... 650.00 Ramp times for the homing:
These ramp times relate to C0011/000.
C3300 500.0000 -214000.0000... {0.0001 ... 214000.0000 Speed for the return movement profile for the axis
[units/s]} positioning at the initial position.
C3301 7500.0000 -214000.0000... {0.0001 ... 214000.0000 Acceleration for the return movement profile for the axis
[units/s^2]} positioning at the initial position.
C3302 7500.0000 -214000.0000... {0.0001 ... 214000.0000 Deceleration for the return movement profile for the axis
[units/s^2]} positioning at the initial position.
C3501 0 0: metric (1[s_unit] = 1[mm]) Selection of the measuring system:
1: imperial (1[s_unit] = 1[inch]) This code has no effect on the functionality, but affects only
the visualisations in the programmable variant of the
Prepared Solution.
C3990 - 1: Error state Display code: state of the "flying saw" Prepared Solution
10: Standby state Manual operation
20: Positive manual control
21: Negative manual control
22: Homing active
30: Automatic "flying saw"
40: Top cut is being performed
41: Length cut active
42: Mark cut active
43 Move to initial position
50: Initialisation
100:
C3998 - 0... {1} ... 65535 Display code: actual error message, this contains system
and application error messages.
C3999 - 0 ... {0.01} ... 99.99 Display code: version of the Prepared Solution. Tthe first and the
second number is the main versio, the third and the fourth is the
subversion and the fith and the sixth is the number of the service-
pack.
Possible settings:
C4010 Configuration codes for the control interface: here each
sub-code defines where the control information is to be
drawn for specific control functionality:
C4012 For information on the status Configuration codes for the status interface: here each sub-
information for the default code defines where the status information is to be drawn
settings, please see chapter for a specific status bit:
3.8.1
1: Status bit 0
1 0 0: 2: Status bit 1
2 1 1: 3: Status bit 2
3 2 2: 4: Status bit 3
4 3 3: 5: Status bit 4
5 4 4: 6: Status bit 5
6 5 5: 7: Status bit 6
7 6 6: 8: Status bit 7
8 7 7: 9: Status bit 8
9 8 8: 10: Status bit 9
10 9 9: 11: Status bit 10
11 10 10: 12: Status bit 11
12 11 11: 13: Status bit 12
13 12 12: 14: Status bit 13
14 13 13: 15: Status bit 14
15 14 14: 16: Status bit 15
16 15 15: 17: Status bit 16
17 16 16: 18: Status bit 17
18 17 17: 19: Status bit 18
19 18 18: 20: Status bit 19
20 19 19: 21: Status bit 20
21 20 20: 22: Status bit 21
22 21 21: 23: Status bit 22
23 22 22: 24: Status bit 23
24 23 23: 25: Status bit 24
25 24 24: 26: Status bit 25
26 25 25: 27: Status bit 26
27 26 26: 28: Status bit 27
28 27 27: 29: Status bit 28
29 28 28: 30: Status bit 29
30 29 29: 31: Status bit 30
31 30 30: 32: Status bit 31
32 31 31:
Possible settings:
C4135 0 0 ... ... {1} Control code:
4294967295 Using the control code the flying saw can be controlled
(with C4000/000 = 0). The individual bits of the control
code can be defined as required using the configuration
codes C4010/001 … 0032. The factory-set bit assignment
is given in code C4010/xxx.
C4136 - 0 ... ... {1} Indication of the actual application control word:
4294967295 Dependent on C4000/000 the actual application control
word is displayed here. The meaning of the individual bits
of the application control word can be defined as required
using the configuration codes C4010/001 … 0032. The
factory-set bit assignment is given in code C4010/xxx.
C4150 0 0 ... ... {1} Status code (display code):
4294967295 Using the status code the complete application can be
monitored (with C4000/000 = 0). The individual bits of the
status code can be defined as required using the
configuration codes C4012/001 … 0032. The factory-set bit
assignment is given in code C4012/xxx.
C4500 - 0… 32767 {1] Cut counter indication:
All pieces completely processed are counted here. The cut
counter is decremented when the scrap counter has been
triggered
C4501 - 0… 32767 {1} Scrap counter indication:
All pieces cut out of the material with an immediate cut are
counted here.
C4502 - 0… 32767 {1} Top cut counter:
The number of top cuts is counted here.
C5000 - -2147480000… {0.0001[units]} Indication of the actual position of the axis
2147480000
15 OC5 Frequent/excessively long acceleration Check drive dimensioning; if necessary increase drive
processes with overcurrent (IMotor > power.
INom,inverter)
Mounting position of the drive controller Check the mounting position of the controller and the
stipulated minimum distances top and bottom.
51 OH1 Internal temperature > 90 degrees C Leave drive controller to cool down and provide
improved ventilation (control cabinet fan?).
Check ambient temperature in the control cabinet
53 OH3 Overtemperature detection by PTC/KTY: Check drive dimensioning.
motor too hot due to continuous
overload/ overcurrent
No PTC/KTY connected Connect PTC/KTY.
Deactivate the OH3 error using code C0583/000 = 3).
54 OH4 Ambient temperature too high (TU > 40°C Leave drive controller to cool down and provide
or 50°C, depending on device improved ventilation (control cabinet fan?)
type/power reduction) Check ambient temperature in the control cabinet.
Heatsinks are heavily soiled Clean heatsinks and protect against renewed soiling.
Mounting position of the drive controller Check the mounting position of the controller and the
stipulated minimum distances top and bottom.
A value that is too low has been set in Increase value in code C0122/000.
the parameters using code C0122/000
55 OH5 Temperature inside the controller > Leave drive controller to cool down and provide
C0124 improved ventilation (control cabinet fan?).
Check ambient temperature in the control cabinet
57 OH7 Overtemperature detection by PTC/KTY: Check drive dimensioning.
motor too hot due to continuous
overload/ overcurrent
No PTC/KTY connected Connect PTC/KTY.
Deactivate the OH7 error using code C0584/000 = 3).
A value that is too low has been set in Increase value in code C0121/000.
the parameters using code C0121/000
Earth loop in the wiring Wire as per EMC requirements (see System Manuals
"9300", p. 4-34)
72 Pr1 Error on transferring the parameter set Set the required parameters and save safe against
CAUTION: default setting is loaded mains failure in the EPROM using code C0003/000
automatically!
74 PEr Error in the internal program execution Read parameter set and send together with the source
project to Lenze for further analysis, consultation with
Lenze necessary (service hotline: (+49) 5154 82-1111)
75 Pr0 Invalid data in the EEPROM on loading Set the required parameters and save safe against
the parameters from the EEPROM to the mains failure in the EPROM using code C0003/000, then
RAM switch mains/shutdown the control voltage once
CAUTION: default setting is loaded
automatically!
79 PI Error on transferring the parameters from Read parameter set and send together with the source
the EEPROM to the RAM project to Lenze for further analysis, consultation with
Lenze necessary (service hotline: (+49) 5154 82-1111)
Use of a parameter set in the GDC Use parameter set that matches the controller in the
software that does not match the device GDC software, transfer this again to the controller and
(9300EI/ET). save safe against mains failure in the controller using
C0003/000, then switch mains/shutdown the control
voltage once
82 Sd2 Resolver cable partially or entirely open Check resolver cable for wire breakage
circuit/disconnected Check resolver
Resolver not fitted/not connected Disable monitoring via the code C0586/000 = 3, if a
resolver is not used
83 Sd3 Encoder cable open circuit Disconnect cable from X9 and check for wire breakage
85 Sd5 Current master value on X6 (terminals 1 Check cable for wire breakage
and 2) less than 2mA Check master current value encoder
Check setpoint configuration using C0034/000
OR:
Disable monitoring using code C0598/000 = 3
86 Sd6 Motor temperature sensor on X8 is Check cable on X8 for correct seating and wire breakage
providing undefined values Disconnect thermocouple (PTC/KTY) and measure
resistance (must not be ∞)
OR:
Disable monitoring using code C0594/000 = 3
87 Sd7 Absolute value encoder with RS485 Check cable on X8 for correct seating and wire breakage
interface is not sending any data Check absolute value encoder for correct function
Set supply voltage to 8.0V using C0421/000
Encoder with HIPERFACE interface not connected
210 Floatfehler An error has occurred during a floating Check all floating point operations in the cyclic task and
PLC_PRG Id1 point operation in the cyclic task sub-routines called by them.
(PLC_PRG or a POE called). Remove/prevent divisions by 0.
211 Floatfehler An error has occurred during a floating Check all floating point operations in the cyclic task and
Task1 Id2 point operation in the cyclic task sub-routines called by them.
212 Floatfehler (PLC_PRG or a POE called). Remove/prevent divisions by 0.
Task2 Id3
213 Floatfehler
Task3 Id4
214 Floatfehler
Task4 Id5
215 Floatfehler
Task5 Id6
231 Unallowed Lib The target system does not support a Use the library for the target system.
library used in the source project. Ensure the target system version supports the version of
the libraries used.
232 NoCamData Motion profiles (Cam data) not available Check the data in the Cam file
240 TxBuffer On the usage of the library Reduce the CAN telegrams sent using the function block
Overflow LenzeCanDrv.lib too many CAN L_CanPdoTransmit
telegrams are sent. The transmit data − Increase the interval time for the task
memory is full. − Select time-controlled instead of event-controlled
transmission using the byTransmitMode
− Increase the transmission cycle on the input
tRepeatTime.
Increase the transmission rate on the system bus using
the code C0351/000.
241 RxBuffer On the use of the library Reduce the number of telegrams received to the free
Overflow LenzeCanDrv.lib too many CAN CAN objects that are further processed by function
telegrams are being received and cannot blocks of type L_CanPdoReceive.
be processed that quickly in the PLC Call sub-routines in which received, free CAN telegrams
program. The receive data memory is are further processed at shorter interval times.
full.
250 NoApplFlash The data memory for additional Replace the actual target system with a suitable target
data/application data is missing system that contains the memory module for
additional/application data.
Contact your Lenze sales representative or the Lenze
service hotline (+49) 5154 82-1111.
251 ChckErr The checksum for the application data in Contact your Lenze sales representative or the Lenze
(ApplRAM) the RAM does not match the reference service hotline (+49) 5154 82-1111.
checksum.
252 DwnldErr During the transfer of the application Check the data connection:
(ApplFlash) data to the non-volatile application data − Check the bus connectors and terminating
memory an error occurred. resistors for correct seating and correct polarity.
− Check the parameters set for the transmission path
for freedom from ambiguity (e.g. several CAN
nodes with same bus address, baud rate, bus load
too high).
− If necessary remove nodes from the system bus to
reduce the bus load.
The source file for the additional data is corrupt
(impermissible change): re-generate the source data
(e.g. LC9 file with profile data) and repeat the transfer.
260 LifeGd The checksum for the application data in Contact your Lenze sales representative or the Lenze
Event the flash EPROM does not match the service hotline (+49) 5154 82-1111.
reference checksum.