IDEC MICROSmart FC6A Series Ladder Programming Manual page 519

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

Character string operations
When handling strings, the NULL terminating character (0x00) is the end of the string. The NULL terminating character is not
included in the length of the string.
Function
STRCUT(
Character string copy
Character string length
STRLEN(
Concatenation of
STRCAT(
character strings
Character string search
STRSTR(
■Data Type Designations
Scripts written that designate the data type for processing enclosed in curly brackets "{ }".
Executable lines are written as
Format
asword
{
asword
}
asinterger
{
asinterger
}
asdoubleword
{
asdoubleword
}
aslong
{
aslong
}
asfloat
{
asfloat
}
Note: The notation used for data type designations can also be written by abbreviating a portion of the keywords.
Notation
asword
asinterger
asdoubleword
aslong
asfloat
There is no difference in the operation of the data type designation by using either type of notation.
Format
,
,
,
)
From the character string starting from
forward for
Returns the length of the character string that starts from
)
Concatenates the character string that starts from
,
);
starts from
Searches for the character string that starts from
starts from
,
);
characters from the start-1).
• The maximum character string length that can be searched is 128 characters.
,
,
Executable line 1 is executed as data type W (word).
;
Executable line 2 is executed as the data type set in Data Type in Script Editor.
;
Executable line 1 is executed as data type I (integer).
;
Executable line 2 is executed as the data type set in Data Type in Script Editor.
;
Executable line 1 is executed as data type D (double word).
;
Executable line 2 is executed as the data type set in Data Type in Script Editor.
;
Executable line 1 is executed as data type L (long).
;
Executable line 2 is executed as the data type set in Data Type in Script Editor.
;
Executable line 1 is executed as data type F (float).
;
Executable line 2 is executed as the data type set in Data Type in Script Editor.
;
Notation Abbreviating a Portion of the Keyword
asw
asi
asd
asl
asf
FC6A S
MICROS
ERIES
MART
: First device of copy source
: First device that stores the source character string to copy
: Copy start position (0 to 127)
: Character count to copy (1 to 128)
characters are stored into
and stores
and returns the position in that string where it was found (number of
,
, and so on.
Description
L
P
M
ADDER
ROGRAMMING
ANUAL
Description
, character string from
for
characters.
.
to the character string that
at the start.
in the character string that
FC9Y-B1726
26: S
CRIPT
bytes
26-17

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents