6F3B0250 UM-TS01***-E001 PROGRAMMABLE CONTROLLER PROSEC T1 / T1S USER’S MANUAL - Basic Hardware and Function - TOSHIBA CORPORATION CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
6F3B0250 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.
6F3B0250 CE Marking The Programmable Controller PROSEC T1 and T1S (hereafter called T1/T1S) complies with the requirements of the EMC Directive 89/336/EEC and Low Voltage Directive 72/23/EEC under the condition of use according to the instructions described in this manual. The contents of the conformity are shown below.
6F3B0250 UL/c-UL Listing The Programmable Controller PROSEC T1 and T1S (hereafter called T1/T1S) are UL/c-UL listed as shown below.
6F3B0250 Safety Precautions This manual is prepared for users of Toshiba’s Programmable Controller T1/T1S. Read this manual thoroughly before using the T1/T1S. Also, keep this manual and related manuals so that you can read them anytime while the T1/T1S is in operation. General Information 1. The T1/T1S has been designed and manufactured for use in an industrial environment. However, the T1/T1S is not intended to be used for systems which may endanger human life.
F3B0250 Safety Precautions Installation: ! CAUTION 1. Excess temperature, humidity, vibration, shocks, or dusty and corrosive gas environment can cause electrical shock, fire or malfunction. Install and use the T1/T1S and related equipment in the environment described in this manual. 2. Improper installation directions or insufficient installation can cause fire or the units to drop. Install the T1/T1S and related equipment in accordance with the instructions described in this manual. 3.
6F3B0250 Safety Precautions Operation: ! WARNING 1. Configure emergency stop and safety interlocking circuits outside the T1/T1S. Otherwise, malfunction of the T1/T1S can cause injury or serious accidents. ! CAUTION 2. Operate the T1/T1S and the related modules with closing the terminal covers. Keep hands away from terminals while power on, to avoid the risk of electrical shock. 3. When you attempt to perform force outputs, RUN/HALT controls, etc. during operation, carefully check for safety. 4.
6F3B0250 Safety Precautions Maintenance: ! CAUTION 1. Turn off power before removing or replacing units, modules, terminal blocks or wires. Failure to do so can cause electrical shock or damage to the T1/T1S and related equipment. 2. When you remove both input and output terminal blocks with wires for maintenance purpose, pay attention to prevent inserting them upside down. 3. Do not insert your finger into the expansion rack’s ventilation hole during power on. This can cause electrical shock. 4.
6F3B0250 Safety Precautions Safety Label The safety label as shown on the right is attached to the power terminal of the T1/T1S. Remove the mount paper before wiring. Peel off the label from the mount paper and stick it near the power terminals where it can be readily seen. ! CAUTION Do not touch terminals while power on. Hazardous voltage can shock, burn or cause death. Do not touch terminals while power on. Read related manual thoroughly for safety. Stick this seal on unit or near unit.
6F3B0250 About This Manual About This Manual This manual has been prepared for first-time users of Toshiba’s Programmable Controller T1 and/or T1S to enable a full understanding of the configuration of the equipment, and to enable the user to obtain the maximum benefits of the equipment. This manual introduces the T1 and T1S, and explains the system configuration, specifications, installation and wiring for T1/T1S’s basic hardware.
6F3B0250 About This Manual Terminology The following is a list of abbreviations and acronyms used in this manual.
6F3B0250 Contents Contents 10 Safety Precautions .................................................................................. 3 About This Manual .................................................................................. 8 1. System Configuration .................................................................... 13 1.1 1.2 1.3 1.4 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.6 1.7 1.8 1.9 Introducing the T1 and T1S ................................................................
6F3B0250 Contents 5. Operating System Overview ......................................................... 81 5.1 5.2 5.3 Operation modes ................................................................................ About the built-in EEPROM ................................................................ Scanning ............................................................................................. 82 84 87 6. Programming Information .......................................................
6F3B0250 Contents 10. Troubleshooting .............................................................................. 293 10.1 10.1.1 10.1.2 10.1.3 10.1.4 10.1.5 10.1.6 10.2 Troubleshooting procedure ................................................................ Power supply check ......................................................................... CPU check ....................................................................................... Program check .......................................
6F3B0250 Section 1 System Configuration 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 Introducing the T1 and T1S, 14 Features, 16 System configuration, 19 I/O expansion, 20 Components, 22 Computer link system, 33 T1S Communication function, 34 Real-time data link system, 36 Peripheral tools, 37 Basic Hardware and Function 13 CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
6F3B0250 1. System Configuration 1.1 Introducing the T1 and T1S The T1 Series are compact, block style, high-performance programmable controllers with a range of 16 to 328 input and output points. The T1 Series are available in two versions, T1 and T1S. The T1S is an enhanced version against the standard T1. The figure below shows the T1 Series line-up. The T1 Series consists of the total 12 types.
6F3B0250 1. System Configuration Memory capacity: Program memory capacity of the T1 is 2 k steps. And that of the T1S is 8 k steps. Whole the program and a part of data registers are stored in built-in EEPROM.
6F3B0250 1. System Configuration 1.2 Features Option card support: The T1-40/T1-40S has two slots for the option card, which is approximately 1/2 the size of a credit card. The following eight types of the option cards are available.
6F3B0250 1. System Configuration Pulse output / PWM output: One point of variable frequency pulses (max. 5 kHz) or variable duty pulses can be output. These functions can be used to drive a stepping motor or to simulate an analog output. (DC input type only) Built-in computer link function: The T1/T1S’s RS-232C programmer port can accept the computer link protocol (data read/write). This results in easy connection to a higher level computer, an operator interface unit, etc.
6F3B0250 1. System Configuration Password protection: By registering your passwords, four levels of protection is available according to the security levels required for your application.
6F3B0250 1. System Configuration 1.3 System configuration The following figure shows the T1/T1S system configuration. Peripheral tool IBM-PC compatible personal computer T1 basic unit T1-16 T1-28 Option cards T-PDS software T1-40 Handy programmer HP911A Expansion unit T1-40S Computer link function MMI/SCADA system Expansion rack T2 I/O modules 2-slot 4-slot Basic Hardware and Function 19 CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.
6F3B0250 1. System Configuration 1.4 I/O expansion The I/O points on the T1-16 and T1-28 are not expandable. The T1-40 and T1-40S, however, provides I/O expandability by using the option cards, expansion rack and expansion unit. The T1-40/T1-40S can hold up to two option cards. Also, the T1-40/T1-40S can be connected to either one expansion rack (2-slot or 4-slot) or one expansion unit. By using the expansion rack, most of the T2 Series I/O modules can be used with the T1-40/T1-40S.
6F3B0250 1.
6F3B0250 1. System Configuration 1.5 Components 1.5.1 Basic unit The basic unit is available in four models, the T1-16, T1-28, T1-40 and T1-40S. And each model is available in three types, depending on the power supply and input types.
6F3B0250 1. System Configuration ¨ T1-16 Input status LEDs Power supply and Input terminals Output status LEDs Mounting hole IN Programmer port cover PROSEC TOSHIBA T1 MDR16 OUT Output terminals Operation status LEDs ¨ T1-28 Input status LEDs Power supply and Input terminals Output status LEDs Mounting hole IN Programmer port cover PROSEC TOSHIBA T1 MDR28 OUT Output terminals Operation status LEDs Basic Hardware and Function 23 CTi Automation - Phone: 800.894.0412 - Fax: 208.368.
6F3B0250 1.
6F3B0250 1. System Configuration ¨ Behind the programmer port cover Analog setting adjusters (V0 and V1) V 0 V 0 Mode control switch (HALT / RUN) V 1 H/R PRG V 1 R / H Programmer port connector PRG T1-16 / T1-28 T1-40 / T1-40S Power supply terminals: Connect the power cable and grounding wire. The terminal screw size is M3.5. See sections 4.4 and 4.5 for wiring. Input terminals: Connect input signal wires. The terminal screw size is M3.5. See section 2.4 for details.
6F3B0250 1. System Configuration Operation status LEDs: Indicate the operation status of the T1/T1S. PWR RUN FLT T1-16 / T1-28 PWR (Power) (green) RUN (green) FLT (Fault) (red) AUX (Auxiliary) (red) Lit Not lit Lit Blinking Not lit Lit Blinking Not lit - PWR RUN FLT AUX T1-40 / T1-40S Internal 5 Vdc power is normal. Internal 5 Vdc power is not normal.
6F3B0250 1. System Configuration Option card slot (T1-40/T1-40S): Used to insert the option cards. Two slots are provided. Refer to separate “T1/T1S Use’s Manual - Expansion I/O -” for details of the option cards. Expansion connector (T1-40/T1-40S): Used to connect the expansion rack or expansion unit. Refer to separate “T1/T1S Use’s Manual - Expansion I/O -” for details of the T2 type I/O modules.
6F3B0250 1. System Configuration 1.5.2 Option cards The T1-40/T1-40S can hold up to two option cards for expanding I/O points, etc. The following eight types of the option cards are available. For details of the option cards, refer to the separate manual “T1/T1S User’s Manual Expansion I/O -“.
6F3B0250 1. System Configuration 1.5.3 Expansion rack The T1-40/T1-40S can be connected to either one expansion rack or one expansion unit. The following two types of the expansion racks are available. By using the expansion rack, T2 Series I/O modules can be used with the T1-40/T1-40S. For details of the expansion rack, refer to the separate manual “T1/T1S User’s Manual - Expansion I/O -“.
6F3B0250 1. System Configuration 1.5.4 I/O modules As listed below, various I/O modules are available for the T1-40/T1-40S, allowing it to be used for a wide variety of applications. Up to four I/O modules can be used with the T1-40/T1-40S by connecting the expansion rack. For details of the I/O modules, refer to the separate manual “T1/T1S User’s Manual Expansion I/O -“.
6F3B0250 1. System Configuration 1.5.5 Expansion unit The T1-40/T1-40S can be connected to either one expansion rack or one expansion unit. The following two types of the expansion units are available. Each expansion unit has 32 points I/O (16 inputs and 16 outputs). For details of the expansion unit, refer to the separate manual “T1/T1S User’s Manual Expansion I/O -“.
6F3B0250 1. System Configuration 1.5.6 Options The following optional items are available. Item Programmer port connector Option card I/O connector Expansion cable Type PT16S Description For RS-232C computer link, with 2 m cable PT15S PT15F CS1R2 Cable side connector for DI116, Soldering type DO116, or DD116 Flat cable type For connecting the expansion rack, 0.15 m length, (spare parts) For connecting the expansion unit, 0.
6F3B0250 1. System Configuration 1.6 Computer link system The interface of the T1/T1S’s programmer port is RS-232C. Normally this port is used to connect the programmer. However, this port can also be used for the computer link function. The computer link is a data communication function between computer or operator interface unit and the T1/T1S. The data in the T1/T1S can be read and written by creating simple communication program on the computer.
6F3B0250 1. System Configuration 1.7 T1S communication function The T1S has an RS-485 muiti-purpose communication port. This port can work independent of the programmer port. By using this communication port, one of the following three communication modes is available, computer link mode, data link mode and free ASCII mode. For details of these functions, refer to the separate manual “T1/T1S User’s Manual Communication Function -”.
6F3B0250 1. System Configuration Data link mode Two PLCs (any combination of T1S, T2E or T2N) can be directly linked together. This direct link is inexpensive, easily configured and requires no special programming. Data registers D0000 to D0031 are used for the data transfer. T1S T1S T1 T1 RS-485 (1 km max.) Station No. 1 Station No. 2 D0000 D0000 D0015 D0016 D0015 D0016 D0031 D0031 Free ASCII mode User defined ASCII messages can be transmitted and received through this port.
6F3B0250 1. System Configuration 1.8 Real-time data link system TOSLINE-F10 TOSLINE-F10 is a high speed data transmission system suited for small points I/O distribution system. By inserting the TOSLINE-F10 remote card (FR112) into the T140/T1-40S, the T1-40/T1-40S can work as a remote station of the TOSLINE-F10 network. On this network, the T1-40/T1-40S sends 1 word data to the master station and receives 1 word data from the master station.
6F3B0250 1. System Configuration 1.9 Peripheral tools The following peripheral tools are available for the T1/T1S. T-Series Program Development System (T-PDS) The T-Series Program Development System (T-PDS) is a software which runs on any IBM-PC compatible personal computers such as Toshiba’s Notebook computers. The same T-PDS software supports on-line/off-line programming, debugging and program documentation for all the T-Series programmable controllers T1/T1S, T2/T2E/T2N and T3/T3H.
6F3B0250 1. System Configuration T-Series Handy Programmer (HP911A) The HP911A is a hand-held programmer, that can be used to program the T1/T1S using ladder diagram. Its portability makes it ideal for maintenance use at remote locations. The HP911A has the following features. · The HP911A supports ladder diagram programming of T-Series programmable controllers T1/T1S, T2/T2E/T2N and T3. · Built-in EEPROM allows program copy between T-Series controllers.
6F3B0250 1. System Configuration Program Storage Module (RM102) The program storage module (RM102) is an external memory for storing the T1/T1S program. By using the RM102, program saving from the T1/T1S to the RM102, and program loading from the RM102 to the T1/T1S can be done without need of a programmer. Because the RM102 has an EEPROM, maintenance-free program storage and quick saving/loading are available.
6F3B0250 40 T1/T1S User’s Manual CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
6F3B0250 Section 2 Specifications 2.1 2.2 2.3 2.4 General specifications, 42 External dimensions, 43 Functional specifications, 46 I/O specifications, 48 Basic Hardware and Function 41 CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
6F3B0250 2. Specifications 2.1 General specifications Item Power supply voltage Power consumption Inrush current 24 Vdc output rating (24 Vdc, ±10%) T1-16 T1-28 T1-40 T1-40S 100 to 240 Vac (+10/-15 %), 50/60 Hz 30 VA or less 38 VA or less 45 VA or less 50 A or less (at 240 Vac, cold start) 0.1 A for 0.
6F3B0250 2. Specifications 2.2 External dimensions ¨ T1-16 2-Æ5 ¨ T1-28 2-Æ5 [mm] Basic Hardware and Function 43 CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
6F3B0250 2. Specifications ¨ T1-40/T1-40S, Expansion unit 2-Æ5 ¨ Option card 43.18 A Additional space for Option card connector Card type DI116, DO116, DD116 AD121, AD131, DA121, DA131 FR112 A 55 16 11 [mm] 44 T1/T1S User’s Manual CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
6F3B0250 2. Specifications ¨ 2-slot expansion rack 4-Æ5 69.0 106.5 83.0 115.0 97.0 143.0 (terminal block) 168.0 (connector) ¨ 4-slot expansion rack 4-Æ5 135.0 149.0 163.0 [mm] Basic Hardware and Function 45 CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
6F3B0250 2. Specifications 2.
6F3B0250 2.
6F3B0250 2. Specifications 2.4 I/O specifications 2.4.
6F3B0250 2. Specifications · Input signal connections < DC input (AC power) type > Current source Current sink Current flow Current flow L L 0 2 4 6 N - 1 3 5 7 0 2 4 6 N - IN 1 3 5 7 T1-16 T1-16 + Vin 21 23 25 27 C0 IN + Vin 21 23 25 27 OUT 20 22 24 26 C1 OUT 20 22 24 26 C1 C0 Note) The factory setting is current source.
6F3B0250 2. Specifications · T1-16 output specifications Item Relay output (both DC input and AC input types) Output type Relay contact, normally open Number of output points 6 points (6 points/common) Rated load voltage 240 Vac/24 Vdc (max.
6F3B0250 2. Specifications · Output signal connections < DC input type - 6 relays and 2 transistors > L 0 2 4 6 N - 1 3 5 7 IN T1-16 + Vin 21 23 25 27 C0 24 Vdc Note) 24 Vdc service power output is not provided on the DC power supply type. OUT 20 22 24 26 C1 PS + Transistor outputs 240 Vac/24 Vdc (max.) Relay outputs < AC input type - 6 relays and 2 triacs > L 0 2 4 6 N C 1 3 5 7 IN T1-16 NC C0 C0 100 - 240 Vac Triac outputs 21 23 25 27 OUT 20 22 24 26 C1 PS 240 Vac/24 Vdc (max.
6F3B0250 2. Specifications 2.4.2 T1-28 · T1-28 input specifications Item Specifications DC input type Input type Number of input points Rated input voltage Rated input current Min. ON voltage Max.
6F3B0250 2. Specifications · Input signal connections < DC input type > 24 Vdc input 24 Vdc 24 Vdc service power L - C 1 3 5 7 9 B D N NC + 0 2 4 6 8 A C IN T1-28 OUT Vin 21 23 24 26 C2 28 2A 2C C3 C0 20 22 C1 25 27 C2 29 2B 2D C3 Note) The 24 Vdc service power output is not provided on the DC power supply type.
6F3B0250 2. Specifications · T1-28 output specifications Item Relay output (both DC input and AC input types) Output type Relay contact, normally open Number of output points 12 points (1 ´ 2 pts/common, 1 ´ 4 pts/common, 1 ´ 6 pts/common) Rated load voltage 240 Vac/24 Vdc (max.
6F3B0250 2. Specifications · Output signal connections < DC input type - 12 relays and 2 transistors > L - C 1 3 5 7 9 B D N NC + 0 2 4 6 8 A C IN T1-28 OUT Vin 21 23 24 26 C2 28 2A 2C C3 C0 24 Vdc 20 22 C1 25 27 C2 29 2B 2D C3 PS PS PS PS 240 Vac/24 Vdc (max.
6F3B0250 2. Specifications 2.4.3 T1-40/T1-40S · T1-40/T1-40S input specifications Item Specifications DC input type Input type Number of input points Rated input voltage Rated input current Min. ON voltage Max.
6F3B0250 2. Specifications · Input signal connections < DC input type > 24 Vdc input 24 Vdc 24 Vdc service power L - C 1 3 5 7 9 B D F 11 13 15 17 N NC + 0 2 4 6 8 A C E 10 12 14 16 IN T1-40 NC NC Vin 20 22 23 24 25 26 27 C1 29 2B 2C 2E OUT NC NC NC C0 21 22 23 24 25 26 27 28 2A C2 2D 2F Note) The 24 Vdc service power output is not provided on the DC power supply type.
6F3B0250 2. Specifications · T1-40/T1-40S output specifications Item Relay output (both DC input and AC input types) Output type Relay contact, normally open Number of output points 14 points (6 ´ isolated, 2 ´ 4 pts/common) Rated load voltage 240 Vac/24 Vdc (max.
6F3B0250 2. Specifications · Output signal connections < DC input type - 14 relays and 2 transistors > L - C 1 3 5 7 9 B D F 11 13 15 17 N NC + 0 2 4 6 8 A C E 10 12 14 16 IN T1-40 NC NC Vin 20 22 23 24 25 26 27 C1 29 2B 2C 2E OUT NC NC NC C0 21 22 23 24 25 26 27 28 2A C2 2D 2F 24 Vdc PS PS PS PS PS PS PS PS PS + Transistor outputs 240 Vac/ 24 Vdc (max.
6F3B0250 60 T1/T1S User’s Manual CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
6F3B0250 Section 3 I/O Application Precautions 3.1 3.2 Application precautions for input signals, 62 Application precautions for output signals, 65 Basic Hardware and Function 61 CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
6F3B0250 3. I/O Application Precautions 3.1 Application precautions for input signals ! WARNING Configure emergency stop and safety interlocking circuits outside the T1/T1S. Otherwise, malfunction of the T1/T1S can cause injury or serious accidents. (1) Current source / sink selection on the T1-16 dry contact input The input current flow direction (source or sink) of the T1-16 dry contact input can be selected by setting the jumper plug on the T1-16 printed circuit board as shown below.
6F3B0250 3. I/O Application Precautions (2) Minimum ON/OFF time of the input signal The following conditions guarantee correct reading of the ON/OFF state of the input signal: Input ON time: ON delay time + the time for one scan Input OFF time: OFF delay time + the time for one scan The ON and OFF times of the input signals must be longer than these intervals. (3) Increasing the contact current The reliability of some contacts cannot be guaranteed by the specified input current.
6F3B0250 3. I/O Application Precautions (5) Countermeasures against leakage current When a switch with an LED or an AC output sensor is used, the input sometimes cannot recognize that the switch is off due to the current leakage. In this case, install a bleeder resistor to reduce input impedance.
6F3B0250 3. I/O Application Precautions 3.2 Application precautions for output signals ! WARNING Configure emergency stop and safety interlocking circuits outside the T1/T1S. Otherwise, malfunction of the T1/T1S can cause injury or serious accidents ! CAUTION 1. Turn on power to the T1/T1S before turning on power to the loads. Failure to do so may cause unexpected behavior of the loads. 2.
6F3B0250 3. I/O Application Precautions (3) Over-current protection The output circuit of the T1/T1S does not contain protective fuses. Fuses rated for the output should be provided by the user. Load T1 output circuit Load PS Fuse appropriate to the common current (4) Output surge protection Where an inductive load is connected to the output, a relatively high energy transient voltage will be generated when the relay turns OFF.
6F3B0250 Section 4 Installation and Wiring 4.1 4.2 4.3 4.4 4.5 4.6 Environmental conditions, 68 Installing the unit, 69 Wiring terminals, 71 Grounding, 76 Power supply wiring, 78 I/O wiring, 80 Basic Hardware and Function 67 CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
6F3B0250 4. Installation and Wiring 4.1 Environmental conditions ! CAUTION Excess temperature, humidity, vibration, shocks, or dusty and corrosive gas environment can cause electrical shock, fire or malfunction. Install and use the T1/T1S and related equipment in the environment described in this section. Do not install the T1/T1S in the following locations: · · · · · · · · Where the ambient temperature drops below 0 °C or exceeds 55 °C. Where the relative humidity drops below 20 % or exceeds 90 %.
6F3B0250 4. Installation and Wiring 4.2 Installing the unit ! CAUTION 1. Improper installation directions or insufficient installation can cause fire or the units to drop. Install the T1/T1S and related equipment in accordance with the instructions described in this section. 2. Turn off power before installing or removing any units, modules, racks or terminal blocks. Failure to do so can cause electrical shock or damage to the T1/T1S and related equipment. 3.
6F3B0250 4. Installation and Wiring Dimensions for screw mounting: · T1-16 2 - M4 113 mm · T1-28 / T1-40 / T1-40S / Expansion unit 2 - M4 158.5 mm · Expansion rack 2-slot 83 mm 70 4-slot 4 - M4 149 mm 4 - M4 T1/T1S User’s Manual CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
6F3B0250 4. Installation and Wiring 4.3 Wiring terminals ! CAUTION 1. Turn off power before wiring to minimize the risk of electrical shock. 2. Exposed conductive parts of wire can cause electrical shock. Use crimp-style terminals with insulating sheath or insulating tape to cover the conductive parts. Also close the terminal covers securely on the terminal blocks when wiring has been completed. 3. Turn off power before removing or replacing units, modules, terminal blocks or wires.
6F3B0250 4. Installation and Wiring T1-MAR16 ... AC power supply, AC input type L 0 2 4 6 N C 1 3 5 7 IN T1-16 NC C0 21 23 25 27 C0 OUT 20 22 24 26 C1 T1-MDR16D ... DC power supply, DC input type + 0 2 4 6 - C 1 3 5 7 IN T1-16 NC Vin 21 23 25 27 C0 NOTE 72 OUT 20 22 24 26 C1 NC stands for ”no connect”. Do not use the NC terminals for wire relaying or branching. T1/T1S User’s Manual CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.
6F3B0250 4. Installation and Wiring · T1-28 T1-MDR28 ... AC power supply, DC input type L - C 1 3 5 7 9 B D N NC + 0 2 4 6 8 A C IN T1-28 OUT Vin 21 23 24 26 C2 28 2A 2C C3 C0 20 22 C1 25 27 C2 29 2B 2D C3 T1-MAR28 ... AC power supply, AC input type NC C L 1 3 5 7 9 B D N NC NC 0 2 4 6 8 A C IN T1-28 C0 C0 OUT 21 23 24 26 C2 28 2A 2C C3 20 22 C1 25 27 C2 29 2B 2D C3 T1-MDR28D ...
6F3B0250 4. Installation and Wiring · T1-40 T1-MDR40 ... AC power supply, DC input type L - C 1 3 5 7 9 B D F 11 13 15 17 N NC + 0 2 4 6 8 A C E 10 12 14 16 IN T1-40 NC NC Vin 20 22 23 24 25 26 27 C1 29 2B 2C 2E OUT NC NC NC C0 21 22 23 24 25 26 27 28 2A C2 2D 2F T1-MAR40 ... AC power supply, AC input type L NC C 1 3 5 7 9 B D F 11 13 15 17 N NC NC 0 2 4 6 8 A C E 10 12 14 16 IN T1-40 NC NC C0 20 22 23 24 25 26 27 C1 29 2B 2C 2E OUT NC NC NC C0 21 22 23 24 25 26 27 28 2A C2 2D 2F T1-MDR40D ...
6F3B0250 4. Installation and Wiring · T1-40S T1-MDR40S ... AC power supply, DC input type L - C 1 3 5 7 9 B D F 11 13 15 17 N NC + 0 2 4 6 8 A C E 10 12 14 16 IN T1-40S RXB TXB Vin 20 22 23 24 25 26 27 C1 29 2B 2C 2E RXA TXA SG C0 OUT 21 22 23 24 25 26 27 28 2A C2 2D 2F T1-MAR40S ...
6F3B0250 4. Installation and Wiring 2 2 The applicable wire size is 0.3 mm (22 AWG) to 1.25 mm (16 AWG). The table below shows the recommended wire size. Type of signal Power Grounding I/O signals Recommended wire size 2 1.25 mm (16 AWG) 2 1.25 mm (16 AWG) 2 2 0.3 mm (22 AWG) to 0.75 mm (18 AWG) 4.4 Grounding ! CAUTION 1. Turn off power before wiring to minimize the risk of electrical shock. 2. Operation without grounding may cause electrical shock or malfunction.
6F3B0250 4. Installation and Wiring In case of the expansion rack is connected to the T1/T1S, the rack mounting screw is used for this purpose. Expansion rack T1 Mounting panel System ground 2 · 1.25 mm (16 AWG) wire should be used to connect the T1/T1S and the expansion rack/unit with the enclosure grounding bus bar. · 100 W or less to ground is required. Basic Hardware and Function 77 CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.
6F3B0250 4. Installation and Wiring 4.5 Power supply wiring ! CAUTION 1. Turn off power before wiring to minimize the risk of electrical shock. 2. Applying excess power voltage to the T1/T1S can cause explosion or fire. Apply power of the specified ratings described below. Wire the power source to the T1/T1S power supply terminals.
6F3B0250 4. Installation and Wiring Connections of the power supply terminals are shown below. · AC power supply type 100 to 240 Vac Grounding L N ~ 100-240VAC · DC power supply type 24 Vdc + Grounding + - 24Vdc Basic Hardware and Function 79 CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
6F3B0250 4. Installation and Wiring 4.6 I/O wiring ! CAUTION 1. Turn off power before wiring to minimize the risk of electrical shock. 2. Exposed conductive parts of wire can cause electrical shock. Use crimp-style terminals with insulating sheath or insulating tape to cover the conductive parts. Also close the terminal covers securely on the terminal blocks when wiring has been completed. 3. Turn off power before removing or replacing units, modules, terminal blocks or wires.
6F3B0250 Section 5 Operating System Overview 5.1 5.2 5.3 Operation modes, 82 About the built-in EEPROM, 84 Scanning, 87 Basic Hardware and Function 81 CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
6F3B0250 5. Operating System Overview 5.1 Operation modes The T1/T1S has three basic operation modes, the RUN mode, the HALT mode and the ERROR mode. The T1/T1S also has the HOLD and RUN-F modes mainly for system checking. RUN: The RUN mode is a normal control-operation mode. In this mode, the T1/T1S reads external signals, executes the user program stored in the RAM, and outputs signals to the external devices according to the user program.
6F3B0250 5. Operating System Overview The operation modes are switched by the mode control switch provided on the T1/T1S and the mode control commands issued from the programming tool. The mode transition conditions are shown below. (Power ON) Œ • RUN ’ ‘ Ž Ž HOLD • HALT • ‘ ’ Ž “ RUN-F ERROR Œ • Ž • • ‘ ’ “ Mode control switch is in R (RUN) side. Mode control switch is in H (HALT) side. Mode control switch is turned to H (HALT) side, or HALT command is issued from the programming tool.
6F3B0250 5. Operating System Overview 5.2 About the built-in EEPROM The T1/T1S is equipped with a built-in EEPROM and a RAM as standard features. The user program is stored in the EEPROM so that the user program can be maintained without the need of a battery. A part of the Data register can also be stored in the EEPROM. The table below shows the contents stored in the built-in EEPROM.
6F3B0250 5.
6F3B0250 5. Operating System Overview In case of the T1S, Special register SW55 is used to specify the number of Data registers to be stored in the EEPROM. The allowable setting value is 0 to 2048. The table below shows the correspondence between the SW55 value and Data registers saved in the EEPROM.
6F3B0250 5. Operating System Overview 5.3 Scanning The flowchart below shows the basic internal operations performed by the T1/T1S from the time power is turned on through program execution. As the diagram shows, executing a program consists of continuous scanning operations. One scan is a cycle starting with the self-diagnosis and ending with the completion of peripheral support. Power ON Hardware check Power-up initialization (approx.
6F3B0250 5. Operating System Overview Hardware check: Performs checking and initialization of the system ROM, the system RAM and the peripheral LSIs. Initial load: Transfers the user program and user data from the EEPROM to the RAM. (Refer to section 5.2) Register/device initialization: Initializes registers and devices as shown below. Register/device External input (X/XW) External output (Y/YW) Auxiliary device/register (R/RW) Special device/register (S/SW) Timer device/register (T.
6F3B0250 5. Operating System Overview Self-diagnosis: Checks the proper operation of the T1/T1S itself. If an error has detected and cannot be recovered by re-tries, the T1/T1S moves into ERROR mode. For the self-diagnosis items, refer to section 10.2. Mode control: Checks the mode control switch status and the mode control request commands from the programming tool. The scan mode - floating scan or fixed-time scan - is also controlled hear.
6F3B0250 5. Operating System Overview User program execution: Executes the programmed instructions from the beginning to the END instruction. This is the essential function of the T1/T1S. In this section, only the main program execution is mentioned. For other program types, such as timer interrupt, etc., refer to section 6.5. Peripheral support: Supports the communications with the programming tool or an external devices connected by the computer link function.
6F3B0250 Section 6 Programming Information 6.1 6.2 6.3 6.4 6.5 6.6 6.7 6.8 6.9 6.10 Devices and registers, 92 Index modification, 104 Real-time clock/calendar, 106 I/O allocation, 107 T1S memory mode setting, 109 User program configuration, 110 Programming language, 116 Program execution sequence, 117 On-line debug support functions, 118 Password protection, 121 Basic Hardware and Function 91 CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.
6F3B0250 6. Programming Information 6.1 Devices and registers The T1/T1S program consists of bit-based instructions that handle ON/OFF information, such as contact and coil instructions, and register-based (16-bit) instructions, such as those for data transfer and arithmetic operations. Devices are used to store the ON/OFF information of contacts and coils, and registers are used to store 16-bit data. Devices are divided into six types: X Y R S T. C.
6F3B0250 6. Programming Information Addressing devices A device number of X, Y, R and S devices consists of a register number and bit position as follows. X 01 4 Represents bit position 0 to F in the register. Decimal number representing the register containing the corresponding device. Represents the type of device. (X, Y, R, or S) As for the timer (T.) and the counter (C.) devices, a device number is expressed as follows. T. 12 Corresponding register number.
6F3B0250 6.
6F3B0250 6. Programming Information External input devices (X) These devices (X) indicate the ON/OFF states of external input signals through the input circuits. External input devices can be used many times in a program. External output devices (Y) The external output devices (Y) store the ON/OFF signals that drive the external devices through the output circuits. They can be used for coils in a program.
6F3B0250 6. Programming Information Counter devices and registers (C./C) The counter registers (C) are used for storing the count value of the counter (CNT) and the up-down counter (U/D) instructions. The counter devices (C.) works as the output of the counter instructions. It is possible to specify the C registers as retentive to retain their data in the event of a power failure. See section 5.3.
6F3B0250 6. Programming Information Special devices and registers (S/SW) The special devices (S) and special registers (SW) are used for special purposes. See list below.
6F3B0250 6.
6F3B0250 6. Programming Information Device/ register S030 S031 S032 S033 S034 S035 S036 S037 S038 S039 S03A S03B S03C S03D S03E S03F S040 S041 S042 S043 S044 S045 S046 S047 S048 S049 S04A S04B S04C S04D S04E S04F NOTE Name Program error Scan time over (down) Timing relay 0.1 s Timing relay 0.2 s Timing relay 0.4 s Timing relay 0.8 s Timing relay 1.0 s Timing relay 2.0 s Timing relay 4.0 s Timing relay 8.
6F3B0250 6.
6F3B0250 6.
6F3B0250 6.
6F3B0250 6.
6F3B0250 6. Programming Information 6.2 Index modification When registers are used as operands of instructions, the method of directly designating the register address as shown in Example 1) below is called ‘direct addressing’. As opposed to this, the method of indirectly designating the register by combination with the contents of the index register (I, J, or K) as shown in Example 2) below is called ‘indirect addressing’.
6F3B0250 6. Programming Information The followings are examples of index modifications. I RW10 When I = 0, it designates RW10. When I = 1, it designates RW11. When I = -1, it designates RW09. When I = 10, it designates RW20. When I = -10, it designates RW00. J D0201×D0200 When J = 0, it designates D0201×D0200. When J = 1, it designates D0202×D0201. When J = 2, it designates D0203×D0202. When J = -1, it designates D0200×D0199. When J = -2, it designates D0199×D0198.
6F3B0250 6. Programming Information 6.3 Real-time clock/calendar (T1S only) The T1S is equipped with the real-time clock/calendar for year, month, day, day of the week, hour, minute, and second. These data are stored in the special registers SW07 to SW13 by 2-digit BCD format as follows. Register SW07 SW08 SW09 SW10 SW11 SW12 SW13 Function Year Month Day Hour Minute Second Week Data 1998 = H0098, 1999 = H0099, 2000 = H0000, 2001 = H0001, ... Jan. = H0001, Feb. = H0002, Mar. = H0003, ... Dec.
6F3B0250 6. Programming Information 6.4 I/O allocation The external input signals are allocated to the external input devices/registers (X/XW). The external output signals are allocated to the external output devices/registers (Y/YW). The register numbers of the external input and output registers are consecutive. Thus one register number can be assigned for either input or output. As for the T1/T1S basic unit, I/O allocation is fixed as follows.
6F3B0250 6. Programming Information Internally, the T1/T1S has an information called ‘I/O allocation table’ in its memory. This I/O allocation table shows the correspondence between I/O hardware and software, i.e. register/device. The contents of the I/O allocation table are as follows.
6F3B0250 6. Programming Information 6.5 T1S memory mode setting The program capacity of the T1S is 8 k steps. However, user can set the T1S’s program capacity to 4 k steps. It is called the T1S’s memory mode. That is, the T1S has two memory modes, 8 k mode and 4 k mode. In the 4 k mode, on-line program changes become available, although the program capacity is limited to 4 k steps. Refer to section 6.9 for the on-line debug support functions.
6F3B0250 6. Programming Information 6.6 User program configuration A group of instructions for achieving the PLC-based control system is called ‘user program’. The T1 has 2 k steps capacity for storing the user program. And the T1S has 8 k steps capacity for storing the user program. A ‘step’ is the minimum unit which composes an instruction. Number of steps required for one instruction is depending on the type of instruction. Refer to section 7.1. The figure below shows the T1/T1S’s memory configuration.
6F3B0250 6. Programming Information System information System information is the area which stores execution control parameters. The following contents are included in the system information.
6F3B0250 6. Programming Information In the user program, the main program is the core. The scan operation explained in section 5.3 is for the main program. The operation of other program types are explained in the following sections. The following 8 program types are supported by the T1/T1S.
6F3B0250 6. Programming Information 6.6.2 Sub-program #1 If the sub-program #1 is programmed, it is executed once at the beginning of the first scan (before main program execution). Therefore, the sub-program #1 can be used to set the initial value into the registers. The sub-program #1 is called the initial program. The figure below shows the first scan operation.
6F3B0250 6. Programming Information 6.6.4 I/O interrupt programs The I/O interrupt program is also the highest priority task. It is executed immediately when the interrupt factor is generated, with suspending other operation. the following 4 types I/O interrupt programs are supported in the T1/T1S. (1) I/O interrupt #1 The I/O interrupt #1 is used with the high speed counter function. When the count value reaches the preset value, etc.
6F3B0250 6. Programming Information 6.6.5 Subroutines In the program type ‘Subroutine’, The following number of subroutines can be programmed. T1 Up to 16 subroutines T1S Up to 256 subroutines The subroutine is not a independent program. It is called from other program types (main program, sub-program, interrupt program) and from other subroutines (T1S only). One subroutine is started with the SUBR instruction, and ended by the RET instruction.
6F3B0250 6. Programming Information 6.7 Programming language The programming language of the T1/T1S is ‘ladder diagram’. Ladder diagram is a language which composes program using relay symbols as a base in an image similar to a hard-wired relay sequence. In the T1/T1S, in order to achieve an efficient data-processing program, ladder diagram which are combinations of relay symbols and function blocks are used. The ladder diagram program is constructed by units called ‘rung’.
6F3B0250 6. Programming Information 6.8 Program execution sequence The instructions execution sequence is shown below. (1) They are executed in the sequence from block 1 through the final block which contains the END instruction (or IRET in an interrupt program). (2) They are executed in the sequence from rung 1 through the final rung in a block (or the END instruction). (3) They are executed according to the following rules in any one rung.
6F3B0250 6. Programming Information 6.9 On-line debug support functions The following on-line (during RUN) functions are supported in the T1/T1S for effective program debugging.
6F3B0250 6. Programming Information Sampling trace function The sampling trace function collects the status of specified devices or register at every specified sampling timing. The collected data can be displayed on the programmer (TPDS) screen in the format of timing chart (for devices) or trend graph (for register). The minimum sampling timing is the T1/T1S’s scan cycle. This function is useful for program debugging and troubleshooting.
6F3B0250 6. Programming Information Timer/counter preset value (constant data) changing The preset value (constant data) of timer or counter instruction can be changed in on-line (during RUN) by using the programming tool. Function instruction constant operand changing (T1S only) The constant operand of function instruction can be changed in on-line (during RUN) by using the programming tool.
6F3B0250 6. Programming Information 6.10 Password protection The T1/T1S has the password function to protect the user program and data from unauthorized operations. There are four levels of protection. Accordingly, three levels of passwords can be registered to control the protection levels. These passwords are stored in the built-in EEPROM. Therefore, if you entered, changed or cleared the passwords, the EEPROM write operation is necessary. The outline of the protection levels are shown below.
6F3B0250 122 T1/T1S User’s Manual CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
6F3B0250 Section 7 Instructions 7.1 7.2 List of instructions, 124 Instruction specifications, 134 Basic Hardware and Function 123 CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
6F3B0250 7. Instructions 7.1 List of instructions The T1 has 17 types of basic ladder instructions and 76 types of function instructions, the T1S has 21 types of basic ladder instructions and 99 types of function instructions as listed below. The specifications of each instruction will be described in detail later. The tables listing these instructions are provided as a quick reference. (Note: In the following table, italic character means operand, i.e. register, device or constant value.
6F3B0250 7. Instructions FUN No. Name Expression - Counter C E - ú--[ MCS ]-ê ú--[ MCR ]-ê - Master control set Master control reset Jump control set Jump control reset - End ú--[ END ]-ê CNT A B ú--[ JCS ]-ê ú--[ JCR ]-ê Q Function Counts the number of cycles the count input (C) comes ON while the enable input (E) is ON, and turns ON output (Q) when the count reaches to the value specified by A. B is a counter register. Turns OFF power rail between MCS and MCR when MCS input is OFF.
6F3B0250 7. Instructions Arithmetic operations FUN Name No. 027 Addition 028 Subtraction 029 Multiplication 030 Division 031 Double-word addition 032 Double-word subtraction 035 Addition with carry 036 Subtraction with carry 039 Unsigned multiplication 040 Unsigned division 041 Unsigned double/single division 043 Increment 044 Decrement 126 Expression -[ A + B ® C ]- Function Adds data of A and B, and stores the result in C. -[ A - B ® C ]Subtracts data of B from A, and stores the result in C.
6F3B0250 7. Instructions Logical operations FUN Name No. 048 AND Expression -[ A AND B ® C ]- 050 OR -[ A OR B ® C ]- 052 Exclusive OR -[ A EOR B ® C ]- 064 Bit test -[ A TEST B ]- Function Finds logical AND of A and B, and stores it in C. Finds logical OR of A and B, and stores it in C. Finds logical exclusive OR of A and B, and stores it in C. Turns ON output if logical AND of A and B is not 0. Steps Speed Available Page T1 T1S (ms) 4 5.7 174 Ö Ö 4 5.7 Ö Ö 175 4 5.7 Ö Ö 176 3 5.
6F3B0250 7. Instructions Rotate operations FUN Name Expression No. 078 1 bit rotate right -[ RTR1 A ]- 079 1 bit rotate left -[ RTL1 A ]- 080 n bit rotate right -[ A RTR n ® B ]- 081 n bit rotate left -[ A RTL n ® B ]- Function Steps Speed Available T1 T1S (ms) Rotates data of A 1 bit to the 2 6.8 Ö Ö right (LSB direction). The carry flag changes according to the result. Rotates data of A 1 bit to the 2 6.8 Ö Ö left (MSB direction). The carry flag changes according to the result.
6F3B0250 7. Instructions FUN Name No. 108 Unsigned greater than 109 Unsigned greater than or equal 110 Unsigned equal 111 Unsigned not equal 112 Unsigned less than 113 Unsigned less than or equal Expression -[ A U> B ]-[ A U>= B ]- -[ A U= B ]-[ A U<> B ]-[ A U< B ]-[ A U<= B ]- Function Turns ON output if A > B. (Unsigned integer compare) Turns ON output if A ³ B. (Unsigned integer compare) Turns ON output if A = B. (Unsigned integer compare) Turns ON output if A ¹ B.
6F3B0250 7. Instructions Program control instructions FUN Name Expression No. 128 Subroutine call -[ CALL N.
6F3B0250 7. Instructions Functions FUN Name Expression Function Steps Speed Available No. T1 T1S (ms) 5 056 Moving average -[ A MAVE (n) B ® C ]- Calculates the average value Ö of latest n scan values of A, and stores the result in C. -[ A DFL B ® C ]061 Digital filter Filters the value of A by filter 4 Ö constant specified by B, and stores the result in C. 156 Pre-derivative -[ A PID3 B ® C ]Performs PID control. (pre4 85.0 Ö Ö real PID derivative real PID algorithm) 428.
6F3B0250 7. Instructions Conversion instructions FUN Name No. 062 Hex to ASCII conversion Expression -[ A HTOA (n) B ]- Function Steps Speed Available Page T1 T1S (ms) 4 179 Ö Converts the hexadecimal data of n words stating with A into ASCII characters, and stores them in nx2 registers starting with B. -[ A ATOH (n) B ]4 063 ASCII to Hex Converts the ASCII conversion characters stored in n registers stating with A into hexadecimal data, and stores them in n/2 registers starting with B.
6F3B0250 7. Instructions Special I/O instructions FUN Name No. 235 Direct I/O Expression -[ I/O (n) A ]- 236 Expanded data -[ A XFER B ® C ]transfer 237 Special module -[ A READ B ® C ]data read 238 Special module -[ A WRITE B ® C ]data write NOTE Function Steps Speed Available Page T1 T1S (ms) 257 20.7 + Performs the immediate block 3 Ö Ö I/O transfer of n registers 21.3 ´ n starting with A. 259 4 54.0 Writes data into the built-in Ö Ö 1w read EEPROM, or reads data from the EEPROM.
6F3B0250 7. Instructions 7.2 Instruction specifications The following pages in this section describe the detailed specifications of each instruction. On each page, the following items are explained. Expression Shows the operands required for the instruction as italic characters. Function Explains the functions of the instruction with referring the operands shown on the Expression box. Execution condition Shows the execution condition of the instruction and the instruction output status.
6F3B0250 7. Instructions NO contact Expression A Input Output Function NO (normally open) contact of device A. When the input is ON and the device A is ON, the output is turned ON. Execution condition Input OFF ON Operation Regardless of the state of device A When device A is OFF When device A is ON Output OFF OFF ON Operand Name A Device X Ö Y Ö Device R S Ö Ö T. Ö Register C. XW YW RW SW T C D Ö Constant Index I J K Example Coil Y022 comes ON when the devices X000 and R001 are both ON.
6F3B0250 7. Instructions NC contact Expression A Input Output Function NC (normally closed) contact of device A. When the input is ON and the device A is OFF, the output is turned ON. Execution condition Input OFF ON Operation Regardless of the state of device A When device A is OFF When device A is ON Output OFF ON OFF Operand Name A Device X Ö Y Ö Device R S Ö Ö T. Ö Register C.
6F3B0250 7. Instructions Transitional contact (Rising edge) Expression Input Output Function When the input at last scan is OFF and the input at this scan is ON, the output is turned ON. This instruction is used to detect the input changing from OFF to ON. Execution condition Input OFF ON Operation Regardless of the input state at last scan When the input state at last scan is OFF When the input state at last scan is ON Output OFF ON OFF Operand No operand is required.
6F3B0250 7. Instructions Transitional contact (Falling edge) Expression Input Output Function When the input at last scan is ON and the input at this scan is OFF, the output is turned ON. This instruction is used to detect the input changing from ON to OFF. Execution condition Input OFF ON Operation When the input state at last scan is OFF When the input state at last scan is ON Regardless of the input state at last scan Output OFF ON OFF Operand No operand is required.
6F3B0250 7. Instructions Coil ( ) Expression Input A ( ) Function Relay coil of device A. When the input is ON, the device A is set to ON. Execution condition Input OFF ON Operation Output - Sets device A to OFF Sets device A to ON Operand Name X A Device Y Ö Device R S Ö Ö T. Register C. XW YW RW SW T C D Constant Index I J K Example Coil Y025 comes ON when the devices X000 is ON. X000 Y025 Basic Hardware and Function 139 CTi Automation - Phone: 800.894.0412 - Fax: 208.368.
6F3B0250 7. Instructions Forced coil Expression A Input Function Regardless of the input sate the state of device A is retained. Execution condition Input OFF ON Operation Output - No operation No operation Operand Name X A Device Y Ö Device R S Ö Ö T. Register C. XW YW RW SW T C D Constant Index I J K Example Device Y025 retains the preceding state regardless of the devices X000 state.
6F3B0250 7. Instructions I Inverter Expression Input I Output Function When the input is OFF, the output is turned ON, and when the input is ON, the output is turned OFF. This instruction inverts the link state. Execution condition Input OFF ON Operation Inverts the input state Inverts the input state Output ON OFF Operand No operand is required. Example Y022 comes ON when X000 is OFF, and Y022 comes OFF when X000 is ON. X000 Y022 Basic Hardware and Function 141 CTi Automation - Phone: 800.
6F3B0250 7. Instructions Invert coil (I) Expression Input A (I) Function When the input is OFF, the device A is set to ON, and when the input is ON, the device A is set to OFF. This instruction inverts the input state and store it in the device A. Execution condition Input OFF ON Operation Sets device A to ON Sets device A to OFF Output - Operand Name X A Device Y Ö Device R S Ö Ö T. Register C.
6F3B0250 7. Instructions Positive pulse contact P T1S only Expression A Input P Output Function When the input is ON and the device A is changed from OFF to ON (OFF at last scan and ON at this scan), the output is turned ON. This instruction is used to detect the device changing from OFF to ON.
6F3B0250 7. Instructions Negative pulse contact N T1S only Expression A Input N Output Function When the input is ON and the device A is changed from ON to OFF (ON at last scan and OFF at this scan), the output is turned ON. This instruction is used to detect the device changing from ON to OFF.
6F3B0250 7. Instructions Positive pulse coil (P) T1S only Expression Input A (P) Function When the input is changed form OFF to ON, the device A is set to ON for 1 scan time. This instruction is used to detect the input changing from OFF to ON. Execution condition Input OFF ON Operation Sets device A to OFF When the input at last scan is OFF, sets A to ON When the input at last scan is ON, sets A to OFF Output - Operand Name X A Device Y Ö Device R S Ö Ö T. Register C.
6F3B0250 7. Instructions Negative pulse coil (N) T1S only Expression Input A (N) Function When the input is changed form ON to OFF, the device A is set to ON for 1 scan time. This instruction is used to detect the input changing from ON to OFF. Execution condition Input OFF ON Operation When the input at last scan is OFF, sets A to OFF When the input at last scan is ON, sets A to ON Sets device A to OFF Output - Operand Name X A Device Y Ö Device R S Ö Ö T. Register C.
6F3B0250 7. Instructions TON ON delay timer Expression Input ¾[ A TON B ]¾ Output Function When the input is changed from OFF to ON, timer updating for the timer register B is started. The elapsed time is stored in B. When the specified time by A has elapsed after the input came ON, the output and the timer device corresponding to B are turned ON. (Timer updating is stopped) When the input is changed from ON to OFF, B is cleared to 0, and the output and the timer device are turned OFF.
6F3B0250 7. Instructions TOF OFF delay timer Expression Input ¾[ A TOF B ]¾ Output Function When the input is changed from OFF to ON, the output and the timer device corresponding to the timer register B are set to ON. When the input is changed from ON to OFF, timer updating for B is started. The elapsed time is stored in B. When the specified time by A has elapsed after the input came OFF, the output and the timer device are turned OFF.
6F3B0250 7. Instructions SS Single shot timer Expression Input ¾[ A SS B ]¾ Output Function When the input is changed from OFF to ON, the output and the timer device corresponding to the timer register B are set to ON, and timer updating for B is started. The elapsed time is stored in B. When the specified time by A has elapsed after the input came ON, the output and the timer device are turned OFF. (Timer updating is stopped) The available data range for operand A is 0 to 32767.
6F3B0250 7. Instructions CNT Counter Expression Count input C CNT Q Enable input E A B Output Function While the enable input is ON, this instruction counts the number of the count input changes from OFF to ON. The count value is stored in the counter register B. When the count value reaches the set value A, the output and the counter device corresponding to B are turned ON. When the enable input comes OFF, B is cleared to 0 and the output and the counter device are turned OFF.
6F3B0250 7. Instructions MCS MCR Master control set / reset Expression Input [ MCS ] [ MCR ] Function When the MCS input is ON, ordinary operation is performed. When the MCS input is OFF, the state of left power rail between MCS and MCR is turned OFF. Execution condition MCS input OFF ON Operation Output Sets OFF the left power rail until MCR Ordinary operation - Operand No operand is required. Example When X000 is OFF, Y021 and Y022 are turned OFF regardless of the states of X001 and X002.
6F3B0250 7. Instructions JCS JCR Jump control set / reset Expression Input [ JCS ] [ JCR ] Function When the JCS input is ON, instructions between JCS and JCR are skipped (not executed). When the JCS input is OFF, ordinary operation is performed. Execution condition JCS input OFF ON Operation Output Ordinary operation Skips until JCR Operand No operand is required. Example When X000 is ON, the rung 2 circuit is skipped, therefore Y021 is not changed its state regardless of the X001 state.
6F3B0250 7. Instructions END End Expression [ END ] Function Indicates the end of main program or sub-program. Instructions after the END instruction are not executed. At least one END instruction is necessary in a program. Execution condition Input Operation Output Operand No operand is required. Example Note · For debugging purpose, 2 or more END instructions can be written in a program. · Instructions after END instruction are not executed. Those steps are, however, counted as used steps.
6F3B0250 7. Instructions FUN 018 MOV Data transfer Expression Input -[ A MOV B ]- Output Function When the input is ON, the data of A is stored in B. Execution condition Input OFF ON Operation No execution Execution Output OFF ON Operand Name X Y Device R S T. A Source B Destination Register C.
6F3B0250 7. Instructions FUN 019 DMOV Double-word data transfer Expression Input -[ A+1×A MOV B+1×B ]- Output Function When the input is ON, the double-word (32-bit) data of A+1×A is stored in double-word register B+1×B. The data range is -2147483648 to 2147483647. Execution condition Input OFF ON Operation No execution Execution Output OFF ON Operand Name X A Source B Destination Y Device R S T. Register C.
6F3B0250 7. Instructions FUN 020 NOT Invert transfer Expression Input -[ A NOT B ]- Output Function When the input is ON, the bit-inverted data of A is stored in B. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Device R S Y T. A Source B Destination Register C.
6F3B0250 7. Instructions FUN 022 XCHG Data exchange Expression Input -[ A XCHG B ]- Output Function When the input is ON, the data of A and the data of B is exchanged. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X A Operation data B Operation data Y Device R S T. Register C. XW YW RW SW T C D Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Constant Index I Ö Ö J Ö Ö K Ö Ö Ö Ö Example When R005 is ON, the data of RW23 and D0100 is exchanged.
6F3B0250 7. Instructions FUN 024 TINZ Table initialize T1S only Expression Input -[ A TINZ (n) B ]- Output Function When the input is ON, the data of A is stored in n registers starting with B. The allowable range of the table size n is 1 to 1024 words. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S A Source n Table size B Start of destination T. Register C.
6F3B0250 7. Instructions FUN 025 TMOV Table transfer T1S only Expression Input -[ A TMOV (n) B ]- Output Function When the input is ON, the data of n registers starting with A are transferred to n registers starting with B in a block. The allowable range of the table size n is 1 to 1024 words. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X A Start of source n Table size B Start of destination Y Device R S T. Register C.
6F3B0250 7. Instructions FUN 026 TNOT Table invert transfer T1S only Expression Input -[ A TNOT (n) B ]- Output Function When the input is ON, the data of n registers starting with A are bit-inverted and transferred to n registers starting with B in a block. The allowable range of the table size n is 1 to 1024 words. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S A Start of source n Table size B Start of destination T. Register C.
6F3B0250 7. Instructions FUN 027 + Addition Expression Input -[ A + B ® C ]- Output Function When the input is ON, the data of A and the data of B are added, and the result is stored in C. If the result is greater than 32767, the upper limit value 32767 is stored in C, and the output is turned ON. If the result is smaller than -32768, the lower limit value -32768 is stored in C, and the output is turned ON.
6F3B0250 7. Instructions - FUN 028 Subtraction Expression Input -[ A - B ® C ]- Output Function When the input is ON, the data of B is subtracted from the data of A, and the result is stored in C. If the result is greater than 32767, the upper limit value 32767 is stored in C, and the output is turned ON. If the result is smaller than -32768, the lower limit value -32768 is stored in C, and the output is turned ON.
6F3B0250 7. Instructions FUN 029 * Multiplication Expression Input -[ A * B ® C+1×C ]- Output Function When the input is ON, the data of A is multiplied by the data of B, and the result is stored in doublelength register C+1×C. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S A Multiplicand B Multiplier C Product T. C.
6F3B0250 7. Instructions FUN 030 / Division Expression Input -[ A / B ® C ]- Output Function When the input is ON, the data of A is divided by the data of B, and the quotient is stored in C and the remainder in C+1. Execution condition Input OFF ON Operation No execution Normal execution (B ¹ 0) No execution (B = 0) Output OFF ON OFF ERF Set Operand Name X Y Device R S A Dividend B Divisor C Quotient T. C.
6F3B0250 7. Instructions FUN 031 D+ Double-word addition Expression Input -[ A+1×A D+ B+1×B ® C+1×C ]- Output Function When the input is ON, the double-word data of A+1×A and B+1×B are added, and the result is stored in C+1×C. The data range is -2147483648 to 2147483647. If the result is greater than 2147483647, the upper limit value 2147483647 is stored in C+1×C, and the output is turned ON.
6F3B0250 7. Instructions FUN 032 Double-word subtraction D- Expression Input -[ A+1×A D- B+1×B ® C+1×C ]- Output Function When the input is ON, the double-word data of B+1×B is subtracted from A+1×A, and the result is stored in C+1×C. The data range is -2147483648 to 2147483647. If the result is greater than 2147483647, the upper limit value 2147483647 is stored in C+1×C, and the output is turned ON.
6F3B0250 7. Instructions FUN 035 +C Addition with carry Expression Input -[ A +C B ® C ]- Output Function When the input is ON, the data of A, B and the carry flag (CF = S050) are added, and the result is stored in C. If carry is occurred in the operation, the carry flag is set to ON. If the result is greater than 32767 or smaller than -32768, the output is turned ON. This instruction is used to perform unsigned addition or double-length addition.
6F3B0250 7. Instructions FUN 036 -C Subtraction with carry Expression Input -[ A -C B ® C ]- Output Function When the input is ON, the data of B and the carry flag (CF = S050) are subtracted from A, and the result is stored in C. If borrow is occurred in the operation, the carry flag is set to ON. If the result is greater than 32767 or smaller than -32768, the output is turned ON. This instruction is used to perform unsigned subtraction or double-length subtraction.
6F3B0250 7. Instructions FUN 039 Unsigned multiplication U* T1S only Expression Input -[ A U* B ® C+1×C ]- Output Function When the input is ON, the unsigned data of A and B are multiplied, and the result is stored in double-length register C+1×C. The data range of A and B is 0 to 65535 (unsigned 16-bit data) Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S A Multiplicand B Multiplier C Product T. C.
6F3B0250 7. Instructions FUN 040 U/ Unsigned division T1S only Expression Input -[ A U/ B ® C ]- Output Function When the input is ON, the unsigned data of A is divided by the unsigned data of B, and the quotient is stored in C and the remainder in C+1.
6F3B0250 7. Instructions FUN 041 DIV Unsigned double/single division Expression Input -[ A+1×A DIV B ® C ]- Output Function When the input is ON, the double-word data of A+1×A is divided by the data of B, and the quotient is stored in C and the remainder in C+1. The data range of A+1×A is 0 to 4294967295, and the data range of B and C is 0 to 65535.
6F3B0250 7. Instructions FUN 043 +1 Increment Expression Input -[ +1 A ]- Output Function When the input is ON, the data of A is increased by 1 and stored in A. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S A Operation data T. Register C. XW YW RW SW T C D Ö Ö Ö Ö Ö Ö Constant Index I Ö J Ö K Ö Ö Example At the rising edge of X004 changes from OFF to ON, the data of D0050 is increased by 1 and stored in D0050.
6F3B0250 7. Instructions -1 FUN 045 Decrement Expression Input -[ -1 A ]- Output Function When the input is ON, the data of A is decreased by 1 and stored in A. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y A Operation data Device R S T. Register C. XW YW RW SW T C D Ö Ö Ö Ö Ö Ö Constant Index I Ö J Ö K Ö Ö Example At the rising edge of X005 changes from OFF to ON, the data of D0050 is decreased by 1 and stored in D0050.
6F3B0250 7. Instructions FUN 048 AND AND Expression Input -[ A AND B ® C ]- Output Function When the input is ON, this instruction finds logical AND of A and B, and stores the result in C. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S T. A Source B Source C AND C.
6F3B0250 7. Instructions FUN 050 OR OR Expression Input -[ A OR B ® C ]- Output Function When the input is ON, this instruction finds logical OR of A and B, and stores the result in C. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S T. A Source B source C OR C.
6F3B0250 7. Instructions FUN 052 EOR Exclusive OR Expression Input -[ A EOR B ® C ]- Output Function When the input is ON, this instruction finds exclusive OR of A and B, and stores the result in C. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S T. A Source B source C Exclusive OR C.
6F3B0250 7. Instructions FUN 056 MAVE Moving average T1S only Expression Input -[ A MAVE (n) B ® C ]- Output Function When the input is ON, this instruction calculates the average value of the latest n scan’s register A data, and stores it in C. The allowable range of n is 1 to 64. This instruction is useful for filtering the analog input signal. The latest n scan’s data of A are stored in n registers starting with B, and C+1 are used as pointer.
6F3B0250 7. Instructions FUN 061 DFL Digital Filter T1S only Expression Input -[ A DFL B ® C ]- Output Function When the input is ON, this instruction calculates the following formula to perform digital filtering for input data A by filter constant by B, and stores the result in C.
6F3B0250 7. Instructions FUN 062 HTOA Hex to ASCII conversion T1S only Expression Input -[ A HTOA (n) B ]- Output Function When the input is ON, the hexadecimal data of n registers starting with A is converted into ASCII characters and stored in B and after. The uppermost digit of source A is stored in lower byte of destination B, and followed in this order. The allowable range of n is 1 to 32.
6F3B0250 7. Instructions FUN 063 ATOH ASCII to Hex conversion T1S only Expression Input -[ A ATOH (n) B ]- Output Function When the input is ON, the ASCII characters stored in n registers starting with A is converted into hexadecimal data and stored in B and after. The lower byte of source A is stored as uppermost digit of destination B, and followed in this order. The allowable ASCII character in the source table is “0” (H30) to “9” (H39) and “A” (H41) to “F” (H46).
6F3B0250 7. Instructions FUN 064 TEST Bit test Expression Input -[ A TEST B ]- Output Function When the input is ON, this instruction finds logical AND of A and B. Then if the result is not 0, sets the output to ON. Execution condition Input OFF ON Operation No execution Execution When the result is not 0 When the result is 0 Output OFF ON OFF Operand Name X Y Device R S T. A Source B Test data Register C.
6F3B0250 7. Instructions FUN 068 SHR1 1 bit shift right Expression Input -[ SHR1 A ]- Output Function When the input is ON, the data of register A is shifted 1 bit to the right (LSB direction). 0 is stored in the left most bit (MSB). The pushed out bit state is stored in the carry flag (CF = S050). After the operation, if the right most bit (LSB) is ON, the output is turned ON.
6F3B0250 7. Instructions FUN 069 SHL1 1 bit shift left Expression Input -[ SHL1 A ]- Output Function When the input is ON, the data of register A is shifted 1 bit to the left (MSB direction). 0 is stored in the right most bit (LSB). The pushed out bit state is stored in the carry flag (CF = S050). After the operation, if the left most bit (MSB) is ON, the output is turned ON.
6F3B0250 7. Instructions FUN 070 SHR n bit shift right Expression Input -[ A SHR n ® B ]- Output Function When the input is ON, the data of register A is shifted n bits to the right (LSB direction) including the carry flag (CF = S050), and stored in B. 0 is stored in upper n bits. After the operation, if the right most bit (LSB) is ON, the output is turned ON.
6F3B0250 7. Instructions FUN 071 SHL n bit shift left Expression Input -[ A SHL n ® B ]- Output Function When the input is ON, the data of register A is shifted n bits to the left (MSB direction) including the carry flag (CF = S050), and stored in B. 0 is stored in lower n bits. After the operation, if the left most bit (MSB) is ON, the output is turned ON.
6F3B0250 7. Instructions FUN 074 SR Shift register Expression Data input Shift input Enable input - D SR Q - Output - S (n) -E A Function While the enable input is ON, this instruction shifts the data of the bit table, size n starting with A, 1 bit to the left (upper address direction) when the shift input is ON. The state of the data input is stored in A. The pushed out bit state is stored in the carry flag (CF = S050).
6F3B0250 7. Instructions The figure below shows an operation example. (When X009 is changed from OFF to ON) CF 1 R11F R11E R11D R11C 1 0 0 0 0 1 R103 R102 R101 R100 1 0 0 1 1 0 1 1 0 X008 0 Shift result R011 is turned OFF Note · When the shift input is ON, the shift operation is performed every scan. Use a transitional contact for the shift input to detect the state changing. · For the data input and the shift input, direct linking to a connecting point is not allowed.
6F3B0250 7. Instructions FUN 075 DSR Bi-directional shift register Expression Data input Shift input Enable input Direction input - D DSR Q - Output - S (n) -E -L A Function While the enable input (E) is ON, this instruction shifts the data of the bit table, size n starting with A, 1 bit when the shift input (S) is ON. The shift direction is determined by the state of the direction input (L). When L is OFF, the direction is right (lower address direction).
6F3B0250 7. Instructions 9 devices starting with R200 (R200 to R208) is specified as a shift register. When R010 is OFF, the data of the shift register is reset to 0. (R200 to R208 are reset to OFF) The carry flag (CF = S050) is also reset to OFF. While R010 is ON the following operation is enabled. · When X00A is ON (shift left), the data of the shift register is shifted 1 bit to the upper address direction when X009 is changed from OFF to ON.
6F3B0250 7. Instructions FUN 078 RTR1 1 bit rotate right Expression Input -[ RTR1 A ]- Output Function When the input is ON, the data of register A is rotated 1 bit to the right (LSB direction). The pushed out bit state is stored in the left most bit (MSB) and in the carry flag (CF = S050). After the operation, if the right most bit (LSB) is ON, the output is turned ON.
6F3B0250 7. Instructions FUN 079 RTL1 1 bit rotate left Expression Input -[ RTL1 A ]- Output Function When the input is ON, the data of register A is rotated 1 bit to the left (MSB direction). The pushed out bit state is stored in the right most bit (LSB) and in the carry flag (CF = S050). After the operation, if the left most bit (MSB) is ON, the output is turned ON.
6F3B0250 7. Instructions FUN 080 RTR n bit rotate right Expression Input -[ A RTR n ® B ]- Output Function When the input is ON, the data of register A is rotated n bits to the right (LSB direction), and stored in B. After the operation, if the right most bit (LSB) is ON, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution When LSB = 1 When LSB = 0 Output OFF ON OFF CF Set or reset Set or reset Operand Name X Y Device R S T.
6F3B0250 7. Instructions FUN 081 RTL n bit rotate left Expression Input -[ A RTL n ® B ]- Output Function When the input is ON, the data of register A is rotated n bits to the left (MSB direction), and stored in B. After the operation, if the left most bit (MSB) is ON, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution When MSB = 1 When MSB = 0 Output OFF ON OFF CF Set or reset Set or reset Operand Name X Device R S Y T.
6F3B0250 7. Instructions FUN 090 MPX Multiplexer Expression Input -[ A MPX (n) B ® C ]- Output Function When the input is ON, the data of the register which is designated by B in the table, size n starting with A, is transferred to C. Execution condition Input OFF ON Operation No execution Normal execution Pointer over (no execution) Output OFF OFF ON Operand Name X A n B C Device R S Y Start of table Table size Pointer Destination T. Register C.
6F3B0250 7. Instructions FUN 091 DPX Demultiplexer Expression Input -[ A DPX (n) B ® C ]- Output Function When the input is ON, the data of A is transferred to the register which is designated by B in the table, size n starting with C. Execution condition Input OFF ON Operation No execution Normal execution Pointer over (no execution) Output OFF OFF ON Operand Name X A n B C Source Table size Pointer Start of table Y Device R S T. Register C.
6F3B0250 7. Instructions > FUN 096 Greater than Expression Input -[ A > B ]- Output Function When the input is ON, the data of A and the data of B are compared, and if A is greater than B, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution Output OFF ON OFF A>B A£B Operand Name X Device R S Y A Compared data B Reference data T. Register C.
6F3B0250 7. Instructions >= FUN 097 Greater than or equal Expression Input -[ A >= B ]- Output Function When the input is ON, the data of A and the data of B are compared, and if A is greater than or equal to B, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution Output OFF ON OFF A³B A
6F3B0250 7. Instructions = FUN 098 Equal Expression Input -[ A = B ]- Output Function When the input is ON, the data of A and the data of B are compared, and if A is equal to B, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution Output OFF ON OFF A=B A¹B Operand Name X Device R S Y T. A Compared data B Reference data Register C.
6F3B0250 7. Instructions FUN 099 <> Not equal Expression Input -[ A <> B ]- Output Function When the input is ON, the data of A and the data of B are compared, and if A is not equal to B, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution Output OFF ON OFF A¹B A=B Operand Name X Device R S Y A Compared data B Reference data T. Register C.
6F3B0250 7. Instructions FUN 100 < Less than Expression Input -[ A < B ]- Output Function When the input is ON, the data of A and the data of B are compared, and if A is less than B, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution Output OFF ON OFF A
6F3B0250 7. Instructions <= FUN 101 Less than or equal Expression Input -[ A <= B ]- Output Function When the input is ON, the data of A and the data of B are compared, and if A is less than or equal to B, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution Output OFF ON OFF A£B A>B Operand Name X Device R S Y A Compared data B Reference data T. Register C.
6F3B0250 7. Instructions FUN 102 Double-word greater than D> Expression Input -[ A+1×A D> B+1×B ]- Output Function When the input is ON, the double-word data of A+1×A and B+1×B are compared, and if A+1×A is greater than B+1×B, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution Output OFF ON OFF A+1×A > B+1×B A+1×A £ B+1×B Operand Name X Y Device R S T. A Compared data B Reference data Register C.
6F3B0250 7. Instructions FUN 103 Double-word greater than or equal D>= Expression Input -[ A+1×A D>= B+1×B ]- Output Function When the input is ON, the double-word data of A+1×A and B+1×B are compared, and if A+1×A is greater than or equal to B+1×B, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution Output OFF ON OFF A+1×A ³ B+1×B A+1×A < B+1×B Operand Name X Y Device R S T. A Compared data B Reference data Register C.
6F3B0250 7. Instructions FUN 104 Double-word equal D= Expression Input -[ A+1×A D= B+1×B ]- Output Function When the input is ON, the double-word data of A+1×A and B+1×B are compared, and if A+1×A is equal to B+1×B, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution Output OFF ON OFF A+1×A = B+1×B A+1×A ¹ B+1×B Operand Name X Y Device R S T. A Compared data B Reference data Register C.
6F3B0250 7. Instructions FUN 105 Double-word not equal D<> Expression Input -[ A+1×A D<> B+1×B ]- Output Function When the input is ON, the double-word data of A+1×A and B+1×B are compared, and if A+1×A is not equal to B+1×B, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution Output OFF ON OFF A+1×A ¹ B+1×B A+1×A = B+1×B Operand Name X Y Device R S T. A Compared data B Reference data Register C.
6F3B0250 7. Instructions FUN 106 Double-word less than D< Expression Input -[ A+1×A D< B+1×B ]- Output Function When the input is ON, the double-word data of A+1×A and B+1×B are compared, and if A+1×A is less than B+1×B, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution Output OFF ON OFF A+1×A < B+1×B A+1×A ³ B+1×B Operand Name X Y Device R S T. A Compared data B Reference data Register C.
6F3B0250 7. Instructions FUN 107 Double-word less than or equal D<= Expression Input -[ A+1×A D<= B+1×B ]- Output Function When the input is ON, the double-word data of A+1×A and B+1×B are compared, and if A+1×A is less than or equal to B+1×B, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution Output OFF ON OFF A+1×A £ B+1×B A+1×A > B+1×B Operand Name X Y Device R S T. A Compared data B Reference data Register C.
6F3B0250 7. Instructions FUN 108 Unsigned greater than U> T1S only Expression Input -[ A U> B ]- Output Function When the input is ON, the data of A and the data of B are compared, and if A is greater than B, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution Output OFF ON OFF A>B A£B Operand Name X Device R S Y A Compared data B Reference data T. Register C.
6F3B0250 7. Instructions FUN 109 Unsigned greater than or equal U>= T1S only Expression Input -[ A >= B ]- Output Function When the input is ON, the data of A and the data of B are compared, and if A is greater than or equal to B, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution Output OFF ON OFF A³B A
6F3B0250 7. Instructions FUN 110 Unsigned equal U= T1S only Expression Input -[ A U= B ]- Output Function When the input is ON, the data of A and the data of B are compared, and if A is equal to B, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution Output OFF ON OFF A=B A¹B Operand Name X Device R S Y T. A Compared data B Reference data Register C.
6F3B0250 7. Instructions FUN 111 Unsigned not equal U<> T1S only Expression Input -[ A U<> B ]- Output Function When the input is ON, the data of A and the data of B are compared, and if A is not equal to B, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution Output OFF ON OFF A¹B A=B Operand Name X Device R S Y A Compared data B Reference data T. Register C.
6F3B0250 7. Instructions FUN 112 Unsigned less than U< T1S only Expression Input -[ A U< B ]- Output Function When the input is ON, the data of A and the data of B are compared, and if A is less than B, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution Output OFF ON OFF A
6F3B0250 7. Instructions FUN 113 Unsigned less than or equal U<= T1S only Expression Input -[ A U<= B ]- Output Function When the input is ON, the data of A and the data of B are compared, and if A is less than or equal to B, the output is turned ON. Execution condition Input OFF ON Operation No execution Execution Output OFF ON OFF A£B A>B Operand Name X Device R S Y A Compared data B Reference data T. Register C.
6F3B0250 7. Instructions FUN 114 SET Device/register set Expression Input -[ SET A ]- Output Function When the input is ON, the device A is set to ON if A is a device, or the data HFFFF is stored in the register A if A is a register. Execution condition Input OFF ON Operation No execution Execution Output OFF ON Operand Name X A Device or register Y Ö Device R S Ö Ö T. Register C.
6F3B0250 7. Instructions FUN 115 RST Device/register reset Expression Input -[ RST A ]- Output Function When the input is ON, the device A is reset to OFF if A is a device, or the data 0 is stored in the register A if A is a register. Execution condition Input OFF ON Operation No execution Execution Output OFF ON Operand Name X A Device or register Y Ö Device R S Ö Ö T. Register C.
6F3B0250 7. Instructions FUN 118 SETC Set carry Expression Input -[ SETC ]- Output Function When the input is ON, the carry flag (CF = S050) is set to ON. Execution condition Input OFF ON Operation No execution Execution Output OFF ON CF Set Operand No operand is required. Example When R011 is changed from OFF to ON, the carry flag S050 is set to ON. 216 T1/T1S User’s Manual CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
6F3B0250 7. Instructions FUN 119 RSTC Reset carry Expression Input -[ RSTC ]- Output Function When the input is ON, the carry flag (CF = S050) is reset to OFF. Execution condition Input OFF ON Operation No execution Execution Output OFF ON CF Reset Operand No operand is required. Example When R010 is changed from OFF to ON, the carry flag S050 is reset to OFF. Basic Hardware and Function 217 CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.
6F3B0250 7. Instructions FUN 120 ENC Encode Expression Input -[ A ENC (n) B ]- Output Function When the input is ON, this instruction finds the bit position of the most significant ON bit in the bit table, size 2n bits starting with 0 bit (LSB) of A, and stores it in B. Execution condition Input OFF ON Operation No execution Normal execution There is no ON bit (no execution) Output OFF ON OFF ERF Set Operand Name X Y Device R S A Start of table n Table size B Encode result T. Register C.
6F3B0250 7. Instructions FUN 121 DEC Decode Expression Input -[ A DEC (n) B ]- Output Function When the input is ON, this instruction sets the bit position which is designated by lower n bits of A to ON in the bit table, size 2n bits starting with 0 bit (LSB) of B, and resets all other bits to OFF. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S T. A Decode source n Table size B Start of table Register C.
6F3B0250 7. Instructions FUN 122 BC Bit count T1S only Expression Input -[ A BC B ]- Output Function When the input is ON, this instruction counts the number of ON (1) bits of A, and stores the result in B. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S T. A Source B Count data Register C.
6F3B0250 7. Instructions FUN 128 CALL Subroutine call Expression Input -[ CALL N. n ]- Output Function When the input is ON, this instruction calls the subroutine number n. Execution condition Input OFF ON Operation No execution Execution Output OFF ON Operand Name X Y Device R S T. Register C. XW YW RW SW T C D Constant Index I J K Ö (Note) n Subroutine number Example When X007 is ON, the subroutine number 8 is called.
6F3B0250 7. Instructions FUN 129 RET Subroutine return Expression ÷--[ RET ]-ê Function This instruction indicates the end of a subroutine. When program execution is reached this instruction, it is returned to the original CALL instruction. Execution condition Input - Operation Execution Output - Operand No operand is required. Example Main program | | [ CALL N.008 ] Subroutine [ SUBR (008)] [ RET ] Note · Refer to the SUBR instruction (FUN 137).
6F3B0250 7. Instructions FUN 132 FOR FOR (FOR-NEXT loop) Expression Input -[ FOR n ]- Output Function When the input is ON, the program segment between FOR and NEXT is executed n times repeatedly in a scan. When the input is OFF, the repetition is not performed. (the segment is executed once) Execution condition Input OFF ON Operation No repetition Repetition Output OFF ON Operand Name X Y n Repetition times Device R S T. Register C.
6F3B0250 7. Instructions FUN 133 NEXT NEXT (FOR-NEXT loop) Expression Input -[ NEXT ]- Output Function This instruction configures a FOR-NEXT loop. If the input is OFF, The repetition is forcibly broken. and the program execution is moved to the next instruction. Execution condition Input OFF ON Operation Forcibly breaks the repetition Repetition Output OFF ON Operand No operand is required. Example When R005 is ON, the program segment between FOR and NEXT is executed 30 times in a scan.
6F3B0250 7. Instructions FUN 137 SUBR Subroutine entry Expression ÷-[ SUBR (n) ]--ê Function This instruction indicates the begging of a subroutine. Execution condition Input - Operation Output - Execution Operand Name X Y Device R S T. Register C. XW YW RW SW T C D Constant Index I J K Ö (Note) n Subroutine number Example The begging of the subroutine number 8 is indicated. Main program | | [ CALL N.
6F3B0250 7. Instructions FUN 140 EI Enable interrupt Expression Input -[ EI ]- Output Function When the input is ON, this instruction enables the execution of user designated interrupt operation, i.e. timer interrupt program and I/O interrupt programs. Execution condition Input OFF ON Operation No execution Execution Output OFF ON Operand No operand is required. Example In the above example, the DI instruction disables the interrupt. Then the EI instruction enables the interrupt again.
6F3B0250 7. Instructions FUN 141 DI Disable interrupt Expression Input -[ DI ]- Output Function When the input is ON, this instruction disables the execution of user designated interrupt operation, i.e. timer interrupt program and I/O interrupt programs. Execution condition Input OFF ON Operation No execution Execution Output OFF ON Operand No operand is required. Example In the above example, the interrupt is disabled when R000 is ON, and it is enabled when R000 is OFF.
6F3B0250 7. Instructions FUN 142 IRET Interrupt return Expression ÷--[ IRET ]-ê Function This instruction indicates the end of an interrupt program. When program execution reaches this instruction, it returns to the original location of the main program (or subroutine). Execution condition Input - Operation Execution Output - Operand No operand is required.
6F3B0250 7. Instructions FUN 143 WDT Watchdog timer reset Expression Input -[ WDT n ]- Output Function When the input is ON, this instruction extend the scan time over detection time by 200 ms. Normally, T1/T1S detects the scan time-over if a scan is not finished within 200 ms. This instruction can be used to extend the detection time. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S T. Register C.
6F3B0250 7. Instructions FUN 144 STIZ Step sequence initialize Expression Input -[ STIZ (n) A ]- Output Function When the input is ON, n devices starting with A are reset to OFF, and A is set to ON. This instruction is used to initialize a series of step sequence. The step sequence is useful to describe a sequential operation.
6F3B0250 7. Instructions FUN 145 STIN Step sequence input Expression Input -[ STIN A ]- Output Function When the input is ON and the device A is ON, the output is set to ON. Execution condition Input OFF ON Operation No execution When A is ON When A is OFF Output OFF ON OFF Operand Name X A Step device Y Device R S Ö T. Register C. XW YW RW SW T C D Constant Index I J K Example The following sequential operation is performed.
6F3B0250 7. Instructions FUN 146 STOT Step sequence output Expression Input -[ STOT A ]-ê Function When the input is ON, the device A is set to ON and the devices of STIN instructions on the same rung are reset to OFF. Execution condition Input OFF ON Operation Output - No execution Execution Operand Name X A Step device Y Device R S Ö T. Register C. XW YW RW SW T C D Constant Index I J K Example See example on STIN (FUN 145) instruction.
6F3B0250 7. Instructions FUN 147 F/F Flip-flop Expression -S Set input Reset input - R F/F Q - Output A Function When the set input is ON, the device A is set to ON. When the reset input is ON, the device A is reset to OFF. When both the set and reset inputs are OFF, the device A remains the state. If both the set and reset inputs are ON, the device A is reset to OFF. The state of the output is the same as the device A.
6F3B0250 7. Instructions FUN 149 U/D Up-down counter Expression Direction input - U U/D Q - Output -C Count input -E A Enable input Function While the enable input is ON, this instruction counts the number of the count input changes from OFF to ON. The count direction (up count or down count) is selected by the state of the direction input. The count value is stored in the counter register A. The count value range is 0 to 65535.
6F3B0250 7. Instructions FUN 154 CLND Set calendar T1S only Expression Input -[ A CLND ]- Output Function When the input is ON, the built-in clock/calendar is set to the date and time specified by 6 registers starting with A. If an invalid data is contained in the registers, the operation is not executed and the output is turned ON.
6F3B0250 7. Instructions FUN 155 CLDS Calendar operation T1S only Expression Input -[ A CLDS B ]- Output Function When the input is ON, this instruction subtracts the date and time stored in 6 registers starting with A from the current date and time, and stores the result in 6 registers starting with B. If an invalid data is contained in the registers, the operation is not executed and the output is turned ON.
6F3B0250 7. Instructions FUN 156 PID3 Pre-derivative real PID Expression Input -[ A PID3 B ® C ]- Output Function Performs PID (Proportional, Integral, Derivative) control which is a fundamental method of feed-back control. (Pre-derivative real PID algorithm) This PID3 instruction has the following features.
6F3B0250 7. Instructions Control block diagram Integral control Integral 1 TI×s Auto mode ASV DSV DIn MVn Proportional Differential SVn CSV + Gap en 1 DPn + + KP DMVn MVS H/L DMV MVCn MV - - Derivative Cascade mode TD×s 1+h×TD×s PVn MMV DDn DMMV Differential limit (h = 0.
6F3B0250 7. Instructions PID algorithm: DMVn = KP × ( DPn + DIn + DDn) MVn = MVn - 1 ± DMVn Here, DPn = en - en - 1 en = SVn - PVn DIn = en × Dt + Ir TI (If GP ¹ 0, Gap is applied) (If TI = 0, then DIn = 0) TD × (PVn - 1 - PVn) - Dt × Dn - 1 + Dr Dt + h × TD Dn = Dn - 1 + DDn h = 0.1 (Fixed) D Dn = Parameter details A A+1 A+2 A+3 A+4 A+5 Process input value PVC (0.00 to 100.00 %) Auto mode set value ASV (0.00 to 100.00 %) Cascade mode set value CSV (0.00 to 100.00 %) Manual mode MV MMV (-25.00 to 125.
6F3B0250 7. Instructions B+8 Initial status STS F C 8 4 0 Initial operation mode 00 : Manual mode 01 : Auto mode 10 : Cascade mode 11 : (Reserve) Direct / reverse selection 0 : Direct 1 : Reverse B+9 B+10 B+11 B+12 MV upper limit MH (-25.00 to 125.00 %) Data range: -2500 to 12500 MV lower limit ML (-25.00 to 125.00 %) Data range: -2500 to 12500 MV differential limit DMV (0.00 to 100.
6F3B0250 7. Instructions · Manual mode In this mode, the manipulation value MV can be directly controlled by the input value of MMV. MV differential limit for manual mode DMMV is effective. MH/ML and DMV are not effective. When mode is changed from manual to auto or cascade, the operation is started from the current MV. · Cascade mode This is a mode for PID cascade connection. PID is executed with CSV as set value. Different from the auto mode, set value differential limit is not effective.
6F3B0250 7. Instructions FUN 160 UL Upper limit T1S only Expression Input -[ A UL B ® C ]- Output Function When the input is ON, the following operation is executed. (Upper limit for A by B) If A £ B, then C = A. If A > B, then C = B. Execution condition Input OFF ON Operation Output OFF OFF ON No operation Execution: not limited (A £ B) Execution: limited (A > B) Operand Name X Y Device R S A Operation data B Upper limit C Destination T. C.
6F3B0250 7. Instructions FUN 161 LL Lower limit T1S only Expression Input -[ A LL B ® C ]- Output Function When the input is ON, the following operation is executed. (Lower limit for A by B) If A ³ B, then C = A. If A < B, then C = B. Execution condition Input OFF ON Operation Output OFF OFF ON No operation Execution: not limited (A ³ B) Execution: limited (A < B) Operand Name X Y Device R S A Operation data B Lower limit C Destination T. C.
6F3B0250 7. Instructions FUN 162 MAX Maximum value T1S only Expression Input -[ A MAX (n) B ]- Output Function When the input is ON, this instruction searches for the maximum value from the table of size n words starting with A, and stores the maximum value in B and the pointer indicating the position of the maximum value in B+1. The allowable range of the table size n is 1 to 64.
6F3B0250 7. Instructions FUN 163 MIN Minimum value T1S only Expression Input -[ A MIN (n) B ]- Output Function When the input is ON, this instruction searches for the minimum value from the table of size n words starting with A, and stores the minimum value in B and the pointer indicating the position of the minimum value in B+1. The allowable range of the table size n is 1 to 64.
6F3B0250 7. Instructions FUN 164 AVE Average value T1S only Expression Input -[ A AVE (n) B ]- Output Function When the input is ON, this instruction calculates the average value of the data stored in the n registers starting with A, and stores the average value in B. The allowable range of the table size n is 1 to 64. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S A Start of table n Table size B Result T. Register C.
6F3B0250 7. Instructions FUN 165 FG Function generator Expression Input -[ A FG (n) B ® C ]- Output Function When the input is ON, this instruction finds the function value f(x) for A as x, and stores it in C. The function f(x) is defined by the parameters stored in 2 ´ n registers starting with B. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X A Input value x n Parameter size B Start of parameters C Function value f(x) Y Device R S T.
6F3B0250 7. Instructions Parameter table 4 registers for x parameters and subsequent 4 registers for corresponding f(x) parameters y D0600 D0601 D0602 D0603 D0604 D0605 D0606 D0607 -2000 -100 100 2000 -1800 -300 300 1800 y = f(x) x1 x2 x3 x4 y1 y2 y3 y4 300 -2000 (x4,y4) 1800 (x3,y3) -100 (x2,y2) 100 -300 2000 x -1800 (x1,y1) The FG instruction interpolators f(x) value for x based on the n parameters of (xi,yi).
6F3B0250 7. Instructions FUN 180 ABS Absolute value Expression Input -[ A ABS B ]- Output Function When the input is ON, this instruction finds the absolute value of operand A, and stores it in B. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S T. A Source B Destination Register C.
6F3B0250 7. Instructions FUN 182 NEG 2’s complement Expression Input -[ A NEG B ]- Output Function When the input is ON, this instruction finds the 2’s complement value of A, and stores it in B. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S Register C. XW YW RW SW T C D Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö T.
6F3B0250 7. Instructions FUN 183 DNEG Double-word 2’s complement Expression Input -[ A+1×A DNEG B+1×B ]- Output Function When the input is ON, this instruction finds the 2’s complement value of double-word data A+1×A, and stores it in B+1×B. Execution condition Input OFF ON Operation No execution Execution Output OFF ON Operand Name X A Source B Destination Y Device R S T. Register C.
6F3B0250 7. Instructions FUN 185 7SEG 7 segment decode Expression Input -[ A 7SEG B ]- Output Function When the input is ON, this instruction converts the lower 4 bits data of A into the 7 segment code, and stores it in B. The 7 segment code is normally used for a numeric display LED. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S T. A Source B Destination Register C.
6F3B0250 7.
6F3B0250 7. Instructions FUN 186 ASC ASCII conversion Expression Input -[ A ASC B ]- Output Function When the input is ON, this instruction converts the alphanumeric characters into the ASCII codes, and stores them in the register table starting with B. (16 characters maximum) Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S A Characters B Start of destination T. Register C.
6F3B0250 7. Instructions FUN 188 BIN Binary conversion Expression Input -[ A BIN B ]- Output Function When the input is ON, this instruction converts the 4 digits of BCD data of A into binary, and stores in B. If any digit of A contains non-BCD code (other than H0 through H9), the conversion is not executed and the instruction error flag (ERF = S051) is set to ON.
6F3B0250 7. Instructions FUN 190 BCD BCD conversion Expression Input -[ A BCD B ]- Output Function When the input is ON, this instruction converts the binary data of A into BCD, and stores in B. If the data of A is not in the range of 0 to 9999, the conversion is not executed and the instruction error flag (ERF = S051) is set to ON.
6F3B0250 7. Instructions FUN 235 I/O Direct I/O Expression Input -[ I/O (n) A ]- Output Function When the input is ON, this instruction immediately updates the external input (XW) and output (YW) registers which are in the range of n registers starting with A. · For XW register ... reads the data from corresponding input circuit · For YW register ...
6F3B0250 7. Instructions Note · In the T1/T1S, the following register/device range is only effective for this Direct I/O instruction. T1-16 T1-28 T1-40 T1-40S Input on basic unit Output on basic unit Option card T2 I/O modules X000 - X007 X000 - X00D X000 - X007 X000 - X007 Y020 - Y027 Y020 - Y02D Y020 - Y027 Y020 - Y027 Not effective Not effective Effective Effective · The Direct I/O instruction can be programmed in the main program and in the interrupt program.
6F3B0250 7. Instructions FUN 236 XFER Expanded data transfer Expression Input -[ A XFER B ® C ]- Output Function When the input is ON, data block transfer is performed between the source which is indirectly designated by A and A+1 and the destination which is indirectly designated by C and C+1. The transfer size (number of words) is designated by B. The transfer size is 1 to 256 words. (except for writing into EEPROM) Data transfer between the following objects are available.
6F3B0250 7. Instructions CPU register « built-in EEPROM In the EEPROM, the D registers are divided into pages as follows. D0000 D0015 D0016 T1 Page 1 (16 words) Page 2 (16 words) D0031 D0496 D0000 D0031 D0032 T1S Page 1 (32 words) Page 2 (32 words) · For data reading from the EEPROM, there is no need to consider the pages. D0063 Page 32 (16 words) D0511 D2016 · Writing data into the EEPROM is available within one page at a time. (max. 16 words for T1 and max.
6F3B0250 7. Instructions CPU register « T1S RS-485 port (T1S only) When the instruction input is ON, one set of message (from start character to the trailing code) which is received by the RS-485 port is read from the receive buffer, and stored in the CPU registers. The transfer size is fixed to 256 words. The execution status and the message length (in bytes) are stored in the status flag. The instruction input must be kept ON until the receiving operation is complete.
6F3B0250 7. Instructions When the instruction input is ON, one set of message which is stored in the source table (from start character to the trailing code) is transmitted through the RS-485 port. The execution status is stored in the status flag. The instruction input must be kept ON until the transmitting operation is complete.
6F3B0250 7. Instructions FUN 237 READ Special module data read Expression Input -[ A READ B ® C ]- Output Function When the input is ON, this instruction reads data from the buffer memory of the special module that is designated by operand A, and stores them in registers starting with operand C. The transfer source address (buffer memory address) is designated by operand B. The transfer size (number of words) is designated by operand B+1.
6F3B0250 7. Instructions Note · This instruction is only effective for the T2 I/O modules connected to the T1-40 or T1-40S by using the expansion rack. · The special module can be designated not only by the assigned register, but also by the mounting position. The mounting position is designated by a constant data for the operand A as follows. H Slot number (hexadecimal) Unit number (hexadecimal) In the T1-40/T1-40S, 0 is only available for the unit number and 4 to 7 are available for the slot number.
6F3B0250 7. Instructions FUN 238 WRITE Special module data write Expression Input -[ A WRITE B ® C ]- Output Function When the input is ON, this instruction transfers data stored in registers starting with operand A into the buffer memory of the special module that is designated by operand C. The destination address (buffer memory address) is designated by operand B. The transfer size (number of words) is designated by operand B+1.
6F3B0250 7. Instructions Note · This instruction is only effective for the T2 I/O modules connected to the T1-40 or T1-40S by using the expansion rack. · The special module can be designated not only by the assigned register, but also by the mounting position. The mounting position is designated by a constant data for the operand C as follows. H Slot number (hexadecimal) Unit number (hexadecimal) In the T1-40/T1-40S, 0 is only available for the unit number and 4 to 7 are available for the slot number.
Section 8 Special I/O Functions 8.1 8.2 8.3 8.4 8.5 8.6 8.7 Special I/O function overview, 268 Variable input filter constant, 272 High speed counter, 273 Interrupt input function, 280 Analog setting function, 282 Pulse output function, 283 PWM output function, 285 Basic Hardware and Function 267 CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
8. Special I/O Functions 8.1 Special I/O function overview The T1/T1S supports the special I/O functions as listed below. Function name Variable input filter constant High Single phase speed up-counter counter Single phase speedcounter Quadrature bi-pulse counter Interrupt input function Analog setting function Pulse output function PWM output function NOTE 268 Function summary Input filter constant (ON/OFF delay time) can be set by user program. The setting range is 0 to 15 ms (1 ms units).
8. Special I/O Functions Mode setting for the special I/O functions These functions, except the analog setting function, are selected by setting data into SW16 and SW26 by user program. These registers work as mode setting registers for the special I/O functions. The data setting for these registers, i.e. mode setting for the special I/O functions, is effective only at the first scan. Note) In the explanation below, HSC and INT mean the high speed counter and the interrupt input functions respectively.
8. Special I/O Functions Note) In the explanation below, P-OUT means the pulse output function.
8. Special I/O Functions The table below summarizes the mode setting data of each function. In the table, ‘-’ means do not care.
8. Special I/O Functions 8.2 Variable input filter constant Function The input filter constant (ON/OFF delay time) of the leading 8 points X000 to X007 can be specified by user program within the range of 0 to 15 ms. The default is 10 ms. The setting value is recognized at the first scan. Therefore, it cannot be changed after the second scan. Related registers SW16 Function selection. Refer to section 8.1.
8. Special I/O Functions 8.3 High speed counter 8.3.1 Single phase up-counter Function When the count input is changed from OFF to ON, the count value is increased by 1. When the count value reaches the set value, the count value is reset to 0, and I/O interrupt program is activated (if the interrupt enable flag is ON). The count value is reset to 0 when the reset input comes ON. This counter operation is enabled while the soft-gate is ON.
8. Special I/O Functions Operation Count input Reset input Soft-gate Set value Count value Interrupt Sample program (H1003) In this example, 4099 (H1003) is set in SW16. As a result, the single phase up-counter (channel 1 only) is selected. When R010 comes ON, the data 2000 is written into the set value register (SW18). While R010 is ON, the soft-gate (S240) and the interrupt enable flag (S241) are set to ON to enable the counter operation. The counter works as a ring counter with the set value 2000.
8. Special I/O Functions 8.3.2 Single phase speed-counter Function This function counts the number of changes of the count input from OFF to ON during the every specified sampling time. The count value in a sampling time is stored in the hold value register. This counter operation is enabled while the soft-gate is ON. When the soft-gate is OFF, the hold value is cleared to 0. The setting range of the sampling time is 10 to 1000 ms (10 ms units). The count value range is H0000 to HFFFF (16-bit).
8. Special I/O Functions Operation Count input Sampling time DT DT DT DT DT DT Soft-gate Internal count value a b a e c d b e c d Hold value Sample program (H1403) In this example, 5123 (H1403) is set in SW16. As a result, the single phase speedcounter (channel 1 only) is selected. The sampling time is set as 100 ms, because 10 is written in SW18. While R010 is ON, the soft-gate (S240) is set to ON, and the speed-counter works. The hold value is stored in SW22.
8. Special I/O Functions 8.3.3 Quadrature bi-pulse counter Function This function counts up or down the quadrature bi-pulse (2-phase pulses whose phases are shifted 90° each other). Counts up when phase A precedes, and counts down when phase B precedes. Both rising and falling edges of each phase are counted. Consequently, 4 times count value against the pulse frequency is obtained.
8. Special I/O Functions Interrupt assignment Comparison value 1 ¼ I/O interrupt program #1 Comparison value 2 ¼ I/O interrupt program #2 Operation Up count Down count Reset input Soft-gate 2147483647 Comparison value 1 Count value Comparison value 2 -2147483648 Interrupt 1 278 1 1 2 T1/T1S User’s Manual CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
8. Special I/O Functions Sample program (H0803) In this example, 2051 (H0803) is set in SW16. As a result, the quadrature bi-pulse counter is selected. When R010 comes ON, the data 150000 is set into the comparison value 1 register (SW19×SW18), and 200000 is set into the comparison value 2 register (SW21×SW20). While R010 is ON, the soft-gate (S240), the interrupt enable flag 1 (S241) and the interrupt enable flag 2 (S249) are set to ON to enable the counter operation.
8. Special I/O Functions 8.4 Interrupt input function Function When the signal state of the interrupt input is changed from OFF to ON (or ON to OFF), the corresponding I/O interrupt program is activated immediately. Up to 2 interrupt inputs can be used. The interrupt generation condition can be selected either rising edge (OFF to ON) or falling edge (ON to OFF) for each input.
8. Special I/O Functions Sample program Main program (H3045) I/O interrupt program #3 Interrupt program A I/O interrupt program #4 Interrupt program B In this example, 12357 (H3045) is set in SW16. As a result, the interrupt input function (2 points, rising for both) is selected. When X002 is changed from OFF to ON, the interrupt program A is executed. When X003 is changed from OFF to ON, the interrupt program B is executed.
8. Special I/O Functions 8.5 Analog setting function Function The value of the analog setting adjuster is converted into a digital value (0 to 1000) and stored in the SW register. 2 adjusters are provided. (V0 and V1) The SW register data can be used as timer presets or any parameters for function instructions.
8. Special I/O Functions 8.6 Pulse output function Function This function is used to output a variable frequency pulse train. The controllable pulse frequency is 50 to 5000 Hz (1 Hz units). The output mode can be selected either CW/CCW or Pulse/Direction (PLS/DIR). In the CW/CCW mode, CW pulse is output when the frequency setting is positive (50 to 5000), and CCW pulse is output when it is negative (-50 to -5000).
8. Special I/O Functions Operation Pulse enable Frequency setting 100 + 1000 300 -100 -1000 -300 1kHz Frequency 100Hz 300Hz Pulse output 100Hz - 300Hz 1kHz Sample program In this example, 3 (H0003) is set in SW26. As a result, the CW/CCW mode pulse output function is selected. When R000 is ON, the pulse output is started with the frequency designated by D0100.
8. Special I/O Functions 8.7 PWM output function Function This function is used to output a variable duty cycle pulse train. The controllable duty cycle is 0 to 100 % (1 % units). ON duty 50% 70% 60% T T T PWM T = Pulse cycle The PWM output is enabled when the pulse enable flag is ON. While the pulse enable flag is ON, the duty cycle (ON duty) can be changed by changing the duty setting value (0 to 100).
8. Special I/O Functions Operation Pulse enable ON duty setting 10 20 30 70% ON duty PWM output 70 10% 20% 60 60% 70 70% 30% Sample program In this example, 1 (H0001) is set in SW26 and 100 is set in SW28. As a result, 100 Hz PWM output function is selected. When R005 is ON, the PWM output is started with the duty cycle designated by D0200. If an invalid ON duty is designated, the ON duty setting error flag (S26E) comes ON and the pulse enable flag (S270) is turned OFF.
Section 9 Maintenance and Checks 9.1 9.2 9.3 9.4 Precautions during operation, 288 Daily checks, 289 Periodic checks, 290 Maintenance parts, 291 Basic Hardware and Function 287 CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
9. Maintenance and Checks 9.1 Precautions during operation When the T1/T1S is in operation, you should pay attention to the following items. (1) The programmer cable can be plugged or unplugged while the T1/T1S is in operation. When you try to do it, do not touch the connector pins. This may cause malfunction of the T1/T1S owing to static electricity. (2) Do not plug nor unplug the expansion cable during power on. This can cause damage to the equipment.
9. Maintenance and Checks 9.2 Daily checks ! CAUTION 1. Pay special attention during the maintenance work to minimize the risk of electrical shock. 2. Turn off power immediately if the T1/T1S or related equipment is emitting smoke or odor. Operation under such situation can cause fire or electrical shock. To maintain the system and to prevent troubles, check the following items on daily basis. Item Status LEDs Mode control switch Input LEDs Output LEDs Check Lit when internal 5 V is normal.
9. Maintenance and Checks 9.3 Periodic checks ! CAUTION 1. Pay special attention during the maintenance work to minimize the risk of electrical shock. 2. Turn off power immediately if the T1/T1S or related equipment is emitting smoke or odor. Operation under such situation can cause fire or electrical shock. Check the T1/T1S based on the following items every six months. Also perform checks when the operating environment is changed.
9. Maintenance and Checks (Periodic checks - continued) Item Environment Programming tool User program Check Check that the temperature, humidity, vibration, dust, etc. are within the specified range. Check that the functions of the programming tool are normal. Check that the connector and cable are not damaged. Check that the T1/T1S program and the master program (saved on a floppy disk, etc.) are the same. Criteria Must be within the range of general specification.
292 T1/T1S User’s Manual CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
Section 10 Troubleshooting 10.1 Troubleshooting procedure, 294 10.2 Self-diagnostic items, 300 Basic Hardware and Function 293 CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
10. Troubleshooting 10.1 Troubleshooting procedure ! CAUTION 1. Pay special attention during the troubleshooting to minimize the risk of electrical shock. 2. Turn off power immediately if the T1/T1S or related equipment is emitting smoke or odor. Operation under such situation can cause fire or electrical shock. 3. Turn off power before removing or replacing units, modules, terminal blocks or wires. Failure to do so can cause electrical shock or damage to the T1 and related equipment. 4.
10. Troubleshooting 10.1.1 Power supply check If the PWR (power) LED is not lit after power on, check the following points. Check the power connection Connection terminals are correct. The terminal screws are not loose. The terminal block is installed securely. Correct Check the power voltage at the T1/T1S’s terminal 85 to 132/170 to 264 Vac (50/60 Hz) or 20.4 to 28.
10. Troubleshooting 10.1.2 CPU check If the PWR (power) LED is lit but the RUN LED is not lit, check the following points. Check the position of the mode control switch If it is not in R (RUN) position, turn the switch to R (RUN) position. Check the FLT (fault) LED If the FLT LED is lit or blinking, the T1/T1S is in the ERROR mode. Confirm the error message by connecting the programming tool. Refer to section 10.2. Is the RUN LED blinking ? If it is blinking, the T1/T1S is in the HOLD mode.
10. Troubleshooting 10.1.4 Input check If the program is running but the external input signal is not read normally, check the following points: Is the input status LED changed ON/OFF according to the corresponding input device operation ? Yes Connect the programming tool, and monitor the corresponding X device state in RUN mode If not, check the input voltage at the T1/T1S’s input terminals. If the voltage is not normal, check the input device and the cable.
10. Troubleshooting 10.1.5 Output check If the output status monitored on the programming tool is normal but the external output device (load) is not operated normally, check the following points: No Is the output status LED changed ON/OFF according to the program execution ? Yes Check the voltage between the output terminal and its common terminal. It should be 0 V when the output is ON, and it should be the circuit voltage when the output is OFF.
10. Troubleshooting 10.1.6 Environmental problem If the following improper operations occur in the controlled system, check possible environmental factors. (1) If an improper operation occurs synchronously with the operation of I/O devices: The noise generated at ON/OFF of the output device (load) may be the cause of the problem. Take necessary measures mentioned in section 3.
10. Troubleshooting 10.2 Self-diagnostic items If an error is detected by the self-diagnostic check of the T1/T1S CPU, the error messages and the related information shown on the following pages will be recorded in the T1/T1S’s event history table. If the error is severe and continuation of operation is not possible, the T1/T1S turns OFF all outputs and stops the operation (ERROR mode). The latest 15 error messages are stored in the event history table.
10. Troubleshooting Error message and related information Event Info 1 Info 2 Info 3 Batt voltage drop Program Address in the type block No. block FUN No. Duplicate entry No. Program Address type in the block No. block Entry No. EEPROM BCC error Illegal BCC EEPROM warning Number of excess writing I/O bus error Unit No. I/O mismatch Unit No. - Register slot No. No. I/O no answer Unit No. - Register slot No. No. I/O parity error Unit No. - Register slot No. No. Illegal I/O reg Unit No.
10. Troubleshooting Error message and related information Event Info 1 Info 2 Info 3 Illegal inst Program Address type in the block No. block Illegal sys intrpt Invalid Fun inst Invalid program Loop nesting error Memory full No END/IRET error No RET error No sub-r entry 302 Special Meaning and countermeasures device S006 An illegal instruction has been detected in the S030 program. (Error down) S060 Reload the program and execute EEPROM write operation again.
10. Troubleshooting Error message and related information Event Info 1 Info 2 Info 3 Operand error Program Address type in the block No. block Special device Pair inst error Program Address type in the block No. block Peripheral LSI err Error code S004 S016 Program BCC error Illegal BCC S006 S030 RAM check error Error address Scan time over Scan time Error data Test data S004 S012 S006 S031 Meaning and countermeasures A register/device which is not supported by the T1/T1S is programmed.
10. Troubleshooting Error message and related information Event Info 1 Info 2 Info 3 Sys RAM check err Error Error data Test data address Sys ROM BCC error System power off System power on Sub-r nesting err WD timer error 304 Special Meaning and countermeasures device S004 In the power-up initialization, an error has S011 detected by system RAM read/write checking. (Error down and programming tool cannot be connected) Replace the unit if the error remains after power OFF and ON again.
Appendix A.1 A.2 List of models and types, 306 Instruction index, 309 Basic Hardware and Function 305 CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.
Appendix A.
Appendix · T2 I/O modules Description 16 points 24 Vdc/ac input 32 points 24 Vdc input 64 points 24 Vdc input 16 points 120 Vac input 16 points 240 Vac input 12 points relay output 8 points isolated relay output 16 points transistor output 32 points transistor output 64 points transistor output 16 points transistor output (current source) 12 points triac output 4 channel 8-bit 4 - 20 mA / 1 - 5 V analog input resolution 0 - 10 V 12-bit 4 - 20 mA / 1 - 5 V resolution ±10 V 2 channel 8-bit 4 - 20 mA / 1 - 5 V
Appendix · Cable and others Description T-PDS cable for T1/T1S, 5m length HP911A cable for T1/T1S, 2m length (spare parts) RS-232C connector for computer link (with 2 m cable) Option card I/O connector for DI116/DO116/DD116, soldering type Option card I/O connector for DI116/DO116/DD116, flat cable type Expansion rack cable, 0.
Appendix A.
Appendix Single shot timer 149 Special module data read 263 Special module data write 265 Step sequence initialize 230 Step sequence input 231 Step sequence output 232 Subroutine call 221 Subroutine entry 225 Subroutine return 222 Subtraction 162 Subtraction with carry 168 Table initialize 158 Table invert transfer 160 Table transfer 159 Transitional contact (falling) 138 Transitional contact (rising) 137 Unsigned division 170 Unsigned double/single division 171 Unsigned equal 210 Unsigned greater than 208
Appendix · Instruction symbol * 163 + 161 +1 172 +C 167 - 162 -1 173 -C 168 / 164 < 200 <= 201 <> 199 = 198 > 196 >= 197 7SEG 252 ABS 249 AND 174 ASC 254 ATOH 180 AVE 246 BC 220 BCD 256 BIN 255 CALL 221 CLDN 235 CLDS 236 CNT 150 D+ 165 D- 166 D< 206 D<= 207 D<> 205 D= 204 D> 202 D>= 203 DEC 219 DFL 178 DI 227 DIV 171 DMOV 155 DNEG 251 DPX 195 DSR 188 EI 226 ENC 218 END 153 EOR 176 F/F 233 FG 247 FOR 223 HTOA 179 I/O 257 IRET 228 JCR 152 JCS 152 LL 243 MAVE 177 MAX 244 MCR 151 MCS 151 MIN 245 MOV 154 MPX 19