Panasonic FP Series Programming Manual page 270

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

POU header
All input and output variables used for programming this function have been declared in the POU
header.
In this example the input variables (input_string, character_number and start_position) have
been declared. Instead, you may enter the string ('Ideas for life'), the number of characters to be
delivered and the start position directly into the function. The string has to be put in inverted
commas, both in the POU header and in the function.
Body
Starting from start_position (7), character_number (8) of input_string ('Ideas for life') is copied
to output_string ('for life').
LD
ST
When programming with structured text, enter the following:
output_string:=MID(IN:=input_string, L:=character_number,
P:=start_position);
String instructions
269

Advertisement

Table of Contents
loading

Table of Contents