Home
Table of Contents
Contents
1. 1 Re amp 1l d L L F CS d Mi 2 L A i d 4XAC SOG i EUR SU P JE Input X1 X2 X3 X4 L N AC100 240v ee A AQ AL E d Sy E paca Es pg GEL Din Rail SG2 8ER A Output 4 x Relay 8A rs c uh 39999 P S N A KR NE NC L LT vU CU MI Output 4 x Relay 8A IBI Y4 Yo Kz d T 1 EE lt I 995 09 99 O99 C 1 990000 Ly 7J 2J Ly S Ly Q1 Q2 Q3 Q4 Y3 Y4 ke SE EE SES EE K l Chapter 2 Installation It is recommended to apply a DIN rail end clamp to hold the SG2 in place TYT H 12 18 14 15 16 A EN S adim FUN S 758 os N f E E f X FK S STN EN B3 N P A KCYXC CC YCOC 0 4x AC O00 Mounting Clip S II pet ht NA Ku Woo Woo Cool AL A lt NL Nit OE NA Ae caf Y DC24V Input 8 x DC A1 A2 0 10V Jc EE p EA TEC TEC 1 Be oS ds d Run SG2 8ER A SG2 12HR D Output 4 x Relay 8A Nl ND el VL Output 4 x Relay 8A ESNE SAC NO
2. Heng gen Veris Status Stop ONLINE Model SG220HROA rg Chapter 3 Program Tools Memory Cartridge sold separately The optional PM05 memory cartridge is used to easily transfer programs from one smart relay to another The PM05 memory cartridge plugs into the same connector as the programming cable see procedure below 1 Remove the plastic connector cover from SG2 using a flathead screwdriver as shown in the figure above 2 Insert the PM05 memory cartridge onto the connector as shown above 3 From the display keypad on the face of the SC2 smart relay select either WRITE to PM05 or READ from PM05 to transfer the program to or from the smart relay to the PM05 memory cartridge 4 K type and C type electrify the product the program in PMOS will automatically download and executed 5 Program in different types are not compatible here are the regulations A 1 10 12 point type program available in 20 point type A 2 20 point type program unavailable in 10 12 point type B 1 AC type program available in DC type B 2 DC type program unavailable in AC type C 1 Relay type program available in Transistor type C 2 Transistor type program unavailable in Relay type D 1 Not V type program available V type D 2 V type program unavailable Not V type Chapter 3 Program Tools LCD Display and Keypad Keypad
3. Chapter 5 FBD Programming NAND Logic Diagram FBD LADDER i01 I1014NAND gt T 1 1024 FByy Ure ne 4 103 RU Not I01 And I02 And 103 Note The input terminal is NOP which is equivalent to Hi NAND EDGE Logic Diagram FBD LADDER i01 Jr dues 1014NAND gt e 1024 L kp yy KA I103 4 103 Not IO1 And I02 And 103 And d Note The input terminal is NOP which is equivalent to Lo OR Logic Diagram FBD LADDER I01 JL EG 102 JE 103 I01 or 102 or 103 Note The input terminal is NOP which is equivalent to Lo NOR Logic Diagram FBD LADDER db o Not IO1 or 102 or 103 Note The input terminal is NOP which is equivalent to Lo Chapter 5 FBD Programming XOR Logic Diagram FBD LADDER I01 102 He 101 102 4 4 I01 Xor I02 Note The input terminal is NOP which is equivalent to Lo SH Logic Diagram FBD LADDER 101 XX as sene D 102 XX z O O holding _ oO 1 0 In a u 10 gt Note The input terminal is NOP which is equivalent to Lo NOT Logic Diagram FBD LADDER Not I01 Note The input terminal is NOP which is equivalent to Hi Pulse Logic Diagram FBD LADDER 101 XX B Note The input terminal is NOP which is equivalent to Lo Chapter 5 FBD Programming Function Block 3 Function Type
4. V00000000 RS485 RS485 RS485 The power supply and the I O supply should share the same power source Only short circuit the first and the last module When I O link the net can connect 8 products in max ID 0 7 When Remote O is available it only can connect 2 products max Master amp Slave LA quick blowing fuse circuit breaker or circuit protector Surge absorber 36V DC Surge absorber 400V AC Fuse circuit breaker or circuit protector Inductive load Only short circuit the first product and the last product Comply with standard EIA RS 485 Chapter 3 Program Tools Chapter 3 Program Tools PC Programming Software SG2 Client The SG2 Client programming software provides two edit modes Ladder Logic and Function Block Diagram FBD The SG2 Client software includes the following features 1 Easy and convenient program creation and editing 2 Programs can be saved on a computer for archiving and reuse Programs can also be uploaded directly from an SG2 and saved or edited 3 Enables users to print programs for reference and review 4 The Simulation Mode allows users to run and test their program before it is loaded to the controller 5 Real time communication allows the user to monitor and force I O on the SG2 smart relay operation during RUN mode Installing the Software Install the SG2 Client Software from CD or from the free internet download at
5. VO o 9 0 19008000 Edit Contact Coil x vr pr Jr je sx jk ai Select Coil No Function Mode v 0 4 Gite Interval Month action mode ENO Year UE el EE o os Current value 07 09 22 Freset value 05 Z3 on 12 12 OFF Direction Ser Reset Input Contact Contact sl SR 07 08 ODEL 05 23 FRI 12412 Year Month Day 2000 0001 2007 05 23 e 5 20081 2822 2 AJO A3 Time 0 00 D UU D UU 0 00 ENABLE En Output Chapter 4 Relay Ladder Logic Programming 69 RTC Mode 4 30 second adjustment The 30 second adjustment Mode 4 allows the Rx coil to activate based on week hour minute and second The configuration dialog below allows for selection of week hour minute and second for the Rx coil to activate ON and 30 second adjustment then Rx OFF Edit Contact Coil x Symbol Description Setting RTC adjustment week Select Coil NO Output Type RTC mode 4 RTC present hour Ge Reget E P puse Be DE m 0 Set f P RTC present minute Function Setting RTC adjustment hour Mode 4 sl 0 5 Setting RTC adjustment minute 30s modify mode 90 0 O Setting RTC adjustment second RTC Code R1 RF total 15 group Example1 preset minute lt 30s SH DD GO di 2 Example2 preset minute gt 30s Weekion Jm Current value 13 41 28
6. T1 TF Output terminal 3 Enable reset realy ET ON OEP t target value set in the timer Chapter 4 Relay Ladder Logic Programming Timer Mode 4 OFF Delay Mode 4 Timer is an OFF Delay with reset that will time up to a fixed preset value and stop timing when the current time is equal to the preset value Additionally the current time value is non retentive and will reset to zero on a loss of power to the smart relay In the example below the timer reset input is Input 11 Also in the example below the timer status bit T1 will turn ON only after its rung transitions from true to false Timer status bit T1 will turn OFF when the current time value reaches 10 seconds Edit Contact Coil Output Type fe keset C Set OP Function Mode 4 v EE Rae GE 4 Off delay timer mode 2 c Le Time Base ji sec sl Current value 0000 Preset value 0010 Preset type k T ze enable reset relay Tree operating lat Enable reset relay present value present value 0 Timing enable relay OFF ON OFF Time up TI TF OFF ON OFF output terminal i enable reset relay OFF t target value set in timer Chapter 4 Relay Ladder Logic Programming Timer Mode 5 FLASH without Reset Mode 5 Timer is a Flash timer without reset that will time up to a fixed preset value then change the state of its status bit when the current time is equal to the preset value Additionally the current tim
7. AC MN Input E leien LEC f a Output 4x Relay 8A Ni l A Q1 Q2 Q3 Q4 FO Chapter 2 Installation PE 11 Vi C1 PE S N OS JE JC JED 4 J em kl No NY RS P A DC 24v OO N lt gt RUN IQ SG2 4Al Input 4 x 0 10V 0 20mA M EI CC l2 V2 C2 PE ST Qo f N N Ui NON JK JR NE JN LJ NNN Nen Nem Nez I3 V3 C3 14 V4 C4 j r ai m d 3 N N d N N N N N N n 12 I3 14 15 16 I7 18 I9 IA IB IC 20200 2000 2222000 MEC Q1 Output 8 x Relay 8A 2 CT J g Q2 Q3 Q4 Q5 Q6 Q7 Q8 Output Transistor Chapter 2 Installation OUTPUT 4x TR 0 5A OUTPUT 8x TR 0 5A DV 25 Way Qi V p v Ge tar tag tag Tou 070 tag a3 Tou tas ae To tas LV i A INL EU Data Link OR Remote UO Link 4 y 0 AL AZ AZ A4 S A B AT AZ AZ A4 S AB LU ALT AZ ABZ A4 S AB 20000000 20000000
8. Most SG2 CPU units include the built in LCD Display and Keypad The keypad and display are most often used for changing timer counter set points controller mode changes Run Stop uploading downloading to the PMO5 memory cartridge and updating the RTC Real Time Clock Calendar Although logic programming can be performed from the keypad and display it is highly recommended to only perform logic changes using the SG2 Client software Below is an overview of the basic keypad and display functions AX N AA SS NZ HAS JM S Select Used to select the available memory and instruction types for editing Holding the Select button will display all H HMI Text messages on the LCD OK Used to accept the selection displayed of an instruction or function It is also used to select any of the Main Menu options on the LCD Note Press the SEL and OK simultaneously to insert a rung above the current active cursor position Escape Used to exit a selected display screen and go to the previous screen When in a ladder display screen press the ESC to display the main menu Delete Used to delete an instruction or rung from the ladder program The 4 navigation buttons T I are used to move the cursor throughout the functions of the SG2 display or active program The 4 buttons also can be set programmable input coils Z1 Z4 1 Z1 Z2 1 Z3 gt Z4 LCD Display Main Menu
9. Procedure 2 16 Press SEL Begin to modify Chapter 3 Program Tools Column Column Chapter 3 Program Tools Procedure 2 16A 1 AES A S 6 7 8 Column Press SEL Line I r 4 1 2 21 Begin to modify 3 3 33 3 FT 1 Procedure 2 16B 11 1 2 3 14 5 16 17 18 i Column Press SEL Procedure 2 16C Press SEL Procedure 2 17 Press 1 for 5 times Press SEL 1 J Press SEL gt to move the cursor to digital location Procedure 2 19 Press 1 for 3 times Press SEL T J to change TL to 4 Procedure 2 20 Press OK save the input data Procedure 2 21 61748 1 Column Press 1 T the cursor to preset action 3 FT 1 d value area to repeat the step 2 1 Chapter 3 Program Tools Column Move the cursor to position 2 to repeat the 2 8 step 2 22A il 12 3 14 5 16417418 column Press TP line 1 r 4 21A 1 4 Move the cursor to 2 or repeat the 3 A B I FG next step Select A1 A8 4 step 2 22B Press SEL twice Move the cursor to 2 to repeat the above step Select A3 V1 T1 C1 A1 Move the cursor to 2 to repeat the above step Select T1 TF C1 CF A1 A8 V1 V8 Step 2 22D column Press OK Save the present data Move the cursor to position 4 to repeat the step 2 12 Continue to input Function Block Next Function Blo
10. TE M1 Chapter 4 Relay Ladder Logic Programming Counter Mode 1 Fixed Count Non Retentive Mode 1 Counter will count up to a fixed preset value and stop counting when the current count is equal to the preset value Additionally the current count value is non retentive and will reset to zero on a loss of power to the smart relay In the example below the counter will stop counting when it reaches the preset value of 20 Counter status bit C1 will be ON when the current value is 20 Edit Contact Coil l X c o pr de Ise Jr Al Select Coil No Output Type 4 c i 1 9 B C D E F Function 3 5 Mode fi v 1 8 Counter without overtaking and without power down retain current value Current value 000000 Preset value 000020 GI Reset C Ser C P 1 Preset type u v M14 000000 godz Fel Direction Set Reset Input Contact m 1 Contact 1 v o semen 20 OFF ON OFF ON OFF OFF ON OFF ON EE mun 4d LI LIL LI ZI DI le a a en ILL reel 4 iQIiQ Q z g 2 2g z g 119 19 20 201 20 g 20 20 20 QN Chapter 4 Relay Ladder Logic Programming Counter Mode 2 Continuous Count Non Retentive Mode 2 Counter will count up to a fixed preset value and continue counting after the preset value Additionally the current count value is non retentive and will reset to zero on a loss of power to the smart relay In the example below the co
11. 240VAC 90ms 24VAC 3ms 120VAC 50ms 120VAC 50ms PNP 3 wire device only Inverse voltage protection required Analog Inputs Resolution Voltage Range acceptable Input Signal OFF Threshold Input Signal ON Threshold Isolation Short circuit protection Total number available Current rating HP rating Maximum Load Basic unit 10 bit Expansion unit 12bit Basic unit Analog input 0 10VDC voltage 24VDC when used as discrete input Expansion unit Analog input 0 10VDC voltage or 0 20mA current lt 5VDC as 24VDC discreet input None gt 9 8VDC as 24VDC discreet input Basic unit A1 A4 Expansion unit A5 A8 Relay Outputs Ag Alloy 8A 1 3HP 2120V 1 2HP 2250V Resistive 8A point Inductive 4A point 10ms normal condition Life expectancy rated load 100k operations Minimum load 16 7mA Transistor Outputs PWM max output frequency 0 5kHz 1ms on 1ms off otandard max output frequency 100Hz Voltage specification 10 28 8VDC urrent capacity 1A Resistive 0 5A point Inductive 0 3A point C Product Specifications Chapter 2 Installation Display amp M Part Input Power
12. Counters M Auxiliary Coils and Z keypad input set and the LCD Backlight Gain 17999 Offset 50 50 RTC Set l Gain 17838 Time Set Week WE Hour Minute 13 43 Year Month Day 07 Jos Jos Gain 17999 Offset 50 50 Online Monitoring Editing Offset 50 50 Gain 17999 Offset 50 50 Chapter 3 Program Tools Gain 17999 Offset 50 50 Gain 17899 Offset 50 50 Gain 1999 Offset 50 50 Gain 17999 Offset 50 50 zen The SG2 Client software allows for online monitoring of the currently running program during runtime Additional online functions include IO forcing and Mode changes Run Stop Quit Note The SG2 Client software does not support runtime logic editing changes All logic edits to contacts coils timers counters and circuit connecting lines must be written to the connected smart relay while in Stop mode EG en e a fei xm z bizre Tuer Status Bar Filename Firmware Actre circuits version Node CmlmeOfflme i change color s2 Model and DH Highlight coil to view current Tumerinunter values Chapter 3 Program Tools Program Documentation The SG2 Client software includes the ability to document a program using Symbols and Line Comments Symbols are used to label each I O address up to a length of 12 characters Line Comments are used to document sections of a program Each Line Com
13. L Sen SOL Si co AC N Ladder amp FUNCTION I1 i 3 001 HH mad 0000 1 0012 ei MI M1 002 m Mi Ti 003 E T1 ol 004 na 005 FBDI ol ToL Bol ode 3 ur Values re Value Las MOL Appendix Application Illustration MCI B z qu mode 4 Cur Ualuel 0 0 Bu Pre Valusl Bod az Luz mode 4 Cur Value Fre Values 1000
14. LCD displays 4 line Main Menu 1 The Main Menu as SG2 under STOP Mode LADDER FUN BLOCK RUN 1 5 0 1 LLL CLEAR PROG gt Clear the user program and the password WRITE Save user program to PM05 I READ gt Read user Program from PM05 CD Oo lt D c O D 3 je A O Q Q o 3 mie O U lt C di SET RTC SET ANALOG SET PASSWORD LANGUAGE INITIAL RE cuan TIT I E TEL TENDER ER ER E TR T AEN RR ER SR ER E A T AER TES STER TER ra CER OR Vv la e e e e rem e em E en e e e e ren e e e e em rem rem e gt e e gt rem re e e rem re rem e e em rem e e e e 0 50 e em rem re re e 00 re e e e e d Chapter 3 Program Tools 2 The Main Menu as SG2 under RUN Mode LADDER FUN BLOCK STOP WRITE RIC SET WRITE PASSWORD LANGUAGE Press the Button T 4 OK ESC Move the Cursor to select Main Menu Confirm the selected Function Skip to Initial Screen SG2 can be modified edited cleared and read user program only when it is under STOP Mode As the program is modified SG2 will automatically backup it to EEPROM Not PM05 Main Menu LADDER 1213 415 Je 8 Column w Vi w a z 2 E THEM d F TM Character Position Digital Position Press the Button SEL t I D E OK SEL DEL SEL ESC SEL 1T 4 SEL OK Description 1 Ix gt ix gt gt space gt Ix only for digital and character position of 1 3
15. Lutribution Box Distribution Box E LF Switch B ZF Switch D JF Switch Components Applied Switches Auto lighting system or pulse relay for staircase Applying the pulse relay as controller for staircase lighting system e The lighting is on as long as any switch is turned on e Press any switch again to turn off the lighting system Shortcoming It is a frequent weak point for the person to forget turning off the light at most cases Auto lighting control system for the staircase e The light is on whenever the switch is turned on Lighting system shall be turned off in a few minutes automatically or manually Shortcoming The user has no way to reset the turn off time Appendix Application Illustration 90 1 3 Apply SG2 in Lighting System Devices Applied QI Lamp H1 I1 No terminal Switch Bl I2 No terminal Infrared sensor for climbing Wiring Diagram for Lighting System IF 2F JF Infrared sensor switch Switch for climbing Illustrated program using SG2 in lighting system Ladder amp FUNCTION Qi 00i H1 D 1 44 0000 003 Urn Ti Appendix Application Illustration FBDD EL Hl IUl Boe Bod Bos Qul mode l Cur WValusl U Pre Valuel 5 2 Auto Door Control The auto doors are very popularly installed at the entrance of supermarkets mansions banks and hospitals 2 I Requirement for Auto Door Control e t automatically opens whenever a person is approaching e The door remains ope
16. 0 999 9 sec Outputs Q1 Q8 q1 98 o 3 0 9999 sec Auxiliary coil M1 MF m1 mF 4 0 9999 min Expansion inputs X1 XC x1 xC ON the timer reset to zero Expansion outputs Y1 YC y1 yC OFF the timer continues to time RTC R1 RF r1 rF Current timer value Counter C1 CF c1 cF Timer preset value Timer T1 TF t1 tF Timer Coil Number C1 CF total 15 timers Analog comparator G1 GF g1 gF Normal close contact Lo Note The target setting value of the counter could be a side gie constant or the present value of the timer counter analog input A1 A8 and analog gain offset value V1 V8 Timer Mode 0 Internal Coil Mode 0 Timer Internal Coil used as internal auxiliary coils No Timer preset value In the example below shows the Function relationship between the numbered block diagram for a mode 0 sl 0 6 7 F Mode 0 timer the ladder diagram view and the software Edit Contact Coil dialog box II OFF ON OFF Internal Coil Time Base 0O 015EC Current value 00 00 Sec Preset value 00 00 Sec Preset type 1 TIl OFF LIN OFF Chapter 4 Relay Ladder Logic Programming Timer Mode 1 ON Delay Mode 1 Timer ON Delay will time up to a fixed preset value and stop timing when the current time is equal to the preset value Additionally the current time value is non retentive and will reset to zero on a loss of power to the smart relay In the example below the timer will
17. Getting Started SG2 Model Identification un 20 H R Controller Type I O Count 8 8 points expansion modules 10 10 I O points 12 12 I O points 20 20 I O points Input Power D 24V DC Powered 12D 12V DC Powered A 100 240V AC Powered 24A 24V AC Powered Output Type R Relay Form Factor T Transistor H Encased LCD amp Keypad V Encased LCD Keypad amp RS 485 Communication K Encased Blind no LCD amp Keypad C Bareboard E Expansion Quick Start Setup d Quick Start Setup This section is a simple 5 steps guide to connecting programming and operating your new SG2 smart relay This is not intended to be the complete instructions for programming and installation of your system Many steps refer to other sections in the manual for more detailed information 1 Install SG2 Client Software Install the SG2 Client Software from CD or from the free internet download at www taian technology com ei Setup 862 Client Welcome to the 5G2 Client Setup Wizard This will install SG2 Client 1 8 on your computer It is recommended that you close all other applications before continuing Click Nest to continue or Cancel to exit Setup Cancel 2 Connect Power to SG2 smart relay Connect power to the Smart Relay using the below wiring diagrams for AC or DC supply for the applicable models See Chapter 2 Installation for complete wiring and installation instruc
18. Inputs Outputs pay RS 485 Communications Max UO Keypad SG2 12HR D 6 DG 2 Analog 4 Relay O Z1 Z4 N A 3644 1 SG2 12HT D 6 DG 2 Analog 4 Trans O Z1 Z24 N A 36 4 1 SG2 20HR D SADE 8 DC 4 Analog 8 Relay O Z1 Z4 N A 44 4 1 SG2 20HT D 8 DC 4 Analog 8 Trans O Z1 Z4 N A 44 4 1 SG2 20VR D 8 DC 4 Analog 8 Relay 21 24 Built in MODBUS 4444 1 SG2 20VT D 8 DC 4 Analog 8 Trans Z1 Z4 Built in MODBUS 44 4 1 SG2 12HR 12D 6 DG 2 Analog 4 Relay Z1 Z4 N A 36 4 1 SG2 20HR 12D 12 VDC 8 DC 4 Analog 8 Relay O Z1 Z4 N A 44 4 1 SG2 20VR 12D 8 DC 4 Analog 8 Relay O 21 24 Built in MODBUS 44 4 1 SG2 10HR A 6 AC 4 Relay O 21 24 N A 34 4 1 100 240 VAC SG2 20HR A 12 AC 8 Relay O 21 24 N A 444 4 1 SG2 12HR 24A BAND 8 AC 4 Relay O Z1 Z4 N A 36 4 1 SG2 20HR 24A 12 AC 8 Relay 3 21 24 N A 44 4 1 Expansion Modules SG2 8ER D 4 DC 4 Relay N A N A N A 24VDC SG2 8ET D 4 DC 4 Trans N A N A N A SG2 8ER A 100 240VAC 4 AC 4 Relay N A N A NA SG2 BER 24A 24VAC 4 AC 4 Relay N A N A NA SG2 4Al 4 Analog N A N A N A NA SG2 MBUS Communications Module RS 485 ModBus RTU slaver SG2 DNET 24 VDC Communications Module DeviceNet Group2 slaver SG2 PBUS Communications Module Profibus DP slaver ENO1 Communications Module TCP IP OEM Blind Models No Keypad No Display SG2 12KR D 6 DC 2 Analog 4 Relay X N A 36 SG2 12KT D 6 DG 2 Analog 4 Trans X N A 36 I 24V DC SG2 20KR D 8 DC 4 Ana
19. Memory Type The SG2 digital input points are designated Z memory types The number of digital Z input points are 4 depending on SG2 H type model Outputs Q Memory Type The SG2 digital output points are designated Q memory types The number of digital Q output points is 4 or 8 depending on each SG2 model In this example output point Q1 will be turned on when input l1 activated Auxiliary Relays M Memory Type Auxiliary relays are digital internal memory bits used to control a ladder logic program The auxiliary relays are not physical inputs or outputs that can be wired to any external device switches sensors relays lamps etc oince auxiliary relays are internal bits within the CPU they can be programmed as digital inputs contacts or digital outputs coils In the first rung of this example auxiliary relay M1 is being used as an output coil and will energize when input I2 turns on In the second rung auxiliary relay M1 is being used as an input and when energized will turn on outputs Q2 and Q3 Chapter 4 Relay Ladder Logic Programming IZ Mi DD1 D Duz gt 003 d Timers and Timer Status Bits T Memory Type Timer status bits provide the relationship between the current value and the preset value of a selected timer The timer status bit will be on when the current value is equal or greater than the preset value of a selected timer In this example when input I3 turns on timer T1 will start When the timer reache
20. Preset value 05 OG ah Sec Direction Set Reset Input Contact Centact v con Week Sunday Monday Tuesday Friday Satur Time S00 17 00 amp 00 1700 8 00 1700 a00 17 00 ENABLE En Output Note IF ENABLE fails outputis OFF While present time is 6 00 20second on Monday and En output is OFF Rn wall be adjustment present time will be adjustment to amp 00 Usecond and Rn output is ON When time increased 6 00 2lsecond Rn output is OFF Fn output is on 21 second Week Sunday Monday Tuesday ae Friday saturday lime S00 1700 amp 00 1700 8 00 1700 a00 17 00 ENABLE En Cutput Note IF ENABLE fails sutputis OFF While present time is 8 00 40second on Monday and En output 15 OFF En wall be adjustment present time is adjustment to 6 01 second and En output 15 ON after one scan time En output 15 OFE Chapter 4 Relay Ladder Logic Programming Comparator Instructions The SG2 smart relay includes a total of 15 separate comparator instructions that can be used throughout a program Each comparator has a choice of 6 operation modes Additionally each comparator has 7 parameters for proper configuration The table below describes each configuration parameter and lists each compatible memory type for configuring counters o G a o G Analog comparator Mode 0 Internal Coil Mode 0 Analog Comparator used as internal auxiliary coils No preset value In the example b
21. a new program select File gt New gt and select the desired model of SG2 and the number of connected expansion units if applicable as shown below Select Model Type Specifications TETEL SG2Z 14HB D KH Power 4 VDC TERES Input Il I amp 6 A l z Output dxBelay 5 Analog Yes ETC Yes DD Output Mo lEHz Input Il I z High Speed Comm No FI CO LCD Eewvyvpad Yes E Select Type 8G7 17HP D Expansion Chapter 3 Program Tools Menus Icons and Status Displays The Ladder programming environment includes the following Menus Icons and Status Displays 1 Menu bar Five menu selections for program development and retrieval editing communication to connected controllers configuration of special functions and viewing preference selections 2 Main Toolbar From Left to Right Icons for a new program opening a program saving a program and printing Icons for Keypad Ladder view HMI Text editing and Symbol comments editing Icons for Monitor Simulator Controller Mode changes Run Stop and Quit and Read Write programs to from the SG2 smart relay 3 Usage List List for all memory types and addresses used with the current open program Used addresses are designated by a symbol below each address 4 Amount of free programming memory available 5 Current Mode operation mode of the controller or simulator from the connected PC 6 Ladder Toolbar Icons for selecting and ente
22. preset of 5 seconds This Flash sequence of the timer status bit T1 will continue as long as its rung remains true Edit Contact Coil E X 4 Function Mode e v i0 6 7 P 5 O Flash timer mode z Time Baser l SEC we Current value 0000 Sec Preset value 0005 Sec Preset type Ip bh d Reset Input Contact 1 1 Cancel enable reset relay enable reset relay present value Timer starts operating present value 0 Timing enable relay Time up Output terminal TI TF enable reset relay t target value set in timer Chapter 4 Relay Ladder Logic Programming 64 Timer Mode 7 FLASH Cascade without Reset Mode 7 Timer is a Flash timer without reset that uses two timers in a cascade configuration The cascade configuration connects the timer status bit of first timer to enable the second timer The second timer will time up to its preset value then flash and its timer status bit will enable the first timer Additionally the current time value is non retentive and will reset to zero on a loss of power to the smart relay In the example below timer status bit T1 will be ON after it completes its timing sequence of 2 5 seconds Timer 2 will then begin its timing sequence of 1 second When the current time value of Timer 2 reaches its preset of 1 second its status bit T2 will flash and Timer 1 will begin timing again This type of cascade timer is of ten used in combination wi
23. 03 a2 I4 004 33 Mi Ti 005 qs 006 HZ 007 oog Appendix Application Illustration 96 R3 H e mci Mc2 H2 Hl iz M1 Si at T 1 34 0000 0010 Appendix Application Illustration FBD Operation Flow i MCL 101 gol Mice Bod quz daz Iu Hl qua I04 mode L Cur Valuel 0 6 Fre Valuel 10_0 4 Plant Gate Control 4 1 Requirements for Plant Gate Control The main purpose of the plant gate is to control the access of truck which is manually operated by the gate guard Audible Alarm Pressure Switch ui The door guard controls and oversees the opening closing of the plant door gate e The stop switch can be activated at any time regardless of the gate in fully open or close condition e The alarm light will be activated for 5 seconds in advance before the gate operation e The damper is provided on the gate Gate closing operation whenever the damper is contacted by the gate Stops Appendix Application Illustration 98 4 2 Traditional Control Circuit for Gate System Auxiliary Circuit Sp CH MUI Sg GN MCI iia 52 m 35 ML MCI ACP MCA SA SA MA site AI ALIEN LI Hi Ge MOS JAGD Open Close Audible Alarm OpenGate Close Gate Devices Applied MCI Main Electromagnetic Contactor MC2 Main Electromagnetic Contactor SO NC contact stop switch SI NO contact open switch S2 NO contact close switch S3 NC contact open safe damper SA NC contact close safe damper Appendix Applicat
24. 3 Ventilation Control 3 1 Ventilation System Requirement The main function of the ventilation system is to blow in the fresh air and blow out the waste air as shown in the below drawing Ze Exhausted Gas Blower e Fresh Ar Blower fa A1 M Flow Monitor Flow Monitor e The room is provided with exhausted gas blower and fresh air blower e The flow sensor control the blowing in and out operation e Over pressure is permitted at no time Appendix Application Illustration e The fresh blower will run only if the flow monitor senses that the exhausted gas blower works properly e If any irregularity takes place on air in blower and air out blower the warning lamp will light The control circuit for the traditional ventilation system is shown below Eeference Circuit L1 d I Er 1 BC I Hog MC MUS HED wel D WU H Exhausted Gas Fresh Aur The ventilation system is wholly controlled by the airflow monitor If there is no flow air in the room after a designated duration of time the system will activate the warning system so the user shall shut off the system Devices Applied MC1 main contactor MC2 main contactor SO NC contact stop switch SI NO contact start switch S2 NO contact air flow monitor S3 NO contact air flow monitor Hloperation indicator H2 alarm light Wiring Diagram and Program with SG2 applied in Ventilation System Ladder amp FUNCTION Tl D 001 a1 wi 002 I3 0
25. 4 n 07 5 22 O 08 6 23 mode 4 RTC Or MO amp a mode 0 Analog 1 mode 1 Analog 2 Cur Valuel 0 00 Cur Valued 0 00 Fef Value 1 00 Chapter 5 FBD Programming 3 Analog Comparison Mode 2 Enable Input Analog Input made 2 Analog Input Analog 5 Cur Value 0 00 Reference Cur Valuez 0 00 Ref Value 2 00 Enable Input Analog Input mode 3 Analog A Analog Input Cur V aluel 0 00 Reference Cur Value2 0 00 Ref Value 3 00 5 Analog Comparison Mode 4 Enable Input gt En rr Analog Input Ax Ref mode 4 Ax LB ex Analog 5 Cur valuel 0 00 Reference Ret L Ref Value 4 00 6 Analog Comparison Mode 5 Enable Input gt En rz 1Px x Analog Input gt Ax 4Ref mode 5 SAX FB p Analog Reference 3 R e f Cur Valuel 0 00 Ref Value 3 00 Appendix Application Illustration 89 Appendix Application Illustration 1 Lighting Control for Staircase 1 1 Requirement for Staircase Lighting e When someone goes up stair or down stair the lighting system shall be energized to provide sufficient luminance e After the walker passes the staircase lighting system shall be turned off in five minutes automatically or manually 1 2 Traditional Lighting Control There are two traditional controls available e Apply pulse relay e Apply automatic timer to control the lighting system on the staircase Conventional
26. 5 column 2 Qx gt space gt Qx only for digital and character position of 8 column 1 3 7 gt Space T all available but the 2 4 6 column of the first line L L x Digital 1 F 1 1 F When the cursor locates the digital position the range of digital is restricted by the relay type 2 ooXoZoQoYoMobDoeTrTocoeRoGcgoeoel When the cursor located at 1 3 5 Column 300oYoOMoToCoRoGoHoLoPedq When the cursor located at 8 Column 4 SAsovePs When the cursor located at 7 Column and the 8 Column is set as Q Y M 5 lt 4 P lt When the cursor located at 7 Column and the 8 Column is set as T Confirm the input data and move the cursor Vertically move the cursor Horizontally move the cursor Delete an instruction 1 Cancel the Instruction or action under Edition 2 Back to Main Menu after query the program 1 Confirm the data and automatically save the cursor moves to next input position 2 When the cursor is on Column 8 Press the button to automatically enter the function block and set the parameters such as T C Delete a Line of Instruction Display the number of the Lines and operation state of SG2 RUN STOP Skip up down every 4 line program Insert a space line Chapter 3 Program Tools peration Sample Column Procedure 1 161718 i Column Press OK Enter LADDER Edition Procedure 2 1 1213 1415 161718 Column Press SEL Line 1 I 1 When cursor located at character or digital pres
27. CDEF 004 m T 123456789ABCDEF O05 C1123456789ABCDEF RB 123456789ABCDEF O06 Gi 123456789ABCDEF H 123456789ABCDEF 007 L 123455878 SR O08 Capacity 796 free space ox 2 Do You Want To Read Program From Module Quick Start Setup 9 From the Input Status dialog click on M1 to activate the contact M1 which will turn ON the Output Q1 as shown below The highlighted circuit will show active and the first Output Q1 on the connected smart relay will be ON See Chapter 3 Programming Tools for more detailed software information bi LAD Version LB Cnil Cantaetr Capacity 796 free apace Symbol S SBkeatuge On 12123456 TEM ABC 2 1734 Input Status Tool 2 PE dene 1 32 345560 A l ad4dzbBHAEBEC g eee z j n E zz pK x x fa GEE Q 12945679 P 1 SS VER vunn lala Hilz342578BABCDEF EI 3 3 4 712345670 BABCTEE aia M Gi H Gi 123456 UBABCDEF Ri 123456709ABCDEE 6 123456780ABCDEF El EE x x oe Hi 12345678 9ABCDEF DEF P 112315678 ee eff Sei 2 3 4 Ee RAHAA A BC ogee Chapter 2 Installation Chapter 2 Installation General Specifications SG2 is a miniature smart Relay with a maximum of 44 I O points and can be programmed in Relay Ladder Logic or FBD Function Block Diagram program The SG2 can expand to its maximum I O count by adding 3 groups of 4 input and 4 output modules Power Supply 24V DC Models 20 4 28 8V 12V DC Models 10 4 14 4V In
28. E E EE NE EE En Output Week On o Tu Ere Preset value 08 3 00 ay 17 zl OO OFF Cancel lte Sunday Chapter 4 Relay Ladder Logic Programming RTC Mode 2 Interval weekly The Interval Time Mode 2 allows the Rx coil to activate based on time and day per week The configuration dialog below allows for selection of Day and Time for the Rx coil to activate ON and Day and Time for the Rx coil to deactivate OFF Edit Contact Coil Function a 25 Hode 0 4 iE Interval time action mode Weekion Off ln v e sa v Current value 11 48 Preset selves OG OG ON 17 00 OFF Direction Set Reset Input Contact v Contact sl en Weck Monday Tuesday x Friday Se Cen Sunday Time a amp 00 17 00 00 17 00 s 00 17 00 8 00 17 00 800 17 UU ENABLE Fn Output Chapter 4 Relay Ladder Logic Programming 68 RTC Mode 3 Year Month Day The Year Month Day Mode 3 allows the Rx coil to activate based on Year Month and Date The configuration dialog below allows for selection of Year and Date for the Rx coil to activate ON and Year and Date for the Rx coil to deactivate OFF Symbol Description RTC mode 3 Year Month Day Setting RTC Year ON Setting RTC Year OFF Display RTC Present time Year Month Day Setting RTC month ON Setting RTC Day ON Setting RTC month OFF Setting RTC Day OFF RTC Code R1 RF total 15 group
29. HIFT S SOI I I O LINK E L01 L08 8 Logic Function B BO1 B99 99 Normal ON Hi Normal OFF Lo No Connection Nop Coil Block Instruction e Output Coil Block 3 Output Coil Type Chapter 5 FBD Programming PWM Function Block The PWM output terminal Q1 can output 8 PWM waveforms Only provided for transistor output version Enable mpute 3 wo Rede a le 34 e op l iop dP01 E Io p Dl PWM Function x Function S besen Im III ne Chapter 5 FBD Programming SHIFT Function Block Input termmal description Ir Enable input N op Nop dsS 01 Sluft input bee eS sa 1 Shift code Symbol Description D SHIFT code Total 1 group Set output type Q Y Set output shift number 1 8 3 Shift number 2 QF 5 Shift ouput range 01 03 Enable smiti JU Qi 02 Q3 OF Q5 Chapter 5 FBD Programming 80 Logic Block Instructions 2 Logic Type 3 Logic Block S H ae OG Input d N O Ps t AN D f 1 E i 1 m Connect with Next Function Block AND Logic Diagram FBD LADDER gt A JAF 4 I01 And I02 And 103 Note The input terminal is NOP which is equivalent to Hi AND EDGE Logic Diagram FBD LADDER 101 102 103 gt JH I01 And 02 And 103 And D Note The input terminal is NOP which is equivalent to Hi
30. Input Count Pulse Si i J Etc Chapter 4 Relay Ladder Logic Programming High Speed Counters DC Version Only The DC powered version smart relays include two 1 KHz high speed inputs on terminal I1 and I2 These can be used as general purpose DC inputs or can be wired to a high speed input device encoder etc when configured for high speed counting These are often used for counting something moving very fast gt 40Hz or used as a speed reference on a machine The high speed counters are configured using the same software Edit Contact Coil dialog box except selecting Counter Mode 7 or Mode 8 High Speed Counter Mode 7 DC powered versions only The Mode 7 High Speed Counter can use either input Symbol Description terminals I1 or I2 for forward up counting to 1Khz maximum at Counting Mode 7 high speed counting 24VDC high speed input signal The selected Counter Coil C1 CF will turn ON when the pulse count reaches the target G High speed counting input terminal 11 or I2 only Use I1 gF to RESET the counting value setpoint and remain ON The counter will reset when the ON the counter reset to zero preceding rung is inactive or the Reset Input is active OFF the counter continues to count Current Count Value range 0 999999 l Preset Value range 0 999999 In the example below shows the relationship between the Counter Coil Number C1 CF total 15 counters numbe
31. N ETATS CH x t Jt C GJE KOR ur yr TT Q1 Q2 Q3 Direct Mounting Use M4 screws to direct mount the SG2 as shown For direct installation of the expansion module slide the expansion module and connect with the Master after the Master is fixed A ENN AN T H J Ne Neh Nl NP Neu NA NANA NA Na DC24V INPUT8xDCIA1 A2 1 10 VI IEEE CCN EN ix SN 12HR D N N la N OUTPUTAxRELAY 8A NN Kee DU Y N JJ P D4 3 LT J Ly T Q 3 Input X1 X2 X3 X4 a i gt e N 6 55 f e N r ES 4x AC a oN rs a gt J I NAA NA NAN IAA NA AN A NA SN NS DYD TEC E 2 i fm N p N en f 3 oA N EN J X 1 N Y Run SS i fe NN NN N N 7 NN NN AY X N N 7 N NN N TEC SG2 8ER A SG2 12HR D Output 4 x Relay 8A jd DOS ADV NNECTO OOO O O f INS MO tX Output 4x Relay 8A Yi Y2 O OO U GO WA KE u V CN NEA N E un ZU T Q1 Q2 Y3 Y4 Chapter 2 Installation Wiring DU WARNING The I O signal cables should not be routed parallel to the power cable or in the same cable trays to avoid the signal interference AN To avoid a short circuit on the load side it is recommended to connec
32. O Enable reset relay Timer starts operating Enable reset relay present value 0 present value 0 Timing enable relay 5 tz 1142 Time up T1 TF Output Terminal 3 enable reset relay OFF ON OPE target value set in timer Chapter 4 Relay Ladder Logic Programming 60 Timer Mode 3 OFF Delay Mode 3 Timer is an OFF Delay with reset that will time up to a fixed preset value and stop timing when the current time is equal to the preset value Additionally the current time value is non retentive and will reset to zero on a loss of power to the smart relay In the example below the timer reset input is Input 11 Also in the example below timer status bit T1 will be ON immediately when its rung is true The timer will only begin timing up when its rung changes to false Timer status bit T1 will turn OFF when the current time value reaches 10 seconds Edit Contact Coil x Q Y 1 D e Ip Select Coil NO Function 1 Mode 3 id 6 7 P 4 Off delay timer mode 1 3 6 Time Base 1 SEC Current value 0000 Sec Preset value 0010 Sec Preset type N w m enable reset relay 4 4 A enable reset relay present value 0 Timer starts operating present value H Timing enable relay OFF ON OFF Time up TS ON t OFF output terminal 5 3 enable reset relay OFF t target value set in tunet Timing enable relay OFF ON OFF ON ON OFF OFF Time up
33. Program to smart relay From the Operation menu select the Write function and write the program to the connected smart relay as shown below CE LAD Verzsion 1 8 File Edit BEEN View Help Monitor Simulator Coil Sab si ur Crrit k W Stop I CErl T uit Ctrl Used R E I 1234 Read li x 1234 RTC Set 0 1234 Password Language B 0224 Module System Set Link Com Port md u ix di e s sw e pm mm mm Operation menu The Operation menu includes several system configuration functions for both online and offline setup The following explains the details of each function Monitor Online function for runtime monitor and editing when connected to a controller Simulator Offline function for testing and debugging a program Run Stop Quit Mode change selections for both runtime editing and simulation mode Read Write Reading and writing programs to and from a connected smart relay RTC Set Online function for setup of the Real time clock calendar see dialog below left Analog Set setup analog input A1 A8 gain and offset see dialog below right Password Set a password for accessing the current program after upload to the smart relay Language Change software language Module System Set Dialog for changing important system setup functions including Module ID Remote UC preferences Expansion UO settings and Retentive memory preferences Keeping for C
34. Table of Contents Chapter 1 Getting Started Examination before Installation Environmental Precautions SG2 Model Identification Quick Start Setup Chapter 2 Installation General Specifications Product Specifications Mounting Wiring Chapter 3 Program Tools PC Programming Software SG2 Client Memory Cartridge LCD Display and Keypad Chapter 4 Relay Ladder Logic Programming Common Memory Types opecialty Memory Types Output Instructions Counter Instructions High Speed Counters DC Version Only Timer Instructions Real Time Clock RTC Instructions Comparator Instructions HMI Display Instructions PWM Output Instruction DC Transistor Output Models Only Data Link Remote I O Instruction SG2 20Vxx Models Only Chapter 5 Function Block Diagram Programming Coil Block Instruction PWM Function Block SHIFT Function Block Logic Block Instructions AND Logic Block AND Edge Logic Block NAND Logic Block NAND Edge Logic Block OR Logic KR ONN a 10 12 13 15 18 18 26 2 44 44 46 47 49 99 57 65 70 12 14 15 VA 11 78 79 80 80 80 81 81 81 NOR Logic XOR Logic SH Logic Block NOT Logic Block Pulse Logic Block Function Block Common Counter Function Block High Speed Counter Function Block Timer Function Block RTC Function Block Analog comparator Function Block Appendix Application Illustration 81 82 82 82 82 83 83 84 85 86 87 89 Chapter 1 Getti
35. The code of the BLOCK is auto distributed the frst unused code Connect with 3 Next Function Bolek The function blocks are classified into 4 sorts Time Counter RTC Comparator R and Analog Comparator G The Operation Fundamental is similar to LADDER Function Block s Common Counter Function Block 1 Counter Mode 1 Counting Input gt Up Down Counting gt mode 1 Reset gt Counter Cur Value 0 Counting Parameter Pre Value 100 2 Counter Mode 2 Counting Input gt Up Down Counting gt mode Z Reset gt Counter 2 Cur Value 0 Counting Parameter Pre Value 122 Note The means the current value appeared will be greater than present value 3 Counter Mode 3 Counting Input gt gt Up Down Counting gt Reset 3 Ge 3 gt Cut Value U Counting Parameter Pre Value 135 Note The PD means the current value will be retain until the power recover 4 Counter Mode 4 Counting Input Up Down Counting Reset Counting Parameter 5 Counter Mode 5 Counting Input Up Down Counting Reset Counting Parameter Note The C means that will keep the current value in 0 during the Reset pin be enable 6 Counter Mode 6 Counting Input Up Down Counting Reset Counting Parameter High Speed Counter Function Block 1 Counter Mode 7 High counting input Enable Input Reset Counter Parameter t4 LJ V4 44 t4 LJ Chapte
36. a scaling factor Gain and an offset for each analog input value x A Ab Gain 17999 f Gain 17399 Offset 50 50 Offset 507 50 Gain 17999 Gain 17999 Offset 507 50 Offset 50 50 Gain 17939 Gain 1999 Offset 50 50 Offset 50 50 Gain 17999 Gain 1 338 Offset 50 50 Offset CDU 51 cae Phone Number A phone number can be displayed on the screen to alert an operator to call for help i 8009720436 Ada pae Note The Phone Number field does not dial a modem or allow for a modem connection Each HMI instruction has a choice of 2 operation modes IESiSssutississ The table below describes each configuration parameter Output Type f Reset C Set P Symbol Description Display Mode 1 2 HMI character output terminal H1 H8 Function Hade v 1 2 Display 5 Current value Preset value H1 m 1 Direction Set Reset Input Contact ll Contact cl H1 cane Chapter 4 Relay Ladder Logic Programming PWM Output Instruction DC Transistor Output Models Only The transistor output model smart relay includes the capability to provide a PWM Pulse Width Modulation output on terminal Q1 The PWM instruction is able to output up to an 8 stage PWM waveform Q amp Symbol Description Enable Output PWM D Set di
37. ay the present Line the cursor locating and operation state of SG2 Procedure Press SEL ESC simultaneously The Line 4 displays where the cursor locating and operation state of SG2 Delete the whole Line Chapter 3 Program Tools Procedure Press SEL DEL Simultaneously ESC Cancel OK Execute Insert a whole line Step 1 12 3 14 5 5 5 6 74 8 column Press SEL OK at the same time Linellq 4 T MI 1 3 QI 3 E Be 3 3 Turn page move upward downward 4 lines program Il 1243 1415 161718 column line 110414 T MI 13 Q I 2 op Be ae ut 3 A dos o Step 1415 161i7i8 column Press SEL T i m47M1 I1I3 Q1 at the same time SE Be EC Present action area The present value will appear when SG2 is under RUN mode Procedure 1 i 1213 1415 07677178 Column Press OK Line I r l J I f Enter FUNCTION BLOCK edition 3 K 56 BE oF m 4 EE co eoue pepe ease sen Chapter 3 Program Tools Never press to move to the digital position If T2 1s required to be changed Press TJ and SEL to execute Step 2 modify present target value preset the action relay Preset the target value move the cursor to the preset action area Procedure 2 2 Column Press SEL begin input the target value Procedure 2 3 Press 1 for 3 times Press SEL and followed by TW The di
38. ck Chapter 3 Program Tools Procedure 1 Press SEL T Simultaneously Last Function Block Procedure Press SEL V Simultaneously Delete Function Block Procedure Press SEL DEL Simultaneously ESC Cancel OK Execute Back to Main Menu Press ESC Change Function Block Category Column Step 1 Press SEL Chapter 3 Program Tools 40 RUN or STOP 1 RUN Mode 2 STOP Mode m PROG PROG BYES BYES NO NO T a Move the cursor OK Execute the instruction then back to main menu Back to main menu Other Menu Items 1 CLEAR PROGRAM Clear RAM EEPROM and Password at the same time 2 WRITE save the program RAM to the PMO5 program spare cartridge YES NO 3 READ read the program from the PMO5 program spare cartridge to SG2 RAM READ YES NO 1 3 Now Press Move the cursor Execute the instruction then back to main menu Back to main menu 4 SET system setting IO NUMBER 0 lO ALARM V Note M KEEP function is only available for keeping M status in RUN mode when power is re supplied after loss Chapter 3 Program Tools Now Press Move the cursor Begin to edit Press SEL Move the cursor for ID SET item and lt gt Press SEL 1 ID SET 00 99 I O NUMBER 0 3 and TJ 2 REMOTE I O NGMeSeN 3 BACK LIGHT C KEEP Z SET x 4 M KEEP I O ALARM vV lt x Confir
39. e 5 o Symbol Description Compatible Instructions Range D Counting Mode 1 6 Inputs I1 IC i1 iC 2 Use l1 gF to set counting up or counting down Keypad Inputs Z1 Z4 z1 z4 OFF counting up 0 1 2 3 4 Outputs Q1 Q8 q1 98 ON counting down 3 2 1 0 Auxiliary coil M1 MF m1 mF Use l1 gF to RESET the counting value Expansion inputs X1 XC x1 xC ON the counter resets to zero and OFF Expansion outputs Y1 YC y1 yC OFF the counter continues to count RTC R1 RF r1 rF Present Counting Value range 0 999999 Counter C1 CF c1 cF Target Setting Value range 0 999999 Timer T1 TF t1 tF 6 Code of the counter C1 CF total 15 counters Analog comparator G1 GF g1 gF Normal close contact Lo Note The target setting value of the counter could be a constant or the present value of the timer counter analog input A1 A8 and analog gain offset value V1 V8 The figure below shows the relationship between the numbered block diagram for a Counter the ladder diagram view and the software Edit Contact Coil dialog box Edit Contact Coil x 3 o pr de r e Jr ap Select Coil Wa Output Type Reset 4 C fi v 1 9 A B C D E F C Ser P Function 5 Mode fi v 1 8 6 Counter without overtaking and without power down retain current value 1 Preset value 000003 x14 000000 DDDOOS kl Current value 000000 Preset type Direction Set
40. e except its C1 status bit will only be ON when the counter counts up to its preset or down to its preset from a count higher than its preset Even with its direction bit set to ON it will not turn on its C1 status bit when it counts down to zero The C1 status bit is fixed to the non zero preset value regardless of the state of the direction bit Additionally the Mode 5 counter is always reset to zero unrelated to the state of its direction bit The Mode 6 Counter will count up to a fixed preset value and continue counting after the preset value Additionally the current count value is retentive and will keep its current count after a loss of power to the smart relay In the example below the counter will continue counting after its preset value of 20 Counter status bit C1 will be ON when the current value is 20 Edit Contact Coil x Q Y T C Ip 4 1 Select Coil HO Output Type 2 fe Reset C P 1 9 B C D E F n Function Mode With overtaking and with power down Compare Counter Current value lt 6 Preset value 000020 WI OOO0O0O0 Preset type D WOOO c1 Direction Set Reset Input Contact m 1 Contact 1 I Cancel 20 CUM C T tf 1 1 dq 1 4 1 T M T v T1 L0 f Mode1 amp 2851 01 21 11212131 1 1 1 1 1 91 7 71212131 es ert cb Deg degen aen Ierd aerer emgeet Get rnt Hode384861 01 21 21 21 21 31 I 1 1 i 3 4 4185151 6
41. e humidity dust corrosive gas vibration etc Precaution for Wiring D Improper wiring and installation could lead to death serious bodily injury or considerable damage to property AE The SG2 smart relay should only be installed and wired by properly experienced and certified personnel AE Make sure the wiring of the SG2 smart relay meets all applicable regulations and codes including local and national standards and codes AE Be sure to properly size cables for the required current rating AE Always separate AC wiring DC wiring with high frequency switching cycles and low voltage signal wiring Chapter 1 Getting Started Precaution for Operation D To insure safety with the application of the SG2 smart relay complete functional and safety testing must be conducted Only run the SG2 after all testing and confirming safe and proper operation is complete Any potential faults in the application should be included in the testing Failure to do so could lead to improper operation equipment damage or in extreme cases even Death serious bodily injury or considerable damage to property T When the power is on never contact the terminals exposed conductors or electrical components Failure to comply could lead to improper operation equipment damage or in extreme cases even death serious bodily injury or considerable damage to property A It is strongly recommended to add safety protection such as an emergency stop and
42. e value is non retentive and will reset to zero on a loss of power to the smart relay In the example below timer status bit T1 will be ON immediately when its rung is true and begin its timing sequence Timer status bit T1 will turn OFF when the current time value reaches its preset of 10 seconds This Flash sequence of the timer status bit T1 will continue as long as its rung remains true Edit Contact Coil X Q Y 1 D e R Select Coil NO Function QD 4 5 Mode 5 v O 6 zb Flash timer mode 1 Time Base 1 SEC Current value 0000 Sec Preset value 0010 Sec Preset type u v See Enahle reset rel present value SG pl Timer starts operating Enable reset relay Present value 0 Timing enable relay Time up output terminal T1 TF t target value set in timer Chapter 4 Relay Ladder Logic Programming Timer Mode 6 FLASH with Reset Mode 6 Timer is a Flash timer with reset that will time up to a fixed preset value then change the state of its status bit when the current time is equal to the preset value Additionally the current time value is non retentive and will reset to zero on a loss of power to the smart relay In the example below the timer reset input is Input 11 Also in the example below timer status bit T1 will be ON immediately when its rung is true and begin its timing sequence Timer status bit T1 will turn OFF when the current time value reaches its
43. elow shows the relationship between the numbered block diagram for a Mode 0 Analog Comparator the ladder diagram view and the software Edit Contact Coil dialog box Symbol Description Comparison Mode 0 5 AX analog input A1 A8 V1 V8 the present value of the timer counter AY analog input A1 A8 V1 V8 the present value of the timer counter AX analog input value 0 00 99 99 AY analog input value 0 00 99 99 Set reference comparative value could be constant or the present value of the timer counter and analog input analog input A1 A8 V1 V8 Output terminal G1 GF OQ oooomo Edit Contact Coil X Output Type f Reset C Ser C P Function Made o v 0 5 Internal Coil a a Ax Ay d K 2 T OI Current valus oo o 1 00 00 Az Preset value 00 00 Det Preset type u sl Direction Set Reset Input contact Contact Il OFF ON OFF Gl OFF ON OFF Chapter 4 Relay Ladder Logic Programming Analog comparator Mode 1 5 When the relay of analog comparator is ON there are 5 operation modes described below 1 Analog Comparator mode 1 AY amp AX AY 0 O ON 2 Analog Comparator mode 2 AX x AY ON 3 Analog Comparator mode 3 AX gt AY ON 4 Analog Comparator mode 4 2 AX ON 5 Analog Comparator mode 5 AX ON mm M0 me Example 1 Analog Signal Compare In the e
44. et Reset Input Contact m v 1 Contact 1 v cane 9 G ae ce 3 mi4 OOOO00 OOOOZ0 Fel IZ Counter Mode 4 Continuous Count Retentive Mode 4 Counter operation is similar to Mode 2 except its current count value is retentive Mode 4 Counter will count up to a fixed preset value and continue counting after the preset value Additionally the current count value is retentive and will keep its current count after a loss of power to the smart relay In the example below the counter will continue counting after its preset value of 20 Counter status bit C1 will be ON when the current value is 20 Edit Contact Coil X Q v 1 Select Coil NO IE C z Output Type eo E f Reset 1 T c 1 9 MEGA DES EEE Function 5 Mode 4 v 1 68 Counter with overtaking and with power 6 down retain current value Current value 000000 Freset value 000020 T 1 EE gr is Mi4 JO0000 Direction Set Reset Input Contact m v 1 Contact 1 v OOOO20 Pol Cancel IZ Chapter 4 Relay Ladder Logic Programming Counter Mode 5 Continuous Count Up Down Counter Non Retentive Mode 5 Counter operation is similar to Mode 2 where its current count value is continuous and non retentive except its C1 status bit will only be ON when the counter counts up to its preset or down to its preset from a count higher than its preset Even with its direction bit set
45. external interlock circuit in case the SG2 smart relay operation must be shut down immediately Examination before Installation Every SG2 smart relay has been fully tested and examined before shipment Please carry out the following examination procedures after unpacking your SG2 smart relay Check to see if the model number of the SG2 matches the model number that you ordered Check to see whether any damage occurred to the SG2 during shipment Do not connect the SG2 smart relay to the power supply if there is any sign of damage Contact T ECO if you find any abnormal conditions as mentioned above Environmental Precautions The installation site of the SG2 smart relay is very important It relates directly to the functionality and the life span of your SG2 Please carefully choose an installation site that meets the following requirements Mount the unit vertically e Environment temperature 32 F 131 F 0 55 C Avoid placing SG2 close to any heating equipment Avoid dripping water condensation or humid environment Avoid direct sunlight Avoid oil grease and gas Avoid contact with corrosive gases and liquids Prevent foreign dust flecks or metal scraps from contacting the SG2 smart relay Avoid electric magnetic interference soldering or power machinery Avoid excessive vibration if vibration cannot be avoided an anti rattle mounting device should be installed to reduce vibration Chapter 1
46. gital 0 is changed to 3 Procedure 2 4 Press OK Save the input data As the present value of the timer counter analog input A1 A8 and analog gain value V1 V8 is set as the preset value of them Next to the step 2 2 to execute the following operation Chapter 3 Program Tools Step2 3A column Press SEL Step 2 3C press SEL Step 2 3D il 402313 14 5 16 17 18 1 column Press SEL line 1 r l J 2 14 3 E FT 1 Next to step 2 3B then 1 the following screen will be shown step 2 4A Sch 213 1415 6 7 8 column Press T linel r 1 J 2 14 3 A2 FT 1 Repeat step2 4A press J is also available the preset value of A1 A8 will be periodically changed And so on Analog gain offset value V1 V8 and the other function blocks time counter present value is set as preset value to repeat the step to select T1 TF C1 CF V1 V8 Procedure 2 8 rl 42 3 1 4 5 1 6 7 8 1 Column Press SEL begin to edit data Press SEL TL to changel to 2 Procedure 2 10 Press OK save the input data move the cursor to 1 position Procedure 2 12 Press SEL begin to edit data 2 13 Press 1 for 3 times Press SEL and followed by T Jr to change to 4 Procedure 2 14 Press OK save input data Press J for 3 times this step leads to editing the action relay
47. ial Instruction One Shot A positive input differential instruction or One Shot holds its status ON for one CPU scan when the preceding series contact transitions from OFF to ON This transition from OFF to ON is called a Positive Input Differential Il D Ql ON Il OFF OFF ON Gl OFF OFF ene complete scan period ON Q OFF Negative Input Differential Instruction One Shot A negative input differential instruction or One Shot holds its status ON for one CPU scan when the preceding series contact transitions from ON to OFF This transition from ON to OFF is called a Negative Input Differential E d IN ON OFF d OFF Q1 OFF ON OFF OFF OFF CM One complete scan ON OFF Chapter 4 Relay Ladder Logic Programming Output Instructions Set Output Instruction Latch A set output instruction or Latch turns ON an output coil Q or an auxiliary contact M when the preceding input contact transitions from OFF to ON Once the output is ON or set it will remain ON until it is reset using the Reset output instruction It is not necessary for the preceding input contact controlling the Set output instruction to remain ON Il Ql OO1 IN OFF ON OFF Ql OFF ON Reset Output Instruction Unlatch y A reset output instruction or Unlatch turns OFF a previous set output coil Q or an auxiliary contact M when the preceding input contact transitions fr
48. ice move the cursor to column 1 and Line 2 Procedure 12 Press gt twice move the cursor to column 2 Note never press SEL before hand Chapter 3 Program Tools Procedure 13 Press SEL A vertical line emerges Procedure 14 d 213 TE 1641748 Column Press OK Linellq 4 T MI 1 3 Q I Move the cursor to character in 3 column 3 Procedure 15 Press OK in column 5 1273 1415 160718 Column puedq MIS Q 1 L move the cursor to the character in 3 Column 8 NO LA E E Procedure 16 Column Press SEL When the cursor located in digital or character press SEL QT will emerges Procedure 17 Press 1 for 4 times Press SEL TV The character Q the cursor locating will change to C Chapter 3 Program Tools Procedure 19 Column Press T for 7 times Press SEL TJ The digital 1 the cursor locating will change to 7 D SEP dnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn Auto Enter Function Block Edition Procedure 20 Press OK Auto shift to FUNCTION BLOCK and the counter input parameter Procedure 21 1 23 1415 161718 Column Press ESC back to Lnellq 4 1T MI 1 3 QI LADDER edition screen 2 EEE C Delete the Program Element Procedure Press DEL to delete the element C7 the cursor locating Displ
49. ion Illustration 99 Wiring Diagram and Program with SG2 applied in Plant Gate AC L Si S2 s0 S3 S4 ar AC N TO OY M oo 80060006 a MCI MCZ2 Hi Ladder amp FUNCTION ri id i3 MZ oo1 zZ I2 i5 i3 M3 002 ES MZ Q3 003 amp M3 004 2 3 T1 ms LI Cy 24 000 0 OO5 0 T M1 006 Ti o M2 ol 007 qi M3 Q2 ogg Ke Appendix Application Illustration FBD al Tol DE B14 I02 mode Cur Valuel 0 00 Pre Valuel Toe Ins 5 Counting Control for Packing Machine Requirement 1 The packing cycle is that it begins counting the finished products in the assemble line when the counting value reaches 12 it proceeds packing operation which takes 5 seconds After finished it begins a new cycle 2 It simultaneous counts the finished packs of product 3 Incase of power failure the counting remains unchanged Analysis 1 A transducer is employed to produce the pulse signal when the transducer detects the arrival of a product A counter generates an output when the counting value reaches 12 and a timer is employed to have a delay of five seconds 2 The counter will be operated in mode 3 or mode 4 in an effort to keep the accurate counting even in case of power failure Devices Applied I1 counting sensor S1 reset the counting value to zero MC1 packing Appendix Application Illustration Wiring Diagram and Program with SG2 applied at for Packing Machine AC
50. j Gi Set the send receive points 1 8 Outputs Q1 Q8 q1 q8 3 Set the send receive points Auxiliary coil M1 MF m1 mF 4 Send receive memory list location Expansion inputs X1 XC x1 xC UO link output terminal L1 L8 Expansion outputs Y1 YG y1 yC 5 Master smart relay All other Data Link instructions must be Mode 2 Receive B Note Only one Mode 1 Send Data Link instruction L1 L8 is allowed per instructions ID Memory List Location 0 Wi W8 The Mode 2 Receive memory range is determined by the Controller ID Each RI TTE UTE controller ID is allocated a range of 8 I O points Wx Wx that can be read into the Master smart relay using a DataLink instruction The adjacent table show the M memory range of Wx locations associated with each controller ID 3 W25 W32 4 W33 W40 The Data Link instruction below is setup for Mode 1 Send where the Master smart relay 5 W41 W48 is sending 5 I O points of Inputs to each connected Slave smart relay The starting Input 6 W49 W56 is 103 with the resulting range of 5 sending inputs equal to I3 I7 E ESI DT Edit Contact Coil x Ro oe e p ou pe bl Select Coil NO Coil NoO IU03 1 ge lect 1 8 5 5 L1 103 07 OO From 103 07 v To uos 13 Direction Set Reset Input Contact v contact ll WD 17 Chapter 4 Relay Ladder Logic Programming Example 1 Data Link Mode 1 Se
51. log 8 Relay X N A 44 SG2 20KT D 8 DC 4 Analog 8 Trans X N A 44 SG2 12KR 12D 12VDC 6 DC 2 Analog 4 Relay X N A 36 SG2 10KR A 6 AC 4 Relay X N A 34 100 240VAC SG2 20KR A 12 AC 8 Relay X N A 44 OEM Bareboard Models No Keypad No Display No Expansion SG2 12CR D 6 DC 2 Analog 4 Relay X N A 120 SG2 12CT D 6 DC 2 Analog 4 Trans X N A 12 24VDC SG2 20CR D 8 DC 4 Analog 8 Relay X N A 20 SG2 20CT D 8 DC 4 Analog 8 Trans X N A 20 SG2 10CR A 6 AC 4 Relay X N A m 100 240VAC SG2 20CR A 12 AC 8 Relay X N A 20 Accessories SG2 PL01 SG2 Programming Cable SG2 Programming software SG2 PM05 SG2 Memory cartridge 1 If module with keypad and display Max IO can be added keypad input Z1 Z4 Mounting DIN rail Mounting Chapter 2 Installation The SG2 smart relay should always be mounted vertically Press the slots on the back of the SG2 and expansion module plug CONNECTOR onto the rail until the plastic clamps hold the rails in place Then connect the expansion module and CONNECTOR with the Master press the PRESS BUTTON simultaneously m T SG2 12HR D 1 T H l2 I3 14 IS l6 A1 A2 ll G9 00000800 DC24V Input 8x DC A1 A2 0 10V Iech ECO RM
52. lue 000000 999999 Counter off target value 000000 999999 Code of Counter C1 CF Total 15Group In the example below shows the relationship between the numbered block diagram for a Mode 8 Counter the ladder diagram view and the software Edit Contact Coil dialog box GG OC Edit Contact Coil Q v T Select Coil NO Function Mode e v 1 81 1E Hz Input Counter Fixed Time Ip v 00 10 See c1 Current value 000000 00 00 Sec B OFF Preset value 050000 on 060000 Off er D 10 Preset type u v n v OS0000 Input I1 Iz Reset Input Contact 1 Contact O60000 GQ 8 Q 015 015 Ais Os Os Os D gt 3 5 4 3 4 3 OFF ON OFF Chapter 4 Relay Ladder Logic Programming Timer Instructions The SG2 includes a total of 15 separate timers that can be used throughout a program Each timer has a choice of 8 operation modes 7 for general purpose timing and 1 mode 7 for a pulse timer Additionally each timer has 6 parameters for proper configuration The table below describes each QU o configuration parameter and lists each compatible memory type for C6 configuring counters Symbol Description Compatible Instructions Range D Timer Mode 0 7 rus Ac do Timer Unit 1 0 00 99 99 sec Kevoad Inputs Z1 Z4 z1 z4 2 0
53. m the Edition Data 1 Cancel the setting when pressed SEL 2 Back to Main Menu Note When DATALINK is selected ID setting range is 0 7 which should be continuous ID 0 default as Master ID 1 7 default as Slave When REMOTE I O is selected the distribution of the remote I O is as follows Master Slave Remote Input X1 X12 lt 11 112 Remote Output Y1 Y8 gt Q1 Q8 5 RTC SET YY NN DD SG2 firmware Version MO HH MM Now Press Begin to input parameters zs PES Move the Cursor gt SEL then 1 YY 00 99 NN 01 12 DD 01 31 2 MOSTUSWESTHSFRESASSUSMO 3 HH 00 23 or MM 00 59 Save the Input Data 1 Cancel the Input Data when press SEL 2 Back to Main Menu 6 ANALOG SET Now Press l l Move downward the Cursor 2 Switch the setting screen from A1 A2 gt A3 A4 gt A5 A6 gt A7 A8 SEL Begin to input parameters s up Move the Cursor gt SEL 1 GAIN 000 999 TV 2 OFFSET 50 50 Save the Input Data 1 Cancel the Input Data when press SEL 2 Back to Main Menu Note VI A1 Al GAIN A1 OFFSET V8 A8 A8 GAIN A8 OFFSET Chapter 3 Program Tools 7 PASSWORD setting password PASSWORD X PASSWORD Y 0009 gt l Now Press 1 Begin to input numeral 2 When the password is ON it will not display 0000 but Press SEL Move the cursor gt Press SEL TY 2 Back to Main Menu Note If password numbe
54. ment can have up to 4 lines with each line containing up to 50 characters in length Below are examples of entering oymbols and Line Comments Symbol The Symbol editing environment can be access through the menu using the Edit Symbol selection or using the symbol icon on the main toolbar shown below The Symbol editing environment allows for documenting all the contact and coil memory types and selecting display modes as shown below Contact Coil Symbol Symbol Contact Coil I Input Contacti Start A Expand Input Contact Return Prt Output Contact Coil Ind Stroke EevF ad a Expand Output Contact Syn w Ladder Motor Prf Auxiliary Contact Timer Contact CtrltY Maint Reset Counter Contact Clear Comments ATC Contact Analog Contact Find HH LI Text Contact Replace One Min Time PWM Output Contact K d E AT FO PR MEX HMI Text Data Link Contact Display Enable Y 12345656788ABC Contact Coil Symbol Line Comments The Line Comment editor is accessed by clicking the N icon on the Ladder Toolbar After clicking on the N icon to drag the line number you want to comment and release and then type the desired comments and press OK L 123945678 Bid Line 2 Bain pr gr m nd Eotal times Line 3i 1 Line 4 l I 4 pmm amp drag
55. mer 4 Cur Valuel 0 00 Pre Valuel 3 33 PU UL mode 4 Timer 3 Cur Valuel 0 00 Pre Valuel 40 00 Chapter 5 FBD Programming 86 6 Timer mode 5 FLASH A Mode Bx x Ir garen Enable Input En 4 j L mode 5 FB KE Timer 6 l P Cur Valuel 0 00 Timing Parameter gt P a r Pre Valuel 5 00 7 Timer mode 6 FLASH B Mode mode Timer 7 Cur Valuel 0 00 Pre Valuel 66 00 Bx x mode 7 B Timer amp FByy Cur Valuel 0 00 J Pre Valuel 7 00 Timer 9 Cur Valued 0 00 Pre Valuez xv UU Timing Parameter P a r 12 RTC Comparator Function Block 1 RTC Mode O Internal Coil Enable Input gt JE n mode U EIC 2 RTC Mode I Daily Enable Input gt JE n D mode 1 B RTC 2 I UL tey ae RTC Parameter gt P ar DD 4 On 20 Off 17 0 Chapter 5 FBD Programming 3 RTC Mode 2 Continuous Enable Input gt E n D FBy RTC Parameter gt P ar ww 4J 4 RTC Mode 3 Year Month Day Enable Input gt JE n 5 FBy RTC Parameter gt par L MD 4 5 RTC Mode 4 30 second adjustment Enable Input gt E n __ FBy l RTC Parameter P ar 305 Analog Comparator Function Block 1 Analog Comparison Mode 0 Internal coil Enable Input gt Enable Input Enke soe Analog Input Ax 4aAy R Analog Input Ay 4f lt Ax pBy Reference Re ftay R mode 3 ETC
56. n for a certain period and closes if no visitor is present seg Sensor PG HH TTS T AR Close Limit 9 Ge EC E SE Open Limit R 14 PE T Inside Action Sensor Man Switc Appendix Application Illustration 2 2 Traditional solution Eeference Circuit L 51 HCZ MC HOD S 57 BI Moe MUI B2 MUS ELL 1 SZp ate Open the Door Open Close Waiting Time Whenever B1 or B 2 senses the approach of a visitor the door is actuated to open After an elapse of time B1 or B2 senses no presence of a visitor MC 4 will close the door 2 3 Apply SG2 in Door Control System Applying SG2 in door control system can simplify the circuit All that one need to do is connect the action sensor limit switch and contactor with SG2 Devices Applied MCI main door open contactor MC2 main door close contactor SI NC contact closing limit switch S2 NC contact opening limit switch B1 NO contact outdoor infrared sensor B2 NO contact indoor infrared sensor Wiring Diagram and Program with SG2 applied in door control system Appendix Application Illustration AC L m B2 51 52 a 3 AC Ladder amp FUNCTION I1 M1 001 IZ 002 M1 ti 003 il i2 id M2 004 i n E Tl 34 OOOO 005 C ICI TUI T1 M1 14 qz Q1 006 I C mi r3 qi Q2 007 a Appendix Application Illustration m FBD Operation Flow Bl BO6 1 OT mode 1 Cur Valuel Pre Valuel
57. n on the SG2 12x4 character LCD in text TIMERI VALUE numeric or bit format for tems such as current Tl HHH S ec TR value and target value for timers counters Input Output bit status RTC real time clock and Display Analog comparator Analog Display Set Phone Number Add Text Input RS Se C 701234586780 Each HMI instruction is configured separately using the Edit HMI Text menu selection from the SG2 Client software In the adjacent example HMI instruction H1 is configured to display the value of 11 and T1 and some descriptive text Numeric display data gt lt gt I GDABCDEFGHIJKLMNOPORSTU selections are Timer Counter RTC and Analog Bit yUxyz 1H CabcaetgnilklImnup display data selections for ON and OFF rstuuvmxy lome i a ai s ecili messages are I inputs M internal relays X TESARENYOODODLNUVOR AAF Pa rrt expansion inputs and Z keypad inputs 13 E PA UTIAITPT2OT39L2Z2UUSTUTREUT AJN INE YY EPI LOS oGBvC TLIXf HHETT 2 YUA AE Allows the SEL button on the SG2 keypad to activate the selected message onto the LCD even when Hx coil is inactive Chapter 4 Relay Ladder Logic Programming iT 1 Current unit Allows the HMI message to include coil number and selected value i e 112003 sec Provides access to the Analog Display Set dialog for gain and offset parameters shown below The Analog Display Set dialog allows the user to specify
58. ng Started Chapter 1 Getting Started The SG2 tiny smart Relay is an electronic device For safety reasons please carefully read and follow the paragraphs with WARNING or CAUTION symbols They are important safety precautions to be aware of while transporting installing operating or examining the SG2 Controller T WARNING Personal injury may result from improper operation AE CAUTION The SG2 smart relay may be damaged by improper operation Precaution for Installation T Compliance with the installation instructions and the user manual is absolutely necessary Failure to comply could lead to improper operation equipment damage or in extreme cases even death serious bodily injury or considerable damage to property T When installing the open board models insure that no wiring or foreign materials can fall into the exposed circuits and components Damage to equipment fire or considerable damage to property could result T Always switch off power before you wire connect install or remove any module T The wiring for the SG2 smart relay is open and exposed For the open board models all electrical components are exposed For this reason it is recommended the SG2 smart relay be installed in an enclosure or cabinet to prevent accidental contact or exposure to the electrical circuits and components AE Never install the product in an environment beyond the limits specified in this user manual such as high temperatur
59. om OFF to ON Once the output is OFF or reset it will remain OFF until it is reset using another output instruction It is not necessary for the preceding input contact controlling the Reset output instruction to remain ON I2 OFF ON OFF Q1 ON OFF Chapter 4 Relay Ladder Logic Programming 48 Pulse Output Instruction Flip Flop P A pulse output instruction or Flip Flop turns ON a coil Q or an auxiliary contact M when the preceding input contact transitions from OFF to ON Once the output is ON it will remain ON until the preceding input contact transitions from OFF to ON a second time In the example below When Pushbutton 13 is pressed and released Motor Q4 will turn ON and remain on When Pushbutton I3 is pressed again Motor Q4 will turn OFF and remain OFF The pulse output instruction P will flip flop its state from ON to OFF at each press of Pushbutton l3 I3 a4 Phutton Motor Chapter 4 Relay Ladder Logic Programming m Counter Instructions The SG2 includes a total 15 separate counters that can be used throughout a Oo G program Each counter has a choice of 8 operation modes 6 for general purpos counting and 2 for high speed counting Additionally each counter has 6 4 parameters for proper configuration The tables below describe each configurati parameter and lists each compatible memory type for configuring counters
60. onsecutive days RTC displays the minute of present time Set RTC hour ON Set RTC Minute ON Set RTC Hour OFF Set RTC Minute OFF RTC Coil Number R1 RF Total 15 RTCs RTC displays the hour of present time GQ 0 0 O Cl Edit Contact Coil x RTC Mode 0 Internal Coil Mode O RIC Internal Coil used as internal auxiliary coils No preset value In the example below shows the relationship between the numbered block diagram for a Mode 0 EE HIC the ladder diagram view and the software Mode o sl i4 Edit Contact Coil dialog box Internal Coil Weekion Off len v sv Current value 11 38 Freset value OG OO og Biz nei Direction Set Reset Input Contact sl Contact sl m TI R1 T R1 I OFF ON OFF El OFF ON OFF Chapter 4 Relay Ladder Logic Programming RTC Mode 1 Daily The Daily Mode 1 allows the Rx coil to activate based on a fixed time across a defined set of days per week The configuration dialog below allows for selection of the number of days per week i e Mon Fri and the Day and Time for the Rx coil to activate ON and Day and Time for the Rx coil to deactivate OFF Edit Contact Coil Function Mode fi v gs Every day action mode QD 4 6 Ce OVO Current value 11 43 Week Monday Tuesday Wednesday M Fndav Time S00 17 00 00 17 00 8 00 17 00 S00 17 00 ENABL
61. put Power Voltage Range AC Models 85 265V 24V AC Models 20 4 28 8V 24VDC 12 point 90mA 20 point 150mA 12VDC 12 point 150mA 20 point 240mA 100 240VAC 90mA 24VAC 290mA Programming languages Program Memory 200 Lines or 99 Function Blocks Programming storage media Flash Execution Speed LCD Display Maximum Number Timing ranges Maximum Number Highest count 999999 Resolution Time span available week year month day hour min Compare Instructions Analog Timer or Counter Values Maximum Number Compare versus other inputs Operating Temperature Range 32 to 131 F 0 to 55 C otorage Temperature Range 40 to 158 F 40 to 70 C Maximum Humidity 90 Relative non condensing 0 075mm amplitude 1 0g acceleration 8 point 190g Power Consumption Weight 10 12 point 230g C type 160g 20 point 345g C type 250g cUL CE UL Chapter 2 Installation Discrete Inputs Current consumption Input Signal OFF Threshold Input Signal ON Threshold Input On delay Input Off Delay Transistor device compatibility High Speed Input frequency otandard Input frequency Required protection 3 2mA 24VDC 4mA 12VDC 1 3mA 100 240VAC 3 3mA 24VAC 24VDC lt 5VDC 12VDC 2 5VDC 100 240VAC 40VAC 24VAC lt 6VAC 24V DC gt 15VDC 12VDC gt 7 5VDC 100 240VAC gt 79VAC 24VAC gt 14VAC 24 12VDC 5ms 240VAC 25ms 24VAC 5ms 24 12VDC 3ms
62. r 5 FBD Programming nope MVATT Res FByy PD Part C n tf T MATE Res FByy Parc Note High speed input terminal I 1 12 2 Counter Mode 8 High counting input Enable Input Reset Counter Parameter gt Note High speed input terminal I1 I2 mode 4 Counter 4 Cur Value 0 Pre Value 144 mode 5 Counter 3 Cur Value 0 Pre Value 155 mode Counter 6 Cur Value 0 Pre Value 266 mode 7 Counter 7 Cur Value 0 Pre Value 3777 mode Counter s Fixed Time 1 00 Upper 5888 Lower 4488 Chapter 5 FBD Programming Timer Function Block 1 Timer mode 0 Internal coil Mode Enable Input 2 Timer mode 1 ON Delay A Mode Bx x D 1 Enable Input gt En 4 L FByy Timing Parameter P a r L i 3 Timer mode 2 ON Delay B Mode Bx x MEN 1 Enable Input gt En 4 U L Reset Res KByy Timing Parameter P a r 4 4 Timer mode 3 OFF Delay A Mode Bx x Es seen Enable Input En 4 J Reset gt Re s 4 FB yy Timing Parameter P a r t 5 Timer mode A OFF Delay B Mode Bx x D a Enable Input gt En 4 J Reset gt Re s FByy Timing Parameter P a r n mode Timer I mode 1 Timer 2 Cur Valuel 0 00 Pre Valuel 1 00 mode 2 Timer 3 Cur Valuel 0 00 Pre Valuel 20 00 mode 3 Ti
63. r is 0001 9F FF program will be protected If password number is A000 FFFE program and all menu setting will be protected 8 LANGUAGE Selection menu language ENGLISH FRANCAIS ESPANOL ITALIANO DEUTSCH PORTVGVES SIMPLIFIED CHINESE pro in i i i EE EE E EE VV V V V v 3 Now Press Vertically move the Cursor Select the language the cursor located Back to Main Menu Sample gt ENGLISH V FRANCAIS ESPANOL ITALIANO ENGLISH W FRANCAIS ESPANOL ITALIANO ENGLISH FRANCAIS V ESPANOL ITALIANO Chapter 3 Program Tools 8 INITIAL select Ladder Logic and Function Block Diagram FBD INITIAL Now Press Vertically move the Cursor Select the language the cursor located Back to Main Menu Chapter 4 Relay Ladder Logic Programming m Chapter 4 Relay Ladder Logic Programming Common Memory Types General output SET output RESET output PULSE output N O Contact N C Contact Number Symbol A y P E Jr N O N C Input contact i 12 11 IC i1 iC Keypad input Z Z 4 Z1 Z4 z1 z4 Output coil Q Q Q Q Q q 8 Q1 Q8 q1 q8 Auxiliary contact M M M M M m 15 M1 MF m1 mF Counter C G C 15 C1 CF c1 cF Timer T T T t 15 T1 TF t1 tF Inputs I Memory Type The SG2 digital input points are designated memory types The number of digital input points are 6 8 or 12 depending on each SG2 model Keypad Inputs Z
64. red block diagram for a Mode 7 Counter the ladder diagram view and the software Edit Contact Coil dialog box Edit Contact Coil x o Is Is r e r au o Select Coil Wa Output Type 4 fr f keset i 1 9 4 B C DENE EH 5 6 Function Mode E v Se Scale Input Counter ES Current value 000000 T Preset value 050000 T OO0000 Freset type mn sl OS0000 Fel M35 999999 999999 999999 1 0 Pe Gad e e e Je VE Pe be zm vm vm e ben RARE pe e ee ben e ben e vm mm GR e Pm pe gn e VE WR Gud mmm Pe Pe Pen en vm em Pe pe Fe em mm pe en EMEN GENES pe e ben em em ve mm Fe G g I eas a 999998 OFF d OFF Chapter 4 Relay Ladder Logic Programming High Speed Counter Mode 8 DC powered versions only The Mode 8 High Speed Counter can use either input terminals 11 or I2 for forward up counting to 1 KHz maximum at 24VDC high speed input signal The selected Counter Coil C1 CF will turn ON when the pulse count reaches the target Preset ON value and remain ON until the pulse count reaches the target Preset OFF value The Fixed Time xxxx The counter will reset when the preceding rung is inactive The table below describes each configuration parameter for High Speed Counter Mode 8 Symbol Description Counting Mode 8 Frequency Comparison High speed counting input terminal only I1 12 Counting interval time 0 99 99S Counter on target va
65. ring all available Ladder Logic instructions T Status Bar Status of current open project and connected SC2 smart relay CA spasity BOO free spare 2 P Mode Program Dp Y 123455789ABC Lease Pel 33 Iri 123456 78 ABC M 123455709ABCDEF D04 T 122455TDDABCDEE DOS on 1214 SETE BARENE F 12 1456 THUAECDEF DOR DER Chapter 3 Program Tools Programming The SG2 Client software can be programmed by either drag and drop of instructions or by using keyboard entry commands Below is an example of some common methods of entering programming instructions oi gen zi d Y DEET Te TE zji EES UK TS La Te ebe d Fa LD ba HEI oi Ven Lia Shia kr l10AN TERRI fa fa E D LU Ch d a LI baa Te bil nm DEEE jae Bi td eis ce Fi ain Lu Li H 2 8 a b 1 PEER TLE T8 Eege Ten tji A 3nd 31 14 TERRE low iia OU The A and L keys or icons are used to complete parallel and serial circuits The rightmost column is for output coils ida Si LCS CIS Greng spas FC Mode Program T il spidd L ea on za Un Coil column for outputs Ei LS 149 Mikal LEST dnd i I ei BARC i LnA1EIESLRCSER eee Be el ENEN HELET ee TEAL HEF wiLpTETA TELUH EEF milia ITT Li LIMTE bat Chapter 3 Program Tools Simulation Mode The SG2 Client software includes a built in simulator to test and debug p
66. rograms easily without the need for downloading to a controller To activate simulation mode simply press the red RUN icon The program below is shown in simulation mode identifying the significant available features P LM regen ge eg Ian ege zeg ei 1 EST d El i LL Lape TID Tres apara Fo Mola pmm S i dinalis 1 1 Ear Fr I to vier current WU ECK ans Tmmert ounter gum values Actre circuits change color A24 AE bd cedi Ge Te pe Har Uo see lise 66 Highlight coil F B P E eieiei 5 Establish Communication The following is the simple procedure for establishing communication between the connected PC and the SG2 smart relay a Select Operation Link Com Port as shown below CE LAD Version 1 8 File Edit TEEN View Help E Monitor Simulator Eun Ctrltk stop CtrltT Qui t Ctrl Q COMS PORT Read COM2 PORT COM PORT Write COMS PORT 0 COM PORT RIC Set E Analog Set C COM4 POET 0 COME PORT Password EE AE EE Language Module System Set Link Link Com Fort Chapter 3 Program Tools b Select the correct Com Port number where the programming cable is connected to the computer then press the Link button c The SG2 Client software will then begin to detect the connected smart relay to complete it s connection as shown below Please Wait a Moment How Detect 5052 ID 1 Writing
67. s the button to show I1 i 1213 1415 161718 Column Linel Q 1 2 Press SEL TV 3 and the digital cursor located will 4 I 1913 1415 167 8 Press SEL q 1 start end modifying parameter Line I 1 1213 1415 161718 q l Press SEL lt gt gt the cursor located in digital Procedure 6 1213 1405 161718 Press 7 for 3 times Press SEL tT V the digital the cursor located will change from to 4 Press SEL lt to move the cursor to the position Required revision Chapter 3 Program Tools Procedure 7 11 213 1415 6 7 8 Column Press OK Line 1 q 4 2 Move the cursor to character in 3 column 3 4 Procedure 7 Ul e 1213 1415 16 17 18 Column Press gt Line 1 q 47 2 move the cursor to the link location 3 in column 2 4 Repeat the step1 7 and input M1 I3 Instruction to column 3 5 Procedure 8 1 JAR A S 261718 Column Press OK in Column 5 Line 1 q 4 M 1 I 3 move the cursor to the character in column 8 Procedure 9 Press SEL when the cursor located at character and digital press SEL to show QI DOG nee LJ E bL z Tz Tran oc aos ITum 7 1 Procedure 10 m 1213 1415 161718 Column Press OK Save the input program data the position of the cursor will not move Procedure 11 1213 45 GS Column Press tw
68. s the preset of 5 seconds timer status contact T1 turns on When T1 turns on output Q4 turns on Turning off I3 will reset the timer OOS O06 Counters and Counter Status Bits C Memory Type Counter status bits provide the relationship between the current value and the preset value of a selected counter The counter status bit will be on when the current value is equal to or greater than the preset value of a selected counter In this example each time the input contact I4 transitions from off to on the counter C1 increments by one When the counter reaches the preset of 2 counts the counter status contact C1 turns on When C1 turns on output Q5 turns on When M2 turns on counter C1 will reset If M9 is turned on the counter will change from a count up counter to a count down counter 1 M34 OO0O000 OO0002 Fel I4 agi al Dn OOS Chapter 4 Relay Ladder Logic Programming Specialty Memory Types General output SET output RESET output PULSE output N O Contact N C Contact Number Symbol A Y P x I ma N O N C Lo Hi Used in function block Expansion input coil X X 12 X1 XC x1 xC Expansion output coil Y Y Y Y Y y 12 Y1 YG y1 yC Differential one shot D Positive d Negative RTC R R r 15 R1 RF r1 rF Analog comparator G G g 15 G1 GF g1 gF HMI H 15 H1 HF PWM P 1 P1 DATA LINK L 8 L1 L8 Positive Input Different
69. set definitions 4 LAT ee e E xj EIS Fy gt sl BC Mim rge en reed 11845 Tira Ei LE HSE TVG dri ful TrliIg434 TW BLE ni Lees Ti doe he Pe eee Ci Le ee FriI NETTLESER F 4 i f eng Seet Crarasv Rn Br LU BERGERE pi PES KEE Kg E var Li 12145676 E fs fv wig NIA ar s 010 011 n1z 013 14 e d k Al a8 a aol an Eo Mel Abel el feel 42 21 1 2 S14 odd None gen ND ex StotusStop OFFUNE Model SHIHA Ga Note If the ladder toolbar is not visible at the bottom of the screen select View gt Ladder Toolbar from the menu to enable Quick Start Setup D Use the A key on your keyboard or the A icon from the ladder toolbar to draw the horizontal circuit line from the M contact to the right most cell as shown below D ER keen Be xm een 1 Haa opor DIS 6 t EN gegen E E PT ies Team mm FTm m ciri tn Frog aoi Fr FIA TRA KREE DD ii Ss LI AA Sek HEHH fil Kn KREE TESLAS Ws LEM Teco Wa a pape RE ee ey EY i3 Ca MAMARE ba LIMA TA SIE ana Gol Le Tae EF Be Liat MART oni L 12345678 bett 008 009 010 011 012 013 014 T e J 3E 3E 35 0 hol 45 0 46 0 45 0 35 0 gro 48 91 1045 As D E RTT e select the Q coil icon from the ladder toolbar and drop it on the right most cells Select Q1 from the dialog and press OK as shown below See Chapter 4 Ladder Programming instructions for complete instruction set defini
70. splay stages 1 8 OFF X X X 10 OFF Display the present stage as operation 0 8 ON OFF OFF OFF 1 Set stage 1 Input Selected Stage 1 I1 gF ON OFF OFF ON 2 Set stage 2 Input Selected Stage 2 11 gF ON OFF ON OFF 3 Set stage 3 Input Selected Stage 3 11 gF ON OFF ON ONI 4 Set stage 4 Set PWM pulse width 0 32768ms ON ON OFF OFF 5 Set stage 5 2 Set PWM Period 1 32768ms ON ON OFF ON 6 Set stage 6 PWM output terminal P1 ON ON ON OFF 7 Set stage 7 ON ON ON ON 8 Set stage 8 Output Type fe 4 Reset C Set P Gy Select i 8 i h Current value 00000 ma oo000 ma Preset value 00010 me 00005 me Select input points Bigh gt Low bit 1 E sell 1 v 3 1 v 4 cane dl I34 00005 kp Iz 00010 Chapter 4 Relay Ladder Logic Programming Data Link Remote I O Instruction SG2 20Vxx Models Only The SG2 20Vxxx transistor output models include the capability to link additional SG2 20Vxx units via the RS 485 connection terminals Up to 8 additional SG2 units can be configured as independent Slave nodes each running their own logic program and their I O linked to one Master smart relay Up to 2 additional SG2 units can be configured as Remote I O nodes and linked to one Master smart relay Symbol Description Selectable Points Range D Mode setting 1 2 1 sending 2 receiving Inputs I1 IC i1 iC G
71. stop timing when it reaches the preset value of 5 seconds Timer status bit T1 will be ON when the current value is 5 Edit Contact Coil q x Q x a T e R gt Select Coil NO 4 Function 5 Mode fi lene cres GJEN On delay timer mode 1 Time Base 1 SEG v Current value 0000 Sec Preset value 0005 Sec Preset type fn Direction Set Reset Input Contact Contact en Enable Reset Relay 4 4 Geen s S et EJ Present Value 0 Timer Starts Operating resent value Timing enable Relay OFF ON OFF t 6 3 Time up TI TE OFF ON OFF OutputTermminal Timer Target Value Chapter 4 Relay Ladder Logic Programming Timer Mode 2 ON Delay with Reset Mode 2 Timer is an ON Delay with reset that will time up to a fixed preset value and stop timing when the current time is equal to the preset value Additionally the current time value is non retentive and will reset to zero on a loss of power to the smart relay The timer reset input is Input 11 In the example below the timer will stop timing when it reaches the preset value of 5 seconds Timer status bit T1 will be ON when the current value is 5 Edit Contact Coil x Q E u T c R gt Select Coil MO Function 4 Mode 2 0 6 7 P 3 On delay timer mode 2 Time Base 1 SEC v Current value 0000 Sec Preset value 0005 Sec Preset type u v on
72. t 1 5 set as the initiate of I3 the state of actual sending terminal I3 I7 is sent to memory list the controller ID 3 the state of corresponding memory list position W25 W32 and relationship of sending terminal is as below D 1 2 5 G D I7 ID 3 D W25 W32 Memory List Position W25 W26 W27 W28 W29 W30 W31 W32 Corresponding receiving i i i i i i or sending termanianl D HH D 16 I7 0 0 0 Example 2 Data Link Receive mode 2 Set 2 5 set as start from M3 set as start from W17 when enabling the Data Link the state ON OFF of M3 M7 is controlled by the state of memory list position W17 W21 D22 2555 M3 M7 8 WI17 W21 Memory List Position WI W18 W19 W20 W21 Corresponding receiving Yo vr Y Y or sending termanianl M3 M4 MS Mo Mi Chapter 5 Function Block Diagram Programming FBD Instructions Note FBD program can only be edited and modified in SG2 Client software and write to SG2 controlled equipments via communication cable Via controlled equipment FBD program is available for querying or the parameter of the function block of the program for modifying Chapter 5 FBD Programming Function Block Input Output Coil Range Input I I01 IOC 12 Keypad input Z Z01 Z04 4 Expansion Input X X01 X0C 12 Output Q Q Q01 Q08 8 Expansion Output Y Y YO1 YOC 12 Auxiliary M M MOI MOF 15 Knob N N NO1 NOF 15 HMI H H01 HOF 15 PWM P PO1 1 S
73. t a fuse between each output terminals and loads Wire size and Terminal Torque 7 I ll Cl p Lc mm 0 14 1 5 0 14 0 75 0 14 25 0 14 25 0 14 1 5 AWG 26 16 26 18 26 14 26 14 26 16 I V Dh Nr Yo D Nm 0 6 2 3 5 Zeg C 0 14in amp 3 Ib in 54 Input 12 24V DC 0 10V Analog 0 10V An Sox X X XS CX ON OX VZ K NNN X hel N x N l al Toc l1 12 13 14 15 16 A1 A2 Toc Ii l2 13 14 15 16 I7 18 A1 A2 A3 A4 OO 20000000 OO 2000 20000 22220000 DC V Input DC V INPUT Tace TAIAN TEC TAIAN Sensor Connection o QU M P 13 M 15 16 At A2 AL A2 A3 A4 OO 220200000202 ee A A A DC V Input 0 10V Analog Ed l1 V1 C1 PE i fNC N ket A TS QS DC 24v OO 4 SG2 4Al Input 4 x 0 10V 0 20mA OOOQOQO0 l2 V2 C2 PE wu I3 EN in a J J J JIN J V3 ON H J INJA A C3 14 VA CA II QS OG Ll LN Y LG l1 12 13 14 15 16 Output Relay
74. th a counter in applications where it is necessary to count the number of time cycles completed Bye Timer Mode 7 uses two timers These timers cannot be reused as timers for other modes in other areas of the program 2 1 Edit Contact Coil Output Type Bb pagar e ZC Set fe P Function Mode E si O 6 P Flash timer mode 3 T1 Time Base 0 15EC v Current value 000 0 Sec 000 0 Sec Freset value 002 5 Sec 001 0 Sec Beer type n v Direction Set Reset Input Contact cl Contact T S Cancel enable reset relay Tier pd s EE Enable reset relay present value 0 I P B Jed present value I timing enable relay tl t Timer up output terminal T1 TF tl target value set in the first timer t2 target value set in the second timer Chapter 4 Relay Ladder Logic Programming Real Time Clock RTC Instructions EE The SG2 smart relay includes a total of 15 separate RTC instructions that can be used throughout a program Each RIC instruction has a choice of 5 operation modes and has 10 parameters for proper configuration The initial clock calendar setting for each connected SG2 Hour Minute 08 is set using the Operation RTC Set menu selection from the SG2 Client software Year Month Day oe Symbol Description Input the first week to RTC Input the second week to RTC RTC mode 0 2 0 internal coil 1 daily 2 c
75. tions 00 240V o X EM tuns d 50 60 Hz N HM LN T Quick Start Setup 3 Connect Programming Cable Hemove the plastic connector cover from the SG2 using a flathead screwdriver as shown in the figure below Insert the plastic connector end of the programming cable into the SG2 smart relay as shown in the figure below Connect the opposite end of the cable to an RS232C serial port on the computer EN 4 Establish Communication a Open the SG2 Client software and select New Ladder Document as shown below Fea SG Client File Help Link Com Fort C Quick Start Setup 6 Select the correct Com Port number where the programming cable is connected to the computer then press the Link button Link Com Port t COMS PORT COM2 PORT 0 COMS PORT l COM3 PORT COM PORT COM4 PORT C COMS PORT Unlink Close The SG2 Client will then begin to detect the connected smart relay to complete its connection as shown below Please Wait a Moment How Detect 5052 ID 1 5 Write simple program Write a simple one rung program by clicking on the leftmost cell at line 001 of the programming grid then click on the M contact icon on the ladder toolbar as shown below Select M1 and press the OK button See Chapter 4 Ladder Programming instructions for complete instruction
76. tions Ch ES Jaa Gs eg Go egi isl amaa alaena ej LL faerie aparity TT fres epee Bo er Proa ge Fial bi ti tend km Pig mt f l d Fi LASETE AUC 218234 2 111 Ka OTE in gu lib dui fy LI eT Mi PDA DET EF Fi id E TERRE TET GENIE eo Ki 11142474 LO H EI TANETERADEHER EE TE dd D L 12345678 oH 00 Current value Preset value Direction Set Reset Input Contact sl Contact sl a case Pi E AE AE 9 Ar 1r E a P E A 5 C T None gen Ver xx Status Stop OFFLINE Model SG2 12HR D ID 00 d e s r vM LGS Dk Edit Coil Contact Quick Start Setup Test the simple program From the Operation menu select the Write function and write the program to the connected smart relay as shown below CE LAD Version 1 8 File Edt e Monitor Simulator Caen Symbol Run CEri R v Stop Ctrl T uit Ctrl Used z q I 1234 Read write x 1234 RTC Set 0 1234 Password a Language Y 1234 Module System Set Link Com Port Select the RUN icon from the toolbar and select No when the pop up message asks Do you want to read program from module as shown below LAD Version 1 8 Operation View Help Symbol taps dn Proga 00i T 123456789A8C a lz34 OG2 BE 123456789ABC Q l2345678 Pil 203 123456789ARC M 12345679 9AB
77. to ON it will not turn on its C1 status bit when it counts down to zero The C1 status bit is fixed to the non zero preset value regardless of the state of the direction bit Additionally the Mode 5 counter is always reset to zero unrelated to the state of its direction bit The Mode 5 Counter will count up to a fixed preset value and continue counting after the preset value Additionally the current count value is non retentive and will reset to zero on a loss of power to the smart relay In the example below the counter will continue counting after its preset value of 20 Counter status bit C1 will be ON when the current value is 20 x Edit Contact Coil Q v IE c z lr Select Coil NO Output Type Ge Reset C P 1 9 B C D E F EE Function 6 QO Mode 5 v 1 81 With overtaking and without power dovn Compare Counter Current value 000000 Preset value 000020 Preset type u v Direction Set Reset Input Contact m v 1 Contact 1 v ceni 5 Mi4 UOOO00 OO0020 Fel Iz 20 silver bee S T ee ee es ea mt DP SA SE TSN AS DENS 101191 191 201 201 211 211 201 201 191 191 191 181 19 19 20 0 olol g OFF ON OFF ON OFF ON 6 OFF ON OFF ON OFF Chapter 4 Relay Ladder Logic Programming Counter Mode 6 Continuous Count Up Down Counter Retentive Mode 6 Counter operation is similar to Mode 4 where its current count value is continuous and retentiv
78. unter will continue counting after its preset value of 20 Counter status bit C1 will be ON when the current value is 20 Edit Contact Coil zl o Is dm je 6 je Au 1 Select Coil NO Output Type fr 4 Reset C fi vi Me TE DE JE ee 4 Function 5 node 2 sl 1 8 Counter with overtaking and without e power down retain current value Current value 000000 Preset value 000020 Freset type IN v Direction Set Contact n v 1 2 M14 000000 Reset Input OOOOG20 Fel IZ Contact M cane OFF ON OFF OK OFF QN OFF Chapter 4 Relay Ladder Logic Programming Counter Mode 3 Fixed Count Retentive Mode 3 Counter operation is similar to Mode 1 except its current count value is retentive Mode 3 Counter will count up to a fixed preset value and stop counting at that value Additionally the current count value is retentive and will keep its current count after a loss of power to the smart relay In the example below the counter will stop counting when it reaches the preset value of 20 Counter status bit C1 will be ON when the current value is 20 Edit Contact Coil x Q v IE C R gt Select Coil NO Output Type 1 xj Reset 1 T Be c uon a pu enm PS CES Function Mode Counter without overtaking and with power down retain current value E Current value 000000 Preset value 000020 Preset type mn x Direction S
79. www taian technology com zeng 862 Client Welcome to the 5G2 Client Setup Wizard This will install EG2 Client 1 8 on your computer It is racommendad that you clase ell amer amp pplicanons bean continuing Click Meat t Gone or Cancel t edt Setup Connecting the Software Remove the plastic connector cover from SG2 using a flathead screwdriver as shown in the figure below Insert the plastic connector end of the programming cable into the SG2 smart relay as shown in the figure below Connect the opposite end of the cable to an RS232C serial port on the computer Chapter 3 Program Tools Start Screen Run the SG2 Client software and the following Start screen will be displayed From this screen you can perform the following functions New Ladder Program Select File gt New gt New LAD E G clie to enter the development Se x environment for a new Ladder Ele Hep program E RU z New FBD Program Select File gt New gt New FBD to enter the development environment for a new FBD Function Block Diagram program Open Existing File Select File gt Open to choose the type of file to open Ladder or FBD and choose the desired program file and then click Open Ladder Logic Programming Environment The Ladder Logic Programming Environment includes all the functions for programming and testing the SG2 using the Ladder Logic programming language To begin
80. xample below Mode 4 is the selected function that compares the value of analog input A1 to a constant value N of 2 50 Status coil G1 turns ON is A1 is to 2 50 Edit Contact Coil x Jr de r s x Au Select Coil NO Function Made a v OS 7 x lt Reference value Current value 00 00 Al 00 00 he Preset value 02 50 Ret Preset type wu Direction Set Reset Input Contact cl Contact sl 4 A14 ODO 00 Az4 DU 0057 pol 02 50 Chapter 4 Relay Ladder Logic Programming Example 2 Timer Counter Preset Value Compare The Comparator instruction can be used to compare Timer Counter and RTC values to a constant value or to each other In this example below Mode 5 is the selected function that compares the value of Counter C1 to a constant value N of 15 counts the decimal point is ignored Status coil G1 turns ON if C1 is to 15 counts Edit Contact Coil EM Jr de r s Iw Au Select Coil NO Function Hode 5 v DEI 5 x gt Reference value Current value 00 00 CL 00 00 he Preset value 00 15 Ret IEEE type Ip Direction SEE Reset Input Contact Contact sl Clq 00 00 AZ4 00 00 fel 00 LAN HMI Display Instructions The SG2 smart relay includes a total of 15 HMI instructions that can be used throughout a program INGUT FAULT ELEM cono Each HMI instruction can be configured to display l1 Counter zl informatio
Download Pdf Manuals
Related Search
Related Contents
Sony VPCZ2290X Quick Start Manual Sharp PG-D3750W Specification Sheet 第5次中期経営計画の折り返し地点を迎えて DV 14DJL • DV 18DJL instrucciones de uso dd51-e - CDM SEPRAN Montage, Betrieb, Wartung ProStar GW 24 HST Easy•Touch® Control Solution Insert Issue 1 - Fall 2007 Copyright © All rights reserved.
Failed to retrieve file