Writing Data To The Specified File - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Writing data to the specified file

SP.FWRITE
RnPCPU
RnCPU RnENCPU
(Process)
This instruction writes device data to the specified file on the SD memory card.
Ladder
(U)
FBD/LD
EN
ENO
U
d1
s1
d2
s2
s3
■Execution condition
Instruction
SP.FWRITE
Setting data
■Descriptions, ranges, and data types
Operand
Description
(U)
Dummy
(s1)
Drive specification
(d1)
Start device where the control data is stored
(s2)
Start device where the file name is stored
(s3)
Start device where data is stored
(d2)
Bit device that turns on upon completion of the processing
EN
Execution condition
ENO
Execution result
*1 Only drive 2 (for the SD memory card) can be set.
*2 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
7 APPLICATION INSTRUCTIONS
616
7.6 Reading/Writing Data Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(s1)
(d1)
(s2)
(s3)
(d2)
Execution condition
ST
ENO:=SP_FWRITE(EN,U,s1,s2,s3,d1,d2);
Range
Data type
Device name
*1
2 (fixed)
Word
Refer to the control data.
Word
Unicode string
Word
Bit
Bit
Bit
Data type (label)
ANY16
ANY16
ANY16_ARRAY
(Number of elements: 8)
ANYSTRING_DOUBLE
*2
ANY16
ANYBIT_ARRAY
(Number of elements: 2)
BOOL
BOOL

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents