■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