
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
26-17
26: S
CRIPT
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.
■
Data Type Designations
Scripts written that designate the data type for processing enclosed in curly brackets "{ }".
Executable lines are written as
,
,
,
, and so on.
Note:
The notation used for data type designations can also be written by abbreviating a portion of the keywords.
There is no difference in the operation of the data type designation by using either type of notation.
Function
Format
Description
Character string copy
STRCUT(
,
,
,
)
: 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)
From the character string starting from
, character string from
bytes
forward for
characters are stored into
for
characters.
Character string length
STRLEN(
)
Returns the length of the character string that starts from
.
Concatenation of
character strings
STRCAT(
,
);
Concatenates the character string that starts from
to the character string that
starts from
and stores
at the start.
Character string search
STRSTR(
,
);
Searches for the character string that starts from
in the character string that
starts from
and returns the position in that string where it was found (number of
characters from the start-1).
• The maximum character string length that can be searched is 128 characters.
Format
Description
asword
asword
{
;
}
;
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.
asinterger
asinterger
{
;
}
;
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.
asdoubleword
asdoubleword
{
;
}
;
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.
aslong
aslong
{
;
}
;
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.
asfloat
asfloat
{
;
}
;
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
Notation Abbreviating a Portion of the Keyword
asword
asw
asinterger
asi
asdoubleword
asd
aslong
asl
asfloat
asf
Содержание MICROSmart FC6A Series
Страница 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Страница 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 158: ...6 DATA COMPARISON INSTRUCTIONS 6 10 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 216: ...10 DATA CONVERSION INSTRUCTIONS 10 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 248: ...11 WEEK PROGRAMMER INSTRUCTIONS 11 32 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 288: ...15 INTERRUPT CONTROL INSTRUCTIONS 15 4 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 294: ...16 COORDINATE CONVERSION INSTRUCTIONS 16 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 374: ...18 PULSE OUTPUT INSTRUCTIONS 18 78 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 Setting ...
Страница 450: ...20 DUAL TEACHING TIMER INSTRUCTIONS 20 4 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 574: ...27 FLOW CALCULATION INSTRUCTIONS 27 28 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 583: ...FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 28 9 28 USER DEFINED MACRO INSTRUCTION ...
Страница 584: ...28 USER DEFINED MACRO INSTRUCTION 28 10 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...