App. - 13 App. - 13
MELSEC-Q
APPENDIX
(1) Functions
(a) Restores the offset/gain values of the us er range setting stored in the CPU
to the A/D converter module.
(b) There are two types of interlock signals f or the G.OGSTOR instruction: the
completion device (D) and the status display device at completion ( D) + 1.
1) Completion device
Turns ON in the END processing of the scan wher e the G.OGSTOR
instruction is completed, and turns OFF in the next END processi ng.
2) Status display device at completion
Turns ON and OFF depending on the completion s tatus of the
G.OGSTOR instruction.
Normal completion : Stays OFF and does not cha nge.
Abnormal completion: Turns ON in the END proc essing of the scan
where the G.OGSTOR instruction is completed,
and turns OFF in the next END processing.
Sequence program END processing
G.OGSTOR instruction
ON
OFF
Completion device (D) OFF
Status display device
at completion (D)+1 OFF
ON
ON Abnormal
completion
Normal completion
1 scan
Execution completion of
the G.OGSTOR instruction
END processing END processing END processing
ON
OFF
ON
A
/D conversion
completed flag (XE) 1
1 When the G.OGSTOR instruction is execute d, A/D conversion is not
performed. After the completion device (D) tur ns ON, A/D conversion
starts, the A/D conversion value is stored into the buffer mem ory, and
the A/D conversion completed flag (XE) then turns ON.
(c) When the offset/gain values are restored, t he reference accuracy falls to less
than 0.15%.
(2) Operation error
In any of the following cases, an error occurs and the corresponding error code is
stored into the completion status area (S)+1.
Error code Case resulting in operation error
161 The G.OGSTOR instruction was executed in the offset/gain setting
mode.
162 The G.OGSTOR instruction was executed consecutively.
163
The G.OGSTOR instruction was executed for the model that differs
from the model for which the G.OGLOAD instruction had been
executed.