-

Y_YA_DataRecord

Image

This function block will record Data into the array. Data can be stored continuously or intermittently. The default datatype for Data to be recorded can be customized by the user to satisfy other recording needs.

Parameters

* Parameter Data Type Description Default
VAR_IN_OUT
V Data Yt_YA_XYDataStruct Structure where recorded data is stored.
VAR_INPUT
B Enable BOOL The function block will continue to execute every scan while Enable is TRUE and there are no errors. FALSE
V DataSize INT The maximum amount of data to be stored, which must be less than or equal to the datatype definition for Data. INT#0
V NewData Yt_YA_XYData Structure containing a single pair of X and Y data to be added to the XYDataStruct. n/a
V Stream BOOL If TRUE, the function will store NewData every application scan. FALSE
V Trigger BOOL If Stream is FALSE, then the function will store new Data only upon the rising edge of Trigger. FALSE
VAR_OUTPUT
B Valid BOOL The Valid output indicates that the function block is operating normally and the outputs of the function block are valid.
V DataFilled BOOL Indicates when the Data recording has reached the DataSize.
B 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.
E 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 Index INT Indicates the last array index recorded.

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.