background image

6F3B0250

UM-TS01

***

-E001

PROGRAMMABLE CONTROLLER

PROSEC

 

T1

 

/

 

T1S

USER’S MANUAL

----

 Basic Hardware and Function 

----

TOSHIBA CORPORATION

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: [email protected]

Summary of Contents for PROSEC T1

Page 1: ...S01 E001 PROGRAMMABLE CONTROLLER PROSEC T1 T1S USER S MANUAL Basic Hardware and Function TOSHIBA CORPORATION CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 2: ...and or related products at any time without notice No obligation shall be incurred other than as noted in this publication This publication is copyrighted and contains proprietary material No part of this book may be reproduced stored in a retrieval system or transmitted in any form or by any means electrical mechanical photocopying recording or otherwise without obtaining prior written permission...

Page 3: ...1 Series Model Number TDR116 6S TAR116 6S TDR116 3S TDR128 6S TAR128 6S TDR128 3S TDR140 6S TAR140 6S TDR140 3S TDR140S6S TAR140S6S TDR140S3S conforms to the following Product Specifications EMC Radiated Interference EN 55011 Group 1 Class A Mains Interference EN 55011 Group 1 Class A Radiated Susceptibility ENV50140 Conducted RFI Susceptibility ENV50141 IEC100 4 6 Electrostatic Discharge IEC1000 ...

Page 4: ...S TCU111 S THP911A S UL and c UL Listing For Use in Hazardous Locations File Number E184034 Product Name Programmable Controller T1 Series Product Covered Main Unit TDR116 6S TAR116 6S TDR116 3S TDR128 6S TAR128 6S TDR128 3S TDR140 6S TAR140 6S TDR140 3S Locations Class Class I Division 2 Groups A B C D Important Notice 1 THIS EQUIPMENT IS SUITABLE FOR USE IN CLASS I DIVISION 2 GROUPS A B C D OR N...

Page 5: ...ctric control systems If this product is handled or operated improperly electrical shock fire or damage to this product could result 4 This manual has been written for users who are familiar with Programmable Controllers and industrial control equipment Contact Toshiba if you have any questions about this manual 5 Sample programs and circuits described in this manual are provided for explaining th...

Page 6: ...ff power immediately if the T1 T1S or related equipment is emitting smoke or odor Operation under such situation can cause fire or electrical shock Also unauthorized repairing will cause fire or serious accidents Do not attempt to repair Contact Toshiba for repairing Wiring 1 Turn off power before wiring to minimize the risk of electrical shock 2 Exposed conductive parts of wire can cause electric...

Page 7: ...for the purpose other than specified This can cause electrical shock or injury 6 Do not modify the T1 T1S and related equipment in hardware nor software This can cause fire electrical shock or injury 7 Configure the external circuit so that the external 24 Vdc power required for transistor output circuits and power to the loads are switched on off simultaneously Also turn off power to the loads be...

Page 8: ...not disassemble the T1 T1S because there are hazardous voltage parts inside 5 Perform daily checks periodical checks and cleaning to maintain the system in normal condition and to prevent unnecessary troubles 6 Check by referring Troubleshooting section of this manual when operating improperly Contact Toshiba for repairing if the T1 T1S or related equipment is failed Toshiba will not guarantee pro...

Page 9: ...it near the power terminals where it can be readily seen Contact Toshiba if the label is damaged Do not touch terminals while power on CAUTION 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 Take off this sheet before wiring CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www...

Page 10: ...parate manual Read the T1 T1S User s Manual Communication Function for details Inside This Manual This manual consists of 10 main sections and an appendix Section 1 outlines the T1 T1S configuration To fully understand the T1 T1S it is important to read this section carefully Sections 2 to 4 describe the hardware used in designing external circuits and panels Sections 5 to 7 are mainly concerned w...

Page 11: ...ise CPU Central Processing Unit CW Clockwise EEPROM Electrically Erasable Programmable Read Only Memory H hexadecimal when it appears in front of an alphanumeric string I O Input Output LED Light Emitting Diode LSB Least Significant Bit ms millisecond MSB Most Significant Bit PWM Pulse Width Modulation RAM Random Access Memory ROM Read Only Memory Vac AC voltage Vdc DC voltage CTi Automation Phone...

Page 12: ...ata link system 36 1 9 Peripheral tools 37 2 Specifications 41 2 1 General specifications 42 2 2 External dimensions 43 2 3 Functional specifications 46 2 4 I O specifications 48 2 4 1 T1 16 48 2 4 2 T1 28 52 2 4 3 T1 40 T1 40S 56 3 I O Application Precautions 61 3 1 Application precautions for input signals 62 3 2 Application precautions for output signals 65 4 Installation and Wiring 67 4 1 Envi...

Page 13: ...7 6 9 On line debug support functions 118 6 10 Password protection 121 7 Instructions 123 7 1 List of instructions 124 7 2 Instruction specifications 134 8 Special I O Functions 267 8 1 Special I O function overview 268 8 2 Variable input filter constant 272 8 3 High speed counter 273 8 3 1 Single phase up counter 273 8 3 2 Single phase speed counter 275 8 3 3 Quadrature bi pulse counter 277 8 4 I...

Page 14: ...0 1 2 CPU check 296 10 1 3 Program check 296 10 1 4 Input check 297 10 1 5 Output check 298 10 1 6 Environmental problem 299 10 2 Self diagnostic items 300 Appendix 305 A 1 List of models and types 306 A 2 Instruction index 309 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 15: ... 2 Features 16 1 3 System configuration 19 1 4 I O expansion 20 1 5 Components 22 1 6 Computer link system 33 1 7 T1S Communication function 34 1 8 Real time data link system 36 1 9 Peripheral tools 37 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 16: ...oints 12 relay plus 2 slid state 16 points 14 relay plus 2 solid state Expansion No No 2 option cards plus 1 expansion rack or unit Total up to 382 points The T1 16 and T1 28 are fixed I O non expandable controllers The T1 40 and T1 40S however provides additional flexibility They are expandable in three ways option cards expansion rack and expansion unit The T1 40 T1 40S can hold two option cards...

Page 17: ... pulse output functions and data communication functions allow its application to a wide scope of control systems T1 T1S Language Ladder diagram with function block Number of instructions Basic 17 types Function 76 types Basic 21 types Function 99 types Subroutines 16 nesting not allowed 256 up to 3 levels of nesting Execution speed 1 4 ms contact 2 3 ms coil 4 2 ms transfer 6 5 ms addition Real t...

Page 18: ...l applications require high speed data manipulations The T1 T1S is designed to meet these requirements 1 4 ms per contact 2 3 ms per coil 4 2 ms per 16 bit transfer 6 5 ms per 16 bit addition The T1 T1S also supports interrupt input function DC input type only This allows immediate operation independent of program scan High performance software The T1 offers 17 basic ladder instructions and 76 fun...

Page 19: ...ion speed can be selected either 750 kbps or 250 kbps T2 Series I O module interface In addition to the option cards the T1 40 T1 40S has a interface for connecting the T2 Series I O modules Up to four modules can be connected to the T1 40 T1 40S The following I O modules are available 16 points DC input DI31 16 points DC output DO31 DO233P 32 points DC input DI32 32 points DC output DO32 64 point...

Page 20: ... writing into the built in EEPROM is also available in RUN mode These functions are useful in program debugging stage Real time clock calendar function T1S only The T1S has the real time clock calendar function year month day day of the week hours minutes seconds that can be used for performing scheduled operations data gathering with time stamps etc The real time clock calendar data is backed up ...

Page 21: ... IBM PC compatible personal computer T1 16 T1 28 T PDS software Handy programmer HP911A T1 40 T1 basic unit Peripheral tool Expansion unit Expansion rack Computer link function T2 I O modules MMI SCADA system 4 slot 2 slot Option cards T1 40S CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 22: ...1 channel analog input 10 to 10V DA121 1 channel analog output 0 to 20mA DA131 1 channel analog output 10 to 10V FR112 TOSLINE F10 remote station Available expansion racks BU152 Up to 2 I O modules can be mounted BU154 Up to 4 I O modules can be mounted Available expansion units T1 EDR32 16 points DC input 16 points relay output T1 EAR32 16 points AC input 16 points relay output Available I O expa...

Page 23: ...an be inserted into the T1 40 T1 40S 2 In the above table Exp 32 means the expansion unit T1 EDR32 or T1 EAR32 3 In the above table I O points of the combinations with an expansion rack show the maximum points using 64 points I O modules BU152 T1 40 S BU154 T1 40 S Option cards any combinations T1 40 S Option cards any combinations BU152 T1 40 S DI116 T1 40 S DD116 DO116 BU154 DD116 T1 40 S T1 40 ...

Page 24: ...s 24 Vdc 12 points relay 2 points transistor T1 MAR28 100 240 Vac 50 60 Hz 14 points 120 Vac 12 points relay 2 points triac T1 MDR28D 24 Vdc 14 points 24 Vdc 12 points relay 2 points transistor T1 40 T1 MDR40 100 240 Vac 50 60 Hz 24 points 24 Vdc 14 points relay 2 points transistor T1 MAR40 100 240 Vac 50 60 Hz 24 points 120 Vac 14 points relay 2 points triac T1 MDR40D 24 Vdc 24 points 24 Vdc 14 p...

Page 25: ...nals Input status LEDs Output status LEDs Mounting hole Programmer port cover Output terminals Operation status LEDs Power supply and Input terminals Input status LEDs Mounting hole Output terminals Output status LEDs Programmer port cover Operation status LEDs CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 26: ...ector Option card slot Output terminals Programmer port cover Output status LEDs Operation status LEDs Power supply and Input terminals Input status LEDs Mounting hole Expansion connector Option card slot Output terminals Programmer port cover Output status LEDs Operation status LEDs RS 485 port terminals CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiau...

Page 27: ...size is M3 5 See section 2 4 for details Output terminals Connect output signal wires The terminal screw size is M3 5 See section 2 4 for details Input status LEDs Indicate the ON status of each input signal color red Output status LEDs Indicate the ON status of each output signal color red PRG R H V 0 V 1 PRG H R V 1 V 0 Analog setting adjusters V0 and V1 Mode control switch HALT RUN Programmer p...

Page 28: ...ution HALT mode In this position RUN HALT command from the programmer is disabled In case of the T1 programming is available only in the HALT mode R RUN When the switch is turned to R RUN side the T1 T1S starts program execution This is the position during normal operation In this position RUN HALT command from the programmer is also available Analog setting adjusters Two analog setting adjusters ...

Page 29: ...erator interface unit other T1S or many kinds of serial ASCII devices including Toshiba s Inverter through RS 485 interface Refer to section 1 7 for more information about the T1S s RS 485 multi purpose communication functions Mounting holes Used to fix the T1 T1S on a mounting frame by screws The mounting holes are provided at two opposite corners Use two M4 screws for mounting See section 4 2 fo...

Page 30: ...m the DO116 16 points output 24 Vdc 100 mA basic unit 5 Vdc DD116 8 points input 24 Vdc 5 mA 8 points output 24 Vdc 100 mA AD121 1 channel analog input 0 to 5 V 0 to 20 mA AD131 1 channel analog input 10 V DA121 1 channel analog output 0 to 20 mA DA131 1 channel analog output 10 V FR112 TOSLINE F10 remote station 1 word input 1 word output NOTE T1 40 or T1 40S Option card The TOSLINE F10 remote ca...

Page 31: ...sion I O Type Description Power supply BU152 2 slots for I O modules Supplied from the BU154 4 slots for I O modules basic unit BU152 BU154 NOTE 1 A 0 15 m expansion cable is supplied with the expansion rack 2 Internal 5 Vdc power for I O modules is supplied from the T1 40 T1 40S basic unit No power supply module is required on the expansion rack 3 Expansion connectors are provided on the both sid...

Page 32: ...t 1 2 A 4 points max DO32 current sink 32 points 4 8 points common 5 to 24 Vdc 0 1 A point max DO235 64 points 8 8 points common 5 to 24 Vdc 0 1 A point max DO233P Transistor output current source 16 points 16 points common 5 to 24 Vdc 1 A point 1 2 A 4 points max AC61 Triac output 12 points 3 4 points common 100 to 240 Vac 0 5 A point 0 6 A SSR max AI21 Analog input 4 channels 1 to 5 V 4 to 20 mA...

Page 33: ...points relay 240 Vac 24 Vdc max 2 A point max basic unit 5Vdc T1 EAR32 Input 16 points 100 to 120 Vac 7 mA Output 16 points relay 240 Vac 24 Vdc max 2 A point max NOTE PROSEC T1 EDR40 TOSHIBA IN OUT 1 A 0 5 m expansion cable is supplied with the expansion unit 2 Internal 5 Vdc power for expansion unit is supplied from the T1 40 T1 40S basic unit 3 24 Vdc power for output relay coils is required ex...

Page 34: ...d PT15S Cable side connector for DI116 Soldering type I O connector PT15F DO116 or DD116 Flat cable type Expansion cable CS1R2 For connecting the expansion rack 0 15 m length spare parts CS1R5B For connecting the expansion unit 0 5m length spare parts Empty slot cover For covering empty slot on the expansion rack CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email in...

Page 35: ...ynchronous Transmission speed 9600 bps fixed Transmission distance 15 m max Framing Start bit Data bits Parity Stop bit 1 bit 8 bits fixed Odd or none 1 bit fixed Protocol T series computer link ASCII Programmer binary Transmission delay option 0 to 300 ms By using the multi drop adapter CU111 multiple T1 T1Ss can be connected on an RS 485 line The T series PLC programming software T PDS can also ...

Page 36: ...CII Binary Transmission speed 300 600 1200 2400 4800 9600 or 19200 bps 19200 bps fixed Transmission distance 1 km max Framing Start bit 1 bit Data bits 7 or 8 bits Parity Odd even or none Stop bit 1 or 2 bits Special Protocol T series computer link ASCII Programmer binary User defined ASCII messages Special Link configuration 1 to N N A 1 to 1 Transmission delay option 0 to 300 ms N A N A Computer...

Page 37: ...ough this port A terminal printer bar code reader or other serial ASCII device can be directly connected This mode also allows the T1S to communicate with other PLCs T1 T2E T2N etc Toshiba s Inverters such as VF S7 A5 G3 Toshiba s motor protection relay S2E21 or others T1S RS 485 1 km max Station No 1 D0000 D0015 D0016 D0031 D0000 D0015 D0016 D0031 T1S Station No 2 T1 T1 T1S Bar code reader Printe...

Page 38: ...oth ends Transmission distance without repeater 500 m max total 1 km max total Transmission speed 750 kbps 250 kbps Scan transmission capacity 512 points 32 words max Scan cycle 7 ms 32 words 12 ms 32 words Error checking CRC check Typical data link configuration The figure below shows the typical data link configuration NOTE T2E master T2E remote Master computer RI O RI O T1 40 S TOSLINE F10 RI O...

Page 39: ...rogram debugging Documentation of programs with commentary makes your maintenance work easy Remote monitoring programming via modem radio phone is possible The table below shows the T PDS versions that support the T1 T1S Type Part number Versions available for T1 T1S T PDS for Windows TMW33E1SS Ver 1 0 or later 1 Ver 1 2 or later T PDS for MS DOS TMM33I1SS Ver 1 61 or later 1 Ver 2 1 or later 1 Th...

Page 40: ... LCD display allows operation in dim light There are two types of the Handy Programmer HP911 depending on the cable included with Type Part number Cable included with Versions available for T1 T1S HP911A THP911A S 2 m cable for T1 T1S Ver 1 1 or later HP911 THP911 S 2 m cable for the upper T series PLCs Ver 1 1 or later The T1S can be used with the HP911 A However there are the following functiona...

Page 41: ...er Because the RM102 has an EEPROM maintenance free program storage and quick saving loading are available Multi drop adapter CU111 The T1 T1S s RS 232C programmer port supports the computer link function When two or more T1 T1Ss are connected with a master computer the multi drop adapter CU111 can be used One to N configuration The CU111 is an RS 232C RS 485 converter specially designed for the T...

Page 42: ...6F3B0250 40 T1 T1S User s Manual CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 43: ...ction 2 Specifications 2 1 General specifications 42 2 2 External dimensions 43 2 3 Functional specifications 46 2 4 I O specifications 48 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 44: ...sistance 10 MW or more between power terminals and ground terminal Withstand voltage 1500 Vac 1 minute between power terminals and ground terminal Ambient temperature 0 to 55 C operation 20 to 75 C storage Ambient humidity 20 to 90 RH no condensation Noise immunity 1000 V p p 1 ms Conform to EMC Directive 89 336 EEC Vibration immunity 16 7 Hz 3 mm p p 3 mutually perpendicular axes Shock immunity 9...

Page 45: ...250 Basic Hardware and Function 43 2 Specifications 2 2 External dimensions T1 16 T1 28 mm 2 Æ5 2 Æ5 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 46: ...S Expansion unit Option card mm 43 18 2 Æ5 A Additional space for Option card connector Card type A DI116 DO116 DD116 55 AD121 AD131 DA121 DA131 16 FR112 11 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 47: ...ations 2 slot expansion rack 4 slot expansion rack mm 135 0 149 0 163 0 4 Æ5 69 0 4 Æ5 83 0 97 0 106 5 115 0 143 0 terminal block 168 0 connector CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 48: ...interrupt interval 5 to 1000 ms 5 ms units 4 I O interrupt high speed counter and interrupt input 16 subroutines nesting not available 256 subroutines up to 3 levels of nesting User I O register 512 points 32 words X XW Y YW data Auxiliary relay 1024 points 64 words R RW 4096 points 256 words R RW Special relay 1024 points 64 words S SW Timer 64 points T T 32 0 01 s 32 0 1 s 256 points T T 64 0 01...

Page 49: ...n card Debug support function Sampling trace 8 devices 256 times or 1 register 128 times Sampling trace 8 devices and 3 register 256 times On line programming On line EEPROM write NOTE 1 The input specification of the T1 16 AC power type is dry contact input which supplies the power for input signals 24 Vdc from the unit Other types are DC input which requires external power for input signals 2 Hi...

Page 50: ... side External connection Terminal block fixed M3 5 Withstand voltage 1500 Vac 1 minute between internal and external circuits Internal circuit 1 The input current direction source or sink of the dry contact input can be selected by the internal jumper plug Factory setting current source Refer to section 3 1 3 side current flows from input terminal to terminal current source 1 side current flows f...

Page 51: ...16 IN OUT Current flow 6 4 2 0 L 7 5 3 1 N 27 25 23 21 Vin C1 26 24 22 20 C0 T1 16 IN OUT Current flow 6 4 2 0 7 5 3 1 C 27 25 23 21 NC NC C1 26 24 22 20 C0 T1 16 IN OUT 24 Vdc input 24Vdc 100 120 Vac input 100 120 Vac 6 4 2 0 L 7 5 3 1 C N 27 25 23 21 C0 NC C1 26 24 22 20 C0 T1 16 IN OUT Note 24 Vdc service power output is not provided on the DC power supply type CTi Automation Phone 800 894 0412...

Page 52: ...oltage drop at ON 1 5 V or less 1 5 V or less Leakage current at OFF None 0 1 mA or less 1 mA or less at 100 Vac 50 Hz 2 mA or less at 240 Vac 50 Hz Minimum load 5 Vdc 10 mA 50 mW 100mA 24 Vac 50mA 100 240 Vac ON delay time 10 ms or less 0 1 ms or less 1 ms or less OFF delay time 10 ms or less 0 1 ms or less 1 ms 1 2 cycle or less Input signal display LED display for all points lit at ON internal ...

Page 53: ... Transistor outputs 6 4 2 0 L 7 5 3 1 N 27 25 23 21 Vin C1 26 24 22 20 C0 T1 16 IN OUT PS 24 Vdc 240 Vac 24 Vdc max Note 24 Vdc service power output is not provided on the DC power supply type 6 4 2 0 L 7 5 3 1 C N 27 25 23 21 C0 NC C1 26 24 22 20 C0 T1 16 IN OUT PS 100 240 Vac 240 Vac 24 Vdc max CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation ...

Page 54: ... setting X00 X07 2 30 ms or less X08 X0D Input signal display LED display for all points lit at ON internal logic side External connection Removable terminal block M3 5 Withstand voltage 1500 Vac 1 minute between internal and external circuits Internal circuit 1 The input ON OFF delay time of the leading 8 points of the DC input can be changed by user The setting range is 0 to 15 ms Default value ...

Page 55: ...2 0 NC N 26 24 23 21 Vin 27 25 C1 22 20 C0 T1 28 IN OUT D B 9 7 5 6 4 C A 8 C3 2D 2B 29 C2 C3 2C 2A 28 C2 24 Vdc 24 Vdc service power 24 Vdc input 3 1 C NC L 2 0 NC NC N 26 24 23 21 C0 27 25 C1 22 20 C0 T1 28 IN OUT D B 9 7 5 6 4 C A 8 C3 2D 2B 29 C2 C3 2C 2A 28 C2 100 120 Vac input 100 120 Vac CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation ne...

Page 56: ...ue Voltage drop at ON 1 5 V or less 1 5V or less Leakage current at OFF None 0 1 mA or less 1 mA or less at 100 Vac 50Hz 2 mA or less at 240 Vac 50Hz Minimum load 5 Vdc 10 mA 50 mW 100 mA 24 Vac 50 mA 100 240 Vac ON delay time 10 ms or less 0 1 ms or less 1 ms or less OFF delay time 10 ms or less 0 1 ms or less 1 ms 1 2 cycle or less Output signal display LED display for all points lit at ON inter...

Page 57: ...ts 240 Vac 24 Vdc max 3 1 C NC L 2 0 NC NC N 26 24 23 21 C0 27 25 C1 22 20 C0 T1 28 IN OUT D B 9 7 5 6 4 C A 8 C3 2D 2B 29 C2 C3 2C 2A 28 C2 100 240 Vac PS PS PS PS 3 1 C L 2 0 NC N 26 24 23 21 Vin 27 25 C1 22 20 C0 T1 28 IN OUT D B 9 7 5 6 4 C A 8 C3 2D 2B 29 C2 C3 2C 2A 28 C2 24 Vdc 240 Vac 24 Vdc max PS PS PS PS CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email ...

Page 58: ...er setting X00 X07 2 30 ms or less X08 X17 Input signal display LED display for all points lit at ON internal logic side External connection Removable terminal block M3 5 Withstand voltage 1500 Vac 1 minute between internal and external circuits Internal circuit 1 The input ON OFF delay time of the leading 8 points of the DC input can be changed by user The setting range is 0 to 15 ms Default valu...

Page 59: ...3 17 15 13 11 F 10 E 16 14 12 2F 2D C2 2A 28 2E 2C 2B 29 C1 24 Vdc 24 Vdc service power 22 20 Vin NC NC 22 21 C0 NC NC NC T1 40 IN OUT 3 1 C L 2 0 NC N D B 9 7 5 6 4 C A 8 27 26 25 24 23 27 26 25 24 23 17 15 13 11 F 10 E 16 14 12 2F 2D C2 2A 28 2E 2C 2B 29 C1 24 Vdc input Note The 24 Vdc service power output is not provided on the DC power supply type CTi Automation Phone 800 894 0412 Fax 208 368 ...

Page 60: ...ge drop at ON 1 5 V or less 1 5 V or less Leakage current at OFF None 0 1 mA or less 1 mA or less at 100 Vac 50Hz 2 mA or less at 240 Vac 50Hz Minimum load 5 Vdc 10 mA 50 mW 100 mA 24 Vac 50 mA 100 240 Vac ON delay time 10 ms or less 0 1 ms or less 1 ms or less OFF delay time 10 ms or less 0 1 ms or less 1 ms 1 2 cycle or less Input signal display LED display for all points lit at ON internal logi...

Page 61: ...7 5 6 4 C A 8 27 26 25 24 23 27 26 25 24 23 17 15 13 11 F 10 E 16 14 12 2F 2D C2 2A 28 2E 2C 2B 29 C1 24 Vdc PS PS 240 Vac 24 Vdc max PS PS PS PS PS PS PS 22 20 C0 NC NC 22 21 C0 NC NC NC T1 40 IN OUT 3 1 C NC L 2 0 NC NC N D B 9 7 5 6 4 C A 8 27 26 25 24 23 27 26 25 24 23 17 15 13 11 F 10 E 16 14 12 2F 2D C2 2A 28 2E 2C 2B 29 C1 100 240 Vac 240 Vac 24 Vdc max PS PS PS PS PS PS PS PS PS CTi Automa...

Page 62: ...6F3B0250 60 T1 T1S User s Manual CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 63: ...Section 3 I O Application Precautions 3 1 Application precautions for input signals 62 3 2 Application precautions for output signals 65 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 64: ...tached on the back of the T1 16 Remove the tool from the unit Put the tool on the side of the unit so that the marks on the tool and the unit are aligned Push the tool to unhook the cover Then remove the cover 1 Turn off power before opening the cover 2 Take care not to touch any electrical parts on the board Static electricity can cause damage 3 Use a pair of tweezers to change the jumper plug se...

Page 65: ...all an external bleeder resistor to increase the contact current Note The above solution cannot be applied to the T1 16 dry contact input 4 Connecting transistor output device An example of connecting a transistor output device to T1 T1S s input circuit is shown below For NPN open collector T1 16 dry contact input T1 28 T1 40 and T1 40S DC input current source For PNP open collector T1 16 dry cont...

Page 66: ...ot be applied to the T1 16 dry contact input 6 Countermeasures against induced current With ac input signals if the external cable is long or if a multi core cable is used an induced current can flow from the charged wire to the open wire in proportion to the capacities of the cables In this case sometimes the voltage reaches the level of the ON input even though the contact is open causing the in...

Page 67: ...0 Vac 2 A 150 24 Vdc 2 A 60 COSf 0 7 1 A 320 L R 15 ms 1 A 150 0 5 A 700 0 5 A 350 220 Vac 2 A 220 48 Vdc 1 A 200 COSf 1 1 A 500 L R 0 ms 0 5 A 420 0 5 A 1 100 48 Vdc 0 5 A 130 220 Vac 2 A 100 L R 15 ms 0 2A 420 COSf 0 7 1 A 210 110 Vdc 0 5 A 200 0 5 A 460 L R 0 ms 0 2 A 550 110 Vdc 0 2 A 150 L R 15 ms 0 1 A 350 WARNING CAUTION Configure emergency stop and safety interlocking circuits outside the ...

Page 68: ...ber in parallel to the inductive load Surge absorber Flywheel diode for DC output Inverse withstand voltage At least three times that of the power supply Forward current Larger than the load current Varistor for AC output The voltage rating is 1 2 times the maximum peak voltage of the power supply CR snubber for DC or AC output R 0 5 to 1 W per volt coil voltage C 0 5 to 1 mF per ampere of coil cu...

Page 69: ...n and Wiring 4 1 Environmental conditions 68 4 2 Installing the unit 69 4 3 Wiring terminals 71 4 4 Grounding 76 4 5 Power supply wiring 78 4 6 I O wiring 80 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 70: ...ht Observe the following precautions when installing enclosures in which the T1 T1S will be installed Provide the maximum possible distance from high voltage or high power panels This distance must be at least 200 mm If installing the enclosures in the vicinity of high frequency equipment be sure to correctly ground the enclosures When sharing the channel base with other panels check for leakage c...

Page 71: ... upside down for safety reason Use M4 size screws to mount the T1 T1S Recommended torque 1 47 N m 15 kgf cm CAUTION NOTE PROSEC T1 MDR40 TOSHIBA IN OUT 1 Improper installation directions or insufficient installation can cause fire or the units to drop Install the T1 T1S and related equipment in accordance with the instructions described in this section 2 Turn off power before installing or removin...

Page 72: ...ing Dimensions for screw mounting T1 16 T1 28 T1 40 T1 40S Expansion unit Expansion rack 2 slot 4 slot 2 M4 113 mm 2 M4 158 5 mm 4 M4 4 M4 83 mm 149 mm CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 73: ... 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...

Page 74: ...pe NOTE NC stands for no connect Do not use the NC terminals for wire relaying or branching 6 4 2 0 L 7 5 3 1 C N 27 25 23 21 C0 NC C1 26 24 22 20 C0 T1 16 IN OUT 6 4 2 0 7 5 3 1 C 27 25 23 21 Vin NC C1 26 24 22 20 C0 T1 16 IN OUT CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 75: ...or branching 3 1 C NC 2 0 NC NC 26 24 23 21 Vin 27 25 C1 22 20 C0 T1 28 IN OUT D B 9 7 5 6 4 C A 8 C3 2D 2B 29 C2 C3 2C 2A 28 C2 3 1 C NC L 2 0 NC NC N 26 24 23 21 C0 27 25 C1 22 20 C0 T1 28 IN OUT D B 9 7 5 6 4 C A 8 C3 2D 2B 29 C2 C3 2C 2A 28 C2 3 1 C L 2 0 NC N 26 24 23 21 Vin 27 25 C1 22 20 C0 T1 28 IN OUT D B 9 7 5 6 4 C A 8 C3 2D 2B 29 C2 C3 2C 2A 28 C2 CTi Automation Phone 800 894 0412 Fax ...

Page 76: ... 4 C A 8 27 26 25 24 23 27 26 25 24 23 17 15 13 11 F 10 E 16 14 12 2F 2D C2 2A 28 2E 2C 2B 29 C1 22 20 C0 NC NC 22 21 C0 NC NC NC T1 40 IN OUT 3 1 C NC L 2 0 NC NC N D B 9 7 5 6 4 C A 8 27 26 25 24 23 27 26 25 24 23 17 15 13 11 F 10 E 16 14 12 2F 2D C2 2A 28 2E 2C 2B 29 C1 22 20 Vin NC NC 22 21 C0 NC NC NC T1 40 IN OUT 3 1 C L 2 0 NC N D B 9 7 5 6 4 C A 8 27 26 25 24 23 27 26 25 24 23 17 15 13 11 ...

Page 77: ... Function 22 20 Vin TXB RXB 22 21 C0 SG TXA RXA T1 40S IN OUT 3 1 C NC 2 0 NC NC D B 9 7 5 6 4 C A 8 27 26 25 24 23 27 26 25 24 23 17 15 13 11 F 10 E 16 14 12 2F 2D C2 2A 28 2E 2C 2B 29 C1 22 20 C0 TXB RXB 22 21 C0 SG TXA RXA T1 40S IN OUT 3 1 C NC L 2 0 NC NC N D B 9 7 5 6 4 C A 8 27 26 25 24 23 27 26 25 24 23 17 15 13 11 F 10 E 16 14 12 2F 2D C2 2A 28 2E 2C 2B 29 C1 22 20 Vin TXB RXB 22 21 C0 SG...

Page 78: ...lowing criteria 1 The T1 T1S must not become a path for a ground current A high frequency current is particularly harmful 2 Equalize the ground potentials when the expansion rack or unit is connected Ground the T1 T1S and the expansion rack or unit at a single point 3 Do not connect the ground of the T1 T1S to that of high power systems 4 Do not use a ground that has an unstable impedance such as ...

Page 79: ...screw is used for this purpose 1 25 mm 2 16 AWG wire should be used to connect the T1 T1S and the expansion rack unit with the enclosure grounding bus bar 100 W or less to ground is required System ground T1 Expansion rack Mounting panel CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 80: ...less T1 40 18 W or less T1 40S Retentive power interruption Continuous operation for less than 10 ms 1 25 mm 2 16 AWG twisted pair cable should be used for the power cable The power cable should be separated from other cables CAUTION 1 Turn off power before wiring to minimize the risk of electrical shock 2 Applying excess power voltage to the T1 T1S can cause explosion or fire Apply power of the s...

Page 81: ...Connections of the power supply terminals are shown below AC power supply type DC power supply type N L 100 to 240 Vac Grounding 100 240VAC 24 Vdc Grounding 24Vdc CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 82: ...utput signal cables 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 ...

Page 83: ...d Function 81 Section 5 Operating System Overview 5 1 Operation modes 82 5 2 About the built in EEPROM 84 5 3 Scanning 87 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 84: ...ROM write are possible only when the T1 is in the HALT mode ERROR The ERROR mode is a shut down mode as a result of self diagnosis The T1 T1S enters the ERROR mode if internal trouble is detected by self diagnosis In this mode program execution is stopped and all outputs are switched off The cause of the shut down can be confirmed by connecting the programming tool To exit from the ERROR mode exec...

Page 85: ...mming tool Mode control switch is turned to R RUN side or RUN command is issued from the programming tool Force RUN RUN F command is issued from the programming tool HOLD command is issued from the programming tool HOLD Cancel command is issued from the programming tool Error Reset command is issued from the programming tool dotted line Error is detected by self diagnosis NOTE The commands from th...

Page 86: ...r specified number of Data register starting with address 0 It is set by SW55 D0000 Dnnnn up to 2048 words Other data SW36 SW38 Programmer port settings SW55 Number of Data register to be saved in the EEPROM SW56 SW57 RS 485 port settings The user program and the data stored in the EEPROM is transferred to the RAM when power is turned on Subsequent program execution is done based on the RAM conten...

Page 87: ...he ERROR mode T1S EEPROM EEPROM User program 2 k steps and System info User program 2 k steps and System info User program 8 k steps and System info User program 8 k steps and System info Data register 512 words Data register D0000 to Dnnnn user setting Data register 0 to 2048 words user setting Other data Other data RAM RAM Data register D0000 to D0511 Data register D0512 to D1023 and other regis...

Page 88: ...SW55 value The value of SW55 itself is also saved in the EEPROM At the initial load or the EEPROM Read command is executed the T1S checks the value for SW55 in the EEPROM and transfers the corresponding number of data to the Data registers of the RAM NOTE 1 The EEPROM has the life limit for writing It is 100 000 times Pay attention not to exceed the limit If the number of execution of EEPROM Write...

Page 89: ...is a cycle starting with the self diagnosis and ending with the completion of peripheral support Power ON Hardware check Initial load Self diagnosis Register device initialization Mode control Register device initialization Program check I O update Timer update User program execution Peripheral support Power up initialization approx 1 s HALT mode Scan cycle RUN mode At the first scan At the first ...

Page 90: ...hers are cleared to 0 Index register I J K Cleared to 0 NOTE 1 When the data stored in the EEPROM Data registers are used these registers should be specified as retentive Otherwise these data are transferred from EEPROM to RAM but then cleared to 0 at the initialization 2 The data in the retentive registers are stored in RAM and backed up by built in capacitor The back up period is 6 hours or more...

Page 91: ...ices registers Y YW to the external output circuits Then the outputs relays etc changes the states and latches until the next I O update timing The states of the forced input devices are not updated by this operation Timer update Updates the timer registers which are activated in the user program and the timing devices S040 to S047 NOTE The floating scan When one scan is finished immediately start...

Page 92: ... tool or an external devices connected by the computer link function The time for this operation is limited within approx 2 ms in the floating scan mode and within allowable idling time in the fixed time scan mode In case of the T1S if the special relay S158 is set to ON the peripheral support priority mode is selected In the peripheral support priority mode the peripheral support time is not limi...

Page 93: ...lock calendar 106 6 4 I O allocation 107 6 5 T1S memory mode setting 109 6 6 User program configuration 110 6 7 Programming language 116 6 8 Program execution sequence 117 6 9 On line debug support functions 118 6 10 Password protection 121 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 94: ...y relay devices S Special devices T Timer devices C Counter devices Registers are divided into eight types XW External input registers YW External output registers RW Auxiliary relay registers SW Special registers T Timer registers C Counter registers D Data registers I J K Index registers Device and register numbers X devices share the same memory area as XW registers Device X014 for example repr...

Page 95: ...As for the timer T and the counter C devices a device number is expressed as follows T 12 Corresponding register number decimal number Represents the type of device T or C Dot is used to identify as device Addressing registers A register number except the index registers is expressed as follows XW 01 Register number decimal number Represents the type of register XW YW RW SW T C or D The index regi...

Page 96: ...T00 T63 256 words T000 T255 Counter device C 64 points C 00 C 63 256 points C 000 C 255 Counter register C 64 words C00 C63 256 words C000 C255 Data register D 1024 words D0000 D1023 4096 words D0000 D4095 Index register I 1 word I no address 1 word I no address J 1 word J no address 1 word J no address K 1 word K no address 1 word K no address NOTE 1 1 word 16 bits 2 The available data range in e...

Page 97: ... intermediate results of sequences The auxiliary relay registers RW are used to store temporary results of function instructions The data in R RW cannot be output directly to the output circuits It is necessary to move the data to Y YW It is possible to make these registers retentive so that they retain data in the event of a power failure See section 5 3 Timer devices and registers T T The timer ...

Page 98: ...devices A part of the data registers are saved in the built in EEPROM as fixed data and transferred into the RAM at the initial load See section 5 2 Range of the data registers saved in the EEPROM T1 T1S D0000 to D0511 User specified range starting with D0000 up to 2048 words It is possible to specify the D registers as retentive to retain their data in the event of a power failure See section 5 3...

Page 99: ... time over alarm ON when actual scan time is longer than the setting time as fixed time scan S009 Reserved S00A Clock calendar error alarm ON when clock calendar data is illegal T1S only S00B Reserved S00C Reserved S00D TL F10 error alarm ON when TOSLINE F10 transmission error occurs S00E Reserved S00F Retentive data invalid alarm ON when retentive data in RAM are invalid NOTE 1 These devices are ...

Page 100: ...r down ON at error state for T2 I O modules S021 I O mismatch down ON at error state S022 I O no answer down ON at error state for T2 I O modules S023 I O parity error down ON at error state for T2 I O modules S024 Reserved S025 Reserved S026 Reserved S027 Reserved S028 Reserved S029 Reserved S02A Reserved S02B Reserved S02C Reserved S02D Reserved S02E Reserved S02F Reserved NOTE 1 These devices a...

Page 101: ...rval All OFF at the S043 Timing relay 0 8 s OFF 0 4 s ON 0 4 s 0 8 s interval beginning of S044 Timing relay 1 0 s OFF 0 5 s ON 0 5 s 1 0 s interval RUN mode S045 Timing relay 2 0 s OFF 1 0 s ON 1 0 s 2 0 s interval S046 Timing relay 4 0 s OFF 2 0 s ON 2 0 s 4 0 s interval S047 Timing relay 8 0 s OFF 4 0 s ON 4 0 s 8 0 s interval S048 Reserved S049 Reserved S04A Reserved S04B Reserved S04C Reserve...

Page 102: ...rect addressing operation continued S065 Reserved S066 Reserved S067 Reserved S068 Division error alarm ON when error occurs in division instruction operation continued S069 BCD data error alarm ON when BCD data error has detected in BCD operation instructions operation continued S06A Table operation error alarm ON when table size error has detected in table operation instructions operation contin...

Page 103: ...de of special output functions Used to select the special output functions SW27 Special output control flags Control flags for the pulse PWM output SW28 Special output frequency setting Output frequency setting for the pulse PWM output SW29 PWM output duty setting Pulse duty setting for the PWM output SW30 Analog setting value 1 Input value of the analog setting adjuster V0 SW31 Analog setting val...

Page 104: ...during execution S395 Reserved S396 Reserved S397 Reserved S398 Reserved S399 Reserved S39A Reserved S39B Reserved S39C Reserved S39D Reserved S39E Reserved S39F Reserved S400 Reserved S401 HOLD device ON during HOLD mode setting by user program is also available S402 Reserved S403 Reserved S404 Reserved S405 Reserved S406 Reserved S407 Reserved S408 Reserved S409 Reserved S40A Reserved S40B Reser...

Page 105: ... be saved in the EEPROM 0 to 2048 initial value is 2048 T1S only SW56 RS 485 port operation mode Used to set the RS 485 port operation mode T1S only SW57 RS 485 port response delay Used to set the RS 485 port response delay time 0 to 30 0 to 300ms T1S only SW58 RS 485 port Free ASCII flags Used for the RS 485 port Free ASCII function T1S only SW59 Reserved SW60 Reserved SW61 Reserved SW62 Reserved...

Page 106: ... modification Transfer data of RW 10 I to D 0000 J If I 3 and J 200 the data of RW13 is transferred to D0200 There are 3 types of index register I J and K Each type processes 16 bit integers 32768 to 32767 There are no particular differences in function between these 3 types of index register There is no special instruction for substituting values in these index registers These are designated as d...

Page 107: ...signates D0200 D0199 When J 2 it designates D0199 D0198 Be careful that the registers do not exceed the address range by the index modification The address range is not checked by the T1 T1S CAUTION NOTE I RW10 J D0201 D0200 Substitutions of values into index registers and index modifications can be used any times in a program Normally the program will be easier to see if a value substitution into...

Page 108: ... at every Sunday 6 pm Clock calendar back up The clock calendar continues updating even while the power to the T1S is off by built in capacitor Its buck up period is as follows Temperature Expected value Guarantee value 25 C 300 hours 168 hours 40 C 144 hours 72 hours In the T1S the validity of the clock calendar is checked If the data is not valid by excess power off period special relay S00A is ...

Page 109: ...ollows X000 X007 Inputs 8 points X000 X007 T1 16 Outputs 8 points Y020 Y027 Y020 Y027 X000 X00D Inputs 14 points X000 X00D T1 28 Outputs 14 points Y020 Y02D Y020 Y02D X000 X017 Inputs 24 points X000 X017 T1 40 T1 40S Outputs 16 points Y020 Y02F Y020 Y02F Any operation for the I O allocation are not required if only the T1 T1S basic unit is used However if the option cards the Expansion unit and or...

Page 110: ... 4W on the slot 0 position when the memory clear is executed for the T1 T1S When the T1 T1S program is developed in off line the above I O allocation table should be set before programming For this operation called manual I O allocation refer to the programming tool manual PU slot must be blank Slot 0 is for basic unit XW00 XW01 YW02 and YW03 are assigned internally Slots 1 to 3 are reserved for o...

Page 111: ...m 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 To set the T1S s memory mode write 4 k or 8 k on the Program Size Setting of the System Parameters using the programming tool Then execute the EEPROM write command NOTE There is no memory mode setting for the standard T1 The program capacity of the standard ...

Page 112: ...it which composes an instruction Number of steps required for one instruction is depending on the type of instruction Refer to section 7 1 The figure below shows the T1 T1S s memory configuration RAM NOTE For conditions of transfer between RAM and EEPROM see section 5 2 System information Back up area by EEPROM 2 k steps T1 4 k or 8 k steps T1S User program Data registers mentioned in section 5 2 ...

Page 113: ...ystem information is stored in the built in EEPROM Therefore when these information is modified the EEPROM write operation is necessary Otherwise these are over written by original EEPROM contents at the next initial load timing User program The T1 has a capacity of 2 k steps of the user program And the T1S has a capacity of 8 k steps of the user program The user program is stored by each program ...

Page 114: ...understand The block numbers need not be consecutive In each program type and block there is no limit of program capacity The only limit is the total capacity 6 6 1 Main program The main program is the core of the user program It is executed once in each scan In the above figure Mode means the mode control operation I O means the I O update processing Timer means the timer up date processing Main ...

Page 115: ...D instruction 6 6 3 Timer interrupt program The timer interrupt is the highest priority task It is executed cyclically with a user specified interval with suspending other operation The interrupt interval is set in the system information 5 to 1000 ms 5 ms units The end of the timer interrupt is recognized by the IRET instruction I O Main program Main program Sub 1 Timer I O Mode Timer RUN mode tra...

Page 116: ...o section 8 3 for details 3 I O interrupt 3 The I O interrupt 3 is used with the interrupt input function When the state of the interrupt input is changed from OFF to ON or ON to OFF the I O interrupt 3 is activated immediately with suspending other operation The end of the I O interrupt 3 is also recognized by the IRET instruction For detailed information refer to section 8 4 4 I O interrupt 4 Th...

Page 117: ...n The available subroutine numbers are 0 to 15 for the T1 or 0 to 255 for the T1S SUBR 000 Subroutine number The RET instruction has no subroutine number The instruction that calls a registered subroutine is the CALL instruction The CALL instruction has the subroutine number to be called CALL N 000 Subroutine number Main program Subroutine ú SUBR 000 ç ú çú CALL N 000 ç ú RET ç NOTE 1 Multiple sub...

Page 118: ...m is constructed by units called rung A rung is defined as one network which is connected each other The rung numbers are a series of numbers decimal number starting from 1 and cannot be skipped There is no limit to the number of rungs The size of any one rung is limited to 11 lines 12 columns A example of a ladder diagram program is shown below When X005 is ON or the data of D0100 is greater than...

Page 119: ...o vertical connection they are executed from left to right When there is an OR connection the OR logic portion is executed first ƒ When there is a branch they are executed in the order from the upper line to the lower line A combination of and ƒ above The instructions execution sequence in which function instructions are included also follows the above rules However for program execution control i...

Page 120: ...he corresponding external signal state The input force designation is available for the external input devices X The coil force is used to disable the coil instruction When a coil instruction on the program is designated as forced coil the ON OFF state of the coil device can be changed manually by using the data setting function of the programming tool regardless of the coil circuit execution stat...

Page 121: ... 256 times for device 128 times for register 256 times The collected data is stored in the T1 T1S internal buffer The buffer works as a ring buffer and latest collected data can be displayed The sampling start stop condition arm condition and the collection timing trigger condition can be specified by status changing of devices For detailed key operations for arm trigger conditions setting on the ...

Page 122: ...the on line program changing it is not allowed to change the number or order of the following instructions END MCS MCR JCS JCR FOR NEXT CALL SUBR RET IRET On line EEPROM write T1S only The EEPROM write is possible in on line during RUN as well as in HALT mode In the on line EEPROM write user data is not written into the EEPROM During this operation the T1S s scan time becomes longer However as it ...

Page 123: ...ns Writing register device data Writing system information I O allocation Protection level 3 disabled functions Reading program Program write into EEPROM Protection level 2 disabled functions Clear memory Writing loading program T1 T1S operation mode changes by programming tool Setting changing passwords Protection level 1 disabled functions None all functions are available When the level 1 2 and ...

Page 124: ...6F3B0250 122 T1 T1S User s Manual CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 125: ...ardware and Function 123 Section 7 Instructions 7 1 List of instructions 124 7 2 Instruction specifications 134 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 126: ... 139 Forced coil A Forced coil of device A State of device A is retained regardless of the input state 1 2 3 Ö Ö 140 Inverter I Inverts the input state 1 1 4 3 3 Ö Ö 141 Invert coil A I Stores the inverse state of input into device A 1 2 3 Ö Ö 142 Positive pulse contact A P Turns ON output for 1 scan when input is ON and device A changes from OFF to ON 1 Ö 143 Negative pulse contact A N Turns ON o...

Page 127: ... Transfers data of A to B 3 4 2 Ö Ö 154 019 Double word data transfer A 1 A DMOV B 1 B Transfers double word data of A 1 A to B 1 B 3 7 2 Ö Ö 155 020 Invert transfer A NOT B Transfers bit inverted data of A to B 3 4 6 Ö Ö 156 022 Data exchange A XCHG B Exchanges data of A with B 3 6 5 Ö Ö 157 024 Table initialize A TINZ n B Transfers data of A to n registers starting with B 3 Ö 158 025 Table trans...

Page 128: ...ddition with carry A C B C Adds data of A B and the carry and stores the result in C The carry flag changes according to the result 4 9 7 Ö Ö 167 036 Subtraction with carry A C B C Subtracts data of B and the carry from A and stores the result in C The carry flag changes according to the result 4 9 7 Ö Ö 168 039 Unsigned multiplication A U B C 1 C Multiplies data of A and B and stores the result i...

Page 129: ...ght LSB direction and stores the result in B The carry flag changes according to the result 4 10 2 Ö Ö 184 071 n bit shift left A SHL n B Shifts data of A n bits to the left MSB direction and stores the result in B The carry flag changes according to the result 4 10 2 Ö Ö 185 074 Shift register D SR Q S n E A When shift input S comes ON shifts the data of specified shift register 1 bit to the left...

Page 130: ... Speed Available Page No ms T1 T1S 096 Greater than A B Turns ON output if A B 3 6 1 Ö Ö 196 097 Greater than or equal A B Turns ON output if A B 3 5 3 Ö Ö 197 098 Equal A B Turns ON output if A B 3 5 0 Ö Ö 198 099 Not equal A B Turns ON output if A B 3 5 0 Ö Ö 199 100 Less than A B Turns ON output if A B 3 6 1 Ö Ö 200 101 Less than or equal A B Turns ON output if A B 3 5 3 Ö Ö 201 102 Double word...

Page 131: ...A is a device Resets device A to OFF 2 4 2 Ö Ö 215 If A is a register Stores 0 in register A 118 Set carry SETC Sets the carry flag to ON 1 4 2 Ö Ö 216 119 Reset carry RSTC Resets the carry flag to OFF 1 4 2 Ö Ö 217 120 Encode A ENC n B Finds the uppermost ON bit position in the bit file of size 2 n bits starting with register A and stores it in B 4 57 0 141 4 Ö Ö 218 121 Decode A DEC n B In the b...

Page 132: ... the end of an interrupt program 1 1 4 Ö Ö 228 143 Watchdog timer reset WDT n Extends the scan time over detection time 2 16 1 Ö Ö 229 144 Step sequence initialize STIZ n A Resets OFF the n devices stating with A and sets ON A These configure a series 3 59 9 65 0 Ö Ö 230 145 Step sequence input STIN A Turns ON output if input is ON and A is ON of step sequence 2 27 0 Ö Ö 231 146 Step sequence outp...

Page 133: ...B and stores the result in C 4 Ö 242 161 Lower limit A LL B C Lower limits the value of A by B and stores the result in C 4 Ö 243 162 Maximum value A MAX n B Finds the maximum value of n registers data starting with A and stores the value in C and the pointer in C 1 4 Ö 244 163 Minimum value A MIN n B Finds the minimum value of n registers data starting with A and stores the value in C and the poi...

Page 134: ...2 s complement A NEG B Stores the 2 s complement value of A in B 3 4 6 Ö Ö 250 183 Double word 2 s complement A 1 A DNEG B 1 B Stores the 2 s complement value of A 1 A in B 1 B 3 4 6 Ö Ö 251 185 7 segment decode A 7SEG B Converts lower 4 bits of A into 7 segment code and stores it in B 3 43 9 Ö Ö 252 186 ASCII conversion A ASC B Converts the alphanumerics max 16 characters of A into ASCII codes an...

Page 135: ...READ B C Reads data from the special module indicated by A and stores the data in a table starting with C The transfer source address and size are designated by B and B 1 4 126 0 7 9 N N size Ö Ö 263 238 Special module data write A WRITE B C Writes data stored in a table starting with A into the special module indicated by C The transfer destination address and size are designated by B and B 1 4 1...

Page 136: ...d the instruction output status Operand Shows available register device or constant value for each operand For constant operand available value range is described If the constant column is just marked Ö it means normal value range 32768 to 32767 in 16 bit integer or 2147483648 to 2147483647 in 32 bit integer is available Whether index modification for a register operand is usable or not is also sh...

Page 137: ...condition Input Operation Output OFF Regardless of the state of device A OFF ON When device A is OFF OFF When device A is ON ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Device Ö Ö Ö Ö Ö Ö Example Coil Y022 comes ON when the devices X000 and R001 are both ON X000 R001 Y022 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email inf...

Page 138: ...dition Input Operation Output OFF Regardless of the state of device A OFF ON When device A is OFF ON When device A is ON OFF Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Device Ö Ö Ö Ö Ö Ö Example Coil Y022 comes ON when the devices X000 and R001 are both OFF X000 R001 Y022 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ...

Page 139: ...Regardless of the input state at last scan OFF ON When the input state at last scan is OFF ON When the input state at last scan is ON OFF Operand No operand is required Example Coil Y022 comes ON for only 1 scan when the device X000 comes ON X000 Y022 1 scan time 1 scan time Note In case of T1 the maximum usable number in a program is 512 and total In case of T1S the maximum usable number in a pro...

Page 140: ... the input state at last scan is OFF OFF When the input state at last scan is ON ON ON Regardless of the input state at last scan OFF Operand No operand is required Example Coil Y022 comes ON for only 1 scan when the device X000 comes OFF X000 Y022 1 scan time 1 scan time Note In case of T1 the maximum usable number in a program is 512 and total In case of T1S the maximum usable number in a progra...

Page 141: ...N Execution condition Input Operation Output OFF Sets device A to OFF ON Sets device A to ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Device Ö Ö Ö Example Coil Y025 comes ON when the devices X000 is ON X000 Y025 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 142: ...ce Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Device Ö Ö Ö Example Device Y025 retains the preceding state regardless of the devices X000 state X000 Y025 Set force Reset force Set force Reset force Note The forced coil is a debugging function The state of a forced coil device can be set ON or OFF by the programming tool CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ...

Page 143: ...ut is turned OFF This instruction inverts the link state Execution condition Input Operation Output OFF Inverts the input state ON ON Inverts the input state OFF Operand No operand is required Example Y022 comes ON when X000 is OFF and Y022 comes OFF when X000 is ON X000 Y022 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 144: ...the input state and store it in the device A Execution condition Input Operation Output OFF Sets device A to ON ON Sets device A to OFF Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Device Ö Ö Ö Example Y025 comes ON when X000 is OFF and Y025 comes OFF when X000 is ON X000 Y025 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email in...

Page 145: ...tput OFF Regardless of the state of device A OFF ON State of device A is OFF OFF State of device A is ON A is OFF at last scan ON A is ON at last scan OFF Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Device Ö Ö Ö Ö Ö Ö Example R100 comes ON for only 1 scan when X000 is ON and X003 changes to ON X000 X003 R100 1 scan time 1 scan time Note The maximum usable numb...

Page 146: ... OFF Regardless of the state of device A OFF ON State of device A is OFF A is OFF at last scan OFF A is ON at last scan ON State of device A is ON OFF Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Device Ö Ö Ö Ö Ö Ö Example R100 comes ON for only 1 scan when X000 is ON and X003 changes to OFF X000 X003 R100 1 scan time 1 scan time Note The maximum usable number ...

Page 147: ...FF Sets device A to OFF ON When the input at last scan is OFF sets A to ON When the input at last scan is ON sets A to OFF Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Device Ö Ö Ö Example R101 comes ON for only 1 scan when X000 is changed from OFF to ON X000 R100 1 scan time 1 scan time Note The maximum usable number in a program is 2048 P N P N total T1S only...

Page 148: ...hen the input at last scan is OFF sets A to OFF When the input at last scan is ON sets A to ON ON Sets device A to OFF Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Device Ö Ö Ö Example R101 comes ON for only 1 scan when X000 is changed from ON to OFF X000 R100 1 scan time 1 scan time Note The maximum usable number in a program is 2048 P N P N total T1S only CTi...

Page 149: ...operation timer is not updating OFF ON Elapsed time preset time timer is updating OFF Elapsed time preset time timer is not updating ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Preset time Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö 0 32767 B Elapsed time Ö Example Y021 and the timer device T 000 is turned ON 2 seconds after X000 came ON X000 T000 T 000 Y021 Preset time 2s Less th...

Page 150: ...et time timer is updating ON Elapsed time preset time timer is not updating OFF ON No operation timer is not updating ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Preset time Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö 0 32767 B Elapsed time Ö Example Y021 and the timer device T 002 is turned OFF 1 second after X000 came OFF X000 T002 T 002 Y021 Preset time 1 s Less than preset tim...

Page 151: ... preset time timer is not updating OFF ON Elapsed time preset time timer is updating ON Elapsed time preset time timer is not updating OFF Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Preset time Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö 0 32767 B Elapsed time Ö Example Y021 and the timer device T 003 is turned OFF 1 second after X000 came ON X000 T003 T 003 Y021 Preset time 1 s Pre...

Page 152: ...ion Output OFF No operation B is cleared to 0 OFF ON Count value B set value A OFF Count value B set value A ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Set value Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö 0 65535 B Count value Ö Example X001 X002 C010 C 010 Y021 Note No transitional contact is required for the count input The count input rising edge is detected by this instructi...

Page 153: ...urned OFF Execution condition MCS input Operation Output OFF Sets OFF the left power rail until MCR ON 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 Equivalent circuit X000 X001 Y021 X002 Y022 Note MCS and MCR must be used as a pair Nesting is not allowed CTi Automation Phone 800 894 0412 Fax 208 36...

Page 154: ...ution condition JCS input Operation Output OFF Ordinary operation ON 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 When X000 is OFF Y021 is controlled by the X001 state Note JCS and JCR must be used as a pair Nesting is not allowed CTi Automation Phone 800 894 0412 Fax 208 36...

Page 155: ...ND 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 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautoma...

Page 156: ...Ö Ö Example 1 constant to register When R010 is ON a constant data 12345 is stored in D0100 and the output is turned ON Example 2 register to register When X005 is ON the data of SW30 is stored in RW45 and the output is turned ON If SW30 is 500 the data 500 is stored in RW45 Example 3 index modification When R050 is changed from OFF to ON the data of RW08 is stored in the index register I and the ...

Page 157: ...condition Input Operation Output OFF No execution OFF ON Execution ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Source Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Destination Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R011 is ON a double word data of D0101 D0100 is stored in RW17 RW16 and the output is turned ON If D0101 D0100 is 1234567 the data 1234567 is stored in RW17 RW16 CTi Auto...

Page 158: ...W RW SW T C D I J K A Source Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Destination Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R010 is ON the bit inverted data of RW30 is stored in D0200 and the output is turned ON If RW30 is H4321 the bit inverted data HBCDE is stored in D0200 F E D C B A 9 8 7 6 5 4 3 2 1 0 RW30 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 4 3 2 1 Bit invert F E D C B A 9 8 7 6 5 4 3 2 1 0 D0200 1 0 1 1 1 1 0 0 1 1 0 ...

Page 159: ... Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Operation data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Operation data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R005 is ON the data of RW23 and D0100 is exchanged If the original data of RW23 is 23456 and that of D0100 is 291 the operation result is as follows RW23 23456 RW23 291 D0100 291 D0100 23456 Before operation After operation CTi Automation Phone ...

Page 160: ...F No execution OFF ON Execution ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Source Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö n Table size 1 1024 B Start of destination Ö Ö Ö Ö Ö Ö Example When R010 is ON a constant data 0 is stored in 100 registers starting with D0200 D0200 to D0299 and the output is turned ON Constant 0 D0200 0 D0201 0 D0202 0 100 registers D0299 0 T1S only C...

Page 161: ...Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Start of source Ö Ö Ö Ö Ö Ö Ö n Table size 1 1024 B Start of destination Ö Ö Ö Ö Ö Ö Example When R010 is ON the data of D0500 to D0509 10 registers are block transferred to D1000 to D1009 and the output is turned ON D0500 1111 D1000 1111 D0501 2222 D1001 2222 D0502 3333 Block transfer D1002 3333 10 registers D0509 1...

Page 162: ...ice Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Start of source Ö Ö Ö Ö Ö Ö Ö n Table size 1 1024 B Start of destination Ö Ö Ö Ö Ö Ö Example When R010 is ON the data of D0600 to D0604 5 registers are bit inverted and transferred to D0865 to D0869 and the output is turned ON D0600 H00FF D0865 HFF00 D0601 H0000 Bit invert D0866 HFFFF D0602 H1234 and transfer D0867 HEDCB 5 registers...

Page 163: ...underflow occurred ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Augend Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Addend Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö C Sum Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R005 is ON the data of D0100 and the constant data 1000 is added and the result is stored in D0110 If the data of D0100 is 12345 the result 13345 is stored in D0110 and R010 is turned OFF D0100...

Page 164: ...occurred ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Minuend Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Subtrahend Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö C Difference Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R005 is ON the constant data 2500 is subtracted from the data of D0200 and the result is stored in RW50 If the data of D0200 is 15000 the result 12500 is stored in RW50 and R010 is turned OFF...

Page 165: ... T C D I J K A Multiplicand Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Multiplier Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö C Product Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R005 is ON the data of D0050 is multiplied by the data of RW05 and the result is stored in double length register D0101 D0100 upper 16 bit in D0101 and lower 16 bit in D0100 If the data of D0050 is 1500 and the data of RW05 is 20 the result 30000 is stored in D0101 D010...

Page 166: ...Ö Ö Example When R005 is ON the data of RW22 is divided by the constant data 325 and the quotient is stored in RW27 and the remainder is stored in RW28 If the data of RW22 is 2894 the quotient 8 is stored in RW27 and the remainder 294 is stored in RW28 RW22 2894 RW27 8 quotient Constant 325 RW28 294 remainder Note If divisor operand B is 0 ERF instruction error flag S051 is set to ON The ERF S051 ...

Page 167: ...t is turned ON Execution condition Input Operation Output OFF No execution OFF ON Execution normal OFF Execution overflow or underflow occurred ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Augend Ö Ö Ö Ö Ö Ö Ö Ö B Addend Ö Ö Ö Ö Ö Ö Ö Ö C Sum Ö Ö Ö Ö Ö Ö Example When R005 is ON the data of D0011 D0010 and the constant data 100000 is added and the result is s...

Page 168: ...t Operation Output OFF No execution OFF ON Execution normal OFF Execution overflow or underflow occurred ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Minuend Ö Ö Ö Ö Ö Ö Ö Ö B Subtrahend Ö Ö Ö Ö Ö Ö Ö Ö C Difference Ö Ö Ö Ö Ö Ö Example When R005 is ON the double word data of RW25 RW24 is subtracted from the double word data of D0101 D0100 and the result is s...

Page 169: ...y OFF Reset Carry occurred OFF Set Overflow No carry ON Reset underflow Carry occurred ON Set Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Augend Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Addend Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö C Sum Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R013 is ON the data of double length registers D0101 D0100 and RW21 RW20 are added and the result is stored in D0201 D020...

Page 170: ...eset Borrow occurred OFF Set Overflow No borrow ON Reset underflow Borrow occurred ON Set Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Minuend Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Subtrahend Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö C Difference Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R013 is ON the data of double length register RW23 RW22 is subtracted from the data of D0201 D0200 and the result...

Page 171: ... R S T C XW YW RW SW T C D I J K A Multiplicand Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Multiplier Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö C Product Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R010 is ON the data of D0050 is multiplied by the data of RW05 and the result is stored in double length register D0101 D0100 upper 16 bit in D0101 and lower 16 bit in D0100 If the data of D0050 is 52500 and the data of RW05 is 30 the result 1575000 ...

Page 172: ...or Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö C Quotient Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R010 is ON the data of D0030 is divided by the constant data 300 and the quotient is stored in D0050 and the remainder is stored in D0051 If the data of D0030 is 54321 the quotient 181 is stored in D0050 and the remainder 21 is stored in D0051 D0030 54321 RW27 181 quotient Constant 300 RW28 21 remainder Note If divisor operand ...

Page 173: ... No execution B 0 OFF Set Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Dividend Ö Ö Ö Ö Ö Ö Ö Ö B Divisor Ö Ö Ö Ö Ö Ö Ö Ö C Quotient Ö Ö Ö Ö Ö Ö Example When R010 is ON the double word data of D0201 D0200 is divided by the constant data 4000 and the quotient is stored in D1000 and the remainder is stored in D1001 If the data of D0201 D0200 is 332257 the quotien...

Page 174: ...SW T C D I J K A Operation data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example At the rising edge of X004 changes from OFF to ON the data of D0050 is increased by 1 and stored in D0050 If the data of D0050 is 750 before the execution it will be 751 after the execution D0050 D0050 750 1 751 Note There is no limit value for this instruction When the data of operand A is 32767 before the execution it will be 32768 afte...

Page 175: ...W SW T C D I J K A Operation data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example At the rising edge of X005 changes from OFF to ON the data of D0050 is decreased by 1 and stored in D0050 If the data of D0050 is 1022 before the execution it will be 1021 after the execution D0050 D0050 1022 1 1021 Note There is no limit value for this instruction When the data of operand A is 32768 before the execution it will be 3276...

Page 176: ... Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Source Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö C AND Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R012 is ON logical AND operation is executed for the data of RW12 and the constant data HFF00 and the result is stored in D0030 If the data of RW12 is H3456 the result H3400 is stored in D0030 F E D C B A 9 8 7 6 5 4 3 2 1 0 RW12 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 3 4 5 6 AND Constant 1 1 1 1 1 1 1 1 0 0 ...

Page 177: ...Source Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B source Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö C OR Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R012 is ON logical OR operation is executed for the data of RW13 and RW20 and the result is stored in D0031 If the data of RW13 is H5678 and RW20 is H4321 the result H5779 is stored in D0031 F E D C B A 9 8 7 6 5 4 3 2 1 0 RW13 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 5 6 7 8 OR RW20 0 1 0 0 0 0 1 1 0 0 1 ...

Page 178: ...Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B source Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö C Exclusive OR Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R012 is ON exclusive OR operation is executed for the data of D1000 and D0300 and the result is stored in D1000 If the data of D1000 is H5678 and D0300 is H4321 the result H1559 is stored in D1000 F E D C B A 9 8 7 6 5 4 3 2 1 0 D1000 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 5 6 7 8 Exclusive OR D0300 0 1 0...

Page 179: ...ant Index X Y R S T C XW YW RW SW T C D I J K A Input data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö n Data size 1 64 B Start of table Ö Ö Ö Ö Ö Ö C Output data Ö Ö Ö Ö Ö Ö Ö Ö Example The latest 5 scan s data of XW04 is stored in D0900 to D0904 5 registers and the average value of them is calculated and stored in D0010 D0011 is used as internal work data XW04 D0010 1st scan 1000 200 1000 5 2nd scan 1005 401 1000 100...

Page 180: ...an This instruction is useful for filtering the analog input signal C 1 is used for internal work data Execution condition Input Operation Output OFF No execution OFF ON Execution FL is limited within the range of 0 to 9999 ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Input data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Filter constant Ö Ö Ö Ö Ö Ö Ö C Output data Ö Ö Ö Ö Ö Ö ...

Page 181: ...ter Constant Index X Y R S T C XW YW RW SW T C D I J K A Source Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö n Data size 1 32 B Destination Ö Ö Ö Ö Ö Ö Example When R010 is ON 4 words data of D0100 to D0103 are converted into ASCII characters and stored in 8 words registers starting with D0200 F 0 F 8 7 0 D0100 H0123 D0220 1 H31 0 H30 D0101 H4567 Converted D0221 3 H33 2 H32 D0102 H89AB D0222 5 H35 4 H34 D0103 HCDEF D022...

Page 182: ...et Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Source Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö n Data size 1 64 B Destination Ö Ö Ö Ö Ö Ö Example When R011 is ON the ASCII characters stored in 8 words of D0300 to D0307 are converted into hexadecimal data and stored in 4 words registers starting with RW040 F 8 7 0 F 0 D0300 1 H31 0 H30 RW040 H0123 D0301 3 H33 2 H32 Converted RW04...

Page 183: ...W SW T C D I J K A Source Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Test data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example Logical AND operation is executed for the data of RW07 and the constant data H0FFF and if the result is not 0 R00A is turned ON R00A is turned ON when any device from R070 to R07B is ON If the data of RW07 is H4008 R00A is turned ON F E D C B A 9 8 7 6 5 4 3 2 1 0 RW07 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 4 0 ...

Page 184: ...peration Output CF OFF No execution OFF ON Execution When LSB 1 ON Set or reset When LSB 0 OFF Set or reset Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Operation data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When X007 is changed from OFF to ON the data of RW15 is shifted 1 bit to the right The figure below shows an operation example MSB LSB F E D C B A 9 8 7 6 5 4 3 2 1 0 ...

Page 185: ...t Operation Output CF OFF No execution OFF ON Execution When MSB 1 ON Set or reset When MSB 0 OFF Set or reset Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Operation data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When X008 is changed from OFF to ON the data of RW15 is shifted 1 bit to the left The figure below shows an operation example MSB LSB F E D C B A 9 8 7 6 5 4 3 2 1 ...

Page 186: ...n When LSB 1 ON Set or reset When LSB 0 OFF Set or reset Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Source Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö n Shift bits 1 16 B Destination Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When X007 is changed from OFF to ON the data of RW18 is shifted 5 bits to the right and the result is stored in RW20 The figure below shows an operation example MSB LSB F...

Page 187: ...tion When MSB 1 ON Set or reset When MSB 0 OFF Set or reset Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Source Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö n Shift bits 1 16 B Destination Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When X008 is changed from OFF to ON the data of RW18 is shifted 3 bits to the left and the result is stored in RW20 The figure below shows an operation example MSB LSB...

Page 188: ... When the shift input is ON Shift execution Last bit Set or reset When the shift input is OFF No execution state Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Leading device Ö Ö Ö n Device size 1 64 Example 32 devices starting with R100 R100 to R11F is specified as a shift register When R010 is OFF the data of the shift register is reset to 0 R100 to R11F are re...

Page 189: ...ft 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 In this case insert a dummy contact always ON special device S04F etc just before the input D SR Q Not allowed S n E A Dummy contact D SR Q Allowed S n E A Shift result CTi Automation Phone 800 89...

Page 190: ...input D is stored in the highest bit if right shift and stored in the lowest bit A if left shift The pushed out bit state is stored in the carry flag CF S050 When the enable input E is OFF all bits in the table and the carry flag are reset to OFF Execution condition Enable input Operation Output CF OFF Resets all bits in the bit table OFF Reset ON S ON L ON Shift left execution Highest bit state S...

Page 191: ...d in the highest bit R208 The output R012 indicates the state of the lowest bit R200 The figure below shows an operation example When X00A is ON and X009 is changed from OFF to ON CF R208 R207 R206 R205 R204 R203 R202 R201 R200 X008 1 0 0 1 1 0 0 1 1 0 1 0 0 1 1 0 0 1 1 0 R012 is turned OFF When X00A is OFF and X009 is changed from OFF to ON X008 R208 R207 R206 R205 R204 R203 R202 R201 R200 CF 1 0...

Page 192: ...ation Output CF OFF No execution OFF ON Execution When LSB 1 ON Set or reset When LSB 0 OFF Set or reset Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Operation data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When X007 is changed from OFF to ON the data of RW15 is rotated 1 bit to the right The figure below shows an operation example MSB LSB F E D C B A 9 8 7 6 5 4 3 2 1 0 RW1...

Page 193: ...peration Output CF OFF No execution OFF ON Execution When MSB 1 ON Set or reset When MSB 0 OFF Set or reset Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Operation data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When X008 is changed from OFF to ON the data of RW15 is rotated 1 bit to the left The figure below shows an operation example MSB LSB F E D C B A 9 8 7 6 5 4 3 2 1 0 1...

Page 194: ...When LSB 0 OFF Set or reset Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Source Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö n Shift bits 1 16 B Destination Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When X007 is changed from OFF to ON the data of RW18 is rotated 5 bits to the right and the result is stored in RW20 The figure below shows an operation example MSB LSB F E D C B A 9 8 7 6 5 4 3 2 1 ...

Page 195: ...et When MSB 0 OFF Set or reset Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Source Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö n Shift bits 1 16 B Destination Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When X008 is changed from OFF to ON the data of RW18 is rotated 3 bits to the left and the result is stored in RW20 The figure below shows an operation example MSB LSB F E D C B A 9 8 7 6 5 4 3 2 ...

Page 196: ...ze 1 64 B Pointer Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö 0 63 C Destination Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R010 is ON the register data which is designated by RW30 is read from the table D0500 to D0509 10 registers size and stored in D0005 If the data of RW30 is 7 D0507 data is transferred to D0005 Source table Pointer Destination D0500 0 D0005 12345 D0501 1 D0507 12345 7 D0508 8 D0509 9 Note If the pointer data des...

Page 197: ...Table size 1 64 B Pointer Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö 0 63 C Start of table Ö Ö Ö Ö Ö Ö Example When R011 is ON the data of XW04 is transferred to the register which is designated by RW30 in the table D0500 to D0509 10 registers size If the data of RW30 is 8 XW04 data is transferred to D0508 Source Destination table Pointer XW04 3210 D0500 0 D0501 1 D0507 7 D0508 3210 8 D0509 9 Note If the pointer data de...

Page 198: ... Ö Ö Ö Ö B Reference data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R00C is ON the data of D0125 is compared with the constant data 2500 and if the data of D0125 is greater than 2500 R020 is turned ON If the data of D0125 is 3000 the comparison result is true Consequently R020 is turned ON D0125 3000 Constant 2500 R020 is ON If the data of D0125 is 100 the comparison result is false Consequently R020 i...

Page 199: ...nce data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R00C is ON the data of D0125 is compared with the data of D0020 and if the data of D0125 is greater than or equal to the data of D0020 R020 is turned ON If the data of D0125 is 3000 and that of D0020 is 3000 the comparison result is true Consequently R020 is turned ON D0125 3000 D0020 3000 R020 is ON If the data of D0125 is 1500 and that of D0020 is 0 ...

Page 200: ... Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R00C is ON the data of D0125 is compared with the data of D0030 and if the data of D0125 is equal to the data of D0030 R020 is turned ON If the data of D0125 is 3000 and that of D0020 is 3000 the comparison result is true Consequently R020 is turned ON D0125 3000 D0030 3000 R020 is ON If the data of D0125 is 1500 and that of D0020 is 0 the comparison result is fal...

Page 201: ... Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Reference data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R00C is ON the data of D0125 is compared with the constant data 0 and if the data of D0125 is not 0 R020 is turned ON If the data of D0125 is 10 the comparison result is true Consequently R020 is turned ON D0125 10 Constant 0 R020 is ON If the data of D0125 is 0 the comparison result is false Consequently R020 is turned...

Page 202: ... data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R00C is ON the data of D0125 is compared with the data of D0040 and if the data of D0125 is less than the data of D0040 R020 is turned ON If the data of D0125 is 10 and that of D0040 is 15 the comparison result is true Consequently R020 is turned ON D0125 10 D0040 15 R020 is ON If the data of D0125 is 0 and that of D0040 is 50 the comparison result is fal...

Page 203: ...Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Reference data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R00C is ON the data of D0125 is compared with the constant data 100 and if the data of D0125 is less than or equal to 100 R020 is turned ON If the data of D0125 is 150 the comparison result is true Consequently R020 is turned ON D0125 150 Constant 100 R020 is ON If the data of D0125 is 0 the comparison result is false Conseq...

Page 204: ... Ö Ö B Reference data Ö Ö Ö Ö Ö Ö Ö Ö Example When R010 is ON the data of D0101 D0100 is compared with the constant data 200000 and if the data of D0101 D0100 is greater than 200000 R014 is turned ON If the data of D0101 D0100 is 250000 the comparison result is true Consequently R014 is turned ON D0101 D0100 250000 Constant 200000 R014 is ON If the data of D0101 D0100 is 100 the comparison result ...

Page 205: ... Ö Ö Ö Ö Ö Ö B Reference data Ö Ö Ö Ö Ö Ö Ö Ö Example When R010 is ON the double word data of D0101 D0100 is compared with the double word data of D0251 D0250 and if the data of D0101 D0100 is greater than or equal to the data of D0251 D0250 R014 is turned ON If the data of D0101 D0100 is 250000 and D0251 D0250 is 200000 R014 is turned ON D0101 D0100 250000 D0251 D0250 200000 R014 is ON If the dat...

Page 206: ... B Reference data Ö Ö Ö Ö Ö Ö Ö Ö Example When R010 is ON the double word data of D0101 D0100 is compared with the double word data of D0251 D0250 and if the data of D0101 D0100 is equal to the data of D0251 D0250 R014 is turned ON If the data of D0101 D0100 is 250000 and D0251 D0250 is 250000 R014 is turned ON D0101 D0100 250000 D0251 D0250 250000 R014 is ON If the data of D0101 D0100 is 100 and ...

Page 207: ... Ö Ö B Reference data Ö Ö Ö Ö Ö Ö Ö Ö Example When R010 is ON the double word data of D0101 D0100 is compared with the double word data of D0251 D0250 and if the data of D0101 D0100 is not equal to the data of D0251 D0250 R014 is turned ON If the data of D0101 D0100 is 250000 and D0251 D0250 is 200000 R014 is turned ON D0101 D0100 250000 D0251 D0250 250000 R014 is ON If the data of D0101 D0100 is ...

Page 208: ...T C D I J K A Compared data Ö Ö Ö Ö Ö Ö Ö Ö B Reference data Ö Ö Ö Ö Ö Ö Ö Ö Example When R010 is ON the data of D0101 D0100 is compared with the constant data 427780 and if the data of D0101 D0100 is less than 427780 R014 is turned ON If the data of D0101 D0100 is 250000 R014 is turned ON D0101 D0100 250000 Constant 427780 R014 is ON If the data of D0101 D0100 is 430000 R014 is turned OFF D0101 D...

Page 209: ...X Y R S T C XW YW RW SW T C D I J K A Compared data Ö Ö Ö Ö Ö Ö Ö Ö B Reference data Ö Ö Ö Ö Ö Ö Ö Ö Example When R010 is ON the data of D0101 D0100 is compared with the constant data 0 and if the data of D0101 D0100 is less than or equal to 0 R014 is turned ON If the data of D0101 D0100 is 1 R014 is turned ON D0101 D0100 1 Constant 0 R014 is ON If the data of D0101 D0100 is 10000 R014 is turned O...

Page 210: ... Ö Ö Ö B Reference data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R00C is ON the data of D0125 is compared with the constant data 40000 and if the data of D0125 is greater than 40000 R020 is turned ON If the data of D0125 is 52000 the comparison result is true Consequently R020 is turned ON D0125 52000 Constant 40000 R020 is ON If the data of D0125 is 21000 the comparison result is false Consequently R...

Page 211: ...ata Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R00C is ON the data of D0125 is compared with the data of D0020 and if the data of D0125 is greater than or equal to the data of D0020 R020 is turned ON If the data of D0125 is 40000 and that of D0020 is 40000 the comparison result is true Consequently R020 is turned ON D0125 40000 D0020 40000 R020 is ON If the data of D0125 is 15000 and that of D0020 is 20...

Page 212: ... Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R00C is ON the data of D0125 is compared with the data of D0030 and if the data of D0125 is equal to the data of D0030 R020 is turned ON If the data of D0125 is 35000 and that of D0020 is 35000 the comparison result is true Consequently R020 is turned ON D0125 35000 D0030 35000 R020 is ON If the data of D0125 is 1500 and that of D0020 is 4000 the comparison result i...

Page 213: ... Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Reference data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R00C is ON the data of D0125 is compared with the constant data 0 and if the data of D0125 is not 0 R020 is turned ON If the data of D0125 is 41000 the comparison result is true Consequently R020 is turned ON D0125 41000 Constant 0 R020 is ON If the data of D0125 is 0 the comparison result is false Consequently R020 is ...

Page 214: ... Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R00C is ON the data of D0125 is compared with the data of D0040 and if the data of D0125 is less than the data of D0040 R020 is turned ON If the data of D0125 is 43000 and that of D0040 is 45000 the comparison result is true Consequently R020 is turned ON D0125 43000 D0040 45000 R020 is ON If the data of D0125 is 50000 and that of D0040 is 50000 the comparison resul...

Page 215: ... Ö Ö Ö Ö Ö Ö Ö B Reference data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R00C is ON the data of D0125 is compared with the constant data 35000 and if the data of D0125 is less than or equal to 35000 R020 is turned ON If the data of D0125 is 35000 the comparison result is true Consequently R020 is turned ON D0125 35000 Constant 35000 R020 is ON If the data of D0125 is 0 the comparison result is false C...

Page 216: ...OFF ON Execution ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Device or register Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example 1 device set When R010 is ON R025 is set to ON The state of R025 is remained even if R010 comes OFF Example 2 register set When R010 is ON the data HFFFF is stored in RW20 R200 to R20F are set to ON The state of RW20 is remained even if R010 comes...

Page 217: ... OFF ON Execution ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Device or register Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example 1 device reset When R011 is ON R005 is reset to OFF The state of R025 is remained even if R011 comes OFF Example 2 register reset When R011 is ON the data 0 is stored in RW20 R200 to R20F are reset to OFF The state of RW20 is remained even if R01...

Page 218: ...e carry flag CF S050 is set to ON Execution condition Input Operation Output CF OFF No execution OFF ON Execution ON Set Operand No operand is required Example When R011 is changed from OFF to ON the carry flag S050 is set to ON CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 219: ...he carry flag CF S050 is reset to OFF Execution condition Input Operation Output CF OFF No execution OFF ON Execution ON Reset Operand No operand is required Example When R010 is changed from OFF to ON the carry flag S050 is reset to OFF CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 220: ... K A Start of table Ö Ö Ö Ö Ö Ö Ö n Table size 1 8 B Encode result Ö Ö Ö Ö Ö Ö Ö Ö Ö Example 2 5 32 bits starting with 0 bit of RW05 R050 to R06F are defined as the bit table When R010 is ON the most significant ON 1 bit position in the bit table is searched and the position is stored in D0010 The following figure shows an operation example RW06 RW05 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16...

Page 221: ...ecode source Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö n Table size 1 8 B Start of table Ö Ö Ö Ö Ö Ö Example 2 5 32 bits starting with 0 bit of RW05 R050 to R06F are defined as the bit table When R011 is ON the bit position designated by lower 5 bits of D0011 in the bit table is set to ON and all other bits in the table are reset to OFF The following figure shows an operation example F E D C B A 9 8 7 6 5 4 3 2 1 0 D00...

Page 222: ...W T C D I J K A Source Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Count data Ö Ö Ö Ö Ö Ö Example When R020 is ON the number of ON 1 bits of the register RW032 is counted and the result is stored in D0102 The following figure shows an operation example F E D C B A 9 8 7 6 5 4 3 2 1 0 RW032 0 0 1 0 0 1 1 1 0 1 0 1 1 0 0 0 Counts the number of ON 1 bits 7 F E D C B A 9 8 7 6 5 4 3 2 1 0 D0102 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

Page 223: ...ution is returned from the subroutine the output is turned ON Main program Subroutine CALL N 008 SUBR 008 RET Note The possible subroutine number is 0 to 15 T1 or 0 to 255 T1S Refer to the SUBR instruction FUN 137 In case of T1 nesting of subroutines is not allowed That is the CALL instruction cannot be used in a subroutine In case of T1S nesting of subroutines is possible up to 3 levels The CALL ...

Page 224: ...instruction Execution condition Input Operation Output Execution Operand No operand is required Example Main program Subroutine CALL N 008 SUBR 008 RET Note Refer to the SUBR instruction FUN 137 The RET instruction can be programmed only in the program type Subroutine The RET instruction must be connected directly to the left power rail CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ct...

Page 225: ...on condition Input Operation Output OFF No repetition OFF ON Repetition ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K n Repetition times Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö 1 32767 Example This segment is executed 30 times repeatedly in a scan When R005 is ON the program segment between FOR and NEXT is executed 30 times in a scan R005 FOR 30 NEXT Executed 30 times in a scan wh...

Page 226: ... the program segment between FOR and NEXT is executed 30 times in a scan In the above example the rung 3 is executed 30 times As a result the data of D0000 to D0029 are transferred to D0500 to D0529 Block transfer Note The FOR instruction must be used with a corresponding NEXT instruction one by one Nesting of the FOR NEXT loop is not allowed That is the FOR instruction cannot be used in a FOR NEX...

Page 227: ...utine number 8 is indicated Main program Subroutine CALL N 008 SUBR 008 RET Note The possible subroutine number is 0 to 15 T1 or 0 to 255 T1S Refer to the CALL instruction FUN 128 and the RET instruction FUN 129 The SUBR instruction can be programmed only in the program type Subroutine Nesting of subroutine is not allowed That is the CALL instruction cannot be used in a subroutine No other instruc...

Page 228: ...e In the above example the DI instruction disables the interrupt Then the EI instruction enables the interrupt again As a result the rung 2 instructions can be executed without interruption between each instructions Note Refer to the DI instruction FUN 141 If an interrupt factor is occurred during the interrupt disabled state the interrupt is kept waiting and it will be executed just after the EI ...

Page 229: ...ution OFF ON Execution 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 Note Refer to the EI instruction FUN 140 If an interrupt factor is occurred during the interrupt disabled state the interrupt is kept waiting and it will be executed just after the EI instruction is executed The DI instruction can be use...

Page 230: ... of the main program or subroutine Execution condition Input Operation Output Execution Operand No operand is required Example Note The IRET instruction can be used only in an interrupt program There is no specific instruction which indicates the beginning of the interrupt program An interrupt program Timer interrupt I O interrupt 1 2 3 or 4 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web w...

Page 231: ...ecution ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K n Extend time 1 100 Example When R020 is ON the scan time detection time is extended by 200 ms The operand n has no effect on the extended time It is fixed as 200 ms Normal detection point Extended point 0 50 100 150 200 250 300 ms Extended by 200 ms Scan WDT instruction execution Note As for the upper T ser...

Page 232: ...S T C XW YW RW SW T C D I J K n Size of step sequence 1 64 A Start device Ö Example When R020 is changed from OFF to ON R400 is set to ON and subsequent 9 devices R401 to R409 are reset to OFF This instruction initializes a series of step sequence 10 devices starting with R400 R409 R408 R407 R406 R405 R404 R403 R402 R401 R400 OFF OFF OFF OFF OFF OFF OFF OFF OFF ON 10 devices starting with R400 Not...

Page 233: ... Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Step device Ö Example The following sequential operation is performed When R020 is changed from OFF to ON R400 is set to ON and subsequent 9 devices R401 to R409 are reset to OFF When X004 comes ON R400 is reset to OFF and R401 is set to ON When both X005 and R022 are ON R401 is reset to OFF and R402 is set to ON R020 X004 X005 R022 R4...

Page 234: ... Note The STIZ STIN and STOT instructions are used together to configure the step sequence Two or more STOT instructions can be placed on one rung to perform simultaneous sequences Two or more STIN instructions can be placed on one rung in parallel or in series to perform loop or convergence of sequences Max 11 STIN instructions on one rung To perform the conditional branch sequence selection sepa...

Page 235: ...tion Output OFF OFF No execution A remains previous state Same ON Resets A to OFF as A ON OFF Sets A to ON ON Resets A to OFF Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Device Ö Ö Ö Example When X003 is ON R10E is set to ON When X004 is ON R10E is reset to OFF If both are ON R10E is reset to OFF An example timing diagram is shown below X003 X004 R10E Note For...

Page 236: ...F the counter register A is cleared to 0 Execution condition Enable input Operation Output OFF No operation A is cleared to 0 OFF ON Count value is not limit value 0 or 65535 OFF Count value is limit value and count input is ON ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Count value Ö Example X005 X006 R010 C005 C 005 Note The transitional contact is requir...

Page 237: ...onstant Index X Y R S T C XW YW RW SW T C D I J K A Start of table Ö Ö Ö Ö Ö Ö Ö Example When R020 is ON the clock calendar is set according to the data of D0050 to D0055 and the output is OFF R0031 is OFF If D0050 to D0055 contains invalid data the setting operation is not executed and the output is turned ON R0031 comes ON F 8 7 0 Allowable data range 2 digit BCD D0050 H00 Year H00 to H99 1990 2...

Page 238: ...ult Ö Ö Ö Ö Ö Ö Example When R020 is ON the date and time data recorded in D0050 to D0055 are subtracted from the current date and time of clock calendar and the result is stored in D0100 to D0105 In normal operation the output is OFF R0035 is OFF If D0050 to D0055 contains invalid data the operation is not executed and the output is turned ON R0035 comes ON F 0 F 0 H0098 D0050 H0097 D0100 H0000 Y...

Page 239: ...Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Top of input data Ö Ö Ö Ö Ö Ö Ö B Top of parameter Ö Ö Ö Ö Ö Ö Ö C Top of output data Ö Ö Ö Ö Ö Ö Input data Control parameter Output data A Process input value PVC B Proportional gain KP C Manipulation value MV A 1 A mode set value ASV B 1 Integral time TI C 1 Last error en 1 A 2 C mode set value CSV B 2 Derivative time TD C 2 L...

Page 240: ...1 T s Gap KP MVS H L DMV DSV DMMV Integral control Integral action control When MV is limited H L DMV and the integral value has same sign as limit over integral action is stopped Velocity Position conversion In Direct mode MV increases when PV is increased MVn MVn 1 DMvn In Reverse mode MV decreases when PV is increased MVn MVn 1 DMVn Gap dead band operation Error e SV PV GP GP Algorithm Digital ...

Page 241: ...E F C 8 4 0 Operation mode 00 Manual mode 01 Auto mode 10 Cascade mode 11 Reserve Tracking designation 0 No 1 Yes B Proportional gain KP 0 00 to 327 67 Data range 0 to 32767 B 1 Integral time TI 0 000 to 32 767 min DIn 0 if TI 0 Data range 0 to 32767 B 2 Derivative time TD 0 000 to 32 767 min Data range 0 to 32767 B 3 Gap dead band GP 0 00 to 10 00 Data range 0 to 1000 B 4 Auto mode initial set va...

Page 242: ... the instruction input is OFF Initializes the PID3 instruction Operation mode is set as specified by B 8 A 5 bit 0 1 B 8 bit 0 1 Auto mode SV is set as specified by B 4 ASV ISV Manual mode MV is set as current MV MMV MV Internal calculation data is initialized MV remains unchanged 2 When the instruction input is ON Executes PID calculation every n scan which is specified by B 12 The following oper...

Page 243: ...ailable Auto mode set value ASV is over written by current CSV automatically ASV CSV MV tracking This function is available in auto and cascade modes When the tracking designation A 5 bit 2 is ON tracking input TMV is directly output as MV Manipulation value upper lower limit MH ML is effective but differential limit DMV is not effective When the tracking designation is changed to OFF the operatio...

Page 244: ...on data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Upper limit Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö C Destination Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R030 is ON the upper limit operation is executed for the data of RW018 by the data of D1200 and the result is stored in RW021 When RW018 is 3000 and D1200 is 4000 3000 is stored in RW021 and R0040 is OFF When RW018 is 4500 and D1200 is 4000 the limit value 4000 is stored in RW021 an...

Page 245: ...ration data Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Lower limit Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö C Destination Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R031 is ON the lower limit operation is executed for the data of RW019 by the data of D1220 and the result is stored in RW022 When RW019 is 1000 and D1220 is 1800 1000 is stored in RW022 and R0041 is OFF When RW019 is 800 and D1220 is 1200 the limit value 1200 is stored in RW022...

Page 246: ... of table Ö Ö Ö Ö Ö Ö Ö n Table size 1 64 B Result Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R010 is ON the maximum value is found from the register table D0200 to D0209 10 words and the maximum value is stored in D0500 and the pointer is stored in D0501 Pointer D0200 100 0 D0201 10000 1 D0202 1000 2 D0203 10 3 D0204 0 4 D0205 200 5 D0206 300 6 D0207 20000 7 D0500 20000 Maximum value D0208 30 8 D0501 7 Point...

Page 247: ...tart of table Ö Ö Ö Ö Ö Ö Ö n Table size 1 64 B Result Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R011 is ON the minimum value is found from the register table D0200 to D0209 10 words and the minimum value is stored in D0510 and the pointer is stored in D0511 Pointer D0200 100 0 D0201 10000 1 D0202 1000 2 D0510 1000 Minimum value D0203 10 3 D0511 2 Pointer D0204 0 4 D0205 200 5 D0206 300 6 D0207 20000 7 D0208...

Page 248: ... execution OFF ON Execution ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Start of table Ö Ö Ö Ö Ö Ö Ö n Table size 1 64 B Result Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R012 is ON the average value of the data stored in the register table D0200 to D0209 10 words and the average value is stored in D0520 D0200 100 D0201 10000 D0202 1000 D0203 10 D0204 0 D0520 2900 Aver...

Page 249: ... Execution ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Input value x Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö n Parameter size 1 32 B Start of parameters Ö Ö Ö Ö Ö Ö Ö C Function value f x Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R010 is ON the FG instruction finds the function value f x for x XW004 and stores the result in D0100 The function f x is defined by 2 4 8 parameters stored i...

Page 250: ... the x parameters should be x1 x2 xi xn In the above example the data of D0600 to D0603 should be D0600 D0601 D0602 D0603 If x is smaller than x1 y1 is given as f x In this example D0604 data 1800 is stored in D0100 if XW04 is smaller than D0600 2000 If x is greater than xn yn is given as f x In this example D0607 data 1800 is stored in D0100 if XW04 is greater than D0603 2000 The valid data range...

Page 251: ... Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Source Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Destination Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When X006 is ON the absolute value of RW38 is stored in D0121 For example if RW38 is 12000 the absolute value 12000 is stored in D0121 Note The data range of A is 32768 to 32767 If the data of A is 32768 32767 is stored in B 32767 12000 0 32767 12000 32767 D012...

Page 252: ...n Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When X007 is ON the 2 s complement value sign inverted data of RW39 is stored in D0122 For example if RW38 is 4660 the 2 s complement value 4660 is stored in D0122 2 s complement data is calculated as follows F E D C B A 9 8 7 6 5 4 3 2 1 0 RW39 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 4660 1 1 1 0 1 1 0 1 1 1 0 0 1 0 1 1 4661 D0122 1 1 1 0 1 1 0 1 1 1 0 0 1 1 0 0 4660 Note The ...

Page 253: ... Index X Y R S T C XW YW RW SW T C D I J K A Source Ö Ö Ö Ö Ö Ö Ö Ö B Destination Ö Ö Ö Ö Ö Ö Example When X007 is ON the 2 s complement value sign inverted data of double word register RW41 RW40 is stored in double word register D0151 D0150 For example if RW41 RW40 is 1234567890 the 2 s complement value 1234567890 is stored in D0151 D0150 Note The data range of A 1 A is 2147483648 to 2147483647 I...

Page 254: ... Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö B Destination Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When X000 is ON the lower 4 bits data of RW15 is converted into the 7 segment code and the result is stored in lower 8 bits of RW10 0 is stored in upper 8 bits of RW10 For example if RW15 is H0009 the corresponding 7 segment code H006F is stored in RW10 F E D C B A 9 8 7 6 5 4 3 2 1 0 RW15 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 H0009 Upper 12 b...

Page 255: ...1 0 1 1 3 0011 0 1 0 0 1 1 1 1 4 0100 0 1 1 0 0 1 1 0 5 0101 0 1 1 0 1 1 0 1 6 0110 0 1 1 1 1 1 0 1 7 0111 0 0 1 0 0 1 1 1 8 1000 0 1 1 1 1 1 1 1 9 1001 0 1 1 0 1 1 1 1 A 1010 0 1 1 1 0 1 1 1 B 1011 0 1 1 1 1 1 0 0 C 1100 0 0 1 1 1 0 0 1 D 1101 0 1 0 1 1 1 1 0 E 1110 0 1 1 1 1 0 0 1 F 1111 0 1 1 1 0 0 0 1 B0 B5 B1 B6 B4 B2 B3 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation...

Page 256: ... When R030 is ON the characters ABCDEFGHIJKLMN is converted into the ASCII codes and the result is stored in 8 registers starting with lower 8 bits byte of D0200 D0200 to D0207 High Low F 8 7 0 D0200 H42 B H41 A D0201 H44 D H43 C D0202 H46 F H45 E D0203 H48 H H47 G D0204 H4A J H49 I D0205 H4C L H4B K D0206 H4E N H4D M D0207 Note Only the number of bytes converted are stored The rest are not change...

Page 257: ...cution ON BCD data error OFF Set Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Source BCD Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö H0000 H9999 B Destination Binary Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R017 is ON the BCD data of RW28 is converted into binary data and the result is stored in D0127 For example if RW28 is H1234 the binary data 1234 is stored in D0127 RW28 BCD to Binary D0127 ...

Page 258: ...ary data error OFF Set Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Source Binary Ö Ö Ö Ö Ö Ö Ö Ö Ö Ö 0 9999 B Destination BCD Ö Ö Ö Ö Ö Ö Ö Ö Ö Example When R019 is ON the data of D0211 is converted into 4 digit BCD and the result is stored in RW22 For example if D0211 is 5432 the BCD data H5432 is stored in RW22 D0211 Binary to BCD RW22 5432 H5432 Note If the...

Page 259: ...ut circuit For YW register writes the data into corresponding output circuit Execution condition Input Operation Output OFF No execution OFF ON Execution ON Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K n Register size 1 32 A Start of registers Ö Ö Example When R010 is ON the 4 registers starting with XW00 XW00 to YW03 are updated immediately XW00 Input XW01 circu...

Page 260: ...D T1 40 X000 X007 Y020 Y027 Not effective Effective T1 40S X000 X007 Y020 Y027 Not effective 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 CTi Automation Phone 800 894 04...

Page 261: ...ion ON When error is occurred see Note ON Set Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Source parameter Ö Ö Ö Ö Ö Ö Ö B Transfer size Ö Ö Ö Ö Ö Ö Ö C Destination parameter Ö Ö Ö Ö Ö Ö Parameters Source parameter Transfer size and status Destination parameter A Type B Transfer size C Type A 1 Leading address B 1 Status flag for RS 485 port C 1 Leading addres...

Page 262: ...OFF by user program 1 When the number of words transferred exceeds limit 2 When the source destination table of transfer is out of the valid range 3 When the transfer combination is invalid The EEPROM has a life limit for data writing into an address It is 100 000 times Pay attention not to exceed the limit EEPROM alarm flag S007 is not updated by this instruction Once data writing into the EEPROM...

Page 263: ...d after Execution status H0000 Normal complete H0001 Communication error parity error framing error H0002 Message length over more than 512 bytes H0003 Receive buffer over flow H0004 Receive time out from start character to the trailing code Baudrate Time out setting 300 600 1200 bps 30 seconds 2400 bps 15 seconds 4800 bps 7 seconds 9600 bps 3 seconds 19200 bps 1 5 seconds Message length 0 No rece...

Page 264: ...l complete H0001 During transmitting the message H0002 Communication busy H0003 During the reset operation H0004 Send time out from start character to the trailing code H0005 Send message length error no trailing code in the source table Baudrate Time out setting 300 600 1200 bps 30 seconds 2400 bps 15 seconds 4800 bps 7 seconds 9600 bps 3 seconds 19200 bps 1 5 seconds Note The XFER instruction is...

Page 265: ... or T1 40S Execution condition Input Operation Output ERF OFF No execution OFF ON Normal execution ON When error is occurred see Note ON Set Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Special module Ö Ö H0004 H0007 B Transfer parameter Ö Ö Ö Ö Ö Ö Ö C Destination Ö Ö Ö Ö Ö Ö Example When R010 is ON the buffer memory data of the size indicated by RW51 starting...

Page 266: ...uted 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 1 When the operand A is other than a valid constant see above or XW YW register 2 When no answer error occurs with the designated special module 3 When the number of words transferred exceeds 256 words 4 When the sour...

Page 267: ...S Execution condition Input Operation Output ERF OFF No execution OFF ON Normal execution ON When error is occurred see Note ON Set Operand Name Device Register Constant Index X Y R S T C XW YW RW SW T C D I J K A Source Ö Ö Ö Ö Ö Ö Ö B Transfer parameter Ö Ö Ö Ö Ö Ö Ö C Special module Ö Ö H0004 H0007 Example When R011 is ON the register data of the size indicated by RW56 starting with D0200 are t...

Page 268: ...uted 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 1 When the operand C is other than a valid constant see above or XW YW register 2 When no answer error occurs with the designated special module 3 When the number of words transferred exceeds 256 words 4 When the sour...

Page 269: ... 268 8 2 Variable input filter constant 272 8 3 High speed counter 273 8 4 Interrupt input function 280 8 5 Analog setting function 282 8 6 Pulse output function 283 8 7 PWM output function 285 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 270: ...Counts the 2 phase pulses whose phases are shifted 90 each other Counts up when phase A precedes and counts down when phase B precedes The countable pulse rate is up to 5 kHz Phase A X000 Phase B X001 Reset X002 Interrupt input function Immediately activates the corresponding I O interrupt program when the interrupt input is changed from OFF to ON or ON to OFF 2 points of interrupt input are avail...

Page 271: ...3 2 1 0 SW16 0 0 0 0 0 Bit 0 HSC and INT master flag 0 No use 1 Use Bit 1 HSC INT selection 0 INT 1 HSC Bits 2 and 3 INT No 1 mode 00 No use Reserve 01 Rising OFF to ON 10 Falling ON to OFF 11 No use Reserve Bits 6 and 7 INT No 2 mode 00 No use Reserve 01 Rising OFF to ON 10 Falling ON to OFF 11 No use Reserve Bits A and B HSC mode 00 Single phase up counter 01 Single phase speed counter 10 Quadra...

Page 272: ... use 1 Use Bit 1 P OUT PWM selection 0 PWM 1 P OUT Bit 2 PLS mode 0 CW CCW 1 Pulse Direction PLS DIR P OUT PWM operation error flag These are not user setting items Bit D PWM pulse width error 0 Normal 1 Error Bit E PWM ON duty setting error 0 Normal 1 Error Bit F Frequency setting error 0 Normal 1 Error CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiaut...

Page 273: ...4 3 2 1 0 Interrupt 1 only Rising OFF to ON 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 Falling ON to OFF 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 Interrupt 2 only Rising OFF to ON 0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 Falling ON to OFF 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1 Both interrupts No 1 Rising No 2 Rising 0 1 1 0 0 0 0 0 1 0 0 0 1 0 1 1 and 2 No 1 Rising No 2 Falling 0 1 1 0 0 0 0 1 0 0 0 0 1 0 1 No 1 Falling No 2 Rising 0 1 1 0 ...

Page 274: ... registers SW16 Function selection Refer to section 8 1 SW17 Input filter constant value F E D C B A 9 8 7 6 5 4 3 2 1 0 No use set to 0 Setting value 0 to 15 Operation Input signal Internal logic Scan cycle X device T Input filter constant 0 to 15 ms Sample program This program sets the input filter constant to 3 ms NOTE For the AC input types this function works as extended delay time On delay t...

Page 275: ...The count value range is H0000 to HFFFF 16 bit data Hardware condition Count input X000 and X001 ON OFF pulse width 100 ms or more max 5 kHz Reset input X002 and X003 ON OFF duration 2 ms or more Related registers SW16 Function selection Refer to section 8 1 Function Register device Remarks Channel 1 Channel 2 Count input X000 X001 Note Reset input X002 X003 Set value SW18 SW20 Data range H0000 to...

Page 276: ...the data 2000 is written into the set value register SW18 While R010 is ON the soft gate S240 and the interrupt enable flag S241 are set to ON to enable the counter operation The counter works as a ring counter with the set value 2000 The count value is stored in SW22 When R010 is OFF and R011 comes ON the count value is preset to the data of D0100 Set value CTi Automation Phone 800 894 0412 Fax 2...

Page 277: ... X001 ON OFF pulse width 100 ms or more max 5 kHz Related registers SW16 Function selection Refer to section 8 1 Function Register device Remarks Channel 1 Channel 2 Count input X000 X001 Note 2 Sampling time SW18 SW20 Data range 1 to 100 Note 1 Hold value SW22 SW23 Data range H0000 to HFFFF Soft gate S240 S248 Operation is enabled when ON Note 1 The setting data range of the sampling time is 1 to...

Page 278: ...6 As a result the single phase speed counter channel 1 only is selected The sampling time is set as 100 ms because 10 is written in SW18 While R010 is ON the soft gate S240 is set to ON and the speed counter works The hold value is stored in SW22 DT DT DT DT DT DT e c d b a e d c b a CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 279: ...t value can be changed by writing the data into the comparison value 1 or 2 register and setting the count preset flag 1 or 2 to ON The comparison value 1 and 2 can be changed even when the soft gate is ON The count value range is 2147483648 to 2147483647 32 bit data Hardware condition Phase A and phase B X000 and X001 ON OFF pulse width 100 ms or more max 5 kHz Reset input X002 ON OFF duration 2 ...

Page 280: ...t program 1 Comparison value 2 I O interrupt program 2 Operation Up count Down count Reset input Soft gate Count value Interrupt 2147483647 Comparison value 1 Comparison value 2 2147483648 2 1 1 1 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 281: ...19 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 The count value is stored in SW23 SW22 When R010 is OFF and R011 comes ON the count value is preset to the data of D0101 D0100 CTi Automation Phone 800 894 0412 Fax 208 368 04...

Page 282: ... the interrupt input 1 and the I O interrupt program 4 is corresponding to the interrupt input 2 Hardware condition Interrupt input X002 and X003 ON OFF pulse width 100 ms or more Related registers SW16 Function selection Refer to section 8 1 Interrupt input 1 X002 Interrupt input 2 X003 Interrupt assignment Interrupt input 1 I O interrupt program 3 Interrupt input 2 I O interrupt program 4 Operat...

Page 283: ... 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 NOTE Even if the Direct I O instruction is used in the interrupt program the corresponding input state X002 or X003 cannot be confirmed Because the interrupt is generated before internal updating of the input states CTi Automation Phone 8...

Page 284: ...ets or any parameters for function instructions Related registers Function Register Remarks Adjuster V0 SW30 Data range 0 to 1000 Adjuster V1 SW31 Operation V0 V1 SW30 0 to 1000 SW31 0 to 1000 Sample program The above example is a simple flicker circuit of Y020 In this example the ON OFF interval of Y020 can be controlled by the adjuster V0 Decrease Increase Decrease Increase CTi Automation Phone ...

Page 285: ...ng the frequency setting value However the pulse direction the sign of the frequency setting cannot be changed when the pulse enable flag is ON This function can be used to control the speed of a stepping motor etc Related registers SW26 Function selection Refer to section 8 1 Function Register Remarks CW CCW PLS DIR device CW pulse PLS Y020 CCW pulse DIR Y021 Pulse enable flag S270 Output is enab...

Page 286: ... selected When R000 is ON the pulse output is started with the frequency designated by D0100 If an invalid frequency is designated the frequency setting error flag S26F comes ON and the pulse enable flag S270 is turned OFF Then the pulse output is stopped 300 1000 300 1000 100 100 1kHz 300Hz 100Hz 300Hz 100Hz 1kHz CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email i...

Page 287: ...h error flag comes ON PWM output operation is continued but the duty cycle is not guaranteed Frequency Cycle time Available ON duty 50 100 Hz 20 10 ms 0 to 100 200 Hz 5 ms 0 2 to 98 100 1000 Hz 1 ms 0 10 to 90 100 5000 Hz 200 ms 0 50 100 Related registers SW26 Function selection Refer to section 8 1 Function Register device Remarks PWM pulse Y020 Pulse enable flag S270 Output is enabled when ON Fr...

Page 288: ...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 Then the PWM output is stopped 70 60 70 30 20 10 70 60 70 30 20 10 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautoma...

Page 289: ...n 9 Maintenance and Checks 9 1 Precautions during operation 288 9 2 Daily checks 289 9 3 Periodic checks 290 9 4 Maintenance parts 291 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 290: ...e T1 T1S is in operation even if the terminals are not live parts This may cause malfunction of the T1 T1S owing to static electricity 4 Do not touch the expansion connector pins while the T1 T1S is in operation This may cause malfunction of the T1 T1S owing to static electricity Fix the expansion connector cover if the expansion connector is not used 5 Do not insert your finger into the option ca...

Page 291: ...ng input is ON Check that the input terminal screw is not loose Check that the input terminal block is not loose Check that the input voltage is within the specified range Output LEDs Lit when the output is ON and the corresponding load should operate Check that the output terminal screw is not loose Check that the output terminal block is not loose Check that the output voltage is within the spec...

Page 292: ...not damaged Check that the I O module on the expansion rack is inserted securely if any Not loose no play Input output Measure the input output voltage at the T1 T1S s terminals The voltage must be within the specified range Check the input status LEDs The LED must light normally Check the output status LEDs The LED must light normally Check that the terminal block is installed securely Not loose ...

Page 293: ... saved on a floppy disk etc are the same No compare error 9 4 Maintenance parts To recover from trouble quickly it is recommended to keep the following spare parts Item Quantity Remarks T1 T1S basic unit 1 Prepare at least one to minimize the down time of the controlled system Programming tool 1 Useful for the troubleshooting procedure Master program As required Saved on a floppy disk etc Expansio...

Page 294: ...292 T1 T1S User s Manual CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 295: ... and Function 293 Section 10 Troubleshooting 10 1 Troubleshooting procedure 294 10 2 Self diagnostic items 300 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 296: ... operation Follow the procedure in 10 1 5 Output check Also refer to section 10 1 6 for environmental problem CAUTION 1 Pay special attention during the troubleshooting to minimize the risk of electrical shock 2 Turn off power immediately if the T1 T1S or related equipment is emitting smoke or odor Operation under such situation can cause fire or electrical shock 3 Turn off power before removing o...

Page 297: ...Vdc service power can be over load Still unlit Remove the option cards and If the PWR LED is still unlit the T1 T1S the expansion cable basic unit may be faulty Replace the unit Lit Confirm the internal 5 Vdc The 5 Vdc capacity for option cards and current consumption if expansion rack unit is 1 A option card expansion rack If the HP911A is connected it requires or expansion unit is used 0 2 A and...

Page 298: ...unication between the T1 T1S and the programming tool is not possible the T1 T1S may be faulty 10 1 3 Program check Check the user program based on the following points if it is running but the operation does not work as intended 1 Whether duplicated coils are not programmed 2 Whether a coil device and a destination of a function instruction are not overlapping 3 Whether the ON OFF duration of an ...

Page 299: ...rce designation is forced or not then execute the EEPROM write operation Not forced Check whether the I O If identical the T1 T1S s internal circuit or allocation table is identical to the input circuit may be faulty the actual I O configuration Not identical Execute the automatic I O If it becomes identical execute the allocation and check whether EEPROM write operation the I O allocation table i...

Page 300: ... load connections If it is normal check the specification of the load also check environmental factors Check whether the I O If identical the T1 T1S s internal circuit or allocation table is identical to the output circuit may be faulty the actual I O configuration Not identical Execute the automatic I O If it becomes identical execute the allocation and check whether EEPROM write operation the I ...

Page 301: ...ng potentials may cause the problem depending on the power supply system or the grounding system Check the operation in accordance with the precautions in section 4 For some cases isolation from the ground may lead to the stable operation 3 If an improper operation occurs synchronously with the operation of machinery The vibration of the equipment may cause the problem Check that the installation ...

Page 302: ...Count Info 1 Info 2 Info 3 Mode 1 98 02 21 16 48 01 I O no answer 3 00 04 RUN Down 2 98 02 21 15 55 26 System power on 1 INIT 3 98 02 21 12 03 34 System power off 1 RUN 4 98 01 15 09 27 12 System power on 1 INIT 5 98 01 14 19 11 43 System power off 1 HALT 6 98 01 14 10 39 11 No END IRET error 3 M 001 H0024 HALT Down In the event history table No 1 message indicates the latest event recorded Each c...

Page 303: ...M write operation again EEPROM warning Number of excess writing S007 The number of times of writing into EEPROM has exceeded the life 100 000 times No error down Replace the unit because the data reliability of the EEPROM will decrease I O bus error Unit No Data S005 S020 An abnormality has been detected in I O bus checking Error down Check the expansion cable connection and I O module mounting st...

Page 304: ...rect the program An abnormality is detected in the program management information Error down Reload the program and execute EEPROM write operation again Loop nesting error Program type block No Address in the block A FOR NEXT loop is programmed inside other FOR NEXT loop Error down Correct the program Memory full The program exceeds the executable memory capacity Error down Reduce the program step...

Page 305: ...r MCS MCR segment Error down Correct the program A JCS JCR is programmed inside other JCS JCR segment Error down Correct the program Peripheral LSI err Error code S004 S016 CPU hardware error has been detected in the power up initialization Error down and programming tool cannot be connected Replace the unit if the error remains after power OFF and ON again Program BCC error Illegal BCC S006 S030 ...

Page 306: ...ystem program in the ROM Error down and programming tool cannot be connected Replace the unit if the error remains after power OFF and ON again System power off Power OFF no error System power on Power ON no error Sub r nesting err Program type block No Address in the block Sub r No T1 CALL instruction is programmed in a subroutine program Error down Correct the program T1S The nesting of subrouti...

Page 307: ...sic Hardware and Function 305 Appendix A 1 List of models and types 306 A 2 Instruction index 309 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ctiautomation net ...

Page 308: ...BS 16 points 24 Vdc output DO116 TDO116 BS 8 points 24 Vdc input and 8 points 24 Vdc output DD116 TDD116 BS 2 channels analog input 0 5 V 0 20 mA AD121 TAD121 BS 2 channels analog input 10 V AD131 TAD131 BS 2 channels analog output 0 20 mA DA121 TDA121 BS 2 channels analog output 10 V DA131 TDA131 BS TOSLINE F10 remote station FR112 TFR112 BS Expansion unit Description Type code Part number 16 poi...

Page 309: ... analog input resolution 0 10 V AI31 EX10 MAI31 12 bit 4 20 mA 1 5 V AI22 EX10 MAI22 resolution 10 V AI32 EX10 MAI32 2 channel analog 8 bit resolution 4 20 mA 1 5 V 0 5 V 0 10 V AO31 EX10 MAO31 output 12 bit 4 20 mA 1 5 V AO22 EX10 MAO22 resolution 10 V AO32 EX10 MAO32 1 channel pulse input 5 12 V 100 kHz max PI21 EX10 MPI21 1 axis position control pulse output 200 kHz max MC11 EX10 MMC11 Communic...

Page 310: ...for computer link with 2 m cable PT16S TPT16S AS Option card I O connector for DI116 DO116 DD116 soldering type PT15S TPT15S AS Option card I O connector for DI116 DO116 DD116 flat cable type PT15F TPT15F AS Expansion rack cable 0 15 m spare parts CS1R2 TCS1R2 CS Empty slot cover for expansion rack EX10 ABP1 CTi Automation Phone 800 894 0412 Fax 208 368 0415 Web www ctiautomation net Email info ct...

Page 311: ...e 157 Maximum value 244 Data transfer 154 Minimum value 245 Decode 219 Moving average 177 Decrement 173 Multiplexer 194 Demultiplexer 195 Multiplication 163 Device register reset 215 n bit rotate left 193 Device register set 214 n bit rotate right 192 Digital filter 178 n bit shift left 185 Direct I O 257 n bit shift right 184 Disable interrupt 227 NC contact 136 Division 164 Negative pulse coil 1...

Page 312: ... Table invert transfer 160 Table transfer 159 Transitional contact falling 138 Transitional contact rising 137 Unsigned division 170 Unsigned double single division 171 Unsigned equal 210 Unsigned greater than 208 Unsigned greater than or equal 209 Unsigned less than 212 Unsigned less than or equal 213 Unsigned multiplication 169 Unsigned not equal 211 Up down counter 234 Upper limit 242 Watchdog ...

Page 313: ... 156 ATOH 180 OR 175 AVE 246 PID3 237 BC 220 READ 263 BCD 256 RET 222 BIN 255 RST 215 CALL 221 RSTC 217 CLDN 235 RTL 193 CLDS 236 RTL1 191 CNT 150 RTR 192 D 165 RTR1 190 D 166 SET 214 D 206 SETC 216 D 207 SHL 185 D 205 SHL1 183 D 204 SHR 184 D 202 SHR1 182 D 203 SR 186 DEC 219 SS 149 DFL 178 STIN 231 DI 227 STIZ 230 DIV 171 STOT 232 DMOV 155 SUBR 225 DNEG 251 TEST 181 DPX 195 TINZ 158 DSR 188 TMOV...

Reviews: