PROGRAMMABLE CONTROLLER
ANALOG I/O MODULES
AD268 / DA264 / TC218
USER???S MANUAL
TOSHIBA CORPORATION
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Important Information
Misuse of this equipment can result in property damage or human injury. Because controlled system applications vary widely, you should satisfy yourself as to the acceptability of this equipment for your intended purpose.
In no event will Toshiba Corporation be responsible or liable for either indirect
or consequential damage or injury that may result from the use of this equipment.
No patent liability is assumed by Toshiba Corporation with respect to use of information, illustrations, circuits, equipment or examples of application in this publication.
Toshiba Corporation reserves the right to make changes and improvements to this publication and/or related products at any time without notice. No obligation shall be incurred other than as noted in this publication.
This publication is copyrighted and contains proprietary material. No part of this book may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means ??? electrical, mechanical, photocopying, recording, or otherwise ??? without obtaining prior written permission from Toshiba Corporation.
?? TOSHIBA Corporation 2001, All rights reserved
Publication number:
1st edition December 2001, 2nd edition September 2002
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Safety Precautions
The AD268, DA264, and TC218 are the analog input/output modules for Toshiba???s Programmable Controller PROSEC
Read this manual thoroughly before using this module. Also, keep this manual and related manuals so that you can read them anytime while this module is in operation.
Safety Symbols
The following safety symbols are used on the product and/or in the related manuals. Pay attention to the information preceded by the following symbols for safety.
!WARNING
!CAUTION
Indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury.
Indicates a potentially hazardous situation which, if not avoided, may result in minor or moderate injury. It may also be used to alert against unsafe practices.
Safety Precautions
!CAUTION
???Turn off power to the PLC (T2, T2E or T2N) and to this module (AD268, DA264 or TC218) before removing or mounting this module. Failure to do so can cause electrical shock or damage to this product.
???Read the Safety Precautions described in the T2, T2E or T2N User???s Manual before using this module.
???Follow the instructions described in this manual and in the T2, T2E or T2N User???s Manual when installing and wiring this module.
???This module has been designed for the T2/T2E/T2N. Use your AD268/DA264/TC218 only on the
???These modules consume the internal 5 Vdc power as shown below.
AD268 ... 300 mA DA264 ... 230 mA TC218 ... 300 mA
Confirm that the total 5 Vdc consumed current per one power supply module is within the limit (2.5 A). If it exceeds the limit, the T2/T2E/T2N cannot operate properly and this may cause unsafe situation.
User???s Manual 1
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
About This Manual
About This Manual
This manual describes the specification and the operations of Toshiba's analog I/O modules (AD268, DA264 and TC218) for PROSEC T2 series programmable controllers.
Read this manual carefully for your correct operation of these modules.
This manual consists in three parts.
Part 1 ... 8 channel analog input module AD268
Part 2 ... 4 channel analog output module DA264
Part 3 ... 8 channel thermocouple input module TC218
Related Manual
The following related manuals are available for your reference.
T2E User's Manual
This manual describes the configuration, specification, installation, wiring, and maintenance of the basic hardware of the programmable controller T2E.
The functions of the T2E and how to use them, and the information necessary for creating user program are also described.
T2N User's Manual
This manual describes the configuration, specification, installation, wiring, and maintenance of the basic hardware of the programmable controller T2N.
The functions of the T2N and how to use them, and the information necessary for creating user program are also described.
This manual describes the detailed specifications of instructions for Toshiba's
Note: In this manual, the T2 series programmable controllers (T2, T2E, and T2N) are called as T2 for ease of explanation.
2 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
1.Introduction ???????????????.????????????????????????????????????????????????????????????????????????.??? 8
3.Input Type Setting ???.........?????????????????????????????????????????????????????????????????????... 12
4.Wiring ??????????????????..?????????????????????????????????????????????????????????????????????????????? 14
6.Parameters ??????..................???......???????????????????????????????????????????????????????????? 24
6.1Memory map ???...........??????????????????????????????????????????????????????????????????????????? 24
6.2Parameter setting procedure ???.........??????..???????????????????????????????????????????????? 30
7.Troubleshooting ???.???....???????????????????????????????????????????????????????????????????????? 32
7.1RAS information ??????...............???........?????????????????????????????????????????????????????? 32
User???s Manual 3
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Table of Contents
Part 2 4 Channel Analog Output Module DA264
1.Introduction ???????????????.????????????????????????????????????????????????????????????????????????.??? 36
3.Output Type Setting ???.........?????????????????????????????????????????????????????????????????????... 40
4.Wiring ??????????????????..?????????????????????????????????????????????????????????????????????????????? 41
6.Parameters ???..................???.???......???????????????????????????????????????????????????????????? 51
6.1Memory map ???...........??????????????????????????????????????????????????????????????????????????? 51
7.Troubleshooting ???.???....???????????????????????????????????????????????????????????????????????? 56
7.1RAS information ??????...............???........?????????????????????????????????????????????????????? 56
4 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Table of Contents
Part 3 8 Channel Thermocouple Input Module TC218
1.Introduction ???????????????.????????????????????????????????????????????????????????????????????????.??? 60
3.Input Type Setting ???.........?????????????????????????????????????????????????????????????????????... 64
4.Wiring ??????????????????..?????????????????????????????????????????????????????????????????????????????? 66
6.Parameters ???..................???.???......???????????????????????????????????????????????????????????? 75
6.1Memory map ???...........??????????????????????????????????????????????????????????????????????????? 75
6.2Parameter setting procedure ???.........??????..???????????????????????????????????????????????? 81
7.Troubleshooting ???.???....???????????????????????????????????????????????????????????????????????? 83
7.1RAS information ??????...............???........?????????????????????????????????????????????????????? 83
User???s Manual 5
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
6 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Part 1
8 Channel Analog Input Module
AD268
1.Introduction, 8
2.Specifications, 10
3.Input Type Setting, 12
4.Wiring, 14
5.I/O Allocation and Programming, 17
6.Parameters, 24
7.Troubleshooting, 32
User???s Manual 7
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
1. Introduction
PART 1 AD268
1. Introduction
The AD268 is an 8 channel analog input module for the T2 series programmable controllers. The AD268 converts external analog signals (voltage or current) into digital values cyclically so that the T2 can process the analog signals.
1.1 AD268 Functions
The AD268 has the following functions.
1)8 channels input per module
2)Selectable input type
????? 5V
????? 10V
???0 to 5V
???0 to 10V
???1 to 5V
???0 to 20mA
???4 to 20mA
3)
4)
5)Gain and offset calibration function
6)Input data averaging function
7)Unused channel skip function
8 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
1.2 External features
Model type AD268
Status indication LED
Removable terminal block
Analog input terminal
External power supply connection terminal
Line ground and Frame ground terminal
Terminal block fixing screw
User???s Manual 9
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
2. Specifications
PART 1 AD268
2. Specifications
This section describes the AD268 specifications.
The general specification for the AD268 conforms to the specification for the T2 PLC.
2.1 Specifications
10 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
2.2 Internal block diagram
Jumper
1
Jumper
1
LG
FG
Filter
Filter
DC/DC converter
Buffer
Buffer
Optical isolation
AG
Voltage check circuit
EEPROM
The AD268 performs the following operations.
The external analog signals come to the buffer amplifier through the filter. The multiplexer sequentially selects CH1 to CH8 to convert the input analog signals into digital data via the A/D converter. The converted digital data reaches to the internal control circuit through optical isolator. Every time when the T2 CPU requests to read the converted data, the internal control circuit sends the data to the T2 CPU. The AD268's parameters are stored in theEEPROM.
User???s Manual 11
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
3. Input Type Setting
PART 1 AD268
3. Input Type Setting
The AD268 supports multiple input ranges, ?? 5V, ?? 10V, 0 to 5V, 0 to 10V, 1 to 5V, 0 to 20mA, or 4 to 20mA. The input range is selected by jumper plug setting and the parameter writing by the T2 program.
The general flow for setting the input type is as follows.
(1)Set the jumper plugs to select voltage input or current input.
(2)Mount the AD268 onto the T2 rack.
(3)Turn on power to the T2 system.
(4)Execute I/O allocation.
(5)Program the "input type setting program". (see the next page)
(6)Turn the T2 to RUN mode.
3.1Jumper plug setting
8 jumper plugs are provided on the AD268 board.
The jumper plug setting is for selecting either voltage input or current input.
JP1 is for channel 1, JP2 is for channel 2, ... JP8 is for channel 8.
Jumper plugs (JP1 to JP8)
1
3
Set the jumper plugs for each channel.
Side 1: Voltage input
Side 3: Current input
The factory setting is voltage input (side 1).
??? Use a pair of tweezers to set the jumper plug.
??? Pay attention not to touch the components on the board other than the jumper plug.
12 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
3.2 Parameter setting by software
The input range of the AD268 is specified by writing the following parameter data into the AD268's buffermemory. To access the buffer memory, T2 user program (READ and WRITE instructions) is required.
When the parameter is set to the AD268, it is saved in the AD268's
Input type parameter data:
AD268 buffer memory address:
H8018 Input type for channel 1
H8019 Input type for channel 2
H801A Input type for channel 3
H801B Input type for channel 4
H801C Input type for channel 5
H801D Input type for channel 6
H801E Input type for channel 7
H801F Input type for channel 8
The factory setting is ?? 10V range.
For details of the procedure to set the input type parameter, refer to section 6.
User???s Manual 13
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
4. Wiring
PART 1 AD268
4. Wiring
4.1 Terminal arrangement
AD268 terminal block
14 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
External 24Vdc power supply
AD268
+15V
+
24Vdc ?? 10%
-
P24
DC/DC converter
COM
AG
LG
(b) (a)
Normally connect LG and FG , then connect to ground. (a) However, depending on the condition, connect grounding individually by opening LG and FG. (b)
FG
Internal circuit
User???s Manual 15
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
4. Wiring
PART 1 AD268
4.3Wiring precautions
(1)Use shielded
(2)Separate the analog signal cable from other cables to prevent noise interference. (200mm or more)
(3)This module requires 24Vdc power. Apply the 24Vdc power before (or at the same time) applying T2???s main power. Otherwise, this module detects the external 24Vdc error.
(4)If the external 24Vdc power for this module is not stable, the converted data will not be stable. In this case, use a dedicated 24Vdc power supply for this module.
(5)It is recommended to short the unused channels. Because if it is open for voltage input, meaningless A/D conversion data will appear.
(6)If the converted data is not stable owing to electrical noise, it is recommended to use the input averaging function to reduce the noise interference. For the averaging function, refer to section 6.
16 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
5. I/O Allocation and Programming
5.1 Allocation to the T2 registers
The I/O type of the AD268 is "X 8W".
When the automatic I/O allocation operation is performed with a AD268 mounted on the rack, the AD268 is allocated as "X 8W".
The AD268 occupies the 8 consecutive input (XW) registers of the T2.
In this manual, these assigned I/O registers are expressed as XW(n), XW(n+1), ... XW(n+7).
The following figure shows an example of I/O allocation window of the
In the above example, the AD268 is allocated on the
User???s Manual 17
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
5. I/O Allocation and Programming
PART 1 AD268
5.2 A/D conversion data
The analog signals received by the AD268 are converted into the digital data in this module. These converted digital data are read by T2 CPU in the batch I/O processing and stored in the assigned input registers as follows.
The conversion data stored in the XW register is dependent on the input type as follows.
???? 10V range:
D = 3200 ??? A
D: Digital data
A: Analog signal (V)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
D = 3200 ??? A
D: Digital data
A: Analog signal (V)
User???s Manual 19
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
5. I/O Allocation and Programming
PART 1 AD268
0 to 10V range:
20 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
D = 800 ??? A
D: Digital data
A: Analog signal (mA)
User???s Manual 21
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
5. I/O Allocation and Programming
PART 1 AD268
1 to 5V / 4 to 20mA range:
22 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
5.3 Programming
To read the A/D conversion data, there is no need to use special instruction. The A/D conversion data are automatically stored in the assigned input registers (XW registers).
For example, when the AD268 is allocated to XW000 to XW007, the A/D conversion data of each channel is stored as follows.
XW000 : Channel 1 A/D conversion data
XW001 : Channel 2 A/D conversion data
XW002 : Channel 3 A/D conversion data
XW003 : Channel 4 A/D conversion data
XW004 : Channel 5 A/D conversion data
XW005 : Channel 6 A/D conversion data
XW006 : Channel 7 A/D conversion data
XW007 : Channel 8 A/D conversion data
Therefore, in the user program, you can use these XW registers directly for the analog data processing.
The program shown below is an example of simple comparison with the channel 1 analog data. (?? 10V setting)
Line 1: When XW000 is greater than 25600 (channel 1 analog input is more than 8V), R0100 is set to ON.
Line 2: When XW000 is in the range of
Line 3: When XW000 is less than
User???s Manual 23
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
6. Parameters
PART 1 AD268
6. Parameters
The AD268 has the memory that stores the control parameters, input type designation, module status information, etc. This memory is called the buffer memory. To access (read/write) this memory from the T2 program, READ and WRITE instructions are used.
6.1 Memory map
The contents of the AD268's buffermemory are as follows.
Use WRITE instruction to write data into these addresses.
Use READ instruction to read data from this address.
24 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Use READ instruction to read data from these addresses.
User???s Manual 25
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
6. Parameters
PART 1 AD268
Gain calibration value & Offset calibration value:
(Gain: H8000 to H8007, Offset: H8008 to H800F)
At the factory shipment, the AD268 is calibrated for each input range. Therefore, there is no need for user to calibrate normally.
However, depending on the usage condition, field adjustments are required. For this purpose, the AD268 has the gain and offset calibration function.
In the AD268, the A/D conversion data is calculated as follows.
When the gain calibration value is G and the offset calibration value is O, the conversion calculation is performed in the AD268 as follows.
X2 = (X1 + O) ??? G / FS
X1: Initial A/D conversion value
X2: Gain/offset processed value
O:Offset calibration value (buffer memory address H8008 to H800F)
G: Gain calibration value (buffer memory address H8000 to H8007)
FS: Full scale value
32000 for ?? 10V and 0 to 10V ranges
16000 for ?? 5V, 0 to 5V and 0 to 20mA ranges 12800 for 1 to 5V and 4 to 20mA ranges
The data setting range of the gain and offset calibration value are as follows.
26 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Averaging times:
(H8010 to H8017)
This parameter is for the averaging processing for the analog input data. The moving average is calculated by the given averaging times parameter.
For example, if the averaging times parameter is 10, the average value of latest 10 times conversion is output as the A/D conversion data.
This function is effective to reduce the fluctuation caused by noise.
The available setting range is as follows.
Input type setting:
(H8018 to H801F)
This parameter is used to select the input type. This parameter also has a function to skip the A/D conversion for unused channels. By using the channel skip function, the conversion cycle time can be reduced.
The available setting range is as follows.
The default setting value (factory setting) is 5 (?? 10V).
User???s Manual 27
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
6. Parameters
PART 1 AD268
Command register:
(H8020)
This register is used to issue the following commands to the AD268. To issue the command, write the command value by using WRITE instruction.
The command register and the response register are used for
Response register:
(H8021)
This register shows the AD268???s response for the command issued. Check the status of this register using READ instruction.
The command register and the response register are used for
28 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Analog input actual value:
(H8028 to H802F)
These data show the original A/D conversion data before processing the gain and offset calibration.
Module status:
(H8030 to H8037)
These data show the AD268???s operation status.
User???s Manual 29
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
6. Parameters
PART 1 AD268
6.2 Parameter setting procedure
When you change the AD268 parameters, such as input type settings, gain/offset calibrations and averaging times, use the following procedure.
Step (1)
Write the value "0" into the command register of the AD268 buffer memory (address H8020) by WRITE instruction.
Step (2)
Write the parameter data into the buffer memory (addresses H8000 to H801F) by WRITE instruction. Be sure to write all the 32 words in batch.
Step (3)
Write the value "1" into the command register (address H8020) by WRITE instruction.
Step (4)
Wait until the data of the response register (address H8021) comes "1". Check the data by READ instruction.
Step (5)
Write the value "0" into the command register (address H8020) by WRITE instruction.
When the above steps are finished and the module status (addresses H8030 to H8037) shows no error, the parameter setting procedure is completed. The parameters are effective and they have been saved in the AD268'sEEPROM.
30 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
6.3 Sample program for setting the parameters
A sample program to set the parameters is shown below.
This is an example to set the input type as 0 to 10V range (type = 1) for each channel. In this sample program, it is assumed that he AD268 is allocated to XW000 to XW007.
For details of READ and WRITE instructions, refer to the
(Main program)
(H8020)
(H8000)
(H8020)
(H8021)
(H8020)
Step (1):
Writes 0 into the command register (H8020).
Step (2):
Writes parameters.
???Gain = 32000
???Offset = 0
???Average = 1
???Type = 1
Step (3):
Writes 1 into the command register (H8020).
Step (4): Waits until the response register (H8021) comes 1.
Step (5):
Writes 0 into the command register (H8020) to return to initial state.
In this sample program, the rung 1 is activated at the beginning of RUN mode (at the second scan) automatically. The input type is set to 0 to 10V for all 8 channels.
When the parameter setting process is completed, the flags R1000 to R1002 are returned to OFF.
For reading the parameters from the AD268, there is no special procedure. Simply read the data from the AD268???s buffer memory by using READ instruction.
User???s Manual 31
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
7. Troubleshooting
PART 1 AD268
7. Troubleshooting
7.1 RAS information
The RUN LED is provided on the front of the AD268. When the AD268 is operating normally, this LED is lit.
Also the module status information is provided in the AD268???s buffer memory (addresses H8030 to H8037). This information is useful for troubleshooting.
Module status:
(H8030 to H8037)
These data show the AD268???s operation status.
A sample program to read the module status information is shown below.
(H8030)
By the above sample program, the module status information for each channel is read from the AD268, and stored in D4010 to D4017.
(In this sample program, it is assumed that the AD268 is allocated to XW000 to XW007)
32 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
7.2 Troubleshooting
The table below shows the trouble and its remedy.
User???s Manual 33
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
34 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Part 2
4 Channel Analog Output Module
DA264
1.Introduction, 36
2.Specifications, 38
3.Output Type Setting, 40
4.Wiring, 41
5.I/O Allocation and Programming, 44
6.Parameters, 51
7.Troubleshooting, 56
User???s Manual 35
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
1. Introduction
PART 2 DA264
1. Introduction
The DA264 is a 4 channel analog output module for the T2 series programmable controllers. The DA264 converts digital values given by the T2 program into the analog signals (voltage or current).
1.1 DA264 Functions
The DA264 has the following functions.
1)4 channels output per module
2)Selectable output type
????? 5V
????? 10V
???0 to 5V
???0 to 10V
???1 to 5V
???0 to 20mA
???4 to 20mA
3)
4)
5)Offset calibration function
6)Output hold function
36 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
1.2 External features
Model type DA264
Status indication LED
Removable terminal block
Analog output terminal
External power supply connection terminal
Line ground and Frame ground terminal
Terminal block fixing screw
User???s Manual 37
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
2. Specifications
PART 2 DA264
2. Specifications
This section describes the DA264 specifications.
The general specification for the DA264 conforms to the specification for the T2 PLC.
2.1 Specifications
38 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
2.2 Internal block diagram
P
N
Voltage output
P
CH1
Current output
N
P
N
Voltage output
P
CH4
Current output
N
P24
COM
LG
FG
The DA264 performs the following operations.
The digital data for D/A conversion generated by the T2 program are written into the DA264. The written digital data are transferred to the D/A converter through optical isolator. Then the D/A converter converts the digital values to the analog signals.
The generated analog signals are output to each channel (CH1 to CH4) via amplifier. Each channel has both the voltage output and the current output. However either voltage or current output can be used.
User???s Manual 39
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
3. Output Type Setting
PART 2 DA264
3. Output Type Setting
The DA264 supports multiple output ranges, ?? 5V, ?? 10V, 0 to 5V, 0 to 10V, 1 to 5V, 0 to 20mA, or 4 to 20mA. The output range is selected by writing the parameter into the DA264 by the T2 program. The voltage or current output is selected by the DA264???s output terminals.
The general flow for setting the output type is as follows.
(1)Mount the DA264 onto the T2 rack.
(2)Turn on power to the T2 system.
(3)Execute I/O allocation.
(4)Program the "output type setting program". (see below)
(5)Turn the T2 to RUN mode.
3.1Parameter setting by software
The output range of the DA264 is specified by writing the following parameter data into the DA264's buffermemory. To write the parameter into the buffer memory, T2 user program (WRITE instruction) is used.
These parameter data are not maintained in the DA264. Therefore, program the output type setting routine and execute it at each time of the beginning of the operation.
Output type parameter data:
DA264 buffer memory address:
H8004 Output type for channel 1
H8005 Output type for channel 2
H8006 Output type for channel 3
H8007 Output type for channel 4
The factory setting is 0 to 5V / 0 to 20mA range.
Refer to section 6 for the sample program to set the output type.
40 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
4. Wiring
4.1 Terminal arrangement
DA264 terminal block
User???s Manual 41
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
4. Wiring
PART 2 DA264
4.2Signal wiring
Voltage output
42 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
4.3Wiring precautions
(1)Use shielded
Analog
(a)output
module
Analog
(b)output
module
Analog
(c)output
module
(2)Separate the analog signal cable from other cables to prevent noise interference. (200mm or more)
(3)This module requires 24Vdc power. Apply the 24Vdc power before (or at the same time) applying T2???s main power. Otherwise, this module detects the external 24Vdc error.
(4)If the external 24Vdc power for this module is not stable, the converted data will not be stable. In this case, use a dedicated 24Vdc power supply for this module.
(5)When the external 24Vdc power is applied, about 0.7V voltage will output for few ms (milliseconds). Therefore the
External 24Vdc ??? T2 main power ??? Power for output load
User???s Manual 43
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
5. I/O Allocation and Programming
PART 2 DA264
5. I/O Allocation and Programming
5.1 Allocation to the T2 registers
The I/O type of the DA264 is "Y 4W".
When the automatic I/O allocation operation is performed with a DA264 mounted on the rack, the DA264 is allocated as "Y 4W".
The DA264 occupies the 4 consecutive output (YW) registers of the T2.
In this manual, these assigned I/O registers are expressed as YW(n), YW(n+1), YW(n+2) and YW(n+3).
The following figure shows an example of I/O allocation window of the
In the above example, the DA264 is allocated on the
44 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
5.2 D/A conversion data
To output the desired analog signals from the DA264, simply write the appropriate data into the assigned I/O registers YW(n) to YW(n+3) for the DA264.
The data of YW(n) to YW(n+3) are transferred to the DA264 at the T2???s batch I/O processing. Then in the DA264, these D/A conversion data are converted into the analog signals and output from the DA264.
The I/O register assignment is as follows.
The conversion data to be written into the YW register is dependent on the output type as follows.
???? 10V range:
A = 0.3125 ??? D
D: Digital data
A: Analog signal (mV)
User???s Manual 45
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
5. I/O Allocation and Programming
PART 2 DA264
???? 5V range:
A = 0.3125 ??? D
D: Digital data
A: Analog signal (mV)
46 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Analog output value
A = 0.3125 ??? D
D: Digital data
A: Analog signal (mV)
User???s Manual 47
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
5. I/O Allocation and Programming
PART 2 DA264
0 to 5V / 0 to 20mA range:
A = 1.25 ??? D
D: Digital data
A: Analog signal (??? A)
48 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
User???s Manual 49
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
5. I/O Allocation and Programming
PART 2 DA264
5.3 Programming
To output the desired analog signal from the DA264, there is no need to use any special instruction. When the D/A conversion data is written in the assigned output register (YW register), it is transferred to the DA264 and converted to the corresponding analog signal.
For example, when the DA264 is allocated to YW000 to YW003, the D/A conversion data of each channel is assigned as follows.
YW000 : Channel 1 D/A conversion data
YW001 : Channel 2 D/A conversion data
YW002 : Channel 3 D/A conversion data
YW003 : Channel 4 D/A conversion data
Therefore, in the user program, you can use any instructions to write data in these YW registers for the analog data processing.
The program shown below is an example of simple increasing/decreasing of the channel 1 analog data. (?? 10V setting)
Rung 1: During R1000 is ON, YW000 data is increased by 32 (channel 1 analog output is increased by 0.01V) every scan. It is
Rung 2: During R1001 is ON, YW000 data is decreased by 32 (channel 1 analog output is decreased by 0.01V) every scan. It is
50 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
6. Parameters
The DA264 has the memory that stores the control parameters, output type designation, module status information, etc. This memory is called the buffer memory. To access (read/write) this memory from the T2 program, READ and WRITE instructions are used.
These parameter data are not maintained in the DA264. Therefore, you should write the necessary parameter data at each time of the beginning of the operation.
6.1 Memory map
The contents of the DA264's buffermemory are as follows.
Use WRITE instruction to write data into these addresses.
Use READ instruction to read data from these addresses.
User???s Manual 51
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
6. Parameters
PART 2 DA264
Offset calibration value:
(H8000 to H8003)
At the factory shipment, the DA264 is calibrated for each output range. Therefore, there is no need for user to calibrate normally.
However, depending on the usage condition, field adjustments are required. For this purpose, the DA264 has the offset calibration function.
In the DA264, the D/A conversion is performed as follows.
When the offset calibration value is set, this value is added to the original D/A conversion data. Then D/A conversion is performed in the DA264.
The data setting range of the offset calibration value are as follows.
52 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Output type setting:
(H8004 to H8007)
This parameter is used to select the output type.
This parameter also has a function to select either clear or hold the analog output signal in case of the T2 operation stop (Halt or Error).
The available setting range is as follows.
The default setting value (factory setting) is 0 (0 to 5V/0 to 20mA).
Between the clear mode and the hold mode, there is no difference in operation when the controller (T2) is operating normally. However, when the T2 stops the operation by Halt mode or Error mode, the DA264???s output status is different between these modes. Refer to the table below.
User???s Manual 53
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
6. Parameters
PART 2 DA264
Analog output
(H8008 to H800B)
These data show the D/A conversion data after processing the offset calibration.
Module status:
(H800C to H800F)
These data show the DA264???s operation status.
54 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
6.2 Sample program to access the parameters
To write the parameters into the DA264???s buffer memory, use the WRITE instruction. No special procedure is required.
To read the parameters from the DA264???s buffer memory, use the READ instruction.
A sample program to write/read the parameters is shown below.
This is an example to set the output type as ?? 10V range (type = 5) for each channel. In this sample program, it is assumed that he DA264 is allocated to YW000 to YW003.
For details of READ and WRITE instructions, refer to the
(Main program)
(H8004)
Writes 5 (c) into 4 words starting with address H8004.
(H8008)
Reads 8 words from address H8008 and after.
In this sample program, the rung 1 is activated at the beginning of RUN mode (at the second scan) automatically. The output type is set to ?? 10V for all 4 channels.
The rung 2 is to read the analog output
User???s Manual 55
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
7. Troubleshooting
PART 2 DA264
7. Troubleshooting
7.1 RAS information
The RUN LED is provided on the front of the DA264. When the DA264 is operating normally, this LED is lit.
Also the module status information is provided in the DA264???s buffer memory (addresses H800C to H800F). This information is useful for troubleshooting.
Refer to section 6 for the module status information and how to read it.
7.2 Troubleshooting
The table below shows the trouble and its remedy.
56 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
User???s Manual 57
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
58 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Part 3
8 Channel Thermocouple Input Module
TC218
1.Introduction, 60
2.Specifications, 62
3.Input Type Setting, 64
4.Wiring, 66
5.I/O Allocation and Programming, 69
6.Parameters, 75
7.Troubleshooting, 83
User???s Manual 59
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
1. Introduction
PART 3 TC218
1. Introduction
The TC218 is a thermocouple input module for the T2 series programmable controllers.
The TC218 is used to measure the temperature using thermocouples. Thermocouples type K, J, or E can be used.
The TC218 can be used for ?? 100mV input also.
When the TC218 is used for the thermocouple input, it has 7 channels of thermocouple input. The remaining 1 channel is used to measure the ambient temperature for cold junction compensation. For this purpose, a thermistor is attached with the TC218.
On the other hand, when the TC218 is used for ?? 100mV input, it has 8 channels of input.
1.1 TC218 Functions
The TC218 has the following functions.
1)7 channels input per module for thermocouple input
8 channels input per module for ?? 100mV input
2)Selectable input type
??? ?? 100mV
3)
4)
5)Cold junction compensation function
6)Burnout detection function
7)Input data averaging function
8)Gain and offset calibration function (?? 100mV input only)
60 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
1.2 External features
Model type TC218
Status indication LED
Removable terminal block
Analog input terminal
External power supply connection terminal
Line ground and Frame ground terminal
Terminal block fixing screw
For thermocouple input, CH2 to CH8 are used to connect the thermocouple input wires. The CH1 is used to connect the thermistor to measure the ambient temperature for cold junction compensation.
For ?? 100mV input, all 8 channels CH1 to CH8 are used.
User???s Manual 61
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
2. Specifications
PART 3 TC218
2. Specifications
This section describes the TC218 specifications.
The general specification for the TC218 conforms to the specification for the T2 PLC.
2.1 Specifications
62 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
2.2 Internal block diagram
Reference voltage
Optical isolation
EEPROM
The TC218 performs the following operations.
The external analog signals come to the buffer amplifier through the filter. The multiplexer sequentially selects CH1 to CH8 to convert the input analog signals into digital data via the A/D converter. The converted digital data reaches to the internal control circuit through optical isolator. Every time when the T2 CPU requests to read the converted data, the internal control circuit sends the data to the T2 CPU. The TC218'sparameters are stored in the EEPROM.
User???s Manual 63
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
3. Input Type Setting
PART 3 TC218
3. Input Type Setting
The TC218 supports multiple input types, type K, type J, type E, or ?? 100mV. The input type is selected by jumper plug setting and the parameter writing by the T2 program.
Note that the input type can be selected either one, type K, type J, type E, or ?? 100mV, for all channels. Any mixture settings among the channels are not allowed.
The general flow for setting the input type is as follows.
(1)Set the jumper plugs to select thermocouple input or mV input.
(2)Mount the TC218 onto the T2 rack.
(3)Turn on power to the T2 system.
(4)Execute I/O allocation.
(5)Program the "input type setting program". (see the next page)
(6)Turn the T2 to RUN mode.
(7)Cycle power off/on
3.1Jumper plug setting
8 jumper plugs are provided on the TC218 board.
The jumper plug setting is for selecting either thermocouple input or mV input.
Jumper plugs (JP1 to JP8)
1
3
Set all the jumper plugs either side 1 or 3.
Side 1: Thermocouple input
Side 3: ?? 100mV input
The factory setting is ?? 100mV input (side 3).
???Use a pair of tweezers to set the jumper plug.
???Pay attention not to touch the components on the board other than the jumper plug.
64 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
3.2 Parameter setting by software
The input type of the TC218 is specified by writing the following parameter data into the TC218's buffermemory. To access the buffer memory, T2 user program (READ and WRITE instructions) is required.
When the parameter is set to the TC218, it is saved in the TC218's
Input type parameter data:
Parameter
data
Input type
0Type K thermocouple
1Type J thermocouple
2Type E thermocouple
TC218 buffer memory address:
H8018 Input type for channel 1
H8019 Input type for channel 2
H801A Input type for channel 3
H801B Input type for channel 4
H801C Input type for channel 5
H801D Input type for channel 6
H801E Input type for channel 7
H801F Input type for channel 8
Set the same parameter data for all 8 channels.
The factory setting is ?? 100mV range.
For details of the procedure to set the input type parameter, refer to section 6.
User???s Manual 65
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
4. Wiring
PART 3 TC218
4. Wiring
4.1 Terminal arrangement
TC218 terminal block
66 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
4.2 Signal wiring
???? 100mV input (CH1 to CH8)
Voltage source
Shielded
+
V
-
n : Channel number (1 to 8) Internal circuit AG : Analog ground
FG : Frame ground
Thermocouple input
TC218
Connect the thermistor attached to the TC218
CH1
CH2 to CH8
Thermocouple cable
n : Channel number (2 to 8) Internal circuit AG : Analog ground
FG : Frame ground
User???s Manual 67
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
4. Wiring
PART 3 TC218
External 24Vdc power supply
TC218
+15V
+
24Vdc ?? 10%
-
P24
DC/DC converter
COM
AG
LG
(b) (a)
Normally connect LG and FG , then connect to ground. (a) However, depending on the condition, connect grounding individually by opening LG and FG. (b)
FG
Internal circuit
4.3Wiring precautions
(1)The thermocouple signal is weak voltage. Pay attention to prevent noise interference.
???Shortest cable distance
???Cable shield and grounding
???Separation from other cables
(2)This module requires 24Vdc power. Apply the 24Vdc power before (or at the same time) applying T2???s main power. Otherwise, this module detects the external 24Vdc error.
(3)If the external 24Vdc power for this module is not stable, the converted data will not be stable. In this case, use a dedicated 24Vdc power supply for this module.
(4)It is recommended to short the unused channels. Because if it is open, meaningless A/D conversion data will appear.
(5)If the converted data is not stable owing to electrical noise, it is recommended to use the input averaging function to reduce the noise interference. For the averaging function, refer to section 6.
(6)When this module is used for thermocouple input, connect the thermistor to channel 1 (CH1). The thermistor is attached with this module.
68 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
5. I/O Allocation and Programming
5.1 Allocation to the T2 registers
The I/O type of the TC218 is "X 8W".
When the automatic I/O allocation operation is performed with a TC218 mounted on the rack, the TC218 is allocated as "X 8W".
The TC218 occupies the 8 consecutive input (XW) registers of the T2.
In this manual, these assigned I/O registers are expressed as XW(n), XW(n+1), ... XW(n+7).
The following figure shows an example of I/O allocation window of the
In the above example, the TC218 is allocated on the
User???s Manual 69
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
5. I/O Allocation and Programming
PART 3 TC218
5.2 A/D conversion data
The analog signals received by the TC218 are converted into the digital data in this module. These converted digital data are read by T2 CPU in the batch I/O processing and stored in the assigned input registers as follows.
The conversion data stored in the XW register is dependent on the input type as follows.
???? 100mV input:
D = 320 ??? A
D: Digital data
A: Analog signal (mV)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Digital vale
D = 20 ??? A
D: Digital data
A: Temperature (??C)
User???s Manual 71
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
5. I/O Allocation and Programming
PART 3 TC218
Thermocouple (type J) input:
Digital vale
D = 20 ??? A
D: Digital data
A: Temperature (??C)
72 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Digital vale
D = 20 ??? A
D: Digital data
A: Temperature (??C)
User???s Manual 73
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
5. I/O Allocation and Programming
PART 3 TC218
5.3 Programming
To read the A/D conversion data, there is no need to use special instruction. The A/D conversion data are automatically stored in the assigned input registers (XW registers).
For example, when the TC218 is allocated to XW000 to XW007, the A/D conversion data of each channel is stored as follows.
XW000 : Channel 1 A/D conversion data
XW001 : Channel 2 A/D conversion data
XW002 : Channel 3 A/D conversion data
XW003 : Channel 4 A/D conversion data
XW004 : Channel 5 A/D conversion data
XW005 : Channel 6 A/D conversion data
XW006 : Channel 7 A/D conversion data
XW007 : Channel 8 A/D conversion data
Therefore, in the user program, you can use these XW registers directly for the analog data processing.
The program shown below is an example of simple comparison with the channel 2 input data. (Thermocouple type K setting)
By the above program, the ON/OFF status of the internal relays R0200 to R0203 are changed as follows.
74 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
6. Parameters
The TC218 has the memory that stores the control parameters, input type designation, module status information, etc. This memory is called the buffer memory. To access (read/write) this memory from the T2 program, READ and WRITE instructions are used.
6.1 Memory map
The contents of the TC218's buffermemory are as follows.
Use WRITE instruction to write data into these addresses.
Use READ instruction to read data from this address.
User???s Manual 75
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
6. Parameters
PART 3 TC218
Use READ instruction to read data from these addresses.
76 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Gain calibration value & Offset calibration value: (???? 100mV input only)
(Gain: H8000 to H8007, Offset: H8008 to H800F)
For the ?? 100mV input, the gain and offset calibration is possible.
In the TC218, the A/D conversion data is calculated as follows.
When the gain calibration value is G and the offset calibration value is O, the conversion calculation is performed in the TC218 as follows.
X2 = (X1 + O) ??? G / 32000
X1: Initial A/D conversion value
X2: Gain/offset processed value
O:Offset calibration value (buffer memory address H8008 to H800F)
G: Gain calibration value (buffer memory address H8000 to H8007)
The data setting range of the gain and offset calibration value are as follows.
User???s Manual 77
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
6. Parameters
PART 3 TC218
Averaging times:
(H8010 to H8017)
This parameter is for the averaging processing for the analog input data. The moving average is calculated by the given averaging times parameter.
For example, if the averaging times parameter is 100, the average value of latest 100 times conversion is output as the A/D conversion data.
This function is effective to reduce the fluctuation caused by noise.
The available setting range is as follows.
Input type setting:
(H8018 to H801F)
This parameter is used to select the input type. This parameter also has a function to skip the A/D conversion for unused channels. By using the channel skip function, the conversion cycle time can be reduced.
The available setting range is as follows.
The default setting value (factory setting) is 5 (?? 100mV).
78 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Command register:
(H8020)
This register is used to issue the following commands to the TC218. To issue the command, write the command value by using WRITE instruction.
The command register and the response register are used for
Response register:
(H8021)
This register shows the TC218???s response for the command issued. Check the status of this register using READ instruction.
The command register and the response register are used for
User???s Manual 79
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
6. Parameters
PART 3 TC218
Analog input actual value:
(H8028 to H802F)
These data show the original A/D conversion data before processing the gain and offset calibration.
Module status:
(H8030 to H8037)
These data show the TC218???s operation status.
80 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
6.2 Parameter setting procedure
When you change the TC218 parameters, such as input type settings, gain/offset calibrations and averaging times, use the following procedure.
Step (1)
Write the value "0" into the command register of the TC218 buffer memory (address H8020) by WRITE instruction.
Step (2)
Write the parameter data into the buffer memory (addresses H8000 to H801F) by WRITE instruction. Be sure to write all the 32 words in batch.
For thermocouple, write the default value for the gain (32000) and the offset (0).
Step (3)
Write the value "1" into the command register (address H8020) by WRITE instruction.
Step (4)
Wait until the data of the response register (address H8021) comes "1". Check the data by READ instruction.
Step (5)
Write the value "0" into the command register (address H8020) by WRITE instruction.
When the above steps are finished and the module status (addresses H8030 to H8037) shows no error, the parameter setting procedure is completed. The parameters are effective and they have been saved in the TC218's EEPROM.
Note) After you write the parameters into the TC218, turn off power and on again.
User???s Manual 81
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
6. Parameters
PART 3 TC218
6.3 Sample program for setting the parameters
A sample program to set the parameters is shown below.
This is an example to set the input type as the type J thermocouple (type = 1) for each channel. In this sample program, it is assumed that he TC218 is allocated to XW000 to XW007.
For details of READ and WRITE instructions, refer to the
(Main program)
(H8020)
(H8000)
(H8020)
(H8021)
(H8020)
Step (1):
Writes 0 into the command register (H8020).
Step (2):
Writes parameters.
???Gain = 32000
???Offset = 0
???Average = 1
???Type = 1 (type J) Total 32 words starting with
Step (3):
Writes 1 into the command register (H8020).
Step (4): Waits until the response register (H8021) comes 1.
Step (5):
Writes 0 into the command register (H8020) to return to initial state.
In this sample program, the rung 1 is activated at the beginning of RUN mode (at the second scan) automatically. The input type is set to the type J thermocouple for all 8 channels. When the parameter setting process is completed, the flags R1000 to R1002 are returned to OFF.
For reading the parameters from the TC218, there is no special procedure. Simply read the data from the TC218???s buffer memory by using READ instruction.
82 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
7. Troubleshooting
7.1 RAS information
The RUN LED is provided on the front of the TC218. When the TC218 is operating normally, this LED is lit.
Also the module status information is provided in the TC218???s buffer memory (addresses H8030 to H8037). This information is useful for troubleshooting.
Module status:
(H8030 to H8037)
These data show the TC218???s operation status.
A sample program to read the module status information is shown below.
(H8030)
By the above sample program, the module status information for each channel is read from the TC218, and stored in D4010 to D4017.
(In this sample program, it is assumed that the TC218 is allocated to XW000 to XW007)
User???s Manual 83
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
7. Troubleshooting
PART 3 TC218
7.2 Troubleshooting
The table below shows the trouble and its remedy.
84 Analog I/O Modules (AD268 / DA264 / TC218)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net