Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1746

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

Advertisement

Processing details
• These instructions read the offset/gain setting values of the user range settings of an analog module into the CPU module.
• Execution and normal/error completion of the G(P).OGLOAD instruction can be checked with the completion device
specified by the setting data (d) and the completion status indication device (d)+1.
• Completion device (d)
Turns on during END processing of the scan that arises upon completion of the G(P).OGLOAD instruction, and turns off during the next END processing.
• Completion status indication device (d)+1
Turns on or off depending on the status resulting from completion of the G(P).OGLOAD instruction.
When completed normally: Unchanged from off.
When completed with an error: Turns on during END processing of the scan that arises upon completion of the G(P).OGLOAD instruction, and turns off during
the next END processing.
• The following figure shows how the G(P).OGLOAD instruction operates when completing its execution.
Sequence scan
G.OGLOAD instruction
Completion device (d)
Completion status
indication device (d)+1
■Program example
The following figure shows an example of a program which uses the G(P).OGLOAD instruction with the R60AD4.
• Program content
Description
When "Dedicated Instruction Execution Request" (M11) is turned on, the offset/gain settings of the analog module mounted at the position of I/O numbers X/
Y10 to X/Y1F are read out to the "head device (D100) for storing the offset gain setting" and later.
• Label setting
Classification
Module label
Label to be defined
21 A/D CONVERSION INSTRUCTIONS
1744
21.2 Reading the User Range Setting Values
0
END
0
Execution of
the instruction
OFF
OFF
Label name
Define the global label as shown below.
END
0
END
0
ON
ON
Completed successfully
Description
END
0
Completion of the instruction
OFF
Completed with an error
OFF
1 scan
Device
END

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents