Panasonic FP7 Series Command Reference Manual page 1112

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

18.3 CWT (File Data Write Instruction)
[S]...DT2
[n]...5
DT0
U1
DT1
U12
DT2
U123
DT3
U1234
DT4
U12345
DT5
U5
DT6
U56
DT7
U567
DT8
U5678
DT9
U56789
DT100
U11
DT101
H 0002
DT102
H 0000
DT103
H 00000004
DT104
DT105
U0
DT106
Precautions for programming
● Also refer to section
● The SD memory card access instruction active flag (SR3A) turns ON after the execution
condition has turned ON until the completion of the execution of the instruction. During this
time other SD memory card access instructions cannot be executed.
● In the case of the saving format 10 (ASCII string), character strings written from D2 are
enclosed in double quotation marks and output.
● A double quotation mark (") in character strings is converted to two double quotation marks
("").
● When the set file attribute is read only, any data cannot be written.
Flag operations
Name
SR3A (SD memory card access
instruction execution in progress)
SR3B (SD memory card access
instruction execution complete)
SR3C (SD memory card access
instruction execution result)
SR7, SR8 (ER)
18-18
[D1]..."¥abc¥data1.bin"
...Head of device
to be read
...Writing format
...Writing mode
...Option (*)
...Writing position
...Amount of writing data
(*) Option
・Invalid for 16-bit BIN format
"19.9 Common Precautions for SD Memory Card Access
Description
Turns ON when instruction execution starts. Turns OFF when
instruction execution is complete.
Turns OFF when instruction execution starts. Turns ON when
instruction execution is complete.
Indicates the execution results when instruction execution is
complete. Normal end = 0, abnormal end = 1
To be set in case of out-of-range values in indirect access (index
modification).
Set when a value outside the range is specified for the parameter.
To be set when an out-of-range value is specified in the reserved area
for system.
[D2]...DT100
Writing file "data1.bin"
111122227 B00D2043930050038008888
DT103
H 0000000E
DT104
DT105
U5
DT106
File pointer
...Writing position
...Amount of writing data
Instructions".
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents