Mitsubishi Electric MELSEC iQ-R Series User Manual page 278

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

Advertisement

No.
Item
(18)
Record start flag,
record end flag
(19)
Record data length
(20)
Date data
(21)
Data collection
interval
(22)
Step No.
(23)
Program No.
(24)
Program name
length
(25)
Program name
(26)
Index
(27)
Trigger occurrence
flag
(28)
Data
*1 The following capacity values are output to  based on the model.
Example: R08CPU, R08ENCPU:  = 08
20 DATA LOGGING FUNCTION
276
20.6 Data Logging File
Description
The flags for identifying the start and end of the record are output. The FFFFH is output for record start
while the FFFEH is output for record end as the fixed flag.
The total size of (20) Day and time data to (28) Last data is output.
The Day and time data is output.
b15
to
b0
Year: Last 2 digits of the year,
Year
Month
Month: 1 to 12
Day
Time
Day: 1 to 31, Time: 0 to 23
Minute
Second
Minute: 0 to 59, Second: 0 to 59
Millisecond
Millisecond: 0 to 999
The time interval from the previous collection time to the current collection time is output. (Unit: s,
Display range: 1 to 100000000000 (When it exceeds the max value, it returns to "1" and incrementing
runs again.)) After logging collection is started, 0 is stored at the first collection.
The step No. executed on the engineering tool at the timing in which data was collected is output. With
the collection condition "Each scanning cycle" specified, the resulting output is the step No. at the time
of execution of END instruction in the last executed program in the scan. With the collection condition
"Interrupt occurrence" specified, the resulting output is the step No. at the time of execution of IRET
instruction in the interrupt program. If the system operation (such as system interrupt) is running during
collection interval and collection timing or the FB program is in running, "0" is output.
The program No. (FB File No.) executed on the engineering tool at the timing in which data was
collected is output. With the collection condition "Each scanning cycle" specified, the resulting output is
the program number of the last executed program in the scan. If system operation (such as system
interrupt) is running at collection interval and collection timing, "0" is output.
The name length of a program that is executed at the time interval and timing in which data was
collected is output. If the same program number or program name has already been in the file, "0" is
output.
The program name (no extension) that is executed at the time interval and timing in which data was
collected is output in Unicode. With the collection condition "Each scanning cycle" specified, the
resulting output is the program name of the last executed program in the scan. If system operation
(such as system interrupt) is running at collection interval and collection timing, "* SYSTEM" is output.
The index number ranging from 1 to 4294967295 of data, which was collected by the data logging
function, is output. When it exceeds the max value, it returns to "1" and incrementing runs again. If
missing occurs in processing data, index will be reassigned from 1 again.
The trigger occurrence information is output.
b0 1: A trigger has occurred.
0: No trigger has occurred.
Data collected by the data logging function is output corresponding to (13) Data length and (10) Data
type.
• When bits are specified: bit On = 1 and bit Off = 0 are output.
• When word type (signed/unsigned) or double-word type (signed/unsigned) is specified: the data
values are output in the specified unit.
• When single-precision real number or double-precision real number is specified: data value is output
in the specified unit. ( Page 277 Numerical value range for each output type)
• When character string type is specified: the character string with the specified size is output. If the
character string terminator "0" exists in the middle of data, NULL is generated on from said point
onward until the terminator of the specified size.
• When numeric string type is specified: the data value with the specified size is output.
• When time is specified: T#-24d20h31m23s648ms to T#24d20h31m23s647ms is output.
b0
Size (byte)
2
2
8
8
4
2
2
0 to 200
4
2
• Bit: 2
• Word (signed/
unsigned): 2
• Double word
(signed/
unsigned): 4
• Single-precision
real number: 4
• Double-precision
real number: 8
• String/numeric
string: 1 to 256
• Time: 4

Advertisement

Table of Contents
loading

Table of Contents