-

Y_YA_IsNumeric

Image

If InputString is numeric, 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 a valid number when using the STRING_TO_ functions, a String Conversion Exception will occur. This function block helps to eliminate that risk. Valid strings may include a '+', '-' or '.' character as the first character, otherwise every character must be between or including '0 -9'. If there is an 'E' for scientific notation, another '+' or'-' may immediately follow the 'E'.

Parameters:

* Parameter Data Type Description Default
VAR_INPUT
B Enable BOOL The function 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 is operating normally and the outputs of the function are valid.
V Result BOOL Result will be TRUE if the string is convertible to a number.

 


This help information is valid for iCube Engineer Online Help 2025.6

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