Writing Data To Designated File (Sp.fwrite) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

7.18.12

Writing Data to Designated File (SP.FWRITE)

SP.FWRITE
SP.FWRITE
Setting
Data
S0
D0
S1
S2
D1
Setting
Data
U0
Dummy
Drive designation
S0
Head number of the devices storing the control data. The following control data is required.
Device
D0
+1
D0
+2
D0
+3
D0
D0
+4
D0
+5
D0
Command
Internal Devices
R, ZR
Bit
Word
––
––
––
*1
*1
*1: Local devices and the devices designated for individual programs cannot be used.
Meaning
Item
Contents/Setting Data
Execution/
Designate the execution type.
completion
0000
: Write binary data
H
type
0100
: Write data after CSV format conversion
H
(Not used)
Used by system
Contains the number of actually written data
Writing
result (No.
against the data designated by
of written
of the value depends on data type specified at
data)
+7.
D0
(Not used)
Set the file position when binary data writing
is specified by
.
D0
00000000
:Starting at the beginning of the file
H
00000001
to FFFFFFFE
H
From the specified position
The unit of the value depends
on data type specification.
FFFFFFFF
: Addition starts from the end
H
of the file.
When CSV format write is specified at
File
• For the High Performance model QCPU of
which the first 5 digits of the serial number
position
are "01111" or lower, always set the
beginning (0
) of the file.
H
• For the High Performance model QCPU/
Process CPU/Redundant CPU/Universal
model QCPU of which the first 5 digits of
the serial number are "01112" or higher, set
the file position.
00000000
to FFFFFFFE
H
: Starting at the beginning of
the file
FFFFFFFF
: Addition starts at the end of the file.
H
High
Basic
performance
Universal model QCPU: Other than Q00UJCPU/Q00UCPU/Q01UCPU
U0
S0
SP.FWRITE
J
\
U
\G
Bit
Word
––
––
––
––
––
Setting Range
––
2
Setting Range
0000
0100
––
. The unit
S2
––
––
––
:
H
D0
00000000
FFFFFFFF
H
SP.FWRITE
Ver.
Process
Redundant
Universal
LCPU
D0
S1
S2
D1
Constants
Zn
Other
K, H
$
––
––
––
––
––
––
––
––
––
––
––
––
––
Set by
Data Type
––
User
Set by
H
User
H
System
System
––
BIN 16 bits
to
H
User
H
7-415
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents