-

Y_DirectControl

Image

This block allows direct access to any of five possible control modes available for the specified axis. For example, Y_DirectControl makes it possible to perform open loop velocity control for winding applications. In any control mode, the IEC application program can apply an algorithm to directly command position, velocity, or torque at every application task scan.

Parameters

* Parameter Data Type Description
VAR_IN_OUT
B Axis AXIS_REF Logical axis reference. This value can be located on the Configuration tab in the Hardware Configuration (logical axis number).
VAR_INPUT Default
B Enable BOOL The function will continue to execute every scan while Enable is held high and there are no errors. FALSE
V ControlMode Yt_ControlMode ControlMode: 1=Position, 2=Velocity, 3=Torque, 4=Position with Torque Feed Forward, 5=Velocity with Torque Feed Forward INT#0
E Position LREAL A positive or negative value within the coordinate system in user units. LREAL#0.0
E Velocity LREAL Velocity in user units/second. See notes below. LREAL#0.0
E Acceleration LREAL Value of the acceleration in user units/second^2 (acceleration is applicable with same sign of torque and velocity). Used in control modes 4 and 5. --
E Torque LREAL Value of the torque (in percentage of rated torque). LREAL#0.0
V FilterTimeConstant LREAL Moving average filter specified in seconds. See below for details. LREAL#0.0 (No Filter)
E BufferMode MC_BufferMode The behavior of the axis could be Aborting or Buffered MC_BufferMode#Aborting MC_BufferMode#Buffered MC_BufferMode#Aborting
VAR_OUTPUT
E Busy BOOL Set high upon the rising edge of the Execute input, and reset when Done, CommandAborted, or Error is true. In the case of a function block with an Enable input, a Busy output indicates the function is operating, but not ready to provide Valid information. (No Error)
E Active BOOL For buffered modes, this output is set high at the moment the block takes control of the axis. For non buffered modes, the outputs Busy and Active have the same value.
E CommandAborted BOOL Set high if motion is aborted by another motion command or MC_Stop. This output is cleared with the same behavior as the Done output.
B Error BOOL Set high if an error has occurred during the execution of the function block. This output is cleared when 'Execute' or 'Enable' goes low.
E ErrorID UINT If Error is true, this output provides the Error ID. This output is reset when 'Execute' or 'Enable' goes low.


Notes

Error Description

See the Function Block ErrorID List

Example 1

Y_DirectControl configured in position mode.

Image
Image

Example 2

Y_DirectControl in position mode with filter time constant

Image

Image

Example 3

Y_DirectControl configured for velocity mode.



 


This help information is valid for iCube Engineer Online Help 2025.6

Copyright © 2025 YASKAWA EUROPE GmbH and © 2025 YASKAWA America, Inc.