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 CX-PROGRAMMER V8.1
Page 3: ...iv...
Page 5: ...vi...
Page 7: ......
Page 15: ...xvi...
Page 19: ...xx...
Page 25: ...xxvi Application Precautions 4...
Page 26: ...Part 1 Function Blocks...
Page 27: ......
Page 153: ...128 Procedures Section 3 2...
Page 154: ...Part 2 Structured Text ST...
Page 155: ......
Page 159: ...134 CX Programmer Specifications Section 4 2...
Page 205: ...180 Procedures Section 6 1...
Page 207: ...182 System defined external variables supported in function blocks Appendix A...
Page 229: ...204 Revision History...
Page 230: ......