4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
4 SETUP AND PROCEDURES BEFORE OPERATION
4.1 Handling Precautions
(1) Do not drop the module or subject it to heavy impact.
(2) Do not remove the PCB of the module from its case. Doing so may cause the module to fail.
(3) Be careful not to let foreign particles such as swarf or wire chips enter the module.
They may cause a fire, mechanical failure or malfunction.
(4) The top surface of the module is covered with a protective film to prevent foreign objects such as wire burrs from entering the module during wiring. Do not remove this film until the wiring is complete. Before operating the system, be sure to remove the film to provide adequate ventilation.
4
(5) Tighten the screws such as module fixing screws within the following ranges.
Loose screws may cause short circuits, failures, or malfunctions.
Screw location
Module fixing screw (M3 screw)
1
Terminal block screw (M3 screw)
Terminal block mounting screw (M3.5 screw)
Tightening torque range
0.36 to 0.48 N · m
0.42 to 0.58 N · m
0.66 to 0.89 N · m
1: The module can be easily fixed onto the base unit using the hook at the top of the module.
However, it is recommended to secure the module with the module fixing screw if the module is subject to significant vibration.
(6) To mount the module on the base unit, fully insert the module fixing latch into the fixing hole in the base unit and press the module using the hole as a fulcrum.
Improper installation may result in a module malfunction, or may cause the module to fall off.
4 - 1 4 - 1
4 SETUP AND PROCEDURES BEFORE OPERATION
4
4.2 Setup and Procedures before Operation
Start
Module mounting
Mount the A/D conversion module in the specified slot.
Wiring
Wire external devices to the A/D conversion module.
Intelligent function module switch settings
Perform settings using GX Developer
(see Section 4.5).
Use industrial shipment settings.
Use user range settings?
Use user range settings
Offset/gain setting
If user range settings are used, perform the offset and gain settings (see Section 4.6).
NO
Use the utility package?
YES
Initial setting and auto refresh setting
The program can be simplified if the utility package is used for setting (see Chapter 5).
Programming and debugging
Create and check the sequence program.
MELSEC-Q
4 - 2 4 - 2
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
4.3 Part Identification Nomenclature
The name of each part of the A/D converter module is listed below.
Q64AD Q68ADV Q68ADI
1)
2)
Q64AD
RUN
ERROR
1)
Q68ADV
RUN
ERROR
1)
Q68ADI
RUN
ERROR
2) 2)
V+
C
H
1
V-
I+
SLD
V+
C
H
2
V-
I+
SLD
C
H
3
V-
V+
I+
SLD
V-
V+
C
H
4
I+
SLD
A.G.
(FG)
A/D
0 10V
0 20mA
10
11
8
9
12
13
14
3
4
1
2
5
6
7
15
16
17
18
10
11
12
13
14
15
16
17
18
1
2
3
4
5
6
7
8
9
C
H
8
C
H
7
C
H
6
C
H
5
C
H
4
C
H
3
C
H
2
C
H
1
V-
V+
V-
V+
V-
V+
V-
V+
V-
V+
V-
V+
V-
V+
V-
V+
A.G.
(FG)
A/ D
0 10V
C
H
3
C
H
4
C
H
2
C
H
1
C
H
5
C
H
6
C
H
7
C
H
8
I-
I+
I+
I-
I-
I-
I+
I-
I+
I-
I+
I+
I-
I+
I+
I-
A.G.
(FG)
A/ D
0 20mA
3
4
5
1
2
6
7
8
9
10
11
12
13
14
15
16
17
18
Number
Name and appearance
Description
1) RUN LED Displays the operating status of the A/D converter module.
On : Normal operation
Flashing : During offset/gain setting mode
Off : 5V power switched off, watchdog timer error occurred, or online module change enabled
2) ERROR LED Displays the error status of the A/D converter module.
On : Error
Off : Normal operation
Flashing : Error in switch settings
Switch No. 5 of the intelligent function module has been set to a value other than zero "0".
Check the error code for details.
4 - 3 4 - 3
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
Terminal number
Signal name
Q64AD Q68ADV Q68ADI
1
CH1
V +
CH1
–
V +
V –
3 I + V +
CH2
4 SLD V –
5
CH2
V +
CH3
–
V +
V –
7 I + V +
CH4
8 SLD V –
9
CH3
V +
CH5
–
11 I +
CH6
12 SLD
V +
V –
V +
V –
13 V +
CH7
–
CH4
15 I +
CH8
16 SLD
V +
V –
V +
V –
CH1
CH2
CH3
CH4
CH5
CH6
CH7
CH8
I +
I –
I +
I –
I +
I –
I +
I –
I +
I –
I +
I –
I +
I –
I +
I –
18 FG
4 - 4 4 - 4
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
4.4 Wiring
The wiring precautions and examples of module connection are provided below.
4.4.1 Wiring precautions
In order to optimize the functions of the A/D converter module and ensure system reliability, external wiring that is protected from noise is required.
Please observe the following precautions for external wiring:
(1) Use separate cables for the AC control circuit and the external input signals of the
Q64AD/Q68ADV(I) to avoid the influence of the AC side surges and inductions.
(2) Do not mount the cables close to or bundle them with the main circuit line, a highvoltage cable or a load cable from other than the programmable controller. This may increase the effects of noise, surges and induction.
(3) Perform an one-point grounding for shielded lines and the shields of sealed cables.
(4) A solderless terminal with insulating sleeve cannot be used for the terminal block.
Covering the cable-connection portion of the solderless terminal with a marked tube or an insulation tube is recommended.
4 - 5 4 - 5
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
4.4.2 External wiring
(1) Q64AD
(a) For voltage input
Signal source 0 to ± 10 V
2
500 k
V +
I +
V –
SLD
500 k
GND
1 Shielded
(b) For current input
Signal source 0 to ± 20 mA
3
V +
I +
V –
SLD
GND
1 Shielded
A.G.
FG
2
250
4
500 k
500 k
5
1 Use a twisted two core shielded wire for the power wire.
2 Shows input resistance of Q64AD.
3 If current input, always connect to (V +) and (I +) terminals.
4 "A.G." terminal does not normally require wiring. However, it can be used as GND for external device ground under the following conditions.
(1) When there is a difference in polarity between "A.G." and "GND for external device".
(2) As an alternative for 0 V input when only the + side is open on a ± wire.
5 Always use a ground. In addition, ground the FG of the power supply module.
POINT
In an unused channel, if terminals remain open, an erratic digital value may be output.
To prevent this, take any of the following measures.
1. Select Disable in the A/D conversion enable/disable setting for the unused channel.
Note that changing the setting from Enable to Disable will reduce the sampling time.
2. Short-circuit the input terminals (terminal V+ and V-) of the unused channel.
3. Connect the A.G. terminal to the GND terminal of the external device.
4 - 6 4 - 6
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
(2) Q68ADV
2
GND
1 Shielded
V +
V –
A.G.
FG
500 k
500 k
3
4
1 Use a twisted two core shielded wire for the power wire.
2 Shows input resistance of Q68ADV.
3 "A.G." terminal does not normally require wiring. However, it can be used as GND for external device ground under the following conditions.
(1) When there is a difference in polarity between "A.G" and "GND for external device".
(2) As an alternative for 0 V input when only the + side is open on a ± wire.
4 Always use a ground. In addition, ground the FG of the power supply module.
POINT
In an unused channel, if terminals remain open, an erratic digital value may be output.
To prevent this, take any of the following measures.
1. Select Disable in the A/D conversion enable/disable setting for the unused channel.
Note that changing the setting from Enable to Disable will reduce the sampling time.
2. Short-circuit the input terminals (terminal V+ and V-) of the unused channel.
3. Connect the A.G. terminal to the GND terminal of the external device.
(3) Q68ADI
GND
1 Shielded
I +
I –
A.G.
FG
2 250
500 k
500 k
3
4
1 Use a twisted two core shielded wire for the power wire.
2 Shows input resistance of Q68ADI.
3 "A.G." terminal does not normally require wiring. However, it can be used as GND for external device ground under the following conditions.
(1) When there is a difference in polarity between "A.G" and "GND for external device".
4 Always use a ground. In addition, ground the FG of the power supply module.
4 - 7 4 - 7
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
4.5 Switch Setting for Intelligent Function Module
The settings for the intelligent function module are performed using the I/O assignment settings for GX Developer.
(1) Setting item
The intelligent function module switches consist of switches 1 to 5 and are set using 16 bit data. When the intelligent function module switches are not set, the default value for switches 1 to 5 is 0.
Table 4.1 Switch setting item
Switch 1
Switch 2
Switch 3
Input range setting
H
CH4CH3CH2CH1
Input range setting
H
CH8CH7CH6CH5
Analog input range Input range setting value
4 to 20 mA
0
H
1
0 to 20 mA
1 to 5 V
1
H
2
H
0 to 5 V
– 10 to 10 V
0 to 10 V
User range setting
3
H
4
H
5
H
F
H
Not used
H
Switch 4
00
H
01 to FF
H
(numeric
: With temperature drift correction value other than 00
H
)* : Without temperature drift correction
0
H
1 to F
H
(numeric
: Normal resolution mode value other than 0
H
)* : High resolution mode
0
H
1 to F
H
(numeric value other than 0
H
)*
: Normal mode (A/D conversion processing)
: Offset/gain setting mode
Switch 5 0 : Fixed
Setting any value within the setting range will provide the same operation.
When the setting range is 1 to F
H
, set 1 for example.
Depending on the type of module used, the settings for A/D unit input range are shown below.
• Q64AD · · · · ·
·
0
H
to 5
H
, F
H
• Q68ADV · · · · ·0
H,
2
H
to 5
H
, F
H
1 When the setting is 0
H
, the input operating range will be 0 t o 10 V.
• Q68ADI · · · · · ·0
H,
1
H
, F
H
4 - 8 4 - 8
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
POINT
(1) If the offset/gain setting mode is set using intelligent function module switch 4, other settings by switch 4 (settings for resolution mode and temperature drift compensation) will be ignored.
(2) Setting of the offset/gain setting mode differs from function version A to function version B. (Refer to Appendix 1.3)
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.
(3) Since the digital output value will differ considerably, depending on the resolution mode setting, thoroughly check the settings for the intelligent function module switches before performing the digital output processing.
Example) Digital output value when the setting range is -10 to 10 V and a 10 V analog value is added.
In normal resolution mode In high resolution mode
Digital output value Approximately 4000 Approximately 16000
(2) Operating procedure
Start the settings with GX Developer I/O assignment setting screen.
(a) I/O assignment setting screen
Set the following for the slot in which the A/D converter module is mounted.
The type setting is required; set other items as needed.
Type : Select "intelli."
Model name : Enter the module model name.
Points : Select 16 points.
Start XY : Enter the start I/O number for the
A/D converter module.
Detail setting: Specify the control PLC for the
A/D converter module.
It is unnecessary to set the "Error time output mode" or "H/W error time PLC operation mode" since these settings are invalid for the
A/D converter module.
(b) Switch setting for intelligent function module screen
Click on [Switch setting] on the I/O assignment setting screen to display the screen shown at left, then set switches 1 to 5.
The switches can easily be set if values are entered in hexadecimal. Change the entry format to hexadecimal and then enter the values.
4 - 9 4 - 9
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
4.6 Offset/Gain Settings
When the user range setting is used, perform the offset and gain settings according to the following procedure.
When the industrial shipment setting is used, offset/gain setting is not necessary.
If the utility package is installed, perform the offset/gain settings according to the procedure described in Section 5.6.2.
(1) Offset/gain setting procedure
Start
2)
Switch to the offset/gain setting mode.
1
Set the channel change request (YB) to ON.
Verify that the mode is set to offset/gain setting and the RUN LED is flashing.
1)
Add the voltage or current that will be the offset value.
Verify that the channel change completed flag
(XB) is ON.
Set the channel change request (YB) to OFF.
Set the offset setting channel in buffer memory address 22 (Un\G22).
Set buffer memory address 23 (Un\G23) to 0.
Turn the channel change request (YB) to ON.
Adjust other channels?
NO
Set the offset/gain setting request (YA) to ON and perform the offset/gain settings. Register to the
A/D converter module.
YES
1)
After verifying that the offset/ gain setting mode status flag
(XA) is OFF, turn YA OFF.
Verify that the channel change completed flag
(XB) is ON.
Set the channel change request (YB) to OFF.
Verify that the offset/gain setting mode status flag
(XA) is ON.
Add the voltage or current that will be the gain value.
Set the gain setting channel in buffer memory address
23 (Un\G23). Set buffer memory address 22
(Un\G22) to 0.
ERROR LED lit?
NO
Switch to the normal setting mode.
1
YES
2)
End
4 - 10 4 - 10
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
1 The mode switching (normal mode to offset/gain setting mode to normal mode) method is given below.
• Dedicated instruction (G(P).OFFGAN) ........ Refer to Section 4.6 (2), (a)
• Setting made to mode switching setting (buffer memory addresses 158, 159:
Un\G158, Un\G159) and turning the operation condition setting request (Y9) from
OFF to ON ..................................................... Refer to Section 4.6 (2), (b)
• Intelligent function module switch setting ..... Refer to Section 4.5, Section 4.6 (2), (c)
(After intelligent function module switch setting, reset the programmable controller
CPU or switch power OFF, then ON.)
POINT
(1) Perform the offset/gain settings in the range that satisfies the conditions specified in Section 3.1.2, (1) and (2).
When the setting exceeds this range, the maximum resolution or total accuracy may not be within the range indicated in the performance specification.
(2) Though the offset/gain settings can be performed on multiple channels at the same time, set the offset and gain separately (0 at either of the buffer memory addresses 22, 23). If channels are set in buffer memory addresses 22
(Un\G22) and 23 (Un\G23) at the same time, an error will occur and the
ERROR LED will be lit.
(3) After the offset/gain settings are completed, verify that the offset and gain values have been set correctly under actual usage conditions.
(4) The offset and gain values are stored into the E
2
PROM and are not erased at power-off.
(5) At the time of offset/gain setting, turn ON the user range write request (YA) to write the values to the E
2
PROM.
Data can be written to the E
2
PROM up to 100 thousand times.
To prevent accidental write to the E
2
PROM, an error will occur and the error code (buffer memory address 19: Un\G19) will be stored if write is performed
26 consecutive times.
(6) If an error (error code: 40
1
) occurs during offset/gain setting, re-set the correct offset/gain value.
The offset/gain value of the channel where the error has occurred is not written to the A/D converter module. ( 1: indicates the corresponding channel number.)
(7) Module Ready (X0) turns from OFF to ON when the offset/gain setting mode switches to the normal mode by the dedicated instruction (G(P).OFFGAN) or the setting of the mode switching setting (buffer memory addresses 158, 159:
Un\G158, Un\G159).
Note that initial setting processing will be executed if there is a sequence program that makes initial setting when Module Ready (X0) turns ON.
(8) Buffer memory addresses 200 (Un\G200), 202 to 233 (Un\G202 to Un\G233) are the areas used to restore the user range settings offset/gain values when online module change is made.
Refer to chapter 7 for details of online module change.
4 - 11 4 - 11
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
(2) Program examples
The program in the dotted area of (a) is common to (a), (b) and (c).
In this example, the I/O signals for the A/D converter module are X/Y0 to X/YF.
• Channel selection ............................................................................... M0
• Offset setting ...................................................................................... M1
• Gain setting ........................................................................................ M2
• Channel change command ................................................................ M3
• Offset/gain setting value write command to the module .................... M4
• Mode switching.................................................................................... M5
• Channel designation storage device................................................... D0
• Dedicated instruction (G(P).OFFGAN) setting storage device........... D1
Switches to offset/gain setting mode
(a) When switching the mode using the dedicated instruction (G(P).OFFGAN)
The following program switches to the offset/gain setting mode with the dedicated instruction (G(P).OFFGAN), changes the channel where offset/gain setting will be made, writes the offset/gain values to the A/D converter module, and then switches to the normal mode.
Stores setting of dedicated instruction (G.OFFGAN) into D1.
Dedicated instruction (G.OFFGAN)
Specifies channel where offset/gain setting will be made
Stores channel where offset/ gain setting will be made into D0.
Specifies channel where offset setting will be made
Specifies offset setting channel.
Sets 0 to buffer memory address 23.
Specifies channel where gain setting will be made
Specifies gain setting channel.
Sets 0 to buffer memory address 22.
Changes channel where offset/gain setting will be made
Registers offset/gain setting results to module
Switches to normal mode
Turns ON channel change request (YB).
Turns OFF channel change request (YB).
Turns ON user range write request (YA).
Turns OFF user range write request (YA).
Stores setting of dedicated instruction (G.OFFGAN) into D1.
Dedicated instruction (G.OFFGAN)
Processing in normal mode
The program in the dotted area is a common program.
4 - 12 4 - 12
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
(b) When switching the mode using the setting of the mode switching setting
(buffer memory addresses 158, 159: Un\G158, Un\G159) and operation condition setting request (Y9)
Switches to offset/gain setting mode
Sets 4144
H
to buffer memory address 158.
Sets 964
H
to buffer memory address 159.
Turns ON operation condition setting request (Y9).
Turns OFF operation condition setting request (Y9)
Common program
Switches to normal mode
Sets 964
H
to buffer memory address 158.
Sets 4144
H
to buffer memory address 159.
Turns ON operation condition setting request (Y9).
Turns OFF operation condition setting request (Y9).
Processing in normal mode
(c) When switching the mode by making intelligent function module switch setting
Only the common program is necessary.
4 - 13 4 - 13