EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 1051

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1018
Text String Processing Instructions Section 3-31
3-31-6 GET STRING MIDDLE: MID$(654)
Purpose Reads a designated number of characters from any position in the middle of a
text string.
Ladder Symbol
Variations
Applicable Program Areas
Operands S1: Text String
S2: Number of Characters (0000 to 0FFF hex or &0 to &4095)
S3: Beginning Position (0001 to 0FFF hex or &1 to &4095)
Note (1) The data from S1 to S1 + the maximum 2,047 words and from D to D +
the maximum 2,047 words must be in the same area.
(2) The data from S1 to S1 + the maximum 2,047 words and from D to D +
the maximum 2,047 words can overlap.
Operand Specifications
MID$(654)
S1
S2
S3
D
S1: Text string first word
S2: Number of characters
S3: Beginning position
D: First destination word
Variations Executed Each Cycle for ON Condition MID$(654)
Executed Once for Upward Differentiation @MID$(654)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification Not supported
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
15 0
S1
to
Text string data: 4,095 characters max. + NUL
S1 + maximum 2,047 words
15 0
D
to
Text string data: 4,095 characters max. + NUL
D + maximum 2,047 words
Area S1 S2 S3 D
CIO Area CIO 0 to CIO 6143
Work Area W0 to W511
Holding Bit Area H0 to H511
Auxiliary Bit Area A0 to A447
A448 to A959
A448 to
A959
Timer Area T0000 to T4095

Table of Contents

Related product manuals