Mitsubishi Electric MELSEC iQ-R User Manual page 120

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

Advertisement

Transfer of data with the interrupt function
ON of High speed continuous logging data storage can be set as an interrupt factor of the interrupt function.
When the above item is set, the interrupt program is executed on the timing when the logging data for 10000 points are stored
in a buffer memory area. Thus, logging data can be transferred into file registers (ZR) without depending on the scan time.
For the interrupt program, do not use the function block for high speed continuous logging data transfer because the function
block does not operate properly by doing so.
■Program example to transfer data with the interrupt function
Ex.
To start the high speed 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
• Interrupt setting
1 FUNCTIONS
118
1.16 High Speed Continuous Logging Function
Label name
RCPU.stSM.bAfter_RUN1_Scan_ON
R60ADH_1.unInterruptFactorDetectionFlag_D[0].0
R60ADH_1.unInterruptFactorMask_D[0].0
R60ADH_1.unInterruptFactorResetRequest_D[0].0
R60ADH_1.stnControl_D[0].wHighSpeedContinuousLoggingASid
eStorageFlag_D.0
R60ADH_1.stnControl_D[0].wHighSpeedContinuousLoggingBSid
eStorageFlag_D.0
R60ADH_1.stnControl_D[0].uHighSpeedContinuousLoggingStart
StopRequest_D.0
Define global labels as shown below:
Description
Turning on for one scan after RUN
Interrupt factor detection flag [1]
Interrupt factor mask [1]
Interrupt factor reset request [1]
CH1 High speed continuous logging data A
side storage flag
CH1 High speed continuous logging data B
side storage flag
CH1 High speed continuous logging start/
stop request
Device
SM402
U0\G4.0
U0\G124.0
U0\G156.0
U0\G476.0
U0\G477.0
U0\G478.0

Advertisement

Table of Contents
loading

Table of Contents