-

Y_IM_FMGetSpeed

2021-03-23_MotionModule_GetSpeed.png

Parameters

* Parameter Data Type Description Default
VAR_INPUT
V
Enable
BOOL The function block will continue to execute every scan while Enable is TRUE and there are no errors.
FALSE
V
PresetPeriod
DINT Preset period in µs for this channel.
Enter here the measurement period in µs for the corresponding channel. Range of values: 1µs ... 8 388 607µs.
DINT#0
V
Resolution
DINT Enter here the resolution in increments per revolution.
DINT#0
V
FMPeriod
DWORD
Actual value for the FM module. This value must be connected to the FM module process variables of the used channel.
Currently determined period duration of the corresponding channel in 100ns.
DWORD#16#0000_0000
V
FMRisingEdges
DWORD Actual value for the FM module. This value must be connected to the FM module process variables of the used channel.
This parameter contains the determined number of rising edges .of the corresponding channel
DWORD#16#0000_0000
V
FMStatus
WORD Actual value for the FM module. This value must be connected to the FM module process variables of the used channel.
This parameter contains the status of . of the corresponding channel
WORD#16#0000
VAR_OUTPUT
V
Valid
BOOL Stays TRUE as long as the function block executes without an error
V
Busy
BOOL Busy indicates that the function block is operating, but may not be ready to provide valid outputs.
V
Error
BOOL The Error output is set to TRUE if an error has occurred during the operation of the function block. The output is cleared when the Execute or Enable input becomes FALSE.
V
ErrorID
UINT The ErrorID output provides the identifier of the error when there is an active error in the function block execution. The output is cleared when the Execute or Enable input becomes FALSE.
V
Speed
DINT Currently determined rotational speed of the corresponding channel in revolutions per minute (rpm).
V
FMPresetPeriod
DWORD Set value for the FM module. This value must be written to the FM module process variables of the used channel.
V
FMControl
WORD Set value for the FM module. This value must be written to the FM module process variables of the used channel.

Error Description

See the Function Block ErrorID List

 


This help information is valid for iCube Engineer Online Help 2025.6

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