Mitsubishi Electric MELSEC iQ-R User Manual page 102

High speed analog-digital converter module
Hide thumbs Also See for MELSEC iQ-R:
Table of Contents

Advertisement

■Program example to transfer data with the function block
Ex.
To start the continuous logging and copy logging data (CH1) for 100000 points and register them in file registers (ZR0 to
ZR99999) of the CPU module continuously
• Label settings
Classification
Module label
Labels to be defined
• Program example
(0)
After the function block for continuous logging data transfer becomes in start status, the continuous logging is started.
(17) 'G_bReadFbEn' (M20) is turned on and the function block for continuous logging data transfer is started.
If data omission occurs during continuous logging because of the processing time of the other scan program or interrupt program, the function block turns
on 'G_bErrReadLogging' (F0), and this stops the read of logging data.
(297) After the transfer of the logging data for 100000 points is completed, the continuous logging and the function block for continuous logging data transfer are
stopped.
1 FUNCTIONS
100
1.15 Continuous Logging Function
Label name
R60ADH_1.uContinuousLoggingStartStopRequest_D
Define global labels as shown below:
Description
Continuous logging start/stop request
Device
U0\G100

Advertisement

Table of Contents
loading

Table of Contents