-

Y_YA_IsInteger

Image

This function block checks if InputString is an integer (Any non floating point value such as BYTE, SINT, INT, UINT, DINT, UDINT). If InputString is an integer, Result will be set high. This function block is useful when preparing to copy string data into other datatypes using the STRING_TO_* functions. If the data is corrupt or not an integer when using the STRING_TO_ functions, a String Conversion Exception will occur. This function block helps to eliminate that risk.

Parameters:

* Parameter Data Type Description Default
VAR_INPUT
B Enable BOOL The function block will continue to execute every scan while Enable is held high and there are no errors. FALSE
V InputString STRING Input string to be tested. STRING#''
VAR_OUTPUT
B Valid BOOL Indicates that the function block is operating normally and the outputs of the function block are valid.
V Result BOOL Result will be TRUE if the string is convertible to an integer.

 


This help information is valid for iCube Engineer Online Help 2025.6

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