6F3B0253 UM-TS01∗∗∗-E031 PROGRAMMABLE CONTROLLER PROSEC T1- 16S USER’S MANUAL − Basic Hardware and Function − TOSHIBA CORPORATION
6F3B0253 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.
6F3B0253 CE Marking The Programmable Controller PROSEC T1-16S (hereafter called T1-16S) 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.
6F3B0253 UL/c-UL Listing The Programmable Controller PROSEC T1-16S (hereafter called T1-16S) is UL/c-UL listed as shown below.
6F3B0253 Safety Precautions This manual is prepared for users of Toshiba’s Programmable Controller T1-16S. Read this manual thoroughly before using the T1-16S. Also, keep this manual and related manuals so that you can read them anytime while the T1-16S is in operation. General Information 1. The T1-16S has been designed and manufactured for use in an industrial environment. However, the T1-16S is not intended to be used for systems which may endanger human life.
F3B0253 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 T116S 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-16S and related equipment in accordance with the instructions described in this manual. 3.
6F3B0253 Safety Precautions Operation: ! WARNING 1. Configure emergency stop and safety interlocking circuits outside the T1-16S. Otherwise, malfunction of the T1-16S can cause injury or serious accidents. ! CAUTION 2. Operate the T1-16S 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.
6F3B0253 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-16S 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. Touch a grounded metal part to discharge the static electricity on your body before touching the equipment. 4.
6F3B0253 Safety Precautions Safety Label The safety label as shown on the right is attached to the power terminal of the T1-16S. 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.
6F3B0253 About This Manual About This Manual This manual has been prepared for first-time users of Toshiba’s Programmable Controller T1-16S 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-16S, and explains the system configuration, specifications, installation and wiring for T1-16S’s basic hardware.
6F3B0253 About This Manual Terminology The following is a list of abbreviations and acronyms used in this manual.
6F3B0253 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.6 1.7 1.8 1.9 Introducing the T1-16S ................................................................ Features ..............
6F3B0253 Contents 5. Operating System Overview ......................................................... 63 5.1 5.2 5.3 Operation modes ................................................................................ About the built-in EEPROM ................................................................ Scanning ............................................................................................. 64 66 69 6. Programming Information 73 6.1 6.2 6.3 6.4 6.5 6.6 6.6.1 6.6.2 6.6.3 6.6.4 6.
6F3B0253 Contents 10. Troubleshooting .............................................................................. 281 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 .......................................
6F3B0253 Section 1 System Configuration 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.
6F3B0253 1. System Configuration 1.1 Introducing the T1-16S The T1-16 is compact, block style, high-performance programmable controller with a range of 16 to 144 input and output points. The figure below shows the T1 Series line-up. The T1 Series consists of the total 16 types.
6F3B0253 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.
6F3B0253 1. System Configuration 1.2 Features I/O module support: The T1-16S has an interface for connecting the I/O modules. Up to eight modules can be connected to the T1-16S. By using the 16 points I/O module, the T1-16S can control up to 144 I/O points. Built-in high-speed counter: Two single-phase or one quadrature (2-phase) pulses can be counted. The acceptable pulse rate is up to 5 kHz. (DC input type only) Built-in analog setting adjusters: Two analog setting adjusters are provided on the T1-16S.
6F3B0253 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-16S’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.
6F3B0253 1. System Configuration DIN rail mounting: The T1-16S is equipped with brackets for mounting on a standard 35 mm DIN rail. The T1-16S can be mounted on a DIN rail as well as screw mounting. On-line program changes: When the T1-16S’s memory mode is set to 4 k steps mode, on-line (in RUN mode) program changes are available. Furthermore, program writing into the built-in EEPROM is also available in RUN mode. These functions are useful in program debugging stage.
6F3B0253 1. System Configuration 1.3 System configuration The following figure shows the T1-16S system configuration. MMI/SCADA system Peripheral tool IBM-PC compatible personal computer Inverter IBM-PC compatible personal computer RS485 (Standard type only) T-PDS software T1-16S basic unit T1-16S Handy programmer HP911A RS232C I/O modules Computer link function MMI/SCADA system 8 modules max.
6F3B0253 1. System Configuration 1.4 I/O expansion The T1-16S provides I/O expandability by connecting the I/O modules. Up to eight I/O modules can be connected.
6F3B0253 1. System Configuration 1.5 Components 1.5.1 Basic unit The T1-16S is available in four types as shown in the following table.
6F3B0253 1. System Configuration ♦ Behind the programmer port cover Programmer port connector Analog setting adjusters (V0 and V1) PRG V0 V1 H/R Mode control switch (HALT / RUN) Battery holder Battery type: CR2032 (Optional) A tab for battery eject Power supply terminals: Connect the power cable and grounding wire. The terminal screw size is M3. See sections 4.4 and 4.5 for wiring. Input terminals: Connect input signal wires. The terminal screw size is M3. See section 2.4 for details.
6F3B0253 1. System Configuration I/O status LEDs: Indicates the ON/OFF status of each I/O signal.
6F3B0253 1. System Configuration Analog setting adjusters: Two analog setting adjusters are provided. The V0 value is stored in SW30 and the V1 value is stored in SW31. The converted value range is 0 to 1000. Refer to section 8.5 for details of the analog setting function. Programmer port connector: Used to connect the programmer cable. The interface is RS-232C. This port can also be used for the computer link function. Refer to section 1.6 for more information about the computer link function.
6F3B0253 1. System Configuration 1.5.2 I/O modules The T1-16S can connect up to eight I/O modules. The following 10 types of the I/O modules are available. For specification details of the I/O modules, refer to the separate manual “T1-16S User’s Manual − I/O Modules −“.
6F3B0253 1. System Configuration 1.5.3 Options The following optional items are available. Item Cable for programming tool Programmer port connector Option card I/O connector Back-up battery 26 T1-16S User’s Manual Type Description CJ105 For T-PDS, 5 m length PT16S For RS-232C computer link, with 2 m cable PT15S PT15F CR2032 Cable side connector for Soldering type DI116M, DO116M, or DD116M Flat cable type For memory back up. (Available on the market.
6F3B0253 1. System Configuration 1.6 Programmer port function The interface of the T1-16S’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-16S. The data in the T1-16S can be read and written by creating simple communication program on the computer.
6F3B0253 1. System Configuration 1.7 RS-485 port communication function The T1-16S enhanced model has an RS-485 multi-purpose communication port. This port can work independent of the programmer port. By using this communication port, one of the following four communication modes is available, computer link mode, data link mode, free ASCII mode, and Inverter connection mode. For details of these functions, refer to the separate manual “T1-16S User’s Manual − Communication Function −”.
6F3B0253 1. System Configuration Computer link mode T-series computer link protocol can be used in this mode. A maximum of 32 T1-16Ss can be connected to a master computer. By using this mode, all the T1-16S’s data can be accessed by a master computer. The T-series PLC programming software (T-PDS) can also be used in this configuration. Master Computer RS-485 (1 km max.) T1-16S T1-16S T1-16S Max.
6F3B0253 1. System Configuration Free ASCII mode The free ASCII mode is used to connect between the T1-16S and various serial ASCII devices, such as a micro computer, bar code reader, printer, display, etc. By using this mode, the T1-16S can work as a communication master. Therefore, the T1-16S can communicate with other PLCs using the computer link protocol. T1-16S RS-485 (1 km max.
6F3B0253 1. System Configuration Free ASCII mode The T1-16S's Inverter connection mode is a special function to monitor/control the Toshiba Inverters (ASDs) VF-A7/G7/S9 through the RS-485 line. Using this mode, the T1-16S can perform the following functions for the Inverters connected on the RS-485 line without any special communication program. • Monitoring − Operating frequency and Terminal status • Control − Run/Stop/Jog, Forward/Reverse, Frequency reference, etc.
6F3B0253 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 module (FR112M), the T1-16S can work as a remote station of the TOSLINE-F10 network. On this network, the T1-16S sends 1 word data to the master station and receives 1 word data from the master station.
6F3B0253 1. System Configuration 1.9 Peripheral tools The following peripheral tools are available for the T1-16S. 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, T3/T3H and S2T.
6F3B0253 1. System Configuration T-Series Handy Programmer (HP911A) The HP911A is a hand-held programmer, that can be used to program the T1-16S 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-16S, T2/T2E/T2N and T3. • Built-in EEPROM allows program copy between T-Series controllers.
6F3B0253 1. System Configuration Program Storage Module (RM102) The program storage module (RM102) is an external memory for storing the T1-16S program. By using the RM102, program saving from the T1-16S to the RM102, and program loading from the RM102 to the T1-16S can be done without need of a programmer. Because the RM102 has an EEPROM, maintenance-free program storage and quick saving/loading are available.
6F3B0253 36 T1-16S User’s Manual
6F3B0253 Section 2 Specifications 2.1 2.2 2.3 2.
6F3B0253 2. Specifications DC Power type AC Power type 2.1 General specifications Item Power supply voltage Power consumption Inrush current Output 24Vdc rating (24Vdc, ±10%) (Note) 5Vdc T1-16S 100 to 240Vac (+10/-15%), 50/60 Hz 45VA or less 50A or less (at 240Vac, cold start) 0.2A (for external devices and/or for input signals) Power supply voltage 24Vdc (+20/-15%) Power consumption 18W or less Inrush current 25A or less (at 24Vdc) 5Vdc output rating (Note) 1.
6F3B0253 2. Specifications NOTE (3) The 5Vdc current consumption of each I/O modules is described below. Check that the total 5Vdc current consumption is within the limit. Model Specifications DI116M DO116M DD116M 16points, 24Vdc-5mA input. 16points, 24Vdc-100mA output. 8points, 24Vdc-5mA input. 8points, 24Vdc-100mA output. 8 points, 24Vdc/240Vac – 1A relay output 1ch. 12bit analog input. (0 to 20mA, 0 to 5V) 1ch. 12bit analog input. (±10V) 1ch. 12bit analog output. (0 to 20mA, 0 to 5V) 1ch.
6F3B0253 2. Specifications 2.2 Functional specifications Item Control method Scan system I/O update T1-16S Stored program, cyclic scan system Floating scan or constant scan (10 – 200ms, 10ms units) Batch I/O refresh (direct I/O instruction available at basic unit ’s I/O) Program memory (Note) RAM and EEPROM (no back-up battery required) Program capacity 8K steps (4K or 8K mode) Programming language Ladder diagram with function block Instructions Basic: 21 Function: 97 Execution speed 1.4µs/contact, 2.
6F3B0253 2.
6F3B0253 2. Specifications 2.3 I/O specifications • Input specifications Item Input type Number of input points Rated input voltage Rated input current Min. ON voltage Max.
6F3B0253 2. Specifications • Input signal connections T1-16S DC IN L − C 1 3 5 7 Vin 21 23 25 27 N NC + 0 2 4 6 C 20 22 24 26 C Service power 24Vdc 24Vdc 24Vdc input NOTE The 24Vdc service power output is not provided on the DC power supply type.
6F3B0253 2. Specifications • Output specifications Item Specifications Relay output Transistor output Output type Relay contact, normally open Transistor output, current sink Number of output points 6 points 2 points (6 pts/common) (2 points/common) Rated load voltage 240Vac/24Vdc (max.) 24Vdc Range of load voltage Max. 264Vac/125Vdc 20.0 - 28.0Vdc Maximum load current 2A/point (resistive), 0.5A/point (resistive) 4A/common ON resistance 50mΩ or less − (initial value) Voltage drop at ON 0.
6F3B0253 2. Specifications • Output signal connections T1-16S DC OUT L RELAY OUT − C 1 3 5 7 Vin 21 23 25 27 N NC + 0 2 4 6 C 20 22 24 26 C Service power 24Vdc PS 24Vdc + Transister output 240Vac/24Vdc (max.
6F3B0253 2. Specifications 2.
6F3B0253 Section 3 I/O Application Precautions 3.1 3.
6F3B0253 3. I/O Application Precautions 3.1 Application precautions for input signals ! WARNING Configure emergency stop and safety interlocking circuits outside the T1-16S. Otherwise, malfunction of the T1-16S can cause injury or serious accidents.
6F3B0253 3. I/O Application Precautions (4) Countermeasures against leakage current When a switch with an LED or 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. LE Bleeder resistor C T1 input circuit Select a bleeder resistor according to the following criteria: (a) The voltage between the input terminals must be lower than the OFF voltage when the sensor is switched off.
6F3B0253 3. I/O Application Precautions 3.2 Application precautions for output signals ! WARNING Configure emergency stop and safety interlocking circuits outside the T1-16S. Otherwise, malfunction of the T1-16S can cause injury or serious accidents ! CAUTION 1. Turn on power to the T1-16S before turning on power to the loads. Failure to do so may cause unexpected behavior of the loads. 2.
6F3B0253 3. I/O Application Precautions (3) Over-current protection The output circuit of the T1-16S does not contain protective fuses. Fuses rated for the output should be provided by the user. Load T1 output 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.
6F3B0253 52 T1-16S User’s Manual
6F3B0253 Section 4 Installation and Wiring 4.1 4.2 4.3 4.4 4.5 4.
6F3B0253 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-16S and related equipment in the environment described in this section. Do not install the T1-16S 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%.
6F3B0253 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-16S 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-16S and related equipment. 3.
6F3B0253 4.
6F3B0253 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.
6F3B0253 4. Installation and Wiring 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. Connect the ground terminal on the T1-16S to the system ground. The optimum method for grounding electronic equipment is to ground it separately from other high-power systems, and to ground more than one units of electronic equipment with a single-point ground.
6F3B0253 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-16S can cause explosion or fire. Apply power of the specified ratings described below. Wire the power source to the T1-16S power supply terminals.
6F3B0253 4. Installation and Wiring Connections of the power supply terminals are shown below.
6F3B0253 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.
6F3B0253 62 T1-16S User’s Manual
6F3B0253 Section 5 Operating System Overview 5.1 5.2 5.
6F3B0253 5. Operating System Overview 5.1 Operation modes The T1-16S has three basic operation modes, the RUN mode, the HALT mode and the ERROR mode. The T1-16S 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-16S reads external signals, executes the user program stored in the RAM, and outputs signals to the external devices according to the user program.
6F3B0253 5. Operating System Overview The operation modes are switched by the mode control switch provided on the T1-16S and the mode control commands issued from the programming tool. The mode transition conditions are shown below. (Power ON) n o RUN t s p HOLD p q r p t s RUN-F HALT u ERROR n o p q r s t u 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.
6F3B0253 5. Operating System Overview 5.2 About the built-in EEPROM The T1-16S 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.
6F3B0253 5. Operating System Overview EEPROM RAM User program (8 k steps) and System info User program (8 k steps) and System info Data register (0 to 2048 words, user setting) Other data c d Data register (D0000 to Dnnnn, user setting) Other data The rest of Data register and other registers c d Executed when power is turned on (it is called initial load) or EEPROM Read command is issued from the programming tool. The EEPROM Read is possible only in the HALT mode.
6F3B0253 5. Operating System Overview 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.
6F3B0253 5. Operating System Overview 5.3 Scanning The flowchart below shows the basic internal operations performed by the T1-16S 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.
6F3B0253 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.
6F3B0253 5. Operating System Overview Self-diagnosis: Checks the proper operation of the T1-16S itself. If an error has detected and cannot be recovered by re-tries, the T1-16S 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.
6F3B0253 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-16S. 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 external devices connected by the computer link function.
6F3B0253 Section 6 Programming Information 6.1 6.2 6.3 6.4 6.5 6.6 6.7 6.8 6.9 6.
6F3B0253 6. Programming Information 6.1 Devices and registers The T1-16S 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.
6F3B0253 6. Programming Information Addressing devices A device number of X, Y, R and S devices consist of a register number and bit position as follows. X 00 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.
6F3B0253 6. Programming Information Available address range Device/register Symbol External input device External output device External input register External output register Auxiliary relay device Auxiliary relay register Special device Special register Timer device Timer register Counter device Counter register Data register Index register X Y XW YW R RW S SW T. T C.
6F3B0253 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.
6F3B0253 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.) work 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.
6F3B0253 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.
6F3B0253 6.
6F3B0253 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.
6F3B0253 6.
6F3B0253 6. Programming Information Device/ register SW07 Clock/calendar (Year) SW08 SW09 SW10 SW11 SW12 SW13 Clock/calendar Clock/calendar Clock/calendar Clock/calendar Clock/calendar Clock/calendar SW14 SW15 SW16 − Peripheral support priority Mode of special input functions Input filter constant Preset values for high speed counter SW17 SW18 SW19 SW20 SW21 SW22 SW23 SW24 Name (Month) (Day) (Hour) (Minute) (Second) (Week) Function Lower 2 digits of the calendar year (01, 02, ...
6F3B0253 6.
6F3B0253 6.
6F3B0253 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’.
6F3B0253 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.
6F3B0253 6. Programming Information 6.3 Real-time clock/calendar (Enhanced model only) The T1-16S enhanced model 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 1999 = H0099, 2000 = H0000, 2001 = H0001, 2002 = H0002 ... Jan. = H0001, Feb. = H0002, Mar.
6F3B0253 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-16S basic unit, I/O allocation is fixed as follows.
6F3B0253 6. Programming Information Internally, the T1-16S has 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.
6F3B0253 6. Programming Information 6.5 T1-16S memory mode setting The program capacity of the T1-16S is 8 k steps. However, user can set the T1-16S’s program capacity to 4 k steps. It is called the T1-16S’s memory mode. That is, the T1-16S 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.
6F3B0253 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-16S 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-16S’s memory configuration.
6F3B0253 6. Programming Information System information System information is the area which stores execution control parameters. The following contents are included in the system information.
6F3B0253 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-16S.
6F3B0253 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.
6F3B0253 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.
6F3B0253 6. Programming Information 6.6.5 Subroutines In the program type ‘Subroutine’, The following number of subroutines can be programmed. The T1-16S supports 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. One subroutine is started with the SUBR instruction, and ended by the RET instruction. It is necessary to assign a subroutine number to the SUBR instruction.
6F3B0253 6. Programming Information 6.7 Programming language The programming language of the T1-16S 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’.
6F3B0253 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.
6F3B0253 6. Programming Information 6.9 On-line debug support functions The following on-line (during RUN) functions are supported in the T1-16S for effective program debugging. On-line function Force function Sampling trace function Changing timer /counter preset value Changing constant operand of function instruction Changing device directly Program changing in edit mode EEPROM write command 4 k mode Yes Yes Yes 8 k mode Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes NOTE Refer to section 6.
6F3B0253 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 (T-PDS) screen in the format of timing chart (for devices) or trend graph (for register). The minimum sampling timing is the T1-16S’s scan cycle. This function is useful for program debugging and troubleshooting.
6F3B0253 6. Programming Information Timer/counter preset value (constant data) changing The preset value (constant data) of timer or counter instruction can be changed in online (during RUN) by using the programming tool. Function instruction constant operand changing The constant operand of function instruction can be changed in on-line (during RUN) by using the programming tool.
6F3B0253 6. Programming Information 6.10 Password protection The T1-16S 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.
6F3B0253 104 T1-16S User’s Manual
6F3B0253 Section 7 Instructions 7.1 7.
6F3B0253 7. Instructions 7.1 List of instructions The T1-16S has 21 types of basic ladder instructions and 97 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.) Basic ladder instructions FUN No.
6F3B0253 7. Instructions Basic ladder instructions (continued) FUN No. Name Expression − Counter C E CNT A B Q − Master control set −−[ MCS ]− − Master control reset −−[ MCR ]− − Jump control set − Jump control reset −−[ JCS ]− −−[ JCR ]− − End −−[ END ]− Steps Speed (µs) Page 2 22.6 132 1 1 3.75 (in a pair) 2.75 (in a pair) Indicates end of main program or sub-program. 1 1.4 Function Steps Transfers data of A to B. Transfers double-word data of A+1⋅A to B+1⋅B.
6F3B0253 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 108 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.
6F3B0253 7. Instructions Logical operations FUN Name No. 048 AND −[ A AND B → C ]− 050 OR −[ A OR B → C ]− 052 Exclusive OR −[ A EOR B → C ]− 064 Bit test −[ A TEST B ]− Expression 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 (µs) Page 4 5.7 156 4 5.7 157 4 5.7 158 3 5.
6F3B0253 7. Instructions Rotate operations FUN Name No. 078 1 bit rotate right 079 1 bit rotate left 080 n bit rotate right 081 n bit rotate left Expression −[ RTR1 A ]− −[ RTL1 A ]− −[ A RTR n → B ]− −[ A RTL n → B ]− Function Rotates data of A 1 bit to the right (LSB direction). The carry flag changes according to the result. Rotates data of A 1 bit to the left (MSB direction). The carry flag changes according to the result.
6F3B0253 7. Instructions Compare instructions (continued) 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.
6F3B0253 7. Instructions Program control instructions FUN Name Expression No. 128 Subroutine call −[ CALL N.
6F3B0253 7. Instructions Functions FUN Name No.
6F3B0253 7. Instructions Conversion instructions FUN Name No.
6F3B0253 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 Function Performs the immediate block I/O transfer of n registers starting with A. Writes data into the built-in EEPROM, or reads data from the EEPROM. The transfer source and destination are indirectly designated by A and C. The transfer register size is designated by B. Steps Speed Available Page (µs) 3 20.7 + 21.3 × n √ *1 257 4 54.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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. XW YW RW SW T C D √ Constant Index I Example Coil Y022 comes ON when the devices X000 and R001 are both OFF.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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 Sets device A to OFF Sets device A to ON Output − − 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 7. Instructions Positive pulse contact P 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.
6F3B0253 7. Instructions Negative pulse contact N 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.
6F3B0253 7. Instructions Positive pulse coil (P) 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.
6F3B0253 7. Instructions Negative pulse coil (N) 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.
6F3B0253 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 is 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 7. Instructions CNT Counter Expression Count input C CNT Enable input E A B Q 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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 T. Y A Source B Destination Register C. XW YW RW SW T C D √ √ √ √ √ √ √ √ √ √ √ √ √ Constant Index I √ √ J √ √ K √ √ √ Example When R010 is ON, the bit-inverted data of RW30 is stored in D0200 and the output is turned ON.
6F3B0253 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.
6F3B0253 7. Instructions FUN 024 TINZ Table initialize 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 T. A Source n Table size B Start of destination Register C.
6F3B0253 7. Instructions FUN 025 TMOV Table transfer 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.
6F3B0253 7. Instructions FUN 026 TNOT Table invert transfer 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 T. A Start of source n Table size B Start of destination Register C.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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 double-length register C+1⋅C. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S T. A Multiplicand B Multiplier C Product C.
6F3B0253 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 T. A Dividend B Divisor C Quotient C.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 7. Instructions FUN 036 Subtraction with carry -C 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.
6F3B0253 7. Instructions FUN 039 Unsigned multiplication U∗ 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 T. A Multiplicand B Multiplier C Product C.
6F3B0253 7. Instructions FUN 040 U/ Unsigned division 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. The data range of A and B is 0 to 65535 (unsigned 16-bit data) 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 T.
6F3B0253 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.
6F3B0253 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 T. A Operation data 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.
6F3B0253 7. Instructions FUN 045 Decrement -1 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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 ofA 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.
6F3B0253 7. Instructions FUN 056 MAVE Moving average 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.
6F3B0253 7. Instructions FUN 061 DFL Digital Filter 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.
6F3B0253 7. Instructions FUN 062 HTOA Hex to ASCII conversion 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. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S T.
6F3B0253 7. Instructions FUN 063 ATOH ASCII to Hex conversion 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). The allowable range of n is 1 to 64.
6F3B0253 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 Output OFF ON OFF No execution Execution When the result is not 0 When the result is 0 Operand Name X Y Device R S T. A Source B Test data Register C.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 7. Instructions FUN 074 SR Shift register Expression Data input − D SR Q − Output Shift input − S (n) A Enable input − E 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).
6F3B0253 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.
6F3B0253 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).
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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 T.
6F3B0253 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 T. Y Start of table Table size Pointer Destination Register C.
6F3B0253 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.
6F3B0253 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 T. Y A Compared data B Reference data Register C.
6F3B0253 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
6F3B0253 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 T. Y A Compared data B Reference data Register C.
6F3B0253 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 T. Y A Compared data B Reference data Register C.
6F3B0253 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
6F3B0253 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 T. Y A Compared data B Reference data Register C.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 7. Instructions FUN 108 Unsigned greater than U> 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 T. Y A Compared data B Reference data Register C.
6F3B0253 7. Instructions FUN 109 Unsigned greater than or equal U>= 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
6F3B0253 7. Instructions FUN 110 Unsigned equal U= 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 T. Y A Compared data B Reference data Register C.
6F3B0253 7. Instructions FUN 111 Unsigned not equal U<> 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 T. Y A Compared data B Reference data Register C.
6F3B0253 7. Instructions FUN 112 Unsigned less than U< 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
6F3B0253 7. Instructions FUN 113 Unsigned less than or equal U<= 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 T. Y A Compared data B Reference data Register C.
6F3B0253 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.
6F3B0253 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 ifA 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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 Output OFF ON OFF No execution Normal execution There is no ON bit (no execution) ERF − − Set Operand Name X Y Device R S T. A Start of table n Table size B Encode result Register C.
6F3B0253 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 2 n 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.
6F3B0253 7. Instructions FUN 122 BC Bit count 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.
6F3B0253 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.
6F3B0253 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).
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 7. Instructions FUN 149 U/D Up-down counter Expression Direction input − U U/D Count input −C Enable input −E A Q − Output 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.
6F3B0253 7. Instructions FUN 154 CLND Set calendar 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. Execution condition Input OFF ON Operation No operation Execution (data is valid)) No execution (data is not valid) Output OFF OFF ON Operand Name X Y Device R S T.
6F3B0253 7. Instructions FUN 155 CLDS Calendar operation 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.
6F3B0253 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 feedback control. (Pre-derivative real PID algorithm) This PID3 instruction has the following features.
6F3B0253 7. Instructions Control block diagram Integral control Integral 1 TI⋅s Auto mode ASV DSV ∆In MVn Proportional Differential SVn CSV + Gap en ∆Pn 1 + + KP ∆MVn MVS H/L DMV MVCn MV - - Derivative Cascade mode PVn MMV ∆Dn TD⋅s 1+η⋅TD⋅s DMMV Differential limit (η = 0.
6F3B0253 7. Instructions PID algorithm: ∆MVn = KP ⋅ ( ∆Pn + ∆In + ∆Dn) MVn = MVn − 1 ± ∆MVn Here, ∆Pn = en − en − 1 en = SVn − PVn ∆In = en ⋅ ∆t + Ir TI (If GP ≠ 0, Gap is applied) (If TI = 0, then ∆In = 0) TD ⋅ (PVn − 1 − PVn ) − ∆t ⋅ Dn − 1 + Dr ∆t + η ⋅ TD Dn = Dn − 1 + ∆Dn η = 0.1 (Fixed) ∆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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 7. Instructions FUN 160 UL Upper limit 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 No operation Execution: not limited (A ≤ B) Execution: limited (A > B) Output OFF OFF ON Operand Name X Y Device R S T. A Operation data B Upper limit C Destination C.
6F3B0253 7. Instructions FUN 161 LL Lower limit 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 No operation Execution: not limited (A ≥ B) Execution: limited (A < B) Output OFF OFF ON Operand Name X Y Device R S T. A Operation data B Lower limit C Destination C.
6F3B0253 7. Instructions FUN 162 MAX Maximum value Expression Input −[ A MAX (n) B ]− Output Function When the input is ON, this instruction searches for the maximum value from the table of sizen 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. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S T.
6F3B0253 7. Instructions FUN 163 MIN Minimum value Expression Input −[ A MIN (n) B ]− Output Function When the input is ON, this instruction searches for the minimum value from the table of sizen 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. Execution condition Input OFF ON Operation Output OFF ON No execution Execution Operand Name X Y Device R S T.
6F3B0253 7. Instructions FUN 164 AVE Average value 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 T. A Start of table n Table size B Result Register C.
6F3B0253 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. Register C.
6F3B0253 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).
6F3B0253 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.
6F3B0253 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 T. Register C.
6F3B0253 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.
6F3B0253 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.
6F3B0253 7.
6F3B0253 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 T. A Characters B Start of destination Register C.
6F3B0253 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.
6F3B0253 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. Execution condition Input OFF ON Operation Output OFF ON OFF No execution Normal execution Binary data error ERF − − Set Operand Name X Y Device R S T.
6F3B0253 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 ...
6F3B0253 7. Instructions Note • In the T1-16S, the following register/device range is only effective for this Direct I/O instruction. Input on basic unit X000 - X007 Output on basic unit Y020 - Y027 I/O module Not effective • The Direct I/O instruction can be programmed in the main program and in the interrupt program. If this instruction is programmed in both, the instruction in the main program should be executed in interrupt disable state. Refer to EI (FUN 140) and DI (FUN 141) instructions.
6F3B0253 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.
6F3B0253 7. Instructions CPU register ↔ built-in EEPROM In the EEPROM, the D registers are divided into pages as follows. T1-16S D0000 Page 1 (32 words) D0031 D0032 Page 2 (32 words) D0063 D2016 • Writing data into the EEPROM is available within one page at a time. (max. 32 words) • For data reading from the EEPROM, there is no need to consider the pages.
6F3B0253 7. Instructions CPU register ↔ T1S RS-485 port 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.
6F3B0253 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.
6F3B0253 7. Instructions FUN 236 XFER Expanded data transfer (Inverter connection mode) Expression Input −[ A XFER B → C ]− Output Function This function is provided to control Toshiba Inverters VF-A7/G7/S9 connected on the RS-485 line. When the RS-485 port operation mode is set to the Inverter mode (SW56 = 3), the T1-16S can perform the following functions for up to 63 Inverters. (1) Cyclically scans the Inverters and sends/receives the following data to/from each Inverter.
6F3B0253 7.
6F3B0253 7. Instructions < Data exchange mode (Mode 0) > When the instruction input comes ON with the operand B+1 is 0, the Data exchange mode (mode 0) is selected. In this mode, the T1-16S sends the following commands to the Inverters starting from #0 through the Inverter number specified by the operand B, and repeats.
6F3B0253 7.
6F3B0253 7. Instructions < Monitor mode (Mode 1) > When the instruction input comes ON with the operand B+1 is 1, the Monitor mode (mode 1) is selected. In this mode, the T1-16S sends the following Read commands to the Inverters starting from #0 through the Inverter number specified by the operand B, and repeats.
6F3B0253 7. Instructions Data table: Register RW100 RW101 RW102 RW103 RW104 RW105 RW106 RW107 Data contents #0 Operating frequency #0 Output terminal status No use No use #1 Operating frequency #1 Output terminal status No use No use Signal direction ← Read ← Read ← Read ← Read ← Read ← Read RW176 #19 Operating frequency RW177 #19 Output terminal status RW178 No use RW179 No use • The data format for the operating frequency register is 0.01 Hz units.
6F3B0253 7. Instructions < Read command mode (Mode 2) > When the instruction input comes ON with the operand B+1 is 2, the Read command mode (mode 2) is selected. In this mode, the T1-16S sends the user specified Read command to the Inverter specified by the operand B, and repeats. Repeat Sends the specified command to #n Inverter Receives the response and stores the data into the register The target Inverter number #n is specified by the operand B.
6F3B0253 7. Instructions < Write command mode (Mode 3) > When the instruction input comes ON with the operand B+1 is 3, the Write command mode (mode 3) is selected. In this mode, the T1-16S sends the user specified Write command to the Inverter specified by the operand B, and repeats. Repeat Sends the specified command with command data to #n Inverter Checks the acknowledge The target Inverter number #n is specified by the operand B.
6F3B0253 7. Instructions < Broadcast mode (Mode 4) > When the instruction input comes ON with the operand B+1 is 4, the Broadcast mode (mode 4) is selected. In this mode, the T1-16S sends the user specified Write command to all the Inverters as broadcast. This mode is useful to send Run/Stop command to all the Inverter at the same time.
6F3B0253 7. Instructions < Note > (1) The XFER instruction is not executed as error in the following cases. In these cases, the instruction error flag (ERF = S051) is set to ON. If the ERF is set to ON once, it remains ON until resetting to OFF by user program. • The RS-485 port designation is other than H0030 and 0. • The Inverter number designation is other than 0 to 63. • Operation mode setting for RS-485 port is other than the Inverter connection mode.
6F3B0253 Section 8 Special I/O Functions 8.1 8.2 8.3 8.4 8.5 8.6 8.
6F3B0253 8. Special I/O Functions 8.1 Special I/O function overview The T1-16S supports the special I/O functions as listed below. Function name Variable input filter constant Function summary Input filter constant (ON/OFF delay time) can be set by user program. The setting range is 0 to 15ms (1ms units). Default value is 10ms. This function is applied for X000 to X007 (8 points as a block). High Single phase Counts the number of pulses of single phase pulse speed up-counter train.
6F3B0253 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.
6F3B0253 8. Special I/O Functions Note) In the explanation below, P-OUT means the pulse output function.
6F3B0253 8. Special I/O Functions The table below summarizes the mode setting data of each function. In the table, ‘−’ means do not care.
6F3B0253 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 15ms. The default is 10ms. 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.
6F3B0253 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.
6F3B0253 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 upcounter (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.
6F3B0253 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 1000ms (10ms units). The count value range is H0000 to HFFFF (16-bit).
6F3B0253 8. Special I/O Functions Operation Count input Sampling time ∆T ∆T a b ∆T ∆T ∆T ∆T Soft-gate Internal count value e c d e c a b 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 100ms, 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.
6F3B0253 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.
6F3B0253 8.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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.
6F3B0253 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).
6F3B0253 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.
6F3B0253 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).
6F3B0253 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.
6F3B0253 Section 9 Maintenance and Checks 9.1 9.2 9.3 9.4 9.
6F3B0253 9. Maintenance and Checks 9.1 Precautions during operation When the T1-16S is in operation, you should pay attention to the following items. (1) The programmer cable can be plugged or unplugged while the T1-16S is in operation. When you try to do it, do not touch the connector pins. This may cause malfunction of the T1-16S owing to static electricity. (2) Do not plug nor unplug the expansion cable during power on. This can cause damage to the equipment.
6F3B0253 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-16S 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 5V is normal.
6F3B0253 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-16S or related equipment is emitting smoke or odor. Operation under such situation can cause fire or electrical shock. Check the T1-16S based on the following items every six months. Also perform checks when the operating environment is changed.
6F3B0253 9. Maintenance and Checks (Periodic checks - continued) Item Environment Check Check that the temperature, humidity, vibration, dust, etc. are within the specified range. Programming tool Check that the functions of the programming tool are normal. Check that the connector and cable are not damaged. User program Check that the T1-16S program and the master program (saved on a floppy disk, etc.) are the same. Criteria Must be within the range of general specification.
6F3B0253 9. Maintenance and Checks 9.5 Battery (1) Install + side Insert the battery by an angle of 45°. (Turn + side into an upside.) (1) Push the battery horizontal direction. (2) Push from upside and lock. (2) Eject Push the center of the tab by a finger or a pen. Then the battery will be unlocked. Remove the battery. NOTE 1. Turn off power when installing or removing the battery for safety. 2. The battery type is CR2032. Do not use other types of battery.
6F3B0253 Section 10 Troubleshooting 10.1 Troubleshooting procedure, 282 10.
6F3B0253 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-16S 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.
6F3B0253 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-16S’s terminal 85 to 132/170 to 264Vac (50/60 Hz) or 20.4 to 28.
6F3B0253 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-16S is in the ERROR mode. Confirm the error message by connecting the tool. Refer to section 10.2. programming Is the RUN LED blinking ? whether the not used.
6F3B0253 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-16S’s input terminals. If the voltage is not normal, check the input device and the cable.
6F3B0253 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 0V when the output is ON, and it should be the circuit voltage when the output is OFF.
6F3B0253 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.
6F3B0253 10. Troubleshooting 10.2 Self-diagnostic items If an error is detected by the self-diagnostic check of the T1-16S CPU, the error messages and the related information shown on the following pages will be recorded in the T1-16S’s event history table. If the error is severe and continuation of operation is not possible, the T1-16S turns OFF all outputs and stops the operation (ERROR mode). The latest 15 error messages are stored in the event history table.
6F3B0253 10. Troubleshooting Error message and related information Event Info 1 Info 2 Info 3 Batt voltage drop Boundary error Program Address type in the block No. block Clock-calendar error Duplicate entry No. Program Address type in the block No. block 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.
6F3B0253 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 290 Special Meaning and countermeasures device S006 An illegal instruction has been detected in S030 the program. (Error down) S060 Reload the program and execute EEPROM write operation again.
6F3B0253 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.
6F3B0253 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 292 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.
6F3B0253 Appendix A.1 A.
6F3B0253 Appendix A.
6F3B0253 Appendix A.
6F3B0253 Appendix Single shot timer Special module data read Special module data write Step sequence initialize Step sequence input Step sequence output Subroutine call Subroutine entry Subroutine return Subtraction Subtraction with carry Table initialize Table invert transfer Table transfer Transitional contact (falling) Transitional contact (rising) Unsigned division Unsigned double/single division Unsigned equal Unsigned greater than Unsigned greater than or equal Unsigned less than Unsigned less than o
6F3B0253 Appendix • Instruction symbol ∗ + +1 +C -1 -C / < <= <> = > >= 7SEG ABS AND ASC ATOH AVE BC BCD BIN CALL CLDN CLDS CNT D+ DD< D<= D<> D= D> D>= DEC DFL DI DIV DMOV DNEG DPX DSR EI ENC END EOR F/F 145 143 154 149 144 155 150 146 182 183 181 180 178 179 234 231 156 236 162 228 202 238 237 203 217 218 132 147 148 188 189 187 186 184 185 201 160 209 153 137 233 177 170 208 200 135 158 215 FG FOR HTOA I/O IRET JCR JCS LL MAVE MAX MCR MCS MIN MOV MPX NEG NEXT NOT OR PID3 READ RET RST RSTC RTL RTL1 RTR
6F3B0253 298 T1-16S User’s Manual
TOSHIBA CORPORATION Industrial Equipment Department 1-1, Shibaura 1-chome, Minato-ku Tokyo 105-8001, JAPAN Tel: 03-3457-4900 Fax: 03-5444-9268