Cross cutter, Appendix – Lenze EVS93xx CrossCutter User Manual

Page 274

Advertising
background image

Cross Cutter

Appendix



Prepared Solution Servo PLC / ECSxA 1.1 EN

6-106


Outputs

(Variable type: VAR_OUTPUT)

Name Data

type

Value/Meaning

dnShiftedActIncLastScan_p

DINT

Last-scan value assigned to the shifted print-mark pulse bShiftedTpReceived_b in [incr.]: This
signal can be used for the touch-probe-accurate evaluation of the shifted print-mark pulse for
additional function blocks (e.g. L_DFSET.dnSetTPLastScan_p).

bShiftedTpReceived_b

BOOL

Output of the print-mark pulse shifted by offset distance dnOffset_p (FALSE-TRUE edge): When
output at bShiftedTpReceived_b, the print-mark pulse is deleted from the register.
Note: This signal can be used for the touch-probe-accurate evaluation of the shifted print-mark
pulse for additional function blocks (e.g. L_DFSET.bSetTPReceived_b). The associated last-
scan value for the shifted print-mark signal (shifted based on distance) is output at output
dnShiftedActIncLastScan_p.
Overflow indicator for the print-mark register:
FALSE The number of print-mark pulses entered in the register simultaneously is less

than or equal to 32. The print-mark register is running without errors.

bOverflow_b

BOOL

TRUE A further print-mark pulse has been detected via input bTpReceived_b, although

32 signals have already been entered in the print-mark register. The register
structure is now implausible and this is resulting in incorrect output signals.
Reinitialise the function block by setting bReset_b = TRUE to restore data
plausibility.

4

The following measures can be taken to prevent a print-mark-register overflow:

Only use the Tp_Register function block to shift valid print-mark pulses which will later
also be used for evaluation. You can connect the Tp_Window function block upstream of
the print-mark register to mask out invalid print-mark pulses.

Mount the print-mark sensor nearer to the machine unit (this will reduce the offset
distance dnOffset_p and allow register entries to be enabled more quickly).

Initialisation/reset active
FALSE No effect – the Tp_Register function block works as described.

bResetState_b

BOOL

TRUE Deletion of all internal registers active: All print-mark signals detected via

bTpReceived_b but not yet output at bShiftedTpReceived_b are deleted from the
internal registers (all elements of the internal data array abEnable[0..31] are set to
FALSE).

Internal

(Variable type: VAR)

Name Data

type

Meaning

abEnable

ARRAY [0..31] OF BOOL

Internal data field: Register entry active
A print-mark signal detected at input bTpReceived_b increments the internal input
index byInIndex and activates the associated register entry (abEnable[byInIndex]
= TRUE). The register entry will be deactivated once the print-mark signal has
been shifted (based on distance) by offset distance dnOffset_p or a reinitialisation
of the Tp_Register function block has been activated (bReset_b = TRUE).

adnBasis_p

ARRAY [0..31] OF DINT

Internal data field: Basic position of print-mark signals
The current positions of the print marks entered in the print-mark register will vary
between 0 and the offset distance dnOffset_p. The current position of each of the
32 print marks which can be stored in the register can be calculated as follows
using the basic position adnBasis_p[i]:

Current

position

=

L_PHINT1.dnOut_padnBasis_p[i] (where i = 0 …

31)

byInIndex

BYTE

Input index: Indicates the data element of the print-mark register (value range 0
… 31) with the last print mark detected via input bTpReceived_b.

byOutIndex

BYTE

Output index: Indicates the data element of the print-mark register (value range 0
… 31) with the next print-mark pulse to be output at output
bShiftedTpReceived_b.

dnOut_p

DINT

Internal position value: Position of the next print-mark pulse to be output at output
bShiftedTpReceived_b, scaled in [incr.]

Connection example:

4

The Tp_Register function block is programmed in the IEC Structured Text (ST) language and the number of registers can easily be increased by the user.

Advertising