Omron CX-PROGRAMMER V8.1 Operation Manual page 216

Function blocks/ structured text
Table of Contents

Advertisement

Function Descriptions
• Example
Variables
STRING Message1
STRING Message2
INT Result
Memory Card Functions
WRITE_TEXT: Create Text File
• Function
Writes the specified text sting into the specified file in the Memory Card.
• Application
Write_Text (Write_string, Directory_name_and_file_name, Delimiter, Parameter);
• Arguments and Return Values
Variable name
Write_string
Directory_name_and
_file_name
Delimiter
Parameter
Message 1
A
B
Data type
STRING
Specifies the text string to write to a file.
STRING
Specifies the directory and file name, including the root direc-
tory(\). The file name must be 8 characters or less. The file
name extension is always TXT. For example, the following file
name creates a file named LINE_A.TXT in the root directory:
\LINE_A.
STRING
'': Empty character
',': Comma
"$L" or "$l": Line feed (ASCII 0A)
"$N" or "$n": Carriage return + line feed (ASCII 0D 0A)
"$P" or "$p": New page (ASCII 0C)
"$R" or "$r": Carriage return (ASCII 0D)
"$T" or "$t": Tab (ASCII 09)
INT, UINT, WORD
0: Append
1: Create new file
Message 2
C
D
E
C
D
E
Result:=FIND(Message1,Message3);
→ "2" is stored in the Result variable.
Description
Appendix C
C
D
E
191

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX-PROGRAMMER V8.1 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Sysmac ws02-cxpc1-v8Sysmac cx-programmer 8.1

Table of Contents

Save PDF