EasyManuals Logo

IDEC MICROSmart FC6A Series Ladder Programming Manual

IDEC MICROSmart FC6A Series
604 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #540 background imageLoading...
Page #540 background image
26: S
CRIPT
26-38 FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
Example 7.30 Count a string
Script
Operation Description
Finds the length (character count) of the string starting from D0200 and stores the result in D0100.
Note: The NULL terminating character (0x00) is the end of the string. (The terminating character is not included in the string length.)
Example 7.31 Concatenate strings
Script
Operation Description
Appends the string starting from D0200 to the string starting from D0100.
Note: The NULL terminating character (0x00) is the end of the string. (The terminating character is not included in the string length.)
[D0100] = STRLEN([D0200]);
Device Stored Value Device Stored Value
D0200
Upper Byte
'A' = 0x41
D0100 7
Lower Byte
'B' = 0x42
D0201
Upper Byte
'C' = 0x43
Lower Byte
'D' = 0x44
D0202
Upper Byte
'E' = 0x45
Lower Byte
'F' = 0x46
D0203
Upper Byte
'G' = 0x47
Lower Byte
0x00
Device Stored Value Device Stored Value
D0200
Upper Byte
'A' = 0x41
D0100 3
Lower Byte
'B' = 0x42
D0201
Upper Byte
'C' = 0x43
Lower Byte
0x00
D0202
Upper Byte
'E' = 0x45
Lower Byte
'F' = 0x46
D0203
Upper Byte
'G' = 0x47
Lower Byte
0x00
Character count
Terminating character
Character count
Terminating character
STRCAT([D0100], [D0200]);
Device Stored Value Device Stored Value
D0100
Upper Byte
'A' = 0x41
D0100
Upper Byte
'A' = 0x41
Lower Byte
'B' = 0x42
Lower Byte
'B' = 0x42
D0101
Upper Byte
'C' = 0x43
D0101
Upper Byte
'C' = 0x43
Lower Byte
0x00
Lower Byte
'D' = 0x44
D0102
Upper Byte
'E' = 0x45
Device Stored Value
Lower Byte
'F' = 0x46
D0200
Upper Byte
'D' = 0x44
D0103
Upper Byte
'G' = 0x47
Lower Byte
'E' = 0x45
Lower Byte
0x00
Terminating character
D0201
Upper Byte
'F' = 0x46
Lower Byte
'G' = 0x47
D0202
Upper Byte
0x00
Lower Byte
0x00
Concatenate
Terminating
character
Terminating character

Table of Contents

Other manuals for IDEC MICROSmart FC6A Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IDEC MICROSmart FC6A Series and is the answer not in the manual?

IDEC MICROSmart FC6A Series Specifications

General IconGeneral
BrandIDEC
ModelMICROSmart FC6A Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals