Chapter 2 File Operation Fb; M+Fileoperation_Saveloggingcsv_W_R; Overview; Labels To Use - Mitsubishi Electric MELSEC iQ-R Series Manual

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

Advertisement

2
FILE OPERATION FB
2.1

M+FileOperation_SaveLoggingCSV_W_R

Overview

This FB reads signed word logging data stored in a file register (ZR), such as analog data of multiple channels, and stores the
data in CSV format in an SD memory card.
M+FileOperation_SaveLoggingCSV_W_R
(1)
B:i_bEN
(2)
UD:i_udDataAddr
(3)
UW:i_uCHNum
(4)
UD:i_udSavePoints
(5)
S:i_snAppendFileName

Labels to use

Input label
No.
Variable name
(1)
i_bEN
(2)
i_udDataAddr
(3)
i_uCHNum
(4)
i_udSavePoints
(5)
i_snAppendFileName
Output label
No.
Variable name
(6)
o_bENO
(7)
o_bOK
(8)
o_udCompleteLogPoints
(9)
o_bErr
(10)
o_uErrId
2 FILE OPERATION FB
8
2.1 M+FileOperation_SaveLoggingCSV_W_R
o_bENO:B
o_bOK:B
o_udCompleteLogPoints:UD
o_bErr:B
o_uErrId:UW
Name
Data type
Execution
Bit
command
Start address of
Double word
the storage
[unsigned]
location of logging
data
Number of
Word [unsigned]
channels
Number of save
Double word
points
[unsigned]
CSV file name
String
Name
Data type
Execution status
Bit
Normal completion
Bit
Number of storage
Double word
completed logging
[unsigned]
data points
Error completion
Bit
Error code
Word [unsigned]
(6)
(7)
(8)
(9)
(10)
Scope
On or off
Valid device range.
1 to 4
1 to 10000000
1 to 28 characters
Initial data
OFF
OFF
0
OFF
0
Description
On: The FB is activated.
Off: The FB is not activated.
Specify the start address of the file register (ZR) where
logging data is stored.
Store the logging data in signed word format.
Specify the number of channels of the logging data to be
stored.
Specify the number of points of the logging data to be
stored.
Specify a CSV file name.
The file extension (.CSV) is automatically added by this
FB.
Description
On: The execution command is on.
Off: The execution command is off.
The on state indicates that the storage of the logging
data in an SD memory card is completed.
Returns the number of points of the logging data stored
in an SD memory card.
The on state indicates that an error has occurred in the
FB.
The error code of an error occurred in the FB is stored.

Advertisement

Table of Contents
loading

Table of Contents