![Omron SYSMAC CX-Programmer 9 Operation Manual Download Page 217](http://html1.mh-extra.com/html/omron/sysmac-cx-programmer-9/sysmac-cx-programmer-9_operation-manual_744241217.webp)
191
Function Descriptions
Appendix C
• Example
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
Data type
Description
Write_string
STRING
Specifies the text string to write to a file.
Directory_name_and
_file_name
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.
Delimiter
STRING
'': Empty character
',': Comma
“$L” or “$l”: Line feed (ASCII 0A)
“$N” or “$n”: Carriage 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)
Parameter
INT, UINT, WORD
0: Append
1: Create new file
Message 1
Variables
STRING Message1
STRING Message2
INT Result
Result:=FIND(Message1,Message3);
→
"2" is stored in the
Result
variable.
Message 2
A
B
C
D
E
C
D
E
C D E
Summary of Contents for SYSMAC CX-Programmer 9
Page 2: ......
Page 4: ...iv ...
Page 6: ...vi ...
Page 8: ......
Page 16: ...xvi ...
Page 20: ...xx ...
Page 26: ...xxvi Application Precautions 4 ...
Page 27: ...Part 1 Function Blocks ...
Page 28: ......
Page 154: ...128 Procedures Section 3 2 ...
Page 155: ...Part 2 Structured Text ST ...
Page 156: ......
Page 160: ...134 CX Programmer Specifications Section 4 2 ...
Page 206: ...180 Procedures Section 6 1 ...
Page 208: ...182 System defined external variables supported in function blocks Appendix A ...
Page 230: ...204 Revision History ...
Page 231: ......