Pulse output instructions
1189
Part IV Tool Instructions
PulseOutput_Linear_FB
Linear interpolation
This non-inline instruction is part of the tool instructions for pulse output. For a detailed description
of the instruction(s) used internally, please refer to the online help: F175_PulseOutput_Linear (see
page 1072). Use PulseInfo_IsActive (see page 1223
) to check if the control flag for the selected
channel is FALSE.
PLC types see page 1330
Input variable Data type Function
bExecute With edge or permanent if change of speed required
bAbsolute
BOOL
Absolute value control = TRUE, Relative value control = FALSE
diInitialAndFinalSpeed Initial and final speed: Composite speed = 1 to 50000
(1Hz–50kHz)
diTargetSpeed Target speed: Composite speed = 1 to 50000 (1Hz–50kHz)
diAccelerationTime
Acceleration/deceleration time (FP
, FP-X): 0ms–32767ms
Acceleration time (FP0R): 0ms–32767ms
diDecelerationTime Deceleration time (FP0R): 0ms–32767ms
diTargetValue_X X-axis target value [pulses] -8388608–8388607
diTargetValue_Y
DINT
Y-axis target value [pulses] -8388608–8388607
dutChannelConfiguration_X_Y Predefined system DUT for channel configuration:
PulseOutput_Channel_Configuration_DUT
For interpolation, channel 0 and 1 or channel 2 and 3 are used as pairs. You may
only specify 0 or 2 (for C14T: 0 only).
Output variable Data type Function
bError BOOL Refers to an internal mismatch of input values to avoid a PLC
error.
Is set only if global constant
MC_PulseOutput_Library_Basic_bCheckInputs is set to TRUE.
riInitialAndFinalSpeed_X X-axis initial and final speed [Hz]
riTargetSpeed_X X-axis target speed [Hz]
riInitialAndFinalSpeed_Y Y-axis initial and final speed [Hz]
riTargetSpeed_Y
REAL
Y-axis target speed [Hz]
dutAdditionalOutputs
FP
, FP-X: PulseOutput_Linear_AdditionalOutputs_DUT
Description
Pulses are output from two channels in accordance with the parameters in the function block and in
the specified DUT, so that the path to the target position forms a straight line. Pulses are output
from the specified channel when the control flag for this channel is FALSE and the execution
condition is TRUE.
Data types