APPENDIX. Mitsubishi Q 68ADI, Q 68ADV, Q 64AD
Below you will find brief information for Analog-Digital Converter Module Q Q64AD, Analog-Digital Converter Module Q Q68ADV, Analog-Digital Converter Module Q Q68ADI. These modules are designed to be used in conjunction with the MELSEC-Q Series CPUs. They offer high-speed conversion, high accuracy and resolution settings that can be adjusted according to your application. You can utilize a utility package (sold separately) to simplify settings, as it allows you to configure the module's parameters conveniently on-screen.
Advertisement
Advertisement
APPENDIX
MELSEC-Q
APPENDIX
Appendix 1 Function Upgrade for the A/D Converter Module
The A/D converter modules of function versions B and C have more functions than the conventional model (function version A).
This section describes a comparison of functions of the A/D converter module based on the function additions, combinations with GX Configurator-AD software version and precautions when replacing the module.
Appendix 1.1 A comparison of functions of the A/D converter module
— — —
The following table indicates the functions supported by the corresponding function versions.
Function
A/D conversion enable/disable setting
A/D conversion method
Sampling processing
Averaging processing
Maximum and minimum values hold function
Temperature drift compensation function
Multiple CPU system compatibility
Function version A Function version B Function version C
— — —
— — —
Normal resolution mode
High resolution mode
High resolution mode status flag (X8)
Maximum value/minimum value reset completed flag (XD)
Online module change
Switching between normal mode and offset/gain setting mode
Dedicated instruction (G(P).OFFGAN)
Buffer memory (mode switching setting) and Operation
Condition Setting Request (Y9)
Intelligent function module switch setting
: Compatible : Not compatible
App.
App. - 1 App. - 1
APPENDIX
MELSEC-Q
App.
Appendix 1.2 Combinations of A/D converter module functions and GX Configurator-AD software versions
The following table indicates the A/D converter module functions and corresponding
GX Configurator-AD software versions.
Function
SW0D5C-QADU
-E 00A
Software version
SW0D5C-QADU
-E 10B
GX Configurator-
AD Version 1.10L to 1.15R
GX Configurator-
AD Version 1.16S or later
Normal resolution mode
High resolution mode
1
High resolution mode status flag (X8)
1 2
Maximum value/minimum value reset completed flag (XD)
1 2
Multiple CPU system compatibility
1
Normal mode - offset/gain setting mode switching
3
: Compatible : Not compatible
1 Functions added by function version B.
2 When the A/D converter module is function version A and the GX Configurator-AD software version is SW0D5C-QDAU-E 20C or later or GX Configurator-AD Version 1.10L or later,
OFF is always displayed.
3 Functions added by function version C.
Appendix 1.3 Precautions for replacing the module of function version A with the one of function version B or later
(1) Incorporation into an existing system
You can use the wiring designed for function version A as-is to mount the A/D converter module of function version B or later.
(2) Program utilization
You can use the program created for function version A as-is with the A/D converter module of function version B or later.
(3) Switch setting for intelligent function module
The setting of the offset/gain setting mode differs between function versions A and B or later.
Perform the offset/gain settings after checking the RUN LED flashes in offset/gain setting mode. If the RUN LED does not flash, check to see if the switch 4 setting is correct.
(Refer to Section 4.5 for the intelligent function module switch setting of function version B or later.)
<Contents of switch 4 setting for function version A>
H
00
H
: With temperature drift correction
01
H to FF
H
: Without temperature drift correction
00
H
: Normal mode (A/D conversion processing)
01
H
to FF
H
: Offset/gain setting mode
App. - 2 App. - 2
APPENDIX
MELSEC-Q
Appendix 2 Dedicated Instruction List and Available Devices
(1) Dedicated instruction list
The following table lists the dedicated instructions that can be used with the A/D converter modules.
G(P).OFFGAN
G(P).OGLOAD
G(P).OGSTOR
Switches to the offset/gain setting mode.
Switches to the normal mode.
Reads the offset/gain values of the user range setting to the CPU.
Restores the offset/gain values of the user range setting stored in the CPU to the A/D converter module. section
Appendix 2.1
Appendix 2.2
Appendix 2.3
POINT
When the module is mounted to a MELSECNET/H remote station, the dedicated instructions cannot be used.
(2) Available devices
The following devices are available for the dedicated instructions:
Internal devices
File register
Bit Word
X, Y, M, L, F, V, B T, ST, C, D, W R, ZR
Constant
-
Word device bit designation can be used as bit data.
Word device bit designation is done by designating Word device . Bit No. .
(Designation of bit numbers is done in hexadecimal.)
For example, bit 10 of D0 is designated as D0.A .
However, there can be no bit designation for timers (T), retentive timers (ST) and counters (C).
App. - 3 App. - 3
APPENDIX
MELSEC-Q
Appendix 2.1 G(P).OFFGAN
Set data
Switches the mode of the A/D converter module. (Normal mode to offset/gain setting mode, offset/gain setting mode to normal mode)
Internal device
(System, user)
File register
Bit Word
Usable devices
Link direct device
J \
Intelligent function module
U \G
—
Index register
Z
Constant
K, H $
Other
— — — (S) —
[Instruction symbol]
[Execution condition]
Command
G.OFFGAN
G.OFFGAN
Un (S)
Command
GP.OFFGAN
Set data
Device Description
Un Start I/O number of the module
(S)
Mode switching
0: Switching to normal mode
1: Switching to offset/gain setting mode
The setting of any other value results in "switching to offset/gain setting mode".
GP.OFFGAN
Setting range
0 to FE
H
0 ,1
Un (S)
Data type
Binary 16 bits
Binary 16 bits
(1) Function
Switches the mode of the A/D converter module.
• Normal mode to offset/gain setting mode (the offset/gain setting mode status flag (XA) turns ON)
• Offset/gain setting mode to normal mode (the offset/gain setting mode status flag (XA) turns OFF)
POINT
(1) When the offset/gain setting mode is switched to the normal mode, Module
Ready (X0) turns from OFF to ON.
Note that initial setting processing will be executed if there is a sequence program that makes initial setting when Module Ready (X0) turns ON.
(2) When the offset/gain setting mode is switched to the normal mode, the A/D converter module holds the previous operation condition and resumes operation automatically under the previous operation condition.
(2) Operation error
No errors.
App. - 4 App. - 4
APPENDIX
MELSEC-Q
(3) Program example
The following program is designed to switch the A/D converter module mounted in the position of I/O number X/Y0 to X/YF to the offset/gain setting mode when
M10 is turned ON, and to return it to the normal mode when M10 is turned OFF.
Switches to offset/gain setting mode
Stores setting of dedicated instruction (G.OFFGAN) into D1.
Dedicated instruction (G.OFFGAN)
Performs processing for offset/gain setting
Switches to normal mode
Stores setting of dedicated instruction (G.OFFGAN) into D1.
Dedicated instruction (G.OFFGAN)
Performs processing for normal mode
App. - 5 App. - 5
APPENDIX
MELSEC-Q
Appendix 2.2 G(P).OGLOAD
Set data
Internal device
(System, user)
File register
Bit Word
(S) —
(D)
[Instruction symbol]
[Execution condition]
Reads the offset/gain values of the user range setting of the A/D converter module to the CPU.
Usable devices
Link direct device
J \
Intelligent function module
U \G
—
—
Index register
Z
Constant
K, H $
Other
— — —
— — —
Command
G.OGLOAD
G.OGLOAD
Un (S) (D)
Command
GP.OGLOAD
GP.OGLOAD
Un (S) (D)
Set data
Device Description
Un Start I/O number of the module
(S) Start number of the device in which control data is stored.
Setting range
0 to FE
H
Within the range of the specified device
Data type
Binary 16 bits
Device name
(D)
Device that is turned ON 1 scan on completion of dedicated instruction processing.
(D) + 1 also turns ON at an abnormal completion.
Within the range of the specified device
Bit
Control data
1
of Q64AD (1/2)
Device
(S) + 1
(S) + 2
Item
Completion status
Pass data classification setting
(S) + 3 System area
(S) + 4 CH1 Industrial shipment settings offset value
(S) + 5 CH1 Industrial shipment settings gain value
(S) + 6 CH2 Industrial shipment settings offset value
(S) + 7 CH2 Industrial shipment settings gain value
(S) + 8 CH3 Industrial shipment settings offset value
(S) + 9 CH3 Industrial shipment settings gain value
Set data Setting range Set by
—
Stores the status when the instruction is complete.
0 : Normal completion
Other than 0: Abnormal completion
Specify the voltage/current of the offset/gain values to be read.
0: Voltage specified
1: Current specified b15 b4 b3 b2 b1 b0
— System
0000
H
to 000F
H
User
0 0 CH.4 CH.3 CH.2 CH.1
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
System
System
System
System
System
System
1 Set only the pass data classification setting (S)+2. If data is written to the area set by the system, the offset/gain values will not be read properly.
App. - 6 App. - 6
APPENDIX
MELSEC-Q
Control data
1
of Q64AD (2/2)
Device Item
(S) + 10 CH4 Industrial shipment settings offset value
(S) + 11 CH4 Industrial shipment settings gain value
(S) + 12 CH1 User range settings offset value
(S) + 13
(S) + 14
(S) + 15
(S) + 16
(S) + 17
(S) + 18
(S) + 19
CH1 User range settings gain value
CH2 User range settings offset value
CH2 User range settings gain value
CH3 User range settings offset value
CH3 User range settings gain value
CH4 User range settings offset value
CH4 User range settings gain value
Set data
—
—
—
—
—
—
—
—
—
—
Setting range Set by
—
—
—
System
System
System
—
—
—
—
—
—
—
System
System
System
System
System
System
System
1 Set only the pass data classification setting (S)+2. If data is written to the area set by the system, the offset/gain values will not be read properly.
Control data
2
of Q68ADV (1/2)
Device
(S) + 1
Item
Completion status
(S) + 2
System area
(S) + 3
(S) + 4 CH1 Industrial shipment settings offset value
(S) + 5 CH1 Industrial shipment settings gain value
(S) + 6 CH2 Industrial shipment settings offset value
(S) + 7 CH2 Industrial shipment settings gain value
(S) + 8 CH3 Industrial shipment settings offset value
(S) + 9 CH3 Industrial shipment settings gain value
(S) + 10 CH4 Industrial shipment settings offset value
(S) + 11 CH4 Industrial shipment settings gain value
(S) + 12 CH5 Industrial shipment settings offset value
(S) + 13 CH5 Industrial shipment settings gain value
(S) + 14 CH6 Industrial shipment settings offset value
(S) + 15 CH6 Industrial shipment settings gain value
(S) + 16 CH7 Industrial shipment settings offset value
(S) + 17 CH7 Industrial shipment settings gain value
(S) + 18 CH8 Industrial shipment settings offset value
(S) + 19 CH8 Industrial shipment settings gain value
(S) + 20 CH1 User range settings offset value
(S) + 21
(S) + 22
CH1 User range settings gain value
CH2 User range settings offset value
(S) + 23
(S) + 24
(S) + 25
(S) + 26
CH2 User range settings gain value
CH3 User range settings offset value
CH3 User range settings gain value
CH4 User range settings offset value
(S) + 27
(S) + 28
(S) + 29
CH4 User range settings gain value
CH5 User range settings offset value
CH5 User range settings gain value
Set data
—
Stores the status when the instruction is complete.
0 : Normal completion
Other than 0: Abnormal completion
Setting range Set by
— System
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
2 Setting is not necessary. If setting is made, the offset/gain values will not be read properly.
— —
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
App. - 7 App. - 7
APPENDIX
MELSEC-Q
Control data
2
of Q68ADV (2/2)
Device
(S) + 30
(S) + 31
(S) + 32
(S) + 33
(S) + 34
(S) + 35
Item
CH6 User range settings offset value
CH6 User range settings gain value
CH7 User range settings offset value
CH7 User range settings gain value
CH8 User range settings offset value
CH8 User range settings gain value
Set data
—
—
—
—
—
—
2 Setting is not necessary. If setting is made, the offset/gain values will not be read properly.
Control data
3
of Q68ADI
Setting range Set by
—
—
—
System
System
System
—
—
—
System
System
System
Device
(S) + 1
Item
Completion status
(S) + 2
System area
(S) + 3
(S) + 4 CH1 Industrial shipment settings offset value
(S) + 5 CH1 Industrial shipment settings gain value
(S) + 6 CH2 Industrial shipment settings offset value
(S) + 7 CH2 Industrial shipment settings gain value
(S) + 8 CH3 Industrial shipment settings offset value
(S) + 9 CH3 Industrial shipment settings gain value
(S) + 10 CH4 Industrial shipment settings offset value
(S) + 11 CH4 Industrial shipment settings gain value
(S) + 12 CH5 Industrial shipment settings offset value
(S) + 13 CH5 Industrial shipment settings gain value
(S) + 14 CH6 Industrial shipment settings offset value
(S) + 15 CH6 Industrial shipment settings gain value
(S) + 16 CH7 Industrial shipment settings offset value
(S) + 17 CH7 Industrial shipment settings gain value
(S) + 18 CH8 Industrial shipment settings offset value
(S) + 19 CH8 Industrial shipment settings gain value
(S) + 20 CH1 User range settings offset value
(S) + 21
(S) + 22
CH1 User range settings gain value
CH2 User range settings offset value
(S) + 23
(S) + 24
(S) + 25
(S) + 26
CH2 User range settings gain value
CH3 User range settings offset value
CH3 User range settings gain value
CH4 User range settings offset value
(S) + 27
(S) + 28
(S) + 29
(S) + 30
(S) + 31
(S) + 32
(S) + 33
(S) + 34
(S) + 35
CH4 User range settings gain value
CH5 User range settings offset value
CH5 User range settings gain value
CH6 User range settings offset value
CH6 User range settings gain value
CH7 User range settings offset value
CH7 User range settings gain value
CH8 User range settings offset value
CH8 User range settings gain value
Set data
—
Stores the status when the instruction is complete.
0 : Normal completion
Other than 0: Abnormal completion
Setting range Set by
— System
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
3 Setting is not necessary. If setting is made, the offset/gain values will not be read properly.
— —
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
App. - 8 App. - 8
APPENDIX
MELSEC-Q
(1) Functions
(a) Reads the offset/gain values of the user range setting of the A/D converter module to the CPU.
Sequence program
(b) There are two types of interlock signals for the G(P).OGLOAD 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 where the G(P).OGLOAD instruction is completed, and turns OFF in the next END processing.
2) Status display device at completion
Turns ON and OFF depending on the completion status of the
G(P).OGLOAD instruction.
Normal completion : Stays OFF and does not change.
Abnormal completion: Turns ON in the END processing of the scan where the G(P).OGLOAD instruction is completed, and turns OFF in the next END processing.
END processing END processing END processing END processing
ON
Execution completion of the G.OGLOAD instruction
G.OGLOAD instruction
OFF
ON
Completion device (D)
OFF
Status display device at completion (D)+1
OFF
ON Abnormal completion
Normal completion
1 scan
(2) Operation error
No errors.
(3) Program example
The following program is designed to read the offset/gain values of the A/D converter module mounted in the position of I/O number X/Y0 to X/YF when M11 is turned ON.
Control data setting
Specifies voltage
Offset/gain value read
Dedicated instruction
(GP.OGLOAD)
Performs processing at abnormal completion
For the Q68ADV/Q68ADI, the program in the dotted area is not necessary.
App. - 9 App. - 9
APPENDIX
MELSEC-Q
Appendix 2.3 G(P).OGSTOR
Set data
Internal device
(System, user)
File register
Bit Word
(S) —
(D)
[Instruction symbol]
[Execution condition]
Restores the offset/gain values of the user range setting stored in the CPU to the A/D converter module.
Usable devices
Link direct device
J \
Intelligent function module
U \G
—
—
Index register
Z
Constant
K, H $
Other
— — —
— — —
Command
G.OGSTOR
G.OGSTOR
Un (S) (D)
Command
GP.OGSTOR
GP.OGSTOR
Un
Set data
Device
Un
(S)
1
Description
Start I/O number of the module
Start number of the device in which control data is stored.
Setting range
0 to FE
H
Within the range of the specified device
(D)
Device that is turned ON 1 scan on completion of dedicated instruction processing.
(D) + 1 also turns ON at an abnormal completion.
Within the range of the specified device
1 When executing the G(P).OGLOAD instruction, specify the device designated in (S).
Do not change the data read with the G(P).OGLOAD instruction.
If it is changed, normal operation cannot be guaranteed.
Control data of Q64AD (1/2)
Device Item Set data
(S) (D)
Data type
Binary 16 bits
Device name
Bit
Setting range Set by
(S) + 1
(S) + 2
Completion status
Pass data classification setting
(S) + 3 System area
(S) + 4 CH1 Industrial shipment settings offset value
(S) + 5 CH1 Industrial shipment settings gain value
(S) + 6 CH2 Industrial shipment settings offset value
(S) + 7 CH2 Industrial shipment settings gain value
(S) + 8 CH3 Industrial shipment settings offset value
(S) + 9 CH3 Industrial shipment settings gain value
(S) + 10 CH4 Industrial shipment settings offset value
(S) + 11 CH4 Industrial shipment settings gain value
Stores the status when the instruction is complete.
0 : Normal completion
Other than 0: Abnormal completion
The value set to Pass data classification setting (S)+2 using the
G(P).OGLOAD instruction is stored.
0: Voltage specified
1: Current specified b15 b4 b3 b2 b1 b0
0 0 CH.4 CH.3 CH.2 CH.1
—
—
—
—
—
—
—
—
—
—
0000
H
to 000F
H
User
—
—
—
—
—
—
—
—
—
System
—
System
System
System
System
System
System
System
System
App. - 10 App. - 10
APPENDIX
MELSEC-Q
Device
(S) + 12
(S) + 13
(S) + 14
(S) + 15
(S) + 16
(S) + 17
(S) + 18
(S) + 19
Control data of Q64AD (2/2)
Item
CH1 User range settings offset value
CH1 User range settings gain value
CH2 User range settings offset value
CH2 User range settings gain value
CH3 User range settings offset value
CH3 User range settings gain value
CH4 User range settings offset value
CH4 User range settings gain value
Set data
—
—
—
—
—
—
—
—
Setting range Set by
—
—
—
—
System
System
System
System
—
—
—
—
System
System
System
System
Control data of Q68ADV
Device
(S) + 1
Item
Completion status
(S) + 2
(S) + 3
System area
(S) + 4 CH1 Industrial shipment settings offset value
(S) + 5 CH1 Industrial shipment settings gain value
(S) + 6 CH2 Industrial shipment settings offset value
(S) + 7 CH2 Industrial shipment settings gain value
(S) + 8 CH3 Industrial shipment settings offset value
(S) + 9 CH3 Industrial shipment settings gain value
(S) + 10 CH4 Industrial shipment settings offset value
(S) + 11 CH4 Industrial shipment settings gain value
(S) + 12 CH5 Industrial shipment settings offset value
(S) + 13 CH5 Industrial shipment settings gain value
(S) + 14 CH6 Industrial shipment settings offset value
(S) + 15 CH6 Industrial shipment settings gain value
(S) + 16 CH7 Industrial shipment settings offset value
(S) + 17 CH7 Industrial shipment settings gain value
(S) + 18 CH8 Industrial shipment settings offset value
(S) + 19 CH8 Industrial shipment settings gain value
(S) + 20 CH1 User range settings offset value
(S) + 21
(S) + 22
(S) + 23
(S) + 24
(S) + 25
(S) + 26
(S) + 27
(S) + 28
CH1 User range settings gain value
CH2 User range settings offset value
CH2 User range settings gain value
CH3 User range settings offset value
CH3 User range settings gain value
CH4 User range settings offset value
CH4 User range settings gain value
CH5 User range settings offset value
(S) + 29
(S) + 30
(S) + 31
(S) + 32
(S) + 33
(S) + 34
(S) + 35
CH5 User range settings gain value
CH6 User range settings offset value
CH6 User range settings gain value
CH7 User range settings offset value
CH7 User range settings gain value
CH8 User range settings offset value
CH8 User range settings gain value
Set data
—
Stores the status when the instruction is complete.
0 : Normal completion
Other than 0: Abnormal completion
Setting range Set by
— System
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
— —
App. - 11 App. - 11
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
APPENDIX
MELSEC-Q
Control data of Q68ADI
Device
(S) + 1
Item
Completion status
(S) + 2
(S) + 3
System area
(S) + 4 CH1 Industrial shipment settings offset value
(S) + 5 CH1 Industrial shipment settings gain value
(S) + 6 CH2 Industrial shipment settings offset value
(S) + 7 CH2 Industrial shipment settings gain value
(S) + 8 CH3 Industrial shipment settings offset value
(S) + 9 CH3 Industrial shipment settings gain value
(S) + 10 CH4 Industrial shipment settings offset value
(S) + 11 CH4 Industrial shipment settings gain value
(S) + 12 CH5 Industrial shipment settings offset value
(S) + 13 CH5 Industrial shipment settings gain value
(S) + 14 CH6 Industrial shipment settings offset value
(S) + 15 CH6 Industrial shipment settings gain value
(S) + 16 CH7 Industrial shipment settings offset value
(S) + 17 CH7 Industrial shipment settings gain value
(S) + 18 CH8 Industrial shipment settings offset value
(S) + 19 CH8 Industrial shipment settings gain value
(S) + 20
(S) + 21
(S) + 22
(S) + 23
(S) + 24
(S) + 25
(S) + 26
(S) + 27
CH1 User range settings offset value
CH1 User range settings gain value
CH2 User range settings offset value
CH2 User range settings gain value
CH3 User range settings offset value
CH3 User range settings gain value
CH4 User range settings offset value
CH4 User range settings gain value
(S) + 28
(S) + 29
(S) + 30
(S) + 31
(S) + 32
(S) + 33
(S) + 34
(S) + 35
CH5 User range settings offset value
CH5 User range settings gain value
CH6 User range settings offset value
CH6 User range settings gain value
CH7 User range settings offset value
CH7 User range settings gain value
CH8 User range settings offset value
CH8 User range settings gain value
Set data
—
Stores the status when the instruction is complete.
0 : Normal completion
Other than 0: Abnormal completion
Setting range Set by
— System
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
— —
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
System
App. - 12 App. - 12
APPENDIX
MELSEC-Q
(1) Functions
(a) Restores the offset/gain values of the user range setting stored in the CPU to the A/D converter module.
Sequence program
(b) There are two types of interlock signals for the G(P).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 where the G(P).OGSTOR instruction is completed, and turns OFF in the next END processing.
2) Status display device at completion
Turns ON and OFF depending on the completion status of the
G(P).OGSTOR instruction.
Normal completion : Stays OFF and does not change.
Abnormal completion: Turns ON in the END processing of the scan where the G(P).OGSTOR instruction is completed, and turns OFF in the next END processing.
END processing END processing END processing END processing
ON
Execution completion of the G.OGSTOR instruction
G.OGSTOR instruction
OFF
ON
Completion device (D)
OFF
Status display device at completion (D)+1
OFF
ON Abnormal completion
Normal completion
1 scan
A/D conversion completed flag (XE)
1
ON
OFF
ON
1 When the G(P).OGSTOR instruction is executed, A/D conversion is not performed. After the completion device (D) turns ON, A/D conversion starts, the A/D conversion value is stored into the buffer memory, and the A/D conversion completed flag (XE) then turns ON.
(c) When the offset/gain values are restored, the reference accuracy falls to about less than three times of the accuracy before that.
(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
162
163
The G(P).OGSTOR instruction was executed in the offset/gain setting mode.
The G(P).OGSTOR instruction was executed consecutively.
The G(P).OGSTOR instruction was executed for the model that differs from the model for which the G(P).OGLOAD instruction had been executed.
App. - 13 App. - 13
APPENDIX
MELSEC-Q
(3) Program example
The following program is designed to read the offset/gain values of the A/D converter module mounted in the position of I/O number X/Y0 to X/YF when M11 is turned ON.
Control data setting
Offset/gain value restoration
Dedicated instruction
(GP.OGSTOR)
Performs processing at abnormal completion
App. - 14 App. - 14
APPENDIX
Appendix 3 External Dimension Diagram
(1) Q64AD
MELSEC-Q
90 (3.55)
(2) Q68ADV
90 (3.55)
Q64AD
RUN
ERROR
V+
C
H
1
V-
I+
SLD
V+
C
H
2
V-
I+
SLD
V+
C
H
3
V-
I+
SLD
V+
C
H
4
V-
I+
SLD
A.G.
(FG)
A/D
0 10V
0 20mA
10
11
12
13
14
15
16
17
18
3
4
5
1
2
8
9
6
7
27.4 (1.08)
Q68ADV
RUN
ERROR
C
H
2
C
H
1
V-
V+
V-
V+
C
H
3 V-
V+
C
H
4 V-
V+
C
H
5 V-
V+
C
H
6 V-
V+
C
H
8
C
H
7 V-
V+
V+
V-
A.G.
(FG)
A/ D
0 10V
3
4
5
1
2
6
7
8
9
13
14
15
16
10
11
12
17
18
27.4 (1.08)
App. - 15 App. - 15
APPENDIX
(3) Q68ADI
90 (3.55)
MELSEC-Q
Q68ADI
RUN
ERROR
C
H
8
C
H
6
C
H
4
C
H
2
C
H
7
C
H
5
C
H
3
C
H
1
I-
I+
I-
I+
I-
I+
I-
I+
I-
I+
I-
I+
I+
I-
I+
I-
A.G.
(FG)
A/D
0 20mA
12
13
14
15
16
17
18
6
7
8
9
10
4
5
1
2
3
11
27.4 (1.08)
App. - 16 App. - 16
Advertisement
Key features
- High speed conversion
- High accuracy
- Multiple CPU system compatibility
- Online module change
- Resolution mode
- Input range setting
- Utility package setting
- Dedicated instructions
- Mode switching
- Temperature drift compensation function