Home

SG2 Smart PLC USER Manual

image

Contents

1. A gt AN EE n po M I2 13 14 15 16 A1 A2 f input X1 X2 X3 X4 ZH SS em L N AC100 240V DC24V Input 8x DC A1 A2 0 10V 09 dii lt 4 L Py TEGO EEC d JI e SI SX ew m y val rer e Am CX p Uy al SG2 8ER A SG2 1 2HR D Output 4 x Relay 8A Lo ET A 2 pesce f AN N O C e N Y SINO Pu N Output 4 x Relay 8A A Yo OO 00 QO DAP OQ OO CY 1 1 Ly Ly pl Q1 Q2 Y3 Y4 o S55 Direct Mounting Use M4 screws to direct mount the SG2 as shown For direct installation of the expansion module H 12 13 14 15 16 A1 A2 AN CALAN ONO YO ONES NN Ne NU ANUS N ER GRAS a Input X1 X2 X3 X4 Ax AC OOO Naso ez e LA DC 24V Input 8 x DC A1 A2 0 10V 3 L N AC 100 240V TEC TEC Ma Chapter 2 Installation It is recommended to apply a DIN rail end clamp to hold the SG2 in place junting Clip gt M B Run SG2 12HR D ae e SG2 8ER A Output 4 x Relay 8A Output 4 xRelay 8A Yi Yo NEN PS VAN TAN AN IOS TENGEN TENS VAN 7 NIN S E ee eee Nune ee LI
2. SG2 10HR A OUTPUT 4 Xx RELAY BA So ed gt y m Y gt y Q1 Q2 Q3 4 NS TOUT L Connect to TP03 with the TP03 302PC cable comcom 0 1 2 3 4 5 6 7 10 11 12 3 FIN 7 N RuN SR A odd ay E J C i EN TPO3 302 C i y 69999 J 28999 6000 00000 20900 pU ju 6 20 9 6 IBID T3 2220220249 00070080 2020220249 A J 20000000 O Chapter 9 Expansion Module O O N 241 Chapter 9 Expansion Module 242 LED state display GSM module has two number of double color LED used for fast diagnostics to indicate the state MS Module State LED ON when the moment Power on program initialization power on then OFF O Link to PLC normally Flash 2Hz Fail to link to PLC Flash 1Hz System configuration mode Flash 5Hz Hardware error NS Net State LED Flash 5Hz Search net signal about 20s Flash 0 5Hz GSM net ready signal weak Flash 1Hz GSM net ready signal strength o OFF No power or module error More information to see SG2 GSM Module User Manual Appendix Keypad Programming Appendix Keypad Programming Appe
3. N RS485 2 RS485 2 RS485 Chapter 2 Installation 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 I O is available it only can connect 2 products max Master amp Slave More information about RS485 Model communication to see Chapter 8 20 Points RS485 type Models Instruction 1A quick blowing fuse circuit breaker or circuit protector Surge absorber 43V DC Surge absorber Input 24VAC 43V Input 100 240VAC 430V AC Fuse circuit breaker or circuit protector Inductive load Comply with standard EIA RS 485 K type Indicator Light There is an indicator light to indicate the status of SG2 K type smart and the below table shows the relationship between the light and the SG2 status Power up SG2 is stopping Flicker slow 1Hz SG2 is running Flicker quick 5Hz SG2 is under failure status Flash error Illogicality in user program Expansion model error RTC error Chapter 3 Program Tools Chapter 3 Program Tools PC Programming Software SG2 CUM 21 Instalhitis the SoftWare A A A A 21 BONN he SOW ITE eiei e snes AE A e 21 SIE CC CU AE IN E A O 22 Ladder Logic Proctamimino ES 22 Memis Icons and S aBa a tenen DER TAA E T 23 PrtoPpfatmmitigz d o o RO MR Me A IN 24 SLO i VOCE
4. DANGER HAZARDOUS VOLTAGE Cut off all power before maintenance Electric shock will result in death or serious injury Chapter 9 Expansion Module 216 Digital IO Module The SG2 must set the number of expansion IO when connect expansion module The method of setting IO number is shown below 1 Keypad 2 SG2Client software Nodule System Set Set ID Current ID 1 New ID 0 28 1 C Master Slave j M Eeep C Keep Back Light 2 Ser RS465 Ser DR Fomat Set Comm Mode 5 R 2 Unsigned Baud Rate s8400 C Signed Expansion display State Expansion Input state BH ON J ACA00 240V L OFF Expansion module state B Linked e Not Linked L Not Set Installation and Wiring Chapter 9 Expansion Module PA Expansion Output state MON OFF OA E type of expansion module SG2 8ER D 8ET D SG2 8ER A 8ER 24A A E 1 power ports NE x4 X2 X3 xd q 5565 amm flex installion trilby AL ON Ac aaa H AL 100240 MO NEN 3 input ports 4 status LED light 5 button SERA a 6 output ports linker E EE a 2 4A Suz BER D zoe Qu I1 1 C1 Ts V6 PE n OSI INPUT AT AZ X3 Ad ORC 2999 do 00 _ AM 26 0 j INPUT 41 AZ A3 Ad Ax AC ARDEN o7 OO M s 2 BER A 52 44 Input 4x D 10340 20m 222 999055 Cha
5. Installation Al the expansion modules except ENO1 and GSM module installation method is the same as shown below ES E SY IA N C M WS ELM y f ug a N an N Y ln Input X1 X2 X4 Vo y m 4xAC OOGO fff AA Nu N Ro Ne Gp 5 A C Y lt et N L N AC 100 240V OO Ce ES Run c KR Y e SG2 8ER A Output 4 x Relay 8A 214 Chapter 9 Expansion Module 215 LO NNEC TOR M 2 4 B IB A1 AZ COO OAT 24y Input 8x OCALA 01047 ri me 5 aX AC CON MS i FREZS BUTTON 772 OA 5 62 5ER A Oulpul x Relay 1 E E ar Esc ITE 395695 Ya Ya op 99 99 99 Din Kail L A wur K NE Ma 35 00001 L N Alidir N j TOE li lz i H B IB Al x oo 606600000 DC24V Input 8x DC AT A2 0104 MAX200 88x37 5G27 8ER A Quipul x Relay EA POR Q9 90909 oG212HR D LONNECTOR Output 4 x Relay BA Enor ae Ge SP we E pem A mm 0 14 15 0 14 0 5 0 14 25 0 14 2 5 0 14 1 5 AWG 26 16 26 18 26 14 26 14 26 16 gt O C a 03 5 D Nm 0 6 0 14in gt Di A
6. 0300H 033BH User character address 03H 0H 0400H 043EH Preset value of register 03H 10H Now command Get more protocol information form R09 SG2 C03V04 SG2V3 Modbus protocol Chapter 9 Expansion Module 211 Chapter 9 Expansion Module RS LL ZE T aka 212 Dita e a mers ay Somer NA l tnnt teinte aoc s Cree TT 216 Anos Moda rd ROT MCN T DEO 220 Amalos Input MOSgUle AT usted toe uus dust mani solan alamama Anel 220 Temperature Input Module JP sade eaqui al A AR 22 AMOC Output Module 2 6 dd dd LEE oboe Lino Life iint 2227 Communication Module tei tioni doa oen G kal se iet Ufo ileriki ita assi bdo sia be nica 224 MEUS Nod ote o a IM aos 224 IB Estilo 227 EBO MOTE sa e ln in al DEM Tener 230 AL A EL PAPEN I e e e Ne e EE nS Deer 233 E NE S E NE ANA E S fM AK YOR A EN 239 Chapter 9 Expansion Module Pu Summarize Digital Input Output module SG2 8ER A SG2 8ER D SG2 8ET D SG2 8ER 24A Analog Input module SG2 4PT SG2 4AI Analog Output module SG2 2AO Communication module MBUS DNET PBUS ENO1 TCP IP GSM SG2 RS485 type H type and K type all can connect expansion module And the maximal expansion team is 3 Digital IO modes 2 Analog Output modes 2 Analog Input modules one 4PT and one 4AI and 1 Communication module The sequence of these expansion modules connect with SG2 is digital
7. Cancel Enter the Local Port member and click OK Note The Host member is the Automation obtain IP to your unit e g 10 128 19 119 The TCP Port member is the Local Port member 10001 9 Click Port Setting button Choose the Raw Mode option and click OK Fort Settings X Timeout Reconnect Faree v2 Protocal Server Reconnect No Net Close Inband Listen Raw Mode E l nj m 7 E Connection Timeout o y Peconnect Limit Chapter 9 Expansion Module 10 To hide the pop up window check Silent Mode on the Com Port Redirector Configuration window m ov Lantronix Eedirector Configuration Port Configuration Advanced Redirect COM3 F To 10 128 19 119 10001 11 Click Save button and Close button Note After completing this Configure you can Link and control your product Choose the Com port and click Link button Link Com Port Selecting COM C COM 1 PORT C COM 5 PORT C COM 6 PORT Mom gt gt A Connect Successfully COM 8 PORT is 5GZLADDEK nmm 238 Chapter 9 Expansion Module 259 GSM Module Summarize With a GSM module SG2 V3 2 and above vision TP03 can be monitored and controlled by sending and receiving short massage Module support dual band EGSM900MHz DCS1800MHz those frequency channel support all the world except North America GSM Cell Configuration y VA N N Flexed installation feet 24V DC power supply p
8. gt Flick 3Hz expansion module is fault l Pr 1 data transfer error END a rr cee connecting is error with module before Digat dx Rely 54 DERELER Duy we XE WW IE AEN Sr Se Chapter 9 Expansion Module 220 Analog Module The maximal assembled of Analog expansion module to SG2 is 2 2AO 1 4PT and 1 4AI Analog Input Module 4AI The 4 channel 12bits analog input of 4AI corresponds with A05 A08 It accepted the 0 10V voltage signal or 0 20mA current signal and 12bits data 0 4095 stored in data register of DEEC DREF When input 0 20mA to Expand analog input AO5 A08 corresponding value 0 2000 will be stored in DRE4 DRE7 Digital output 0 00V 9 99V 0 00mA 20 00mA A05 A08 0 999 0 500 Register DREC DREF 0 4095 0 2047 value Definition 2 5 2 500 The current value of 4AI input displaying as shown below AQS 01 36V Press key A b b d4m AUbD UZ bTV SEL gt A06 10 Z ml AOT 05 d Elec A T 15 T6m A0s 06 21V AQB 20 OOmA Wiring E pep Awalec amp 2imA Analog y U n E 2 E a d re 24 o i q D PE jd e vzore ES l JJ l ii uw Iu OO OO e m o e INPUT 0 10V 4 20 mA INPUT 0 10V 4 20 mA
9. Select Coil No MU lol 01 0F Dros Hi L DREQ 4 Function Hode a y Read coil Remote ID oi Setting address DRO3 0001 Red 7 DR Setting data length R04 0015 hex 0006 O FFEF the data length is DRO4 The max Send data length of Data is 400 Comm data DR eo 01 01 00 01 00 OF CRC16 Received response from slavel 01 01 02 datal data2 CRC16 saving data to DREO DREO datal 2 the max length of data is 400 Chapter 5 Relay Ladder Logic Programming OE MU mode5 Write single coil Setting parameter communication address is constant Edit Contact Coil Function parameter display rSelect Coil No r 1 o lwo lor 01 0F Function Made s F Write single coil coos Hid L DREQ 4 DE E Address is constant 0003 nein 0003 cm gt Setting data DRE0 65280 hex FF00 Send data 01 05 00 03 FF 00 CRC16 Comm data DR Eo Received response from slavel 01 05 00 03 FF 00 CRC16 8 UO A PCM Function parameter display MU o1 01 0F r5 1 Function Mode s Write single coil Remote ID on pros Hi L DREQ 4 0 7F Comm add or RE Setting address DR03 0001 O FFFF WE Setting data DRE0 65280 hex FF00 Com data DR ro v Send data 01 05 00 01 FF 00 CRC16 Received response from slavel 01 05 00 01 FF 00 CRC16 Chapter 5 Relay Ladder Logic Prog
10. available SG2V3 type E 2 SG2V3 program unavailable SG2V2 type Chapter 3 Program Tools LCD Display and Keypad Keypad 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 PM05 memory cartridge and updating the RTC Real Time Clock Calendar Although logic programming can be performed from the keypad and display it 1s highly recommended to only perform logic changes using the SG2 Client software Below is an overview of the basic keypad and display functions Select SEL 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 are used to move the cursor throughout the functions of the SG2 display or active program The 4 buttons also can be set programmable i
11. Cur Valuel 0 00 Pre Valuel 3 00 Current Value Sec Sec Timer 03 Cur Valuez n n Pre Valued 2 n Preset Value 03 00 Sec 005 0 Sec Symbol concer FBD display Parameter display BOOS TOZTUS Enable Input gt OOO 0 lt Current value tl 03 008ec Preset valuel Timing Parameter t 005 See lt Preset value enable reset relay enable reset relay present value 0 di Timer status operating fa present value timing enable relay Timer up 1 output terminal Timer 2 rt 1L Lb tl preset value of the first timer t2 preset valueot the second timer Chapter 6 FBD Block Diagram Programming E Common Counter function block There is a maximum of 250 counter function blocks under FBD mode can be set mode 0 6 as common counter and mode 7 8 as high speed counter and the function 1s same as Ladder mode Counter edit and display FBD display ZOl7 LLL 15001 No14 L xol Ro mode 1 J Counter l Par Cur Value Pre Value 5000 Parameter display BOOT OOOO Counter Function Block Eg Function Mode ME Counter number 01 Counter without overtaking and without power down retain current value Current Value Preset Value 005000 Fixed Time Sec C b Upper Lower Symbol e 1 Counter Mode 0 internal coil Mode 0 counter Internal Coil used as internal auxiliary coils No timer preset value and no p
12. t A 01 F0 Function Mode Preset Value BR pre Preset Type c di Chapter 5 Relay Ladder Logic Programming 92 DATA REGISTER menu display DR preset value in stop mode and display DR current value in run mode STOP RUN DRO1 C01 current value DkROl Col DRO 00009 DROZ 00000 DROZ OOO00 DROS QOO00 DROSS 00000 ROJS 00000 DROd 00000 The data registers from DR65 to DRFO will be kept when the smart stop or powers down The last 40 DR that from DRC9 to DRFO are special data register as shown below DRDO DRE3 as special registers used to set parameters the output value function is as follows 0 voltage mode and reset value when stop 1 current mode and reset value when stop 2 voltage mode and keep value when stop 3 current mode and keep value when stop Analog output value 0 4095 DRD8 I O interface hidden Refer to Chapter3 LCD Display and Keypad gt Original screen DRD9 DRES DRC9 DRCF and DRE4 DRFO as special registers used to store status the output current value function is as follows No Function description a a A Used as normal registers when no AT01 AT04 input such as don t connected with extension Reserved DRCF Reserved DRE4 AOS input electric current 0 2000 Used as normal registers when no A05 A08 analog DRES A06 input electric current 0 2000 input such as don t connected with extension DRE7 A08 input electric current 0 2000 D
13. 002 loz mos so AO LIU a 003 TEST TOLS TOlL Sec T01220 00Sec l T D Lo E ic c ir goi moz 803 COMPLEMENT n RTO3R COME T03 260 005ec RIC Ww Display 1 E Analog Display Set y pl EX y Add 2 M set keypad input Z enable Multi Language Chinese fixed Ch jas Power ON and RUN initial display Press 1 Z01 and display H03 coil COMPLEMENT 19 60 TOS 60 00sec 562 10HR A Chapter 3 Program Tools Press SEL to display cursor Press 1 5 to move cursor Press SEL again to choice modified position 99 ce Press 1 to change number and press gt to move cursor COMPLEMENT Press OK to make sure the modify value 20 80 TOs 60 Sec Press Z02 to disable H03 coil and the LCD display changes to initial frame Press Z03 to reset Timer TO1 TO2 T03 as program designed 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 Comment can have up to 4 lines with each line containing up to 50 characters in length Below are examples of entering Symbols and Line Comments Chapter 3 Program Tools Symbol
14. 03000 032767 00000 z x ARDI prono eene a E Has Level3 N nanma 032767 de ozooo A t naooo MaxL N y 04000 0 327867 0004 0 Ta 0 1 3276 7 4 Eje ll ela Contact mn l l3 Contact M r m foz 127 Chapter 5 Relay Ladder Logic Programming i DR Data register The SG2 smart relay includes a total of 240 DR instructions that can be used throughout a program The DR function is transferring data DR is a temp register DR sends data from prevention registers to current register when it s enabled The data can be signed or unsigned by Operation gt gt module system set menu selection from the SG2 Client software or keypad set There are 3 parameters for proper configuration The table below describes each configuration parameter and lists each compatible memory type for configuring DR O FQ jme Signed 32768 32767 Oo DR code DROI DRFO The parameter can be a constant or other function current value Hodule System Set Set ID Remote I 0 v NO Current ID 1 Master New ID 00 299 i Slave Jet Expand 1 0 thers I 0 Num n Eum C Keep Back Light I O Alarm m Rogas SET 03 DATA REG u U unsigned data R3485 Set 1 DR Fogpat Set A A S signed data Comm Mode BE o Unsigned Baud Rate 38400 i C Signed ene The example below shows how to configure DR function Edit Contact Coil m In uw Select Cail B
15. CH1 n u v 4000 Voltage mode reset value when stop DED4 AQ output 09 77 Y CH 2 ln 2047 Current mode reset value when stop DRD5 AQ output 20 00 mA STOP display RUN display AQUI 09 TTV AQUI 09 TYV AQOZ ZU 00mA AQOZ 20 DOmA AQ s AO Y AQUS 0Z 104 AQO4 DRSF m AQUI OO mi When AQ mode is current output the DR value conversion AQ CH3 3 la o1 output value and display value show as below Voltage mode keep value when stop DRD5 2047 conversion AQ02 500 display 20 00mA CH4 a v or 32 Current mode keep value when stop When output value type of AQ is set to constant AQ output value changed by DR value AQx DRx 4 095 When output value type of AQ is set to other parameters variables DR value changed by AQ output value DRx AQx 4 095 More information about expansion analog input to see Chapter 9 Expansion Module Analog Module Chapter 5 Relay Ladder Logic Programming Example 1 AQO1 preset value is constant M01 Analog Ouput Set Mode Preset CH1 1 n 4000 Voltage mode reset value when atop DED4 AQ output 09 77 V When running and disable M01 DRD4 output value is AQO setting value 4000 and AQO1 output 9 77V AQO1 09 TTV AQ02 20 OOmA A S 00Y AQU4 00 OOm MO 04000 00000 When running and enable M01 DRD4 output value is V01 adjust the value of V01 AQOI output value changed with VO1 E Ex
16. Mode 1 2 5 a 1 P Curent vate PSAP LET teteh PS 011111212121 1 1 11 131214151515 Input count pulse p F H E i REM NEN NN Power supply switch ON Eu uuu e mud De GNU EEG Gee EE NONE aE E mu mus ucc mE Counter output output Chapter 6 FBD Block Diagram Programming ty High Speed Counter Function Block DC Version Only The DC powered version smart relays include two 1 KHz high speed inputs on terminal I01 and I02 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 1 Counter Mode 7 DC powered versions only The Mode 7 High Speed Counter can use either input terminals 101 or 102 for forward up counting to 1 KHz maximum at 24VDC high speed input signal The selected Counter Coil B will turn ON when the pulse count reaches preset value and remain ON The counter will reset when the Reset Input is active t Counter Function Block X r Function Mode e Counter number o lKHz input counter H3 101 Current Value i Preset Value 005000 Fixed Time Sec Upper Mos Counter 01 Lower Cur Value 0 Pre Value 5000 Symbol FBD display Parameter display High counting input gt I ly 111 18001 POGI Enable Input gt 1034 IL OOOO lt Current value Reset gt N01 01 C 005000 Preset value Counter Param
17. Symbol Eun Used v Stop aso Pones M Pause Quit X 1234567 Read W L 1t Q 1254567 ee ee y 1254567 RIC Seti Analog Set MH 1254567 Password x B IT 1234b556 Language da Module System Set lp Link Com Port Selecting COM COM 1 PORT o COM 2 PORT COM 3 PORT C COM 4 PORT Link Com Port Mode i Single 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 its connection Chapter 3 Program Tools Writing Program to smart relay From the Operation menu select the Write function and write the program to the connected smart relay as shown below or press Write button to write program to connected smart relay as shown below LAD Version File Edit Operation See Simulator Simulator Control Yi ew Help emo Coil Contac Capacity symbol Run Ctrl R Used Y Stop Ctrl T I 1234567 TOT peas MOS 2 1234 Quit Ctrl4Q X 1234567 Read Compare Q 1234561 123456 RIC Set Analog Set M 1234567 password 4 T 1234567 FUE gt osa Module System Set C 1234567 Link Com Port Chapter 3 Program Tools Online Monitoring Editing The SG2 Client software allows for online monitoring of the
18. 2 6 6 6 COQ B va caa VACA l ta va os of l T i PE PE r 3 PE PE PE J PE LIH H a Li H Chapter 9 Expansion Module p Temperature Input Module 4PT The 4 channel 12bits temperature PT100 analog input of 4PT corresponds with ATO1 AT04 Temperature input range 100 C 600 C Digital output 100 0 C 600 0 C Differentiation 0 1 C The input value of SG2 4PT is over range if wiring error or no input SG2 will not receive and store the value of corresponding channel and the corresponding channel s coil M turns ON coil AT number M34 ATOI SG2 APT channel 1 error ATO2 SG2 APT channel 2 error AT03 SG2 APT channel 3 error AT04 SG2 APT channel 4 error The current value of 4PT input displaying as shown below ATO 0100 0 C Press key ATO1 0148 0 F ATO2 0600 0 C __SEL gt eg AI 1112 0 E ATOS 0193 2 C SEl _____ ATOS 0373 7 T ATO4 0001 2 F ATO4 0017 1 C Wiring PT100 h DC 24V Z 33 RUN E Z f Pl E a x ae n Yo N la A Z y j E UL Xf i j N YA y Y LI NA A pe NE A X bk UN A JJ ZP i x 4 JM x lt p A PT100 J Chapter 9 Expansion Module 222 Analog Output Module 2AO The 2 channel 12bits analog output and SG2 can connect two 2AO at the same time The nearer 2AO to SG2 corresponds with AQ01 AQO02 and the farer 2AO to SG2 corresponds wi
19. Chapter 6 FBD Block Diagram Programming 5 RTC Mode 4 30 second adjustment The 30 second adjustment Mode 4 allows the Bxxx Rxx coil to activate based on week hour minute and second The below examples show for selection of week hour minute and second for the B002 R01 coil to activate ON and 30 second adjustment then B002 R01 OFF Example 1 adjustment preset second lt 30s RTC Function Block Ed Function Mode NN y ETC number 01 30s modify mode Week On SA F Current Value 17 Preset Value E g Hour Min 5ec 20 Symbol M FBD display Parameter display BOO k l We 10 de 40 Enable Input lt Current time ON SA 06 00 20 RTC Parameter gt lt Adjustment preset value Note Parameter display current time week hour minute and second Parameter display adjustment preset value week hour minute and second Week SA Time 8 00 8 00 20 ENABLE RTC output OFF ON OFF The present time will be 8 00 00 when it achieves 8 00 20 at first time and RTC status bit B002 R01 will be ON RTC status bit B002 R01 will be OFF when the present time achieves 8 00 20 at second time Then time continuous going So this means that RTC status bit is ON for 21 seconds Example 2 adjustment preset second gt 30s Week CA Time amp 00 2 00 40 ENABLE l oA 06 00 40 RT output The present time will change to be 8 01 00 when it achieves 8 00 40 and RTC
20. HMI function instruction 1 HMI can display character built in Chinese user defined Chinese and GSM telephone number This information can not be edited through keypad 2 HMI can display function current value T C R G and DR analog input output value A AT AQ This information can not be edited through keypad 3 HMI can display preset value of function T C R G and DR This information can be edited through keypad 4 HMI display state of coil 1 X Z M and N state of M and N can be edited through keypad Multiple HMI enabled at the same time by pressing a button next page shows an arbitrary enabled HMI The new HMI is enabled to determine number greater than the currently displayed HMI numbers showed a new HMI or keep the original display Keypad instruction Under status 1 or 2 go into status 3 Under status 3 go into status 4 Under status 4 change function preset type Under status 1 find the nearest HMI whose mode 1s 1 Under status 2 find the nearest enabled HMI Under status 3 move cursor up or down Under status 4 change data and number function preset data change coil state SEL 7 or 4 Under status 1 find the nearest HMI whose mode is 1 Under status 2 find the nearest enabled HMI Under status 3 move cursor up or down Under status3 or 4 move cursor lift or right OK Validate editing and store automatic OK ESC Abrogate operation HMI status 1 4 1 HMI
21. x N ON OFF ON ON AN 0 o ON OFF ON Preset stage 5 5 SET x present stages as operating 1 8 ON ON OFF ON 6 Preset stage 6 Out Output port Q01 Q02 ON ON ON OFF 7 Preset stage 7 TPx Width of preset stage 0 32767 ms ON ON ON ON 8 Preset stage 8 ee Chapter 6 FBD Block Diagram Programming 6J Example The state of NO1 N02 and N03 are 000 so PWM output pulse 1s stagel like this as setting above The state of N01 N02 and N03 decide PWM output PWM stages can be changed by the status of N01 N02 and N03 when P01 is running PLSY mode The PLSY output terminal Q01 can output preset number of pulse whose frequency is variable from 1 to 1000 Hz PWM Function EN EE lo 100 Preset Type N y ln y Symbol cance PWNOl Mode 2 PWNOl Mode 2 PF 00100 PF 00100 PN 00000 PN 00300 PF Preset frequency of PLSY 1 1000Hz PN Preset pulse number of PLSY 0 32767 Total number of pulse storing in DRC9 PLSY stops outputting pulse after it has output PN pulses PLSY will be going on as long as it s enabled if PN is 0 Example Parameter setting PF 500Hz PN 5 output as shown below EN lms Output 2ms PLSY stops outputting when the number of output pulse is completed Chapter 6 FBD Block Diagram Programming IO Link function block Up to 8 additional SG2 units can be configured as independent Slave nodes each running thei
22. 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 E Kr Version asa gu BEI E exi e gie 9 aa le Coil Conteact Capacity 1155 free chen Symbol Teed I 123456789ABC Z 12234 X 123456789ABC Q 123456T8 P 1 i 1 123456789ABC iL cm L Internal auxiliary relay 1124 56T89ABCDEF mal IE 01 3 T 123456789ABCDEF sl Conthct Iype C 123456789ABCDEF pal R 123456T7898ABCDEF ual G 123456T89ABCDEF al H 125456789ABCDEF ml L 12345678 Click amp X Di t kal gt IRA A f FFI F Yala Ho fo Ho Ho EII ESSE ES ES none gen Ver x x Status Stop OFFLINE Model SG2 20VT D ID Ol The A and L keys or icons are used to complete parallel and serial circuits The right column is for output coils File Edit Operation View Help BE 40 Ar Bab oak I ja 9 0 sa el Coil Contact Capacity 1195 free apace Synbol Uzed 1 123456789ABC 2 1234 t Coil column X 123456789ABC for output 0 12345678 Fii Y 123456T89ABC M 123456789ABCDEF sal se T 125456789ABCDEF u D M mj R 123456T89ABCDEF G 123456T89ABCDEF H 123456T789ABCDEF L 12545678 JE ha X DA amp u Pag SN m 28 do do bo do dodo DO none gen Ver x x Status Stop OFFLINE i Model 5 2 20 T D ID 0
23. ENO1 Cell Configuration 9 hole socket PLO1 connect with SG2 Flexed installation feet TCP TP port Button Power indicate light orange EF Ed Eg CE eb dE 24V DC power supply port Dimensions Unit mm linchz25 4mm EG Al d41 50 E SA a Fa E TN i LS r i n3 A Eq TN N n f A i DG 24V ON AN E MAN lt gt PwR T col x ND Hu ENET S l Y Y K b 22 mm Pp emp Y 234 Chapter 9 Expansion Module Connect with electrical source DAN 1A quick blowing fuse circuit breaker or circuit protector Surge absorber Communication product EN01 Verification Check If powered up correctly the ENOI Evaluation Board power LED indicator lights orange and remains on Install Device 1 Select dotnetfx exe and Run 2 Select XPortInstallerSetup msi and Run 3 Select red32b1t_3 0 0 2 exe and Run DG NETWORK Note Obtain the software from supplier and after you complete the installation please restart your Computer Chapter 9 Expansion Module 235 Configure You can use Local area network or Ethernet to configure this module In the Ethernet this module need to have the IP address that can visit You can obtain the IP
24. In the example below shows the relationship among the numbered block diagram for a Mode 0 RTC the ladder diagram view and the software Edit Contact Coil dialog box Edit Contact Coil ln r le Real time clock R lo 01 1F Function Mode m 0 4 Internal Coil pvo vu we m ra sa ts bern npn pb pete 001 Week 0n 0 gt Current Value Preset Value 00 bo on foo ore hour minute 101 R01 Chapter 5 Relay Ladder Logic Programming RTC Mode 1 Daily The Daily Mode 1 allows the Rxx coil to active based on a fixed time across a defined set of days per week The configuration dialog below example 1 allows for selection of the number of days per week 1 e Mon Fri and the Day and Time for the Rxx coil to activate ON and the Day and Time for the Rxx coil to deactivate OFF Example 1 Edit Contact Coil N T lc Real time clock 01 1F Function Mode F 0 4 Every day action mode Week On gt 0 110 FR Current Value Preset Value 08 oo on 17 oo OL hour minute Week Monday Tuesday Wednesday Friday saturday Sunday Time 200 1700 8 00 17 00 e00 17 00 200 1700 ENABLE EE Enn Output Example 2 Monday Tuesday Wednesday 2 Fnday calada Sunday S00 17 00 00 100 s00 1200 S00 100 8 00 Hn r4 rm Ch
25. Inputs 101 10C 101 10C Mode Setting mode 1 2 1 sending 2 receiving Auxiliary coil MO01 M3F m01 m3F Auxiliary coil NO1 N3F n01 n3F Expansion inputs X01 X0C x01 x0C Expansion outputs YOI YOC y01 y0C 140 Chapter 6 FBD Block Diagram Programming Example 1 IO Link Mode 1 Set mode 1 num 5 set type of points as I03 the state of actual sending terminal I03 I07 is sent to memory list the controller ID 1 the state of corresponding memory list position W09 W 13 and relationship of sending terminal is as below mode 1 num 5 type 103 107 ID 1 W09 W13 Memory List Position W09 WI10 WII WI2 WI3 WI4 WI5 Wl6 Corresponding receiving A 4 4 4 4 4 A Or sending terminal I03 104 105 106 107 0 0 0 Example 2 IO Link Mode 2 Set mode 2 num 5 set type of points as start from M03 set W table as from W17 when enabling the IO Link the state ON OFF of M03 M07 is controlled by the state of memory list position W17 W21 mode 1 num 5 type M03 M07 W W17 W21 I O Link02 Node 2 Nun Corresponding receiving Y Y Y Y Y MM Or sending terminal M03 M04 M05 M06 MO7 Kop Wel IO Link diagram as blow max points LO send per stations Max 7 8 756 points I O received per station ID must set to be 0 1 2 max to 7 Remote I O disable W Table NI II LT BEBE More information about IO Link to see Chapter 8 20 Points RS485 type Models Instruction 141 Chapter 6 FBD Block Diagram Programming EY SHIF
26. Keypad Programming 252 Edit action program and preset the action relay Procedure 2 16 Press gt 2 times Press SEL Begin to modify Procedure 2 164 Press SEL Begin to modify Procedure 2 16B Press SEL Procedure 2 16C Column Press SEL Procedure 2 17 Press 1 for 5 times Press SEL T A to change I to M Procedure 2 18 Column Press 2 times Press SEL gt to move the cursor to digital location Procedure 2 19 d ES 4 5 61718 Column Press T for 3 times Line r 4 J 2 2 Press SEL T to change 1 to 3 133 33 SecttT0O1 4 4m 0 4 t J Appendix Keypad Programming Procedure 2 20 Column Press OK save the input data Move the cursor to preset action value area to repeat the step 2 1 Move the cursor to position 2 to repeat the 2 8 column step 2 23 6 7 8 column Press press SEL press T y Select A01 A08 Step 2 24 1 ES 1415 161718 column Press Press SEL line 1 r 1 J press SEL Select A02 TOl 2 A 0 1 V C01 AT01 AQ01 DR01 AS01 3 TO V GO1 MDO01 P101 MX01 AR01 00 00 4 L 00 00V d V01 AO1 step 2 25 Press gt press a Select TO1 T1F CO1 CI1F A01 A08 V01 V08 253 Appendix Keypad Programming 8 column Step 2 26 El 1213 1
27. The status bit 1s fixed to the non zero preset value regardless of the state of the direction bit Its status bit will be ON when the counter current value isn t less than its preset value and will be OFF when the current value 1s less than its preset value Additionally the Mode 6 counter is always reset to zero unrelated to the state of its direction bit The current count value is retentive and will keep its current count after a loss of power to the smart relay And Counter will keep current value if C Keep is active In the example below the counter will continue counting after its preset value of 20 Counter status bit C01 will be ON when the current value isn t less than 20 Edit Cantact Cail m m Counter E laz 01 1F F ncti n 0 8 With orectaking and with power down Lomp rs Counter DEEE Discs la lada hu Current Yalus Preset Velue 0000Z0 Preset Typer Ditection Jet Feset Input Contact In 101 Contart 02 i mu ux ZO sir ir IN b 1 E Hodel amp 285 0 21 21 21 21 31 1 1 9 7171 21 213 a a e e m A A ea e el aan E Hode38486 011111212131 1 o 131414151516 input count pulse EE Se eus oum This mode is similar to mode 5 but The current value is kept on a loss of power down to the smart when it status is RUN The current value is kept when the smart switches between RUN and STOP if C Keep is active C
28. analog and communication SG2 4AI must be the last one of analog module The method of all expansion modules except ENO1 and GSM connecting with SG2 is the same as shown above The method of ENO1 module and GSM module connecting with SG2 is used programming cable PLO1 The number of digital module must be accord with IO number set if there are other modules after digital module But the IO number set can be less than connecting if there is no other expansion module after digital module When SG2 unlink expansion module it s scanning cycle time is about 2 20ms Connecting with expansion module will increase SG2 s scanning cycle Connecting different expansion module has different influence to scanning cycle For details see the table below Expansion module Add single module Influence Max influence to scanning cycle Digital I O module scanning cycle 1ms 1 ms 3 3ms 2AO module scanning cycle 8ms A 8 ms 2 16ms 4A module scanning cycle 13ms 13ms 1 13ms When setting function block s preset value via communication module during one scanning cycle scanning cycle time increase about 50ms When SG2 connecting with 4PT module every scanning cycle transmits one channel data from 4PT to SG2 All of the four Channels will be update within four scanning cycles Chapter 9 Expansion Module 215 The digital models have 2 kinds version 1 2 and version 3 0 They can connect with SG2 together There are 3 k
29. e aa SI LIA Distrrbutariss gt Restricted resistance oumpul resistance There is a little current makes light shine The brightness will be described if the faintness so the value of resistance must be resistance value 1s too big careful Chapter 7 Hardware Specification 199 Inductance Load There will be a concussion voltage KV when the inductance load switches between ON and OFF especially relay model The methods of different power mode for absorbing the concussion voltage are shown below a AC power CR absorbing b DC powerl flywheel diode L load L load CR absorbing Flywheel diode Please do can t use capacitance alone as absorbing as shown below Load Load poweT power Life of relay Life Expectancy Operation x 10 0 1 2 d 4 5 6 7 8 98 D Contact Current 41 The data of picture above is standard but the life of relay is influenced by the temperature of operation environmental The life is more than 100K times if the current is less than 2A Power mode DC 12V AC 100 240V DC 12V AC 100 240V DC 24V Accessory MODE description mee memory cartridge SG2 Client SG2 program software Chapter 7 Hardware Specification 200 Size diagram of SG2 10 12 points 57 30 c gt dl SO cbe Y wem ki 47 jV i E be gt H 2 13 amp I5 16 Ai ib A Y TN ENEL SEN ET SEEN ERN JA JN J
30. l Timer mode 7 Fa EN Counter mode 0 m Counter mode 1 Pf Counter mode 8 Pf e m RTC mode 0 RTC mode 1 4 m m analog meds IPP Analog mode 1 7 1 2 J J G KR A A A O A AA A Chapter 6 FBD Block Diagram Programming K Logic Block include AND AND EDGE NAND NAND EDGE OR NOR XOR NOT RS PULSE BOOLEAN Each logic block occupied a BLOCK the available number is limited by the number of B and system memory space Logic function blocks source show as blow table AND 1 e AND EDGE 8 NAND 8 NAND EDGE OR NOR XOR dl E l un Tut NOT PULSE BOOLEAN Example calculating resources 101 E001 BOO BOOS Input coils 101 X01 MOI 102 mode 7 mode 1 Output coils HO1 NO1 Timer 01 Counter 01 i Cur Valuel 0 00 Car Value f Normal ON H1001 Pre Valuel 5 00 Pre Value 100 Timer 02 Analog input A01 Cur Valuez 0 00 B004 cc los 2 vi Analog output AQO1 ve Logic and function block B001 B006 Coil input output and analog input output Rad don t occupied B number and memory 102 BO00 E space DA 01 Cur Value O Pre Value O MD 01 Cur Value 0 value 0 00 Pre Valuel 1 Pre Valuez 1 Pre Value3 10 B number Memory bytes Still available in SG2 Chapter 6 FBD Block Diagram Programming Analog Analog include Analog input A01 A04 Expansion analog input A05 A08
31. lt Register address VZ DREU Source data address 186 Chapter 7 Hardware Specification 187 Chapter 7 Hardware Specification NortnalSDecUHeal loli x cit asst cc b E aaa e Ice ee O ee 188 Product SpectticdblOHso dtes Dette aaa laa A A lal g deri lan ati le E E 189 POW Cl ope cura ONS O teu Rd en uL m n LE ad dmn nidi niens MN pi P ME A 190 Normal model machine Specifications oe emot oe eo nh rrt nr ah met eei kesmekle ne ie se beni 190 12 DC fuodeliSpectticdtlODs ce aen dee oaths epe ON ADM em MEM d Ni ua dE 19 ZAN AC model Speci CAOS saccum tutte ntis uta A AAA ES ada diriyi teh tes eumd idv din mgl 19 Power ob a MAA deren e MORN AM redeem redeat S RA a UE 192 Input SPC CICA a ANE PM AY M deal oti Saale ENT ME eN e YE MARE e succi DM NEN 193 UA AC o e P R Ge Ml ee e EM eee e ee ee 193 2AN SAO n ll ASA AAA lale ha a la kk ui ala n AS 193 2AN C 12 T E tO a i be e it ee act et lea ie ln UM A ta ln la dE UE GR 194 AZ e KE ese ant PE E MEP NE E 195 ZA DE 12 TMOJE seye oe e salam oed aie Ni ees 196 PV DC 20 TO MOI Ye ee 197 CCG S10 AM A II EN NAM DE E NE NY EE RR NE MERA PAR S 198 Outpub PORT WINS MONIC iii ll m ll m lal ald BGA 198 e gl Bo mr eee meg A e e 198 Induct nes Estaca A e Cad tgu ud POLT n d 199 ea ye RR SR IURE RR A E AE AE CONNAIS 199 RIVA SEU ISO OR eI ta S PN aa eki DEL A II A RSEN 200 Chapter 7 Hardware Specification 188 Normal Specification Mode of user program Ladder am
32. transistor 4 O points 2KR 120 09 D 8 rely o e je 20KRMA 2 8 rly Jo e OEM Baseboard Models No Keypad No Display No Expansion 2cRAle Q2 8 ea fol Proce e Jeje we afe e mco l lortet 4 e Tel 1 RS485 communication models 2VRD J e 12 8 ray 4 G8 e e O 20VvTD Je 12 8 transistor 4 el e e GO 20VR 2D 12 8 relay 4 6l e e SERA O 4 4 ea SRD lol 4 4 ray J 8ETD JO 4 4 transistor 8R2MA 4 4 rlay AN Jel 4 4 o 4T Jo fa 4 9 2 analog A exist There are analog input points in Chapter 7 Hardware Specification 190 Power Specifications Normal model machine Specifications content SG2 10HR A SG2 20HR A SG2 20HR D SG2 12HR D SG2 10KR A SG2 20KR A SG2 20KR D SG2 12KR D SG2 10CR A SG2 20HT D SG2 12CR D SG2 20KT D SG2 12HT D SG2 12KT D SG2 12CT D operation AC 100 240V AC 100 240V DC 24V DC 24V Power range Voltage Rating AC 85 265V AC 85 265V DC 20 4 28 8V DC 20 4 28 8V F Rating F range i half cycl l half cycl instantaneous 10 ms half cycle 10 ms half cycle Ims ORIS 10ms 10times d 20 ti 20 ti power down imes xU IEC61131 2 IEC61131
33. 0 voltage mode and reset value when stop mode and reset value when DICH ree eee ee EN o ens A m mode an at a wien ep It will be thought as O if the value of DR isn t in the range of 0 3 That means the output mode of AQ is mode 1 When output value type of AQ is set to constant AQ output value changed by DR value AQx DRx 4 095 When output value type of AQ is set to other parameters variables DR value changed by AQ output value DRx AQx 4 095 More information about expansion analog input to see Chapter 8 Expansion Module Analog Module Example 1 AQO1 preset value is constant 101 Qni Boo Parameters B b B AQ number lago1 DE 01 Mode n Cur Value 2000 Pre Value 2000 Voltage mode reset value when stop DRID4 Ag 098 TT Preset Value 4000 Symbol value 3 717 cance When running and disable M01 DRD4 output value is AQO setting value 4000 and AQO1 output 9 77V When running and enable M01 adjust the value of DRD4 AQO1 output value changed with DRD4 ago Example 2 AQO1 preset value is other parameters E001 Parameters AQ number DR D4 Mode Cur Value 3276 Pre Value 2000 OS Voltage mode reset value when stop DRD4 AQ Ai01 agoi output g 00 Preset Value value B value 8 00 Symbol conce When running DRD4 output value is out control of I01 AQO1 output value is A01 adjust the value of A01 DRD4 output value ch
34. 10 parameters for proper configuration The table below describes each configuration parameter and lists each compatible memory type for configuring PWM Symbol PWM mode 1 NN present stages as operating 1 8 Select 101 g1F Select2 101 g1F LH Select3 101 g1F OFF X X X 0 OF ON or or OFF T Presersiage T Preset stage 2 Fox or ON On 3 Pee sage ON ON OFF ON 6 Presetstage 6 ON ON ON ON S Preset stage Oo present stages as operating 1 8 EN Width of preset stage 0 32767 ms Oo Period of preset stage 1 32767 ms O Output port Q01 Q02 eo PWM code P01 P02 Example Edit Contact Coil p jo 01 02 Function Mode n 1 2 PUN Select 1 8 mr e pu Current Value Preset Value 0001 0 s 00005 Preset Type M In Select input points high 1ow bit 4l MO100010 Chapter 5 Relay Ladder Logic Programming The state of M01 M02 and M03 are 010 so PWM output pulse is stage1 like this as setting above The state of M01 M02 and M03 decide PWM output PWM stages can be changed by the status of M01 M02 and M03 when PO1 is running displays the number of pulse when PO1 is running but equals 0 when P01 is disabled PLSY mode Only POI can work under this mode and the output is Q01 PLSY has 6 parameters for proper configuration The table below describes the information of PLSY param
35. 1Sec Current Value Sec Preset Value 0100 Sec Symbol FBD display Parameter display r 16005 BOOS Enable Input gt 104 TL QOO Current value Reset Mol Hdd Timing Parameter Part _ L 4 T 0100 bec lt Preset value enable reset relay pot Timer start o Pa enable reset relay perating present value 0 present value 0 Timig enable relay DFF ON OFF Time up OFF ON OFF output terminal 4L t enable reset relay UFF t preset value Chapter 6 FBD Block Diagram Programming B 6 Timer mode 5 FLASH A Mode Mode 5 Timer is a Flash timer without reset that will time up to a fixed preset value and then change the state of its status bit Additionally the Timer current value will reset to zero when Timer is disabled Timer Function Block Function cc ENN Flash timer mode 1 Iime Base lMin T Current Value Min Cur Valuel oO Pre Valuel 3 Timer 03 Preset Value 0003 Min Symbol FBD display Parameter display r 1600501 BOOS Enable Input gt Todd 0000 lt Current value JUL kod T 0003 Min lt Preset value Timing Parameter Part 1 enable reset relay re rd Timer enable reset rela ET WF tarts o Y pres nit alue 5 5 perating aio present value 0 Timing enable relay lime up output terminal t preset value Chapter 6 FBD Block Diagram Programming RY 7 Timer mode 6 FLASH B Mode Mo
36. 24VDC 15VDC 12VDC gt 7 5VDC Input Signal ON Threshold 100 240VAC gt 79VAC 24VAC gt 14VAC 24 12VDC 5ms Input On delay 240VAC 25ms 120VAC 50ms 24VAC 5ms 24 12VDC 3ms 240VAC 90 85ms 50 60Hz 120VAC 50 45ms 50 60Hz 24VAC 3ms Analog Inputs Basic unit 12 bit Expansion unit 12bit Input Off Delay Resolution Basic unit Analog input 0 10VDC voltage 24VDC when used as discrete input Voltage Range acceptable Expansion unit Analog input 0 10VDC voltage or 0 20mA current Input Signal OFF Threshold lt 5VDC as 24VDC discreet input Input Signal ON Threshold gt 9 8VDC as 24VDC discreet input one Short circuit protection Yes Basic unit A01 A04 Total number available Expansion unit A05 A08 Chapter 2 Installation Relay Outputs HP rating 1 3HP 120V 1 2HP 250V Resistive 8A point Maximum Load Inductive 4A point Maximum operating time 15ms normal condition Life expectancy rated load 100k operations ISTA Standard max output frequency Resistive 0 5 A point Inductive 0 3A point Maximum Load Minimum Load Product Specifications Chapter 2 Installation Part Input Power Inputs
37. 4 p CAN H 4 CAN H white 5 V H 24V 5 24V red Address and Baud rate set In equipment network each slave node needs a difference MAC ID and the maximal number of ID is 64 0 63 The address of node can be set by SW1 1 SW1 6 of DNET oneself mode And the baud rate of communication can be set by SW1 7 and SWI 8 the baud rate set must be the same as equipment network SW I SWI 6 ID in network SW1 1 SW1 2 SW13 SW1 4 SW1 5 SW1 6 ID OFF OFF OFF OFF OFF OFF 0 Chapter 9 Expansion Module 229 SW1_7 SW1_8 Baud rate Swi EXI OFF 500K Reserved default baud rate 125K LED state display DNET has two LED lights watching itself and communication Bus state 1 mode state LED MS Double color LED green and red indicates DNET state Module status LED Explanation Correct or prevent fault Green flash No connected with SG2 basic unit Connected with SG2 correctly Red flash Connect with SG2 but communication error Set SG2 IO number correctly Red on Device hardware error Use a new module 2 network state LED NS Double color LED green and red indicates equipment network bus state Net status LED Explanation Correct or prevent fault Off No power Power up PN emmesi aserto Green on Normal operation mode and connected No ee ERN Green flash Normal operation mode but not No md connected with master or had be set free Red flash IO connection time out waiting green N
38. Aegon AQ MAQOTAQ0 7 Analog temperature input A A ATO1 AT04 FBD program can only be edited and modified in the 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 The preset value of Block could be a constant or other block code That means the preset value of this block is other block s current value Chapter 6 FBD Block Diagram Programming KX FBD system memory space The size of a FBD program in SG2 is limited by the memory space memory used by the blocks Resources available in SG2 260 6000 Each FBD block s size isn t restricted it depends its function Function Block includes three kinds of function special function adjust controlling function and communication function Function type and number are shown in the table below m0 a Counter C special function RTC R 250 Alo Compantor _ 280 Addition and Subtraction is len an Dion MB 25 adjust controlling function M ller MA Ala Rap AR E IS EI Each function block occupied a BLOCK the available number is limited by the number of B system memory space and function block number Pt x AR DR JEEZ 240 UJ NO Un 2 Un N Un N N N Un Total source Timer mode 0 ERBEN Timer mode1 6
39. BH mode i Counter 01 Cur Value 0 Pre Value 20 Upper Lower Symbol Upper Lower Symbol cancer Chapter 6 FBD Block Diagram Programming 1 6 Counter Mode 5 Continuous Count Up Down Count Non Retentive Mode 5 Counter s operation is similar to Mode 2 except its current count value 1s continuous and non retentive The status bit is fixed to the non zero preset value regardless of the state of the direction bit Its status bit will be ON when the counter current value isn t less than its preset value and will be OFF when the current value 1s less than its preset value Counter Function Block x Counter number 01 Compare counter with overtaking and without power down retain current value po Current Value jo Preset Value o Fixed Time Sec Upper Lower Symbol FBD display Parameter display Counting Input Z lr 111 1B001f B001 Up Down Counting gt Noid L nono lt Current value Reset gt X01 M c 4 0000 0 lt Preset value Counting Parameter Para o Note The C means compare count The means the current value appeared will be greater than present value Mode 5 20 min ux nux m s ae mimic semi menim mele Oe mann See See uada mm mena jee mm euch NE Current value 1781 791 19 201 29 271 21 201 20 19 19 15 78 791 19 20 0 91 ola Under this mode the count will continuous afte
40. C01 C1F AS01 AS1F MDO1 MDI1F PIOI PIOF MX01 MXOF ARO1 AROF and DROI DRFO can be used as other function s preset value And the parameter preset value is its limit value when the current value of those functions is mn A bigger or less than parameter s limit value Chapter 5 Relay Ladder Logic Programming Timer Instruction The SG2 includes a total of 31 separate Timers that can be used throughout a program TOE and TOF keep their current value after a loss of power to the smart relay if M Keep is active but the other Timers current value is non retentive Each Timer has a choice of 8 operation modes 1 for a pulse Timer and 7 for general purpose Timer Additionally each Timer has 6 parameters for proper configuration YO T The table below describes each configuration parameter and lists each compatible memory type for configuring Timers Timer Mode 0 7 101 I0C i01 i0C Timer Unit 1 0 01s range 0 00 99 99 sec Z01 Z04 z01 z04 2 0 1s range 0 0 999 9 sec Q01 Q08 q01 q08 3 Is orange 0 9999 sec MO1 M3F m01 m3F 4 Imin range 0 9999 min NO1 N3F n01 n3F ON the Timer reset to 0 X01 X0C x01 x0C OFF the Timer continues timing Y01 Y0C y01 y0C Timer code T01 T1F total 31 Timers T01 T1F 401 t1F Analog comparator G01 G1F g01 g1F The preset value of Timer could be a constant or other function current value The current value of TOE and TOF will be kept when SG2 on a loss of pow
41. Chinese edit Multi Language is shown in the adjacent example Each HMI instruction can be configured separately using the Edit gt gt HMI Text menu selection from the SG2 Client software Allows the SEL button on the SG2 keypad to activate the selected message onto the LCD even the Hxx is inactive More information about HMI TEXT to see Chapter 5 Relay Ladder Logic Programming HMI Text HO1 koz Ho3 Hoa Hos mo06 107 Display Analog Display Set M Phone Number X Aaa E f Multi Language Chinese fixed Chinese edit Text Input TARAR x4 7 0123456T7T89 25 TR ABC DEFGHITELMHOPGRSTUVWXYZ X O abcdefz hijklmnoparstuyvwxyztl7a zABBTZIEERSMMKINHOIPCTNSS XIIUIIHUTEHb3EX53 EN aBvS2TILvEHRH ECOo ss YuAA E Chapter 3 Program Tools Ladder Logic Programming Environment HMI TEXT H01 H14 can display the setting telephone number and send alarm message to the setting number by GSM module Edit Ph X Phone Number e Ed 138111 OK Each HMI instruction has a choice of 2 operation modes The table below describes each configuration parameter Symbol Description Display mode 1 2 Lg HMI character output terminal H01 H1F Q HO1 Edit Contact Coil c R s HMI display page H lol 01 1F Function Hode i gt 1 2 Displa pa Cancel Chapter 5 Relay Ladder Logic Programming
42. Data is 400 Comm data DR EO y Symbol a cance Parameter display B ID 01 V DR S VZ DREO lt Slaver ID lt Register address lt Saving data address 185 MU modes Write single coil Setting communication address is constant 101 Bode E001 LI Wiopsus M mode 5 ID 01 Add 00043 Data 0000 Address is constant 0003 Setting data DRE0 65280 hex FF00 Send data 01 05 00 03 FF 00 CRC16 Received response from slave 01 05 00 03 FF 00 CRC16 Mode5 Enable Input Parameter Setting communication address is data register DR 101 gt gt Boos FBD display B001 a M oppus A mode 5 10 01 Add 0000 Data 0000 Setting address DRO3 0001 Setting data DRE0 65280 hex FF00 Send data 01 05 00 01 FF 00 CRC16 Received response from slave 01 05 00 01 FF 00 CRC16 Mode5 Enable Input Parameter FBD display Qni Chapter 6 FBD Block Diagram Programming MU Function Function Mode E Write single coil Remote ID o1 0 7F Comm add 3 0 FFFF pogi ID 01 Slaver ID V1 0008 Register address VZ DREO e Source data address MU Function Function Mode NE w Write single coil Remote ID rem 0 7F Comm add looi r lant DR 05 0 EFEF es Y Comm data DR EO Symbol Parameter display B ID 01 vi ID VI DRO2
43. EDGE Logic Diagram FBD LADDER r 1E0053 102 TL E002 ap I034 J Idz Boo 101 And 102 And 103 And D Note The input terminal is NOP which is equivalent to H The B output ON a scan cycle time when all input terminals status are ON Chapter 6 FBD Block Diagram Programming I NAND Logic Diagram FBD LADDER Inl r 18001 101 1014 NAND gt Boo 1024 H5002 1034 1 gt j I i03 y Not 101 And I02 And 103 Note The input terminal is NOP which is equivalent to H The B output ON when one of the input terminals status is OFF NAND EDGE Logic Diagram FBD LADDER ds r 1B001 i01 1014 NAND y _ p_ TT 1024 4 poo ME 1031 1 gt ea 5 y 103 y Not 101 And 102 And 103 And D Note The input terminal is NOP which is equivalent to H If change one input terminal to OFF when all input terminals are ON the B output ON a scan cycle time OR Logic Diagram FBD LADDER 1B001 n I01 OR du I024 FB002 EN 102 _ 1032 J m L Ju I03 JH 101 or 102 or 103 Note The input terminal is NOP which is equivalent to Lo The B output ON when one of the input terminals status is ON Chapter 6 FBD Block Diagram Programming ISS NOR Logic Diagram FBD LADDER r 32001 101 102 103 101 NOR 102 BOOL 1024 IB002 gt 4 Y I034 J TE Not 101 or 102 or 103 Note The input terminal is NOP which is equivalent to Lo The B outpu
44. Function voce NENI n delay timer mode 1 Time Base 0 015e T EN 0 00 Current Value ba Pre Value1 1 00 Preset Value 01 00 Sec Symbol FBD display Parameter display r 156005 BOOS Enable Input 104 JL 00 00 Current value UL food T 01 005ec yn Timing Parameter Part 4 enable reset relay ME 0 ei Timer starts operating present value Timing enable relay OFF ON OFF t Bae Ue OFF ON OFF output terminal t Timer preset value Chapter 6 FBD Block Diagram Programming El 3 Timer mode 2 ON Delay B Mode 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 Timer current value will be kept when Timer is disabled Timer Function Block Function EE On delay timer mode 72 103 Timer 03 Cur Valuel D Pre Valuel 10 0 Time Base o lSec Current Value Sec Preset Value 010 0 Sec Symbol Ee FBD display Parameter display r 1B 05 E005 1044 LL 000 0 lt Current value Reset 1017 kod T 010 O5ec Timing Parameter Part 4 Enable Input gt lt Preset value enable reset 2 4 lumen e im P 4 enable reset relay present value present value 0 on OFF timing enable relay time up OFF output termmal an OFF ON OFF enable reset relay t Timer preset value Chapter 6
45. Lem Leer 2 0 12V Conversion time sensor resistance 1 cycle lt IK ohm Hite WW inl Chapter 7 Hardware Specification 195 24V DC 20 I O model content SG2 20HR D amp SG2 20KR D SG2 20HT D amp SG2 20KT D Analog input used Normal digital input High speed input as normal digital Analog input input 103 108 101 102 I09 I0A I0B IOC WCC ume 6 3 e 4 3 1mA 24V DC 3 1mA 24V DC 0 63mA 24V 0 17 mA 10V ON t gt 1 875mA 15V gt 1 875mA 15V gt 0 163mA 9 8V inpu OFF t 0 625mA 5V lt 0 625mA 5V lt 0 083mA 5V gt ai npu meot me oms pi Sms mw omson omeo f omeo ii 0 3ms Typical 3ms en I EE ES voltage P recision eo class bit of conversion error cron time sensor resistance DA eee ee 2 0 12V Pl lt IK ohm t Chapter 7 Hardware Specification 196 12V DC 12 I O model SG2 12HR 12D Analog input used Normal digital input High speed input as normal digital Analog input input 103 106 101 102 I09 I0A VEL 3 2mA 12V DC 3 2mA 12V DC 0 32mA 12V 0 17 mA 10V ON t gt 1 875mA 7 5V gt 1 875mA 7 5V gt 0 161mA 9 8V inpu lt 0 625mA 2 5V lt 0 625mA 2 5V lt 0 085mA 5V LL time of NE AL i 0 5ms Typical 3ms I ee voltage P recision ii m er class ee eee ee ee I cycle time ed aa resistance Chapter 7 Hardware Sp
46. MEE il AA Week unir Hor Mies m G Coil i Coll Year month Day 10 I B 27 Function Block OR Line Daylight saving Parameter Mode NU Sugar MintrrE E Analog Set Hodule System Set AS Set ID Remote 1 0 Gain 1 999 p ce Gain 1 999 NO Current ID 1 Master Mew IDi 0g 99 f Slave Set Expand 1 0 Others 1 0 Mum n M Keep E Keep Back Light Be 5er Offset 50 50 c Offset 50 50 A2 A6 Gain 1 999 cC CIE LA Gain 1 999 Offset 50 450 Offset 50 50 A3 AT Gain 1 999 Gain 1 999 ce I O Alarm Offset 50 50 c Offset 50 50 FF5455 Set DR Format Set Comm Made Ere Unsigned Baud Rate 38400 Signed Set Cancel Ad AB Gain 1 999 ce np ce Gain 1 999 Offset 50 50 c HE HE HE HE c Offset 50 50 Chapter 3 Program Tools HMI TEXT This function block can display information on 16x4 LCD screen 1 Preset value or current value of function blocks such as Counter Timer RTC Analog comparator and DR register etc Under running mode to modify the preset value via HMI is available 2 Coils status such as input coils I Z X and auxiliary coils M Under running mode to modify the M status via HMI is available 3 Analog input value A AT and analog output value AQ 4 Build in ASCII code and multi language characters Buil
47. OFF Hardware Configuration 1 Line SG2 RS485 port A B with other Modbus Slave as show below Slave AB Slave AB 2 Set SG2 in the SET menu to No Remote IO ID SET 3 Set SG2 ID 01 99 REMOTE 1 0 BACKLIGHT M KEEP Function mode corresponding communication function code mode Communication function code Communication Funci n code TORA Re 2 06 Write Single Regine Oo 3 TO Wre Motile Reise oo The M coil used in Modbus function Received M3D M3D is set to ON after received then check up for error Transferring data to target address if there is no error Time out flag M3F M3F is set to 1 when the time from after sending to start receiving is longer than setting and M3D also be set to 1 M3F is automatically reset if M3D reset The time out time is depending communication baud rate as shown in the table below Baud rare DP 4800 9600 1920001 38400 Under Ladder program mode there are 5 parameters in Modbus function as shown below Chapter 8 20 Points RS485 type Models Instruction MU mode 1 5 Communication address slave ID range 0 127 Communication content address and data length 1 address is constant range 0000 ffff if mode 1 or 3 data length is fixed at 1 word if mode 4 data length is fixed at 16 bits 2 DR code get address and length from this DR and the next MU code MU01 MUOF More description and examples to see Chapter4 Relay La
48. ON when the current value 1s 20 Edit Contact Coil Counter E 01 0l 1l1F Function Mnde m 0 8 Counter with overtaking and without power down retain current value Ere vale Curva Dslielisbobals bara Eolo Dir Ersa Dutpul mie HOl4 000000 o0002z0 Col Current Vale Preset Value 000020 Preset Type ln w Direction Set Reset Input Contact M y 01 Contact IT y 02 SS DEus emi prag hes arc ud pipes ups Gi Dsum ipn peius promo pomo OS i i n al K Z 01191 191 201 201 211 211 201 201 19 19 181 181 9 91191 191 29 Q 1 20 input counter pulse ORE ON Under this mode Counter will continue counting after reaching preset value if it s configured as counter up But it stops counting when its current value is 0 if it s configured as counter down The counter current value will be init value when the smart s status switches between RUN and STOP or the smart is power up If the counter configured as counting up the init value is 0 else it is preset value Chapter 5 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 when Counter powers down So the current value won t be init value when Counter powers up but be the value when it powering down Mode 3 Counter will count up to a fixed preset value and stop counting at that value or stop counting when its current value
49. Proportion A 0 10 00 Oo Excursion B 10000 10000 Level selection coil Sel Stop selection coil St Error output coil M N NOP Lu ese ARAR AR current value AR current level B A The parameters from to can be constant or other function current value The table below describes detail information of each parameter of AR Selection level Sel 0 target level Levell Sel 1 target level Level2 MaxL is used as target level if the selected level is bigger than MaxL Selection stop coil The St s state becomes from 0 to 1 will startup the current level decrease to start stop level StSp excursion B and then keep this level for 100ms Then AR current level is set to B which will make AR current value equals 0 The output coil turns ON when A is 0 The output coil can be M N or NOP The output coil is set when the wrong thing happens but it will do nothing if the output coil is NOP And the current value is no meaning at this time AR will keep the current level at StSp Offset B for 100ms when it s enabled Then the current level runs from StSp Offset B to target level at enactment Rate If St is set the current level decreases from current level to level StSp B at enactment Rate Then AR holds the level StSp Offset B for 100ms After 100ms AR current level is set to offset B which makes AR current value equals 0 124 Chapter 5 Relay Ladder Log
50. Value AX I Ay Constant J AX 00 00 Ay value 0 0 O e 1 Preset Value 02 50 Ref Analog 01 i A105 Cur Valuel 0 00 Cur Value2 0 00 symbol Het Value 2 50 value 0 00 To cance Analog Comparison Mode 1 FBD display Parameter display Enable Input gt HOLT Avr AD lt Analog Input lt Ax lt Frol A05 V ee Parameter gt eres ae yep 4 a 09 50V lt Reference B003 G01 output ON when the value of A01 in between A05 2 50 A05 2 50 Parameter display current value of Ax and Ay when running mode Analog Comparison Mode 2 FBD display Parameter display Enable Input AD V lt Analog Input ACS V lt Analog Input Parameter gt c 09 50V lt Reference B003 G01 output ON when the value of A01 is not greater than the value of A05 Parameter display current value of Ax and Ay when running mode Chapter 6 FBD Block Diagram Programming Analog Comparison Mode 3 FBD display Parameter display Enable Input gt MOLT Ax AD V Analog Input L K V lt Analog Input Parameter c 09 G V Reference B003 G01 output ON when the value of A01 is not lower than the value of AOS Parameter display current value of Ax and Ay when running mode Analog Comparison Mode 4 FBD display Parameter display Enable Input MOLT 1B003 BOOS 7111 Ref Ax A01 V Analog Input 24 Frol Parameter gt Part J G 0 50V lt Reference B003 G01 output ON w
51. and viewing preference selections Main Toolbar From Left to Right Icons for create a new program open a program save a program and print a program Icons for Keypad Ladder view HMI Text edit and Symbol comments edit Icons for Monitor Simulator Simulator Controller Controller Mode changes Run Stop and Quit and Read Write programs from to the SG2 smart relay 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 Amount of free programming memory available Current Mode Program mode Simulator mode Monitor mode Ladder Toolbar Icons for selecting and entering all available Ladder Logic instructions Status Bar Status of current open project and connect SG2 smart relay LAD Version BEES File Edit Operation View Help EE 4 EE Coil Contact I 123456788ABC 1234 002 123456 T89 ABC 12345678 P 1 003 123456 789ABC 123456 789ABCDEF hi 00d 123456 789ABCDEF pg 005 C 123456789ABCDEF al 123456 789ABCDEF J 006 lG 123456789ABCDEF ad 1235456 789ABCDEF 007 12345678 008 009 6 hd amp _ 2 anin d gt LL EE E ld Jr 4 7 L in 0 ELO AE rA Eo ina ft 4E do e O ai x 5 X Ia Y la Y o pet ns Lita none gen Verir x ist atus Stop OFFLINE Model SG2 20 T D ID 01
52. and wired by properly experienced and certified personnel AN Make sure the wiring of the SG2 smart relay meets all applicable regulations and codes including local and national standards and codes N Be sure to properly size cables for the reguired current rating MN Always separate AC wiring DC wiring with high frequency switching cycles and low voltage signal wiring Precaution for Operation T 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 N It is strongly recommended to add safety protection such as an emergency stop and external interlock circuit in case the SG2 smart relay operation must be shut down immediately Chapter 1 Getting Started Examination before Installation Every SG2 smart relay has been fully tested and examined before shipment Please carry out the following examination pr
53. constant or other function current value The table below describes the relationship between parameter and MX current value enable S1 0 S2 0 MX VO SI 0 S2 1 MX V1 SI 1 820 0 MX V2 SI 1 820 1 MX V3 The example below shows how to configure MX function Edit Contact Co1il as m pr Select Coil No mx loz 01 0F Function Current value Data multiplexer utput value selected by Sl and 32 Preset Valued in esis Preset Valuel ar b Preset Valued lag y b Preset Values DR y b 31 32 Contact 1 H jou Contact 5m ox E 265413 m jen 123 Chapter 5 Relay Ladder Logic Programming AR Analog Ramp The SG2 smart relay includes a total of 15 AR instructions that can be used throughout a program Each AR instruction has 2 modes AR mode 1 In model AR function enables simple operations to be carried out on integers Analog Ramp instruction allows AR current level to be changed by step from starting level to target level at a specified rate There are 12 parameters for proper configuration The table below describes each configuration parameter and lists each symbol Description AR current value 0 32767 Oo Level1 10000 20000 compatible memory type for configuring AR Oo Level2 10000 20000 Oo MaxL max level 10000 20000 Oo Start Stop level StSp 0 20000 stepping rate rate 1 10000
54. dates tiu a ilk lim parabole usto se rer arl db ptos c Tlf ind um Muda dt 46 LCD Dis lay Min M MM seda ea dahi lis dakik dah tuc athlete doa dedita edu eaae 49 RIC Day list sa vin DAS S nli Rc 54 Sess SIE DIE TTODS ito A ep tuU CELER Ue LEES La teta Ut lasts 58 Chapter 4 Parameter DASS lO yasan kelek dalde te asus Iain Ae bial sod ab aee ence Cop ta ct at AS 59 SIS PANNIS Ed GI AR o a le e ST ER 60 Passine Parameter oUEOI LAM VC is inilir bue AA uta pes lm deg andere dU E pe eR Es EFE ii 61 Chapters Relav Ladder Losic Prostate eur urat 64 Common Memory Y DES deu depp asec Der o Ede E its 65 Special Memory Ty CS aaa anlatti dista desque geht tia 68 Output a naue HONS Rc 69 noto spe as AA O elele eld eiu to eo e ak ai mek pd L LE 70 A O EE SE Nah Gs R EE RE RE E A T 71 GOLE n SELE NOUNS ra Sid aa E esc cm etc mg alemin Sas sone toc ami eli 78 Real Lime Clock CRTC IMS WuCHOns aaa e la al al al quis cu ERE seen ala aaa aa le g nl kan amala 89 Comparator Is eEUe LOS ode Goran o a E m ey eee ID da PE C E E 977 HMI Display Instt ctiOBS secedere karll sive Scan tut dau vista dei aa ebd coe G kal a anke be Race n brad d sal OC MER Qu ULM UU dep de 99 PWM Output Instruction DC Transistor Output ModelsOn ly 102 IO Link Remote I O Instruction SG2 20V xxx model only essen eene eene eene 105 MU NIodbus 562 20N xxx Model On yalm eme oli ids e ot il
55. is 0 if it s configured as down counter Additionally the current count value is retentive when the smart switches between RUN and STOP if C Keep is active In the example below the counter will stop counting when it reaches the preset value of 20 Counter status bit C01 will be ON when the current value is 20 Edit Contact Coil M ly T Counter C ol 01 1F Function Mode 3 0 8 Counter without overtaking and with power down retain current value Fire vau Ti Curva lolololi iz mmm milan 4 Lat hue prnl OUUU CTI TUUU SS SHS oreo an Sx SRS y ESN Sry Be gt Current Value p 014 000000 Preset Value 000020 DODOZO Preset Type N Direction Set Reset Input Contact m ol Contact pi loz This mode is similar to mode 1 but The current counter value will keep on a loss of power when the smart status is RUN The current counter value will keep when the smart switches between RUN and STOP if C keep is active Chapter 5 Relay Ladder Logic Programming Counter Mode 4 Continuous Count Retentive Mode 4 Counter operation is similar to Mode 2 except its current count value is retentive The current count value is retentive and will keep its current count after a loss of power to the smart relay Mode 4 Counter will count up to a fixed preset value and then continue counting after the preset value but it won t count when the current value equals 0 if it s c
56. lest ass die irae Sista saps Goo E ed ad eL USE 204 TOI ECO d aot le oda A A ellinci 205 MU instruction Modbus R TEMAST Yalama lek ekimle o 207 Modbus RTU Slave TUNA etc tt te tte qe aen qut ima anda diseke alama Bade deeem ea e vs su d bus 209 SINT OC DUS DEOLOGOD PA ME PE EEE RN toco EE A MANN AM BUM e OPERE re ME den tdt 209 Chapter 8 20 Points RS485 type Models Instruction Only SG2 20VR D SG2 20VT D SG2 20VR 12D do have RS485 communication function Communication function In order to suit your needs of RS 485 communication there are many parameters needed to be set And there are two ways to set that parameter e Setting parameters via SG2 Client software l In SG2 Client Soft Select Operation gt gt Module System Set 2 Open the dialog box as show below setting parameters SET ID Remote I O and RS485 Set NHodule System Set oet Expand 1 0 W M Keep I O Num i C Keep Back Light I 0 Alarm Ho DR Format Set p Comm Mode 8 N 2 T Unsicmed Baud Rate 38400 4 Signed Set Cancel e Setting parameters via keypad button on SG2 1 Press button to enter main menu 2 Press UP DOWN to choose SET menu and press OK to enter it 3 Press UP DOWN makes the LCD to display the options as show below setting parameters ID SET REMOTE T O and RS485 SET Kadan SET 3 3 7 O Lt DR SEI Hizh bit BACKLIGHT M KEEP 4 Parameter RS485 SET high bit means communication format an
57. m m AS pm EN E b O pd pm EJN pe NE E EN e I1 A EE NE MI E EM O C pd Chapter 6 FBD Block Diagram Programming Function Block Operation rules of FBD function blocks is basically same as ladder mode Function blocks display in FBD Function type A The code of block is aute distributed the Input termina first unused code Sel parameter Connect with next Function block If cursor address is Par user can press OK button into parameter display and edit preset value Press the button Move cursor Logic block number input terminals or parameter Logic Function display input terminal 1s block Move cursor up or down input terminals lt set parameter OK OK Enter parameter display when cursor address is Set parameter Parameter display Block number je Function number Preset value 01 00Sec Display current value when running Press the button Find and display previous or next function block when cursor address 1s Block number Move cursor left or right when cursor address is Preset value SEL T Find and display previous or next function block when cursor address 1s Block number Display parameter or parameter2 when B function is PI MX or AR TY Move cursor up or down Block number lt gt Preset value Modify data or number when in edit mode Enter edit mode when c
58. n ABCDEF 0125456789 O OFF ABCDEF Can be M M TOR G Analog input A01 A04 0 9 99V A01 01 004 AQZ 02 DOY AUs 01 S0 A0I 07 04 Expansion Analog input A05 A08 0 9 99V or 0 20 00mA A S l 36V p AQS 05 ddm ress key AQB 02 57 SEL A6 10 Z mk A T 3 94V e SEL A T 1b T6m AQS 06 ALY A S Z m Expansion temperature analog input ATO1 AT04 100 0 600 0 Cent degree or 148 0 1112 0 Fahrenheit degree TO1 0100 0 C ATO1 0148 0 F Top 0600 00 C Press key ATIS SEDE A BELT x TU ATO3 0193 2 C SELA ATOS 0379 TO4 001T 1 C ATOd 0001 2F Expansion analog output AQ01 AQ04 0 10 00V or 0 20 00mA Setting voltage mode or current mode more information to see Chapter 5 Relay Ladder Logic Programming AQ Analog Output AGIOI 10 00V AQO01 10 00Y AQ02 20 O0mA Run AQU2 20 OOm AQ s AOL V Stop AQUS 01 AAV AQUui VOL m AGUI 04 sem Hidden I O interface function There are 14 I O interfaces Each bit of DRDS current value s low 14bits corresponding one I O interface When one bit equal 1 the corresponding I O interface is hide mean you can t display the I O interface by pressing SEL T or 7 4 The table below show the congruent relationship between DRDS current value and I O interface 0 VZQ 101 10C Z01 Z04 Q01 Q08 Bit0 0 Display 1 Display X01 X0C Y01 Y0C 2 Mi TP Er Display I Not displayed _ Bit 0 0 Dis
59. per stations Max 7 8 56 points I O received per station ID must set to be 0 1 2 max to 7 Remote I O disable Chapter 8 20 Points RS485 type Models Instruction Example 1 Link 8 20 pointes RS485 models SG2 according to the steps of the Hardware Configuration 2 Create a ladder program as show below in those 8 SG2 LOJ 101 MO1 M02 M03 M04 M05 M06 M07 MOS 3 Set L01 of the SG2 which s ID 7 as fellow illustration rl 1 e1moi o8 Li ot Hi lig7 64 4 4 L01 of other 7 SG2 set as fellow illustration r2 1 34N01 08 t T Hol lis7 64 4 5 Run program and let 101 of the SG2 which s ID 7 on And M01 MOS will be on state 6 You will find NO1 N08 of other 7 SG2 will be controlled by the MO1 MO08 of the SG2 which s ID 7 Chapter 8 20 Points RS485 type Models Instruction MU instruction Modbus RTU master MU function carries out Modbus RTU master communication at RS485 port There are 15 Modbus functions under ladder program mode MU01 MUDOF and up to max 250 Modbus function blocks under FBD program mode Modbus comes into possession of communication port release the port when disable and one Modbus period is completed There can be a number of communication orders in one program but only one order can come into possession of communication port at the same time FBD mode coil B output ON And the others keep their enable state for executing function FBD mode coil B output
60. points is 6 8 or 12 depending on each SG2 model Keypad inputs Z Memory type The SG2 keypad input points are designated Z memory types The number of digital Z input points 1s 4 depending on SG2 H type model and RS485 type model 1 0 NUMBER Z SET enable Display Z state on init screen Q 12345678 STOP Thur 05 45 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 Q01 will be turned on when input point 101 is activated OUT Chapter 5 Relay Ladder Logic Programming Auxiliary Relays M memory type Auxiliary relays ate 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 The number of Auxiliary Relays M is 63 Since 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 MOI is being used as an output coil and will energize when input 102 turns on In the second rung auxiliary relay MOI is being used as an input and when energized will turn on outputs Q02 and Q03 The state of auxiliary relays MO1 M3F will be kept when the smart powers down if M Keep is active M Keep can be se
61. receiving data from this DR MU code MU01 MUOF The max data length for Mode 1 and 3 is 25words The max data length for Mode 4 is 400bits Chapter 5 Relay Ladder Logic Programming M The example below shows how to configure DR function Edit Contact Coll 6 a F Selezr Coil Ha mi n min Address 1s constant 0003 EAE Data length is fixed at 1 word x x Send data Besi register 01 03 00 03 00 01 CRC16 arcs tc Comm adds iz c v SS FEET na dara jamgth is 1 Cem data TR ec v Received response form slavel 01 03 02 datal data2 CRC16 saving date to DREO DREO datal 2 MU model Read Registers Setting parameter communication address is constant as show the previous figure the data length is fixed at 1 Setting parameter communication address is data register DR Edit Contact Coil Function parameter display Select Coil Ha MU i 1 07 rl 1 o Funerien Hode i DROS HO L DREQ 4 RESO reglarter Remote 1 n Comm add w or M o rerr The data length is DRO4 The max Setting address DRO3 0001 length ef Dara da 251 Comm data DR ro Setting data length DR04 0002 Send data 01 03 00 01 00 02 CRC16 Received response from slave 01 03 04 datal data2 data3 data4 CRC16 Saving data to DREO DREI DREO datal 2 DRE 1 data3 4 the max length of data is 25 MU mode2 Write single register Chapter 5 Relay Ladder Lo
62. status bit B002 R01 turns ON Then time is gonging on and B002 R01 turns OFF This means that the RTC status bit will be ON for one pulse 168 Chapter 6 FBD Block Diagram Programming iy Analog Comparator Function Block There is a maximum of 250 analog comparator function blocks under FBD mode can be set mode 0 7 and the function is same as Ladder mode 1 Analog Comparison Mode 0 Internal coil Mode 0 analog comparator Internal Coil used as internal auxiliary coils No timer preset value and no parameter display FBD display Enable Input gt 2003 YO1 mode Analog 01 EN Mo OFF B003 R01 YO1 OFF OFF Chapter 6 FBD Block Diagram Programming WAI 2 Analog Comparison Mode 1 7 Analog comparator mode 1 7 setting three parameters analog input Ax analog input Ay and reference value G Analog Comparator mode 1 Ay reference value G lt Ax lt Ay reference value G output ON Analog Comparator mode 2 AxS Ay output ON Analog Comparator mode 3 Axz Ay output ON Analog Comparator mode 4 reference value Gz Ax output ON Analog Comparator mode 5 reference value GS Ax output ON Analog Comparator mode 6 reference value G Ax output ON Analog Comparator mode 7 reference value G Ax output ON Example for program and edit Analog Function Block bd Function Mol Mode Analog number 01 Ay Reference value lt Ax lt Ay Reference value Current
63. 0 Temperature put Module APT adi onla dn tae ean het 22 Analog Output Module 2 A eat hek belasi ilat ito n b aol sh ae galebe abad Sepia E 227 Communieatio n Modulo ES sna Pep ERIS URSI dod a lasa MM M PEINE 224 MBUS Module 0 ii 224 DINE T Moe a dd ld 227 PBUSModle ta 230 ENOCE PIP MOUI ccc Andi 25 GSM Mod 239 Appendix Keypad PLO AMO lel dida lides 243 AppendixA Keypadprogramminginladdermode 243 Appendix B Keypad programming in Ladder UNCTTONBLOCK 247 4KA72X023 Summary of changes This user manual is modified by firmware V3 x and SG2 Client programming software V3 x SG2 V3 x adds some new functions with firmware version V3 x to strong SG2 function The upgrade content is shown as the 2 tables below simply More information about idiographic function to see function instruction DEM SG2 V3 x SG2 V2 x 300 lines 200 lines Edit and Display 260blocks 9Oblocks 4 lines 16 characters 4 lines 12 characters Contact and function block Auxiliary relay M AER 3 M01 M3F 15 MI MF Auxiliary relay N 63 N01 N3F Ladder NO FBD 15 N1 NF temperature input 4 ATO1 AT04 NO alos ouput A0 HAQUI AQUi NO a 2 P01 P02 PO1 adds PLSY mode 1 P1 PWM pomp EE Timer a 31 TOI TIF 15 T1 TF FBD 250 TO1 TFA Counter Ladder 31 C01 C1F 15 C1
64. 01 01 Mol 14 00000 Hop 00001 Hop Lil J Hol 00250 FPo1f Low Q01 Q01 S01 00000 FASO1 00001 HIDO1 09 09 4 L 00000 4 22 1 L 00000 4 L 00001 4 r 1 r 00000 4 Fr 7 rl 1 00000 Hop Low 00000 Low 00000 Hop 00000 FPIO1 Low 00000 HIXO1 Low 00000 FAROL 0001 KUO 000 014 1 L 00000 4 L 010004 1 L DROL 4 Function PI and AR more key display z 3 r 4 r 00000 4 00000 Mop SEL gt 00001 Hop Low 00000 Wop opp 4 e Low 00010 Hop ooo00 FPIOL Lo00 014 1 Low 00 01 FARO1 L 000004 2 o00 1 PIOl Low 00000 FAROL Lono 014 3 L o10004 1 Operation Sample more detailed to see Appendix B Keypad programming in Ladder FUNCTION BLOCK PARAMETER Under Ladder mode into PARAMETER press SEL key cursor will into edit mode This time 1f press SEL key continuously Function blocks display in sequence T 5CR G AS MD PI 5MX ARMU T This time if cursor flicker on T press T 4 Function blocks display in sequence ASO1 Ax A01 V V1 00000 ON SU 00 00 x A02 V V2 00000 OFF SU 00 00 G 00 00V V5 00000 PIOI X01 V1 00001 Kp 00000 Viz 00000 V2 00001 Ti 00000 V2 00000 1 0001 V3 00001 Td 000 01Sec 1 i V2 DRO1 Function PI and AR more key display MXO1 PI01 PIOI sV 00000 PV 00000 Kp 00001 V3 00000 SEL lt gt V4 00000 SEL lt gt Ti 0000 1Sec Ts 000 01Sec 1 T
65. 0184 Wool MD output value Preset VI gt 01927 Current value V1 Preset V2 00015 Current value V2 Preset V3 gt NALC T1171 Current value V3 MD and V1 V3 values range from 32768 32767 Chapter 6 FBD Block Diagram Programming IW PID Proportion Integral Differential function block There is a maximum of 30 PI PID function blocks under FBD mode and the function is same as Ladder mode PID computes formula EV SV PV API Ko 0 EV EV p I D 22V PV PV S PI gt API Parameters can be constant or other function current value The output coil will turn ON when either Ts or Kp is 0 Example PID Function Block Ed Function PI PID current value 32768 32767 SV Destination value 32768 32767 PV Test value 32768 32767 Ts Sampling time 1 32767 0 01s FID number Current Value SV Kp Proportional gain 1 32767 Ty Integration time 1 32767 0 1s Tp Differential time 1 32767 0 01s PY Ta Lip 01 z Cur Value 0 value 0 00 TargetYalue 800 value 0 00 TestYalue 0 SampTime 200 PropGain 100 InteTime 100 Td DiffIime 11 Kp Ti FBD display Enable Input Parameter Parameter display Parameter display 1 Parameter display 2 B003 00738 PIOI PIO cy 00200 noian Proportional gain PV OOTTO i 0010 0S8 amp c Integration time Ts 002 008ec 1 DMM eo eleman P
66. 09 Chapter 8 20 Points RS485 type Models Instruction 205 IO Link Function Function Description 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 The Master smart relay s ID must be 00 and Slave nodes ID should start with 01 and be continuous If nodes ID isn t continuous the Master won t communication with those nodes which are behind the first broken For example the nodes ID is 01 02 04 and 05 The Master thinks there are only two Slave nodes whose ID is 01 and 02 and communication with them One controller can use 8 IO Link L01 lt L08 Only one IO Link instruction can work at Mode 1 send mode and the other IO Link instructions must be Mode 2 receive mode The Mode 1 Send memory range is determined by the Controller ID The adjacent table show the memory range of Wxx locations associated with each controller ID The Mode 2 read the selected Wxx status and write to the selected coil If the select coil type is input coil I or X coil status can t be changed by Wxx status Hardware Configuration 1 Link not more 8 RS485 type SG2 as show below 2 Set all the SG2 in SET menu to No Remote IO 3 Set those SG2 s ID continuously 00 01 02 The max number of the ID is 07 Memory list location o wowo W09 W16 W33 W40 EMITAN mee wee W Table J Le m 3 c a 54 max 8 points I O send
67. 1 Simulation Mode Chapter 3 Program Tools The SG2 Client software includes a built in simulator to test and debug programs easily without the need for downloading to a controller To activate simulation mode simply press the RUN icon The program below is shown in simulation mode identifying the significant available features File Edit Operation View Help 4n Coil Contact Symbol Status UN 123456T88ABC 12245678 P 1 1123456 T88ABC 123456788ABCDEF ad 123456T83ABCDEF l ES 123456789ABCDEF 123456789ABCDEF aal 123456789ABCDEF J 123456789ABCDEF aal 12345678 More nma a Y n T r 1 R e i Boe TA GA A 58 M0 ET ES AE OE DR fF 46 4E He AR ER dE ERO SRS ERE SRS ERE C X XS MIX Gu E m Ver x x Status Run OFFLINE Dome gen 003 123545878 SABE 2 gi 3 fa fa Cal fe Cal Ea a Ca 2 0 x 3 08 2 3 ala 3 8 3 Ca a 3 oe kee ena Capacity 1151 free space Active circuits change color oa Establish Communication Model 552 20WI D 1D 01 PC Mode Simulator High light coil to view current The following is the simple procedure for establishing communication between PC and the SG2 smart relay a Select Operation Link Com Port as shown below B LAD Version File Edit lo View Help oniT or Ctrl k Ctrl I i opel Ctrl C TETUER Simulator m SENE simulator Control
68. 1 B00 2 E001 Qui Moneo A mode 2 ID 01 Add 0003 Data 0000 Address is constant 0003 Setting data DREO 1234 hex 04D2 Send data 01 06 00 03 04 D2 CRC16 Received response from slavel 01 06 00 03 04 D2 CRC16 Mode2 FBD display r q Bool Enable Input gt Booed 02 gt Ho Fart NU Parameter Setting communication address is data register DR 101 B002 B001 01 a A E Ropers M mode z ID 01 Add 0000 Data 0000 Setting address DR03 0001 Setting data DRE0 1234 hex 04D2 Send data 01 06 00 01 04 D2 CRC16 Received response from slavel 01 06 00 01 04 D2 CRC16 Mode2 FBD display Enable Input B f a 24 7 Parameter Chapter 6 FBD Block Diagram Programming MU Function mode fa z m0 numer for Write single register Remote ID 0 7F 0 FFFF Parameter display B ID 01 lt Slaver ID V1 0s Register address VZ DREU Source data address MU Function Function Mode 2 T MU Number 01 Write single register Remote 1D 01 0 7F Comm aad iik DR 03 r 0 FFFF Comm data DR EO Symbol onan Parameter display BOOL ID 01 ID Vi DRO3 Register address VZ DREU Source data address 183 MU mode3 Write Multiple Registers Setting communication address is constant I01 Bode B001 O a M npsus z A mode 3 15 01 Add 0003 Data 0000 Addres
69. 108 SEHE T CS EHE A a a M R ERME CN 115 ARATOS OUMU aaa MY ones ces ena hens nem PR ace 116 AS AU SUD a YY 118 KUD a KE cio did dd M E MEE 119 PID Proportion ntegral Differential lll 120 MA Multiples ad 123 AR Aral ud RIMP A A li a AE 124 DARA A y AAA II II II ll a A 128 Chapter 6 Func onBlockDiagramProgramming rm 130 EDL Sy St memory Pacino 132 a e e e O YO 134 a a Ka e el A e lm M DO DI 134 Pa e SCD e AR A SA dd 135 COTM BLOCK struct aid 136 HM ga casein sega A e re re e m M 137 PWM function block only transistor output version 138 IO Link uncom DIOC eee mene me elle ale a ela ene len K kmen 140 SEHE TUBCDUORN DOLAR 142 Losie Block ISH UCU OBS icio e a E alas 143 ANDE Di3srdiibes scio ito ee ey Teme ma nee etai Ms tenu os atcp oU RMD ti 143 AND EDGE LogicDlagram een 143 NAND kosic DIA P EQ UE ius a eline aaa anama Anel 144 NAND BEDGE LosiC DIASt3ift oio ade ayd lala nina Cube tne sila lll impala eos Re Akl 144 ORTOS e e ei e e al ia ebat ali mi dek a l e eletti elik eli 144 NOR Los vE e an MM DR A GO PE EEE KE OE 145 OSCE AAA 145 AKA72X023 IIT SJ Bora ia A Ye YP Re e Ye os 145 NOTE CDIA a e a beo pene corto ye e e A qae e ene e oia 145 Dulsc Broken e BE hee NM Re A MR AR celica 146 BOOLEAN Lore Dia EM Yanik att
70. 12345678 D Chapter 1 Getting Started 9 f On the Input Status dialog click on MOI to activate the contact MO1 which will turn ON the Output Q01 as shown below The highlighted circuit will show active and the first Output Q01 on the connected smart relay will be ON See Chapter 3 Programming Tools for more detailed software information Coil Contact Capacity 1196 free space symbol Status ON I 1234556T7T884ABC Z 1234d X 1234586T8BABC Input Status Tool Q 123545678 Pil x Y 1234567804BC L a d 4a 7 E SADE HAHHAA Cl G6 3 n 04 tal Ec e Ca E TA a C Ca I A N 1234586789ABCDEF l x T 123458789ABCDEF l C 1234586789ABCDEF l R 1234586T789ABCDEF l G 1234586T789ABCDEF l H 123456789ABCDEF l L 12345678 Chapter 2 Installation Chapter 2 Installation General 5 DE E EZA LOS ad SA AA AAA AA calc al annuus 11 Hioduc spe CHHOOHTOTI Sed os stores e e da 14 ITO A ENN ERN NOR RR RR O p VT TNCS UN 15 a e tanen dts aaa E teda toca dont ae pak onc lanma aadaki kanki cuenten 17 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 AC Models 85 265V 24V AC Model
71. 2 time allowable IEC61131 2 IEC61131 2 fuse Need connect a fuse Need connect a fuse Need connect a fuse Need connect a fuse or breaker of current or breaker of current or breaker of current or breaker of current 1A Nong Chapter 7 Hardware Specification 191 12V DC model Specifications SG2 12HR 12D SG2 20HR 12D Voltage Rating DC 12 V DC 12 V operation Power DC 10 4 14 4 V DC 10 4 14 4 V range instantaneous power down time 10 ms 10 times IEC 61131 2 1 ms 10 times IEC 61131 2 allowable fuse Need connect a fuse or breaker of Need connect a fuse or breaker of Current 1A current 1A Isolation None Nee E 12V DC 14 4V T 12V DC 14 4V average All inputs and All inputs and All inputs and All inputs and relays are ON relays are ON relays are ON relays are ON 195mA 195mA 265mA 265mA All inputs and All inputs and All inputs and All inputs and Relays are OFF Relays are OFF Relays are OFF Relays are OFF 160mA 160mA 200mA 200mA 24V AC model Specifications content SG2 12HR 24A SG2 20HR 24A SG2 12KR 24A SG2 20KR 24A Voltage Rating AC 24V AC 24V operation Power 20 4 28 8V AC 20 4 28 8V AC range instantaneous power down 10 ms half cycle 20 times 10 ms half cycle 20 times time allowable Need connect a fuse or breaker of Need connect a fuse or breaker of Current 1A current 1A Current average AC 24V AC 28 8V AC 24V AC 28 8V All inputs and All in
72. 20 setting Build in ASCII code and multi language characters Multi language characters including English French Spanish Italian German Portuguese Polish Also according to the different settings you can display Russian or Turkish characters 4 Multi Language Chinese fixed Chinese edit z ON Text Input 9 amp 0123456 Pawnee DEFGHITKLENOPQRSTUVWXYZ X O abcdefg p hijiklmnoparstuvwxyztl gt e aaa a aeeeelll ITALIANO if amp tNvo oon u Onnhkhfe ackLR OSZzacetn PE tnuspLA ERN a an PORTUGUESE q eon S lt SFI VERA FCO e tel J YUAARE CHINESE Simplified EA ES Text Input Russian C g 95 amp 012345 DEFGHITKLMNOPQRSTUVWXTY 4 i SX hiiklmnoparstuvwxvz l e a amp a d ceeiii IB ELA AERvaaoaaduuonntfFockLROSZzaceln S zABCCDEFG HIIIKLENOOPRSSTU VYZcRia s ef Q aByX2TI vt BBEXCo YaA ARE 85 Built in Chinese characters which read as following left of the HMI TEXT editor window 60 characters which user define edit step 1 6 as follows right of the HMI TEXT editor window WE y idu m oe Setting telephone number GSM module SMS function Chapter 3 Program Tools Build in 20 HMI H01 H14 can be set telephone number for SMS alarm When HMI which set telephone is enabled SG2 save text information E
73. 2003 0217 0 00 OSA 0 00 2010 1 1 11 0 00 2010 11 11 0 00 Chapter 5 Relay Ladder Logic Programming RTC Mode 4 30 second adjustment The 30 second adjustment Mode 4 allows the Rxx coil to activate based on week hour minute and second The configuration dialog below shows for selection of week hour minute and second for the Rxx coil to activate ON and 30 second adjustment then Rxx OFF Edit Contact Coil Real time clock R o1 01 1F Function Mode 0 4 30s modify mode Mo ru we mu ee ss su propa profesor rosa meso oq o r m Y a RTC present minute CLE M L e oo DTO aime Co IN 0 ren esna 0 RTC code RO1 RIF total 31 group Example 1 preset second lt 30s Week aay Time 8 00 8 00 20 ENABLE RTC output OFF ON OFF The present time will be 8 00 00 when it achieves 8 00 20 at first time and RTC status bit ROI will be ON RTC status bit R01 will be OFF when the present time achieves 8 00 20 at second time Then time continuous going So this means that RTC status bit is ON for 21 seconds Example 2 preset second gt 30s Chapter 5 Relay Ladder Logic Programming ROI Week CA Time 200 2 00 40 ENABLE ETC output The present time will change to be 8 01 00 when it achieves 8 00 40 and RTC status bit RO1 turns ON Then time is gonging on and R01 turns OFF This means that the RTC status bit will be ON for one pulse Chapter
74. 3 5 0 14in S J Z gt CAL X Y Y ACN NO NOS NS UN NS foo FE 12 POINTS FOS 10 12 POINTS 10V Analog T 20 POINTS i A j uf V X LIN pi DO OOOO OOOO 00006606 20 POINTS Chapter 2 Installation Sensor Connection Output Relay F H A Output 4 x Relay 8A Output 8 x Relay 8A i Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 I AA FU Ju uu A db JP Y ay ae ar a FN 1 E v o oo Z4 VU HALI RANA Z Lo o o L JN Output Transistor OUTPUT 4x TR 0 5A OUTPUT 8xTR 0 5A i DO DO OW OW QUO CQ vo Oo Vo Xd Aa ve tat X bl to4 L tat top tas tog tas tos taz tas Q2 Q3 IO Link OR Remote I O Link AF BEN A1 A2 A3 A4 A B A1 A2 A3 A4 A B Sl O A1 A2 A3 A4 A B dc uu a gos e uf ded NE yy URSI SC LY ov e UA KA Y N N X X N b
75. 3000 Preset Levels lanoo Preset MaxL 4nnn Preset Ta 004 0 Parameter display Program display BOOL BOO ART L l000 Liz 0000 Lz OSD00 SEL lt gt Nro BOO AROL uc ls aq au LewelO 1000 Lewell 000 ML 04000 LewelZ 2000 Ta 0004 0 O Ta 4 0 179 Chapter 6 FBD Block Diagram Programming Ril DR Data Register function block There is a maximum of 240 DR data register function blocks under FBD mode and the function is same as Ladder mode The DR function is transferring data DR sends data from prevention registers to current register and output coil Bxxx ON when it s enabled DR holding the out value and output coil Bxxx OFF when it s disabled The data can be signed or unsigned by Operation gt gt module system set menu selection from the SG2 Client software or keypad set The data registers from DR65 to DRFO will be kept when the smart stop or powers down The last 40 DR that from DRC9 to DRFO are special data register more information to see Chapter 3 Program Tools Data Register Set Example Setting I02 ON B001 DRO1 output A05 1 10 count value Setting 102 OFF B001 DRO1 output 0 B001 DA 01 102 Cur Value 39 Pre Value 35 B n03 Bode By O21 MD 01 Cur Value 35 Ai05 Cur Value 39 Pre Valuel Pre Valuel 356 Pre Valuez 39 Pre Valuez 1 Pre Valued 0 Pre Valuei 10 Pre Value4 0 value 3 56 FBD display Parameter display BOO DROI Current value E
76. 4 5 16 Press OK save the present data Continue to input Function Block Methodl Next Function Block d 1213 1415 161718 i Column Press SEL 7 Simultaneously Line r J 2 l 3 100 00Sec moo 4 L d Last Function Block Press SEL Simultaneously Method 2 Next Function Block Press gt 1 times 254 Appendix Keypad Programming 255 Press SEL Press bor T 1times Press ltimes Press NV 4times or Press V 11times Column Press OK Clear Function Block r 2 2 4 SIC LEAR BLOCK ESC Cancel 4E S C 2 OK OK Execute Back to Main Menu Press ESC Appendix Keypad Programming 256 Change Function Block Category Method 1 Move the cursor to change to T C R G H L P S AS MD PI MX AR MU Step 1 1 r2 3 1415 6 7 8 Column Press SEL Line 7 Step 2 Press SEL Step 3 il 213 1415 161 8 Column Press SEL Line Step4 il Press SEL Line 1 Steps Press SEL Step6 Column Press SEL Appendix Keypad Programming Step 7 Press SEL Steps Press SEL Step 9 il Ak 4 3 67 8 Column Press SEL Step 10 Press SEL Step 11 A Column Press SEL Step 11 B Press SEL gt Step 12 Press SEL Step 13 A Press SEL 257 Appendix Keyp
77. 45 ms AC 110 V Typical 50 60 Hz 50 45 ms AC 110 V Typical 50 60 Hz 22 18 ms AC 220 V Typical 50 60 Hz 22 18 ms AC 220 V 24V AC model SG2 12HR 24A SG2 20HR 24A ircui 101 106 I09 I0A 101 109 IOA IOB IOC Diode Resisrot Capacitor number 8 digital input 12 digital input Si cc input ON current gt AC 14 V 3mA gt AC 14 V 3nA Input OFF current i lt AC 6 V 0 85 mA lt AC6V 0 85mA inpu lt 100m zI 100m response time On gt Off On gt Off of input Typical 50 60 Hz 90 90ms Typical 50 60 Hz 90 90ms Off gt On Off gt On Typical 50 60 Hz 90 90ms Typical 50 60 Hz 90 90ms Chapter 7 Hardware Specification 194 24V DC 12 VO model content SG2 12HR D amp SG2 12KR D amp SG2 12CR D SG2 12HT D amp S G2 12KT D amp SG2 12CT D Analog input used Normal digital input High speed input as normal digital Analog input input 103 106 101 102 I09 I0A VEL 3 2mA 24V DC 3 2mA 24V DC 0 63mA 24V lt 0 17 mA 10V ON t gt 1 875mA 15V gt 1 875mA 15V gt 0 161mA 9 8V a inpu current lt 0 625mA 5V 0 625mA 5V 0 085mA 5V ai nput wire length wire length lt lt 100m 100 m lt lt 100m 100 m lt lt 100m 100m lt 30 lt 30 m shield wire lt 30 m shield wire time of 0 3ms Typical Sms eee input Off gt On Off gt On Off gt On A Au 0 5ms Typical 3ms A I ol A dimi voltage EN n Precis pestis Lm LL wx class Mul
78. 5 Relay Ladder Logic Programming Comparator Instructions The SG2 smart relay includes a total of 31 separate comparator instructions that can be used throughout a program Each comparator has a choice of 8 operation modes Additionally each comparator has 5 parameters for proper configuration The table below describes each configuration parameter and lists each compatible memory type for configuring Comparators Symb O Comparison Mode 0 7 Ax analog input value 0 00 99 99 y analog input value 0 00 99 99 im Reference comparative value could be constant or other data code O0 Qutput terminal G01 G1F The preset value and can bea constant or other function current value Comparator Mode 0 Internal Coil Mode 0 Comparator Internal Coil used as internal auxiliary coils No preset value In the example below shows the relationship among the numbered block diagram for a Mode 0 Comparator the ladder diagram view and the software Edit Contact Coil dialog box Q ON 101 OFF OFF N G01 OFF OFF Analog comparator Mode 1 7 1 Analog Comparator mode 1 Ay Ax Ay ON 2 Analog Comparator mode 2 Ax Ay ON 3 Analog Comparator mode 3 Ax 2 Ay ON 4 Analog Comparator mode 4 gt Ax ON 5 Analog Comparator mode 5 Ax ON 6 Analog Comparator mode 6 Ax ON 7 Analog Comparator mode 7 Ax ON Chapter
79. 5 Relay Ladder Logic Programming Example 1 Analog Signal Compare In the example below Mode 4 is the selected function that compares the value of analog input A01 to a constant value N of 2 50 Status coil G01 turns ON when A01 is not less than constant 2 50 T le Analog comparator g lo 81 1Fj Function Beds 0 7 Ax Re kx SR Current Values See Freser Valuei Dz s0 fat Preset Typen Example 2 Timer Counter present value Compare The Comparator instruction can be used to compare Timer Counter or other function values to a constant value or each other In this example below Mode 5 is the selected function that compares the value of Counter C01 with the value of Timer T01 Status coil GO1 turns ON if present value of C01 isn t less than present value of TOI Edi Omg act Co T c F Analog COBMDALASCOE o i wl im inm Function Wade s 0 7 A He E Ax Ay Current Value Sec Se Preset Values 0 00 Ret Freset Type Ta TM HMI Display Instructions The SG2 smart relay includes a total of 31 HMI instructions that can be used throughout a program Each HMI instruction can be configured to display information on the SG2 16x4 character LCD 1n text numeric or bit format for items such as current value and preset value for functions Input Output bit status and text There are three kinds of text in HMI They are Multi Language Chinese fixed and
80. 50000 5 00007 8 1 y LETT ON OFF ON OFF ON OFF Currenr Value Preset Value 005o00 Preset Type H lnpar 2112 Reset Inpat Contact ra Contact m as CH Canoe Chapter 5 Relay Ladder Logic Programming Example Q01 output ON with C01 and Q02 output ON with scan time 103 col 004 oooioo 9 9 Es col 00D Preset 100 1 1 i a Current 01 1 1 2 2 4 99 99 100 1005100 100 100 100100 0 jo 10 101 103 MUI c01 901 OFF Jon OFF Q02 OFF ON OFF Scan time Chapter 5 Relay Ladder Logic Programming High Speed Counter Mode 8 DC powered versions only The Mode 8 High Speed Counter can use either input l l Symbol Description terminals I01 or 102 for forward up counting to Counting Mode 8 high speed counting KH i t 24VDC high d input signal M D er een n d e Oo High speed counting input terminal 101 or 102 only The selected Counter Coil C01 C1F will turn ON Counting interval time 0 99 99 sec Oo Counter on preset Value range 0 999999 when the pulse count reaches the target Preset ON value and remain ON until the pulse count reaches o Counter off preset Value range 0 999999 the target Preset OFF value Th ter will t ee ES ee Ne U o Counter Coil Number C01 C1F total 31 counters when the preceding rung 1s inactive The table below describes ea
81. 562 Client ASA A New FED New LAD New Ladder Program Select File gt New gt New LAD to enter the development environment for a new Ladder program 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 2Open 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 a new program select File gt New and select the desired model of SG2 and the number of connected expansion units if applicable as shown below Select Model Type Specifictions es a 5G2 20VI D 1 Power 24 VIC 2 Input 11 18 A1 A4 3 Output SxIransistor 0 5A 4 Analog Yes 5 ETC Yes 6 PWM Output Yes 7 lKHz Input I1 12 8 High Speed Comm Yes 9 LCD Keypad Yes 10 Extension Yea Select Type X 01 04 sc2 20vr 0 y eE S62 20VI D Chapter 3 Program Tools Menus Icons and Status Bar The Ladder programming environment includes the following Menus Icons and Status Displays l SIH Nn fF Menu bar Five menu selections for program development and retrieval editing communication to connected controllers configuration of special functions
82. 8 is set as the preset value of them Next to the step 2 2 to execute the following operation Step2 3A Press SEL i column column I column 249 Appendix Keypad Programming 250 Step 2 31 Press SEL Step 2 3 Press SEL Step 2 3K Press SEL Step 2 3L Press SEL column Repeat step2 4B press J is also available the preset value of A01 A08 will be periodically changed And so on Analog gain offset value V01 V08 and the other function blocks time counter present value is set as preset value to repeat the step to select T01 T1F C01 C1F V01 V08 Appendix Keypad Programming Procedure 2 8 4 45 OTTES Column Press SEL J begin to edit data ES 3 S0 T 0 1 d Procedure 2 9 vl y 29 4 5 61718 Column Press T Line r 1 7 2 2 d Press SEL N 3 33 33Sec FTO 1I to change 1 to 27 4 l Procedure 2 10 y 1 1213 1415 161718 Column Press OK Line 1 r l 7 2 B save the input data 3 XI e DeC F T 0 1 Procedure 2 11 Press T 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 4 Press OK save input data Procedure 2 15 Press for 3 times this step leads to editing the action relay 251 Appendix
83. 999 so automatically as 99 99 Passing to B003 COI1 as preset value The number 30000 is not out of data range of C01 so CO1 preset value automatically as 30000 Passing to BOOA AROI as preset value The number 30000 is greater than upper limit of AROI 20000 so automatically as 20000 B Ol B nz HD 01 mode 1 Cur Wwalze 20000 Timer l Pre Wal 1 2000n Cur Valuel 0 00 Pre Values Pre Valuwyl 979 99 E Values 1 re Value Ban mode 1 Counter l Cur Value O Pre Valu 20000 004 mode 1 aE 01 Cur Ua iE Level 1 o000 Level st MaxL stop Rate 1 Fain 0 00 Offset Chapter 4 Parameter passing Example2 When AT01 100 0 ATOI s inner value 1000 is passed to other function block as preset value Passing to B002 T01 time base is 0 01s as preset value 1000 is less than lower limit of TOI 0 so automatically as 00 00 Passing to B003 CO01 as preset value 1000 is less than lower limit of C01 so CO1 preset value automatically as 0 Passing to BOO4 ARO1 as preset value 1000 is not out of data range of AROI 10000 so automatically as 1000 Booz Tol mode 1 Timer OL Cur Valuel 0006 Fre Valuel 8 007 BOO walis mode 1 Counter l Cur Ualue Pre Valde 0775 E004 mode 1 AR O1 Cur Valus 0 Level f 1000 gt Levelz D MaxL 0 stop O Rate 1 Fain 0 00 Offset Chapter 5 Relay Ladder Logic Program
84. Analog input count value V01 V08 Expansion temperature input ATO1 AT04 Expansion analog output AQ01 AQ04 Analog input and output value can be used as preset value of other function blocks Analog Input er Range Meaning Analog input value A01 A04 0 9 99V Expansion analog input value A05 A08 0 999 0 9 99V Analog input count value V01 V08 0 999999 A Expansion temperature input value ATO1 ATO04 1000 6000 100 0 600 0 C VOx AOx Gain OffSet Example A01 1 23 VOI A01 10 0 12 30 B001 AS01 A01 V01 ATO1 Ainput Parameters Input Number aion Value V Symbol Cancel idl value 1 24 49 01 Cur Value Pre Valuel 0 Pre Valuez 0 Pre Valued 0 value 12 30 Ard Parameters AT number laro1 z Symbol cance value 0 00 More information about expansion analog input to see Chapter 9 Expansion Module Analog Module 134 Chapter 6 FBD Block Diagram Programming IKA Analog Output AQ instructions need to use with extension analog out module 2AO The default output of AQ is 0 10V voltage the 12bits data is 0 4095 and the corresponding value of AQ is 0 1000 It also can be set as 0 20mA current output the 12bits data is 0 2047 and the corresponding value of AQ is 0 500 The 12bits data saved in DRD4 DRD4 The output mode of AQ is set by the current value of DRDO DRD3 data definition DRDO DRD3 Output Mode register register DRDO
85. BACKLIGHT M KEEP SG2 Modbus protocol If SG2 receive a correct frame it will carry out the command it responses a correct frame to computer or other controller If the command that SG2 received is not allowed SG2 responses Exception code to computer or controller e Command format and Response format CRC verifying range Slave address Function code data Data e The Response command format once SG2 receive an unexpected command CRC verifying range Slave address Exception code Command Format OOH broadcast to all the drivers IN l CRC verifying 01H to the No 01 driver Write single coil For detail For detail range contain OFH to the No 15 driver Read registers please refer Slave Add please refer ave ress 10H to th 16 dri H Write singl ist ist E tion Cod OH to the No 16 driver e sing regis ai register melon xcep du ode l l l Exception Code 63H to the No 99 driver 08H diagnostic Chapter 8 20 Points RS485 type Models Instruction Exception Code Under communication linking the controller responses the Exception Code and send Function Code add 80H to main system if there is error happened 1 Fame enor Function Code enor Register Encoding error Data Quantity Eron e Rmmeemdcmmaddsbi OO 33 sec mode and command gebe INN ESTE NE NM A SG2 the other error 58 Commands do not match SG2 edit mode 59 Reserved Register Address Register address Foncion Usable command
86. BD Now Press Ta Vertically move the Cursor Select the mode the cursor located ESC Back to Main Menu A Chapter 3 Program Tools SG2 system error After power on SG2 keep detecting the running state Once system error occurred the error code will display on LCD At the same time SG2 will stop or just give error warning base on the error type Error types are show in the table below ROM ERROR System ROM Flash memory check error STOP SG2 Vpd ERROR Power down circuits check error STOP SG2 PROG ERROR Ladder FBD code invalid in EEPROM STOP SG2 LOGIC ERROR FBD code logic check error STOP SG2 EXT ERROR Expansion I O error When disable I O alarm in SET of the main STOP SG2 function The alarm cannot appear COMM ERROR RS485 type communication error Warning only RTC ERROR RTC check or work error Warning only EMPTY PACK Memory pack is empty when reading from the memory pack Warning only MEM ERROR Memory packs check error when writing to the memory pack Warning only SG2 inner data type Chapter 4 Parameter passing Chapter 4 Parameter passing Fassino parameter OL Ol BASS serinledi linkini deae n rita tato Givitualng l aea inbe ilemi Chapter 4 Parameter passing 60 In SG2 almost all the function block can use other function block s current value as its preset value This process we called data transmission This chapter will describe some regulation about data transmission SG2 inner data ty
87. CF Ladder 31 RO1 RIF 15 R1 RF mE Comparator G Ladder 31 G01 G1F 15 G1 GF Sub Ladder 31 ASO1 ASIF FBD 250 AS01 ASFA a Div Ladder 31 MD01 MD1F FBD 250 MD01 MDFA Ladder 15 PIO1 PIOF FBD 30 PI01 PI1E FBD 250 MX01 MXFA Ramp Ladder 15 ARO1 AROF FBD 30 ARO1 ARIE bisi Ladder 15 MUOI MUOF NO FBD 250 MU01 MUFA 260 B001 B260 The capability of 99 B01 B99 The capability of each each block 1s alterable and the totallblock is fixed capability of block is 6000bytes PMO5 3rd PM05 3rd can be used with allPMOS can not be used with SG2 V3 x version of SG2 Chapter 1 Getting Started Chapter 1 Getting Started Examination petore InstallatdOE diei lar citu ete eeu nd AA annem qut eM PUNK dul UR duse Environmental Proc anos ssec hae Rao LR ete pe EO I hee to Decet addet imc S16 PAUCOS TESTES LITRO mec ERNR QUICK Sat SCE mdi s dosis NU tont oo R Reti Ra un t Tustall SGr2 CMe MUS Olt Wy ate ose eset canes ee tux tae toU acute esa i ttu na a Edu ma qu eld EM eut ioe 4 Connect Power to 02 Smart Tel xoi aa dei Le al 4 Connect Prosraminimns Cable iste oec tta boda tosta e ld be ie Cosi dea basin ieu adele Establish oftia Cal lobos eo OO eno RO a o Wile Simple pr Oe rat O AA RE 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 p
88. Cell Configuration N T LS i c NC EI MAS Ay et Z bx H E ul l M I v PA I aM a c2 y des d QUT T PAS gt A AS ES Jf D g i S VT CUu X N P d Connecting port Power SW2 2 bit switch terminal resistance selection RUN running LED light COMM Communication LED light Error state LED light RS 485 port SWI 8 bit switch set format of communication E E Et E AO p Chapter 9 Expansion Module 25 Connect with electrical source Input 24VDC a N 4 1A quick blowing fuse circuit breaker or circuit protector Surge absorber Communication set The MBUS communication baud rate and format can be set by 8 bits switch DIP SWI Baud rate SW 1 1 SW1 3 set communication baud rate is 4 8K 9 6K 19 2K 38 4K 57 6K as shown below SWI I SWI 2 SWI 3 SW1 6 Baud rate Kbps OFF OFF can be ON or OFF Parity bit and stop bit SW1 4 SW1 5 set stop bit and verifying bit SW1 6 assembled setting SW 1 7 SW1 8 reserved More information as shown below Swrs SW SWI SW 1 1 SW1 5 are inefficacy communication format is default as 38 4Kbps 2 stop bits no parity bit can be ON or OFF Address Chapter 9 Expansion Module 226 The ID of MBUS module whose range is from OH used for broadcast address to 63H must be the one of the SG2 basic unit The ID o
89. Chapter 3 Program Tools View menu The view menu includes software display option selection The following explains the details of each function GEM Help Functional Description I Display usage list Function 4 amp A Capacity 4 Input Status Tool Simulation Analog Tool Expand Analog Tool High Speed Input Tool AI Tol amp X 4 Ladder Toolbar A sad amp 5 578 9A BH C E diii MM Co Le Ca T bn B Ln Le La Analog input A01 A04 correspond to coil input I09 I0C When analog input increased to 9 98v the coil input set ON When analog input reduced to 5 00v the coil input set OFF O Expand analog input A05 A08 the input data value 0 9 99v and current display mode 0 20 00mA Expand temperature input ATO1 ATO4 the input data value 100 0 600 0 C O High speed input tools used for simulation high speed input I01 amp I02 Chapter 3 Program Tools FBD Programming Environment The FBD Programming Environment includes all the functions Bere 1 3 gt for programming and testing the SG2 using the FBD Specifications programming language To begin a new program select Mersa S62 20VI D l LL 1 Power 24 VDC File gt New and select the desired model of SG2 as shown 2 Input 11 18 21 24 ri ght 3 Output 8xTransistorf0 5A 4 Analog Yes 5 RIC yeg FBD programming operation is same as Ladder LR aa 6 High Speed Comm Yes 9
90. E ME UE ENS NEC M oom Ip Chapter 5 Relay Ladder Logic Programming Example 3 Week Tuesday Wednesday ala anday Time a00 1700 00 17 00 ang 1200 00 17 00 ENABLE NE NE NE Fn Output Example 4 Week Tuesday Wednesday cala Sunday Time aD 1200 00 1700 S00 100 8 00 17 00 ENABLE RTC Mode 3 Year Month Day The Year Month Day Mode 3 allows the Rxx coil to activate based on Year Month and Date The configuration dialog below example 1 allows for selection of Year and Date for the Rxx coil to activate ON and Year and Date for the Rxx coil to deactivate OFF Symbol RTC Year ON RTC Year OFF a RTC Mode 3 Year Month Day Display RTC present time Year Month Day BU RTC month ON LH RTC day ON RTC month OFF RTC day OFF EE RTC code RO1 RIF total 31 group Example 1 Year Ionth Day Time ENABLE RTC output Example 2 09 10 090328 02 17 ROL 11 11 DOS DST 0 00 OFF Year Month Day ENABLE Example 3 S p B ASS 2010 11 11 DD 2010 11 11 RTC output Year Month Day Time ENABLE ETC output Chapter 5 Relay Ladder Logic Programming Edit Contact Coil su IT lc Real tine clock E l Ol lF Function Mode 3 0 4 Interval month action mode Year On gt 0ff los a 10 Current Value l Preset Value 02 4 17 On 1i a DEE Year Day 2010 11 11 0 00
91. FBD Block Diagram Programming E 4 Timer mode 3 OFF Delay A Mode 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 Timer current value will reset to zero when Timer is disabled Timer Function Block Function Mode 103 Qna Off delay timer mode 1 Time Base 0 0158 Timer 03 Cur Valuel 0 00 Current Value Sec Pre Valuel 1 00 Preset Value 01 00 Sec Symbol FBD display Parameter display r qBO05 BOOS Enable Input gt 1044 TL 00 00 lt Current value Reset gt M01 Kod T 01 008ec Preset value Timing Parameter gt Part L 4 enable reset relay yle 4 Enable reset relay present value Timer start operating present value Timing enable relay OFF ON OFF Timing up output terminal oe ON t OFF enable reset relay E t preset value Timing enable relay OFF ON OFF ON ON OFF Timing up OFF A output terminal m OFF ON UFE enable reset relay t preset value Chapter 6 FBD Block Diagram Programming ky 5 Timer mode 4 OFF Delay B Mode 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 Timer current value will reset to zero when Timer is disabled Timer Function Block Function cc EN Off delay timer mode Time Base
92. G2 Programming software SG2 PM05 3rd SG2 Memory cartridge OEM Blind Models No Keypad No Display SG2 12KR D 6 DC 2 Analog 4 Relay X N A 36 SG2 I2KT D VDC 6 DC 2 Analog 4 Trans X N A 36 SG2 20KR D 8 DC 4 Analog 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 100 240VAC 6 AC 4Relay X N A 34 SG2 20KR A 12 AC 8 Relay X N A 44 OEM Baseboard Models No Keypad No Display No Expansion SG2 I2CR D 6 DC 2 Analog 4 Relay X N A 12 SG2 I2CT D AVDC 6 DC 2 Analog 4 Trans X N A 12 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 4Relay X N A 10 100 240VAC SG2 20CR A 12 AC 8 Relay X N A 20 If module with keypad and display Max IO can be added keypad input Z01 Z04 More information about Product Specifications to see chapter 7 Hardware Specification Chapter 2 Installation Mounting DIN rail Mounting 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 fF 5 O L
93. H 123456789ABCDEF ud Mi 001 L 12345678 q _ _ l D 0 008 More ral Lal G G Bo akzo Alo Lio Laso e Eso o af Lt L3 idi E E TY none gen Wer x x StatusiStop OFFLINE Model 562 20VI D ID 01 Analog Output Set Chapter 3 Program Tools The AQ editing environment can be access through the menu using the Edit gt gt Analog Output Set selection shown below CH1 CH4 correspond to analog output AQ01 AQ04 The range is 0 4095 if the output mode is voltage mode The range is 0 2047 if the output mode is current mode The preset value of AQ can be set as either a constant or a code of other data The output mode of AQ and preset value are set as below More information about output mode and displaying to see Chapter 5 Relay Ladder Logic Programming AQ Analog Output Output mode setting value of AQ saved in the registers of DRDO DRD3 current value the preset value saved in the registers DRD4 DRD7 current value File Operation View Help Select Model Coil Keypad Symbo v Ladder Tse Undo Ct rl1 2 I l Dels Find con Ara Replace Q 12 HMI Text symbol stop Lede Data Register Set FAERIT Ouput Set M 1ZJTSHTSHUZXBUCTEF iJ T 1234587898ABCDEF l C 1234587898ABCDEF R 1234567894BCDEF l G 12345678984ABCDEF l The figure shows an example register and output Analog Ouput Set Mode CH1 n N 3000 Voltage mode reset value whe
94. ID current value Destination value Test value NN yy Sampling t me Display PID current value when running mode Test value PV display code A02 when stopping mode and display current value as example PV 00770 when running mode Press SEL lt gt button can convert between displayl and display2 More information about PID function to see Chapter 5 Relay Ladder Logic Programming PID Chapter 6 FBD Block Diagram Programming IWS MX Multiplexer function block There is a maximum of 250 MX Multiplexer function blocks under FBD mode and the function is same as Ladder mode This special function transmits 0 or one of 4 preset values to MX current value memory by selection control coils SI and S2 The MX function enables simple operations to be carried out on integers The preset value V1 V4 can be constant or other function current value The table below describes the relationship between parameter and MX current value Control status MX disable SI 0 S20 0 SIL 0 s20 1 MX enable Example Function MX number Boo4 O BH Current Value Preset Vo Preset Vi a Preset V2 m 01 Cur Value O y Pre Valued 100 Preset V3 Pre Valuel 500 204 Pre Valuez 1000 Pre Valued 111 Talue 0 00 value 0 00 FBD display Enable Input Selection coil S1 Selection coil S2 Parameter Vb li Parameter display Parameter display 1 Parameter displ
95. L ILI N Es 1 Es EZ EZ Ky Q1 Q2 Q3 Q4 Y3 Y4 J expansion module and connect with the Master after the Master is fixed N 6 lai Na ON ON IS SES ES EN JC 9 t Neuf NP ONCE Ne A DC 24V Input 8 x DC A1 A2 0 10V TECOS SG2 12HR D Output 4 x Relay 8A v A O CC CYC TN N N Nu Soy Ne ho Sed Na Ne J EE J J Q1 Q2 Q3 Q4 4x AC N fi Nd Input X1 X2 X3 x4 nn L N AC 100 240V ZN viec 2 A gt e rl y Q Run f Ha ES E 4 Jj SG2 8ER A Output 4 x Relay 8A ES N FN Y Y J PA Y1 90 90 NA No REARS Y2 SA CID DD VID ay fc Y3 Y4 Slide the Wiring T AN and loads Wire size and Terminal Torque Input 12 24V DC or A Input 100 240V 24V AC to avoid the signal interference Chapter 2 Installation WARNING The I O signal cables should not be routed parallel to the power cable or in the same cable trays To avoid a short circuit on the load side it is recommended to connect a fuse between each output terminals mm AWG CU 0 14 15 0 26 16 C p p 14 0 75 26 18 0 14 2 5 0 14 2 5 0 14 1 5 26 14 26 14 26 16 f S SY Sp __ YF 2
96. LCD Keypad Yes 10 Extension Yes Menu Icons and Status Bar FBD environment include menu icon and status bar refer to below figure 3 FBD Version Untitledl File Edit peration View Window Help mpde 3 Timer 01 Cur Valusl 6 00 Fee Valuel 10 080 Ex Gat ER ELE ES S EE EE ERES ES PA ESPRIT S 4 Untitledl Yer Status Stop OFFLINE Model S62 20VT D Page I A 1 Menu 6 menu options including file operations editing and SG2 communications settings configure the special features display settings help information and other functions 2 Tools bar The first line of icons from left to right in turn is expressed as new open save program icons monitoring simulation control mode change RUN STOP QUIT read program form SG2 write program to SG2 The second line of icons from left to right in turn 1s expressed as button panel displays FBD display HMI TEXT editor comments Symbol Editor icon the parameter list etc 3 Programming Area Coils and logic function blocks will need programming into the editing area and use the connection to connect 4 FBD tools bar Can choose to edit the coil and function block instructions From left to right for normal selection operation connection coil E logic function blocks special function blocks scissors operation deletion and annotation tools 5 Status bar Indicated that the current program and the connection status and other info
97. O3 Register address VZ DREU Source data address 184 MU mode4 Read Coils Setting communication address is constant 101 BOOZ B001 Qn1 Bass Scopes M mode 4 16 01 Add 0003 Data 0000 Address is constant 32 hex 0020 Data length is fixed at 16 hex 10H Iword Send data 01 01 00 20 00 10 CRC16 Received response from slavel 01 01 02 datal data2 CRC16 saving data to DREO DREO datal 2 Mode4 FBD display Enable Input gt Parameter Setting communication address is data register DR 101 Booz E001 01 O a E Data 0000 Setting address DRO3 0001 Setting data length R04 0015 hex 000F Send data 01 01 00 01 00 OF CRC16 Received response from slave 01 01 02 datal data2 CRC16 Saving data to DREO DREO datal 2 the max length of data is 400 Mode4 FBD display r 32001 Booz 04 k l Enable Input gt amp Fart Wo 2 Parameter Chapter 6 FBD Block Diagram Programming MU Function Mode a Read coil Remote ID 0 7F Comm add e 0 FFFF E C mr for y The data length is 16 Comm data DE E0 symbol e cance Parameter display B ID 01 Y1 0005 VZ DREO lt Slaver ID Register address lt Saving data address MU Function r Function Mode n Read coil Remote ID o1 0 7F Comm zr al DR o3 y 0 FFFF The data length is DRO4 The max length of
98. Outputs Display amp Keypad RS 485 Communications Max I O SG2 12HR D 6 DC 2 Analog 4 Relay V Z01 Z04 N A 3644 l SG2 12HT D 6 DC 2 Analog 4 Trans W Z01 Z04 N A 36 4 l SG2 20HR D 8 DC 4 Analog 8 Relay V Z01 Z04 N A 44 44 SG2 20HT D ibid 8 DC 4 Analog 8 Trans V Z01 Z04 N A 44 44 SG2 20VR D 8 DC 4 Analog 8 Relay V Z01 Z04 Built in MODBUS 44 44 SG2 20VT D 8 DC 4 Analog 8 Trans V Z01 Z04 Built in MODBUS 44 4 SG2 12HR 12D 6 DC 2 Analog 4 Relay V Z01 Z04 N A 3644 l SG2 20HR 12D 12 VDC 8 DC 4 Analog 8 Relay V Z01 Z04 N A 44 44 SG2 20VR 12D 8 DC 4 Analog 8 Relay V Z01 Z04 Built in MODBUS 44 44 SG2 10HR A 6 AC 4 Relay V Z01 Z04 N A 34 4 l 100 240 VAC SG2 20HR A 12 AC 8 Relay V Z01 Z04 N A 44 44 SG2 12HR 24A 8 AC 4 Relay V Z01 Z04 N A 36 4 l SG2 20HR 24A Mi 12 AC 8 Relay VW Z01 Z04 N A 44 44 Expansion Modules and Accessories SG2 8ER D bAVDC 4 DC 4Relay N A N A N A SG2 8ET D 4 DC 4 Trans N A N A N A SG2 8ER A 100 240VAC 4 AC 4Relay N A N A N A SG2 8ER 24A 24VAC 4 AC 4 Relay N A N A N A SG2 4AI 4 Analog N A N A N A N A SG2 4PT 4 Analog N A N A N A N A SG2 2A0 N A 2 Analog N A N A N A SG2 MBUS 24 VDC Communications Module RS 485 ModBus RTU slaver SG2 DNET Communications Module DeviceNet Group2 slaver SG2 PBUS Communications Module Profibus DP slaver ENOI Communications Module TCP IP GSM Communications Module EGSM 900MHz DCS1800MHz SG2 PLOI SG2 Programming Cable S
99. RES A01 current value 0 4095 Used as normal registers when no A01 and A02 DRE9 A02 current value 0 4095 analog input such as AC type A03 current value 0 4095 Used as normal registers when no A03 and A04 analog input such as AC type or 12points DC type Used as normal registers when no A05 A08 analog input such as don t connected with extension DREF A08 current value 0 4095 Chapter 6 FBD Block Diagram Programming IKI Chapter 6 Function Block Diagram Programming FBD system Menor Paura 132 ANOO e E NM cs E TO O E MO e 134 Anador ADU e ee ee ee eee ee 134 IAE AA ED UE ee 35 Col roro ad ntu ble e dd adi add dias bid 136 HM ceca icc eres ye tie 137 PWM function block only transistor output version nn 138 IO mk tuci n DIO Kisses plutot se alenen lala yi das 140 SHIFT Tute HOT D OCK iso ioo E le Osa o e o maso Patina auo idc Si ans pe yada Gonna S GE 142 Losie LOGIC ETENIM GIONE NE E E D D 143 AND Kosk Tao air ccs DE dE NEM MM NES 143 AND EDGE Posie DIJO Tab o eee ee dt dt d lamas len elemek 143 NAND Logic Dia te tenete Cere te Pe cmt lo a cet uo e peres 144 NAND EDCGE e ap OT 144 OR L gie DIAM e ee 144 NOR DL rere R RS ee Se ee 145 XOR Torie IATA RECENTES 145 ARES Byrne e lal al il akin ai es 145 NOT Losic Diana Meenen a ei eni ei eli C e CM iile 145 gri Logic Dia prani e e e YY NENN 146 BOOLEAN Do a e ait be iei e ERAY e TeK ee er e er e e e e m 146 eo
100. Set Ed Run CtrltR EE IUD Remote I O sed wv Stop CtrltT f WO Current ID 1 I l12345 CN Master New IDi00 99 1 TIAM MT Slave alsa Hut Ctrlt c5et Expand I U Others X 12345 Bai W M Keep I U0 Num n ets C Keep Opener cy ea cd Back Light I O Alarm RIC Set 2 Set Y 12345 Analog Set R3455 Set DR Format Set M 12345 ii Comm Mode 8 N 2 Language Baud Rate 38400 Tola d Link Com Port Cci123450 After the operating above the Data Register editing environment can be access through the menu using the Edit gt gt Data Register Set selection shown below The preset value of DR can be set as either a constant or a code of other data type Data register must used with DR instruction more information about DR to see Chapter 5 Relay Ladder Logic Programming DR Data Register File Operation View Help li Select Model Kevpad Ladder 11592 free space Capacity Undo Ctrlti 65535 0 65535 01 01 04 00000 0 65535 00000 0 65535 00000 0 65535 Find Replace 00000 0 65535 00000 0 65535 00000 0 65535 00000 0 65535 HMI Text Symbol Data Asmens sete Analog Ouput Set 32768 32767 01 01 04 32768 32767 32768 32767 00000 32768 32767 00000 32768 32767 00000 32768 32767 32768 32767 32768 32767 Chapter 3 Program Tools Special DR Register Function The current value of DR65 DRFO hold
101. T function block The SG2 smart relay includes only one SHIFT instruction that can be used throughout a program This function output a serial of pulse on selection points depending on SHIFT input pulse Function Select 1 8 EM y Start Coil la v o1 Symbol canoe FBD output coil display Press OK button into Press SEL T J and OK to I01 enable input coil function display modify coil number and coil type m Shift l Shift0l 1014 1024 501 Type Q01 05 Type N03 N05 Ld Num 5 Num 3 E 101 Enable Input 101 B260 102 Shift input 101 B260 Num Preset number of output pulse 1 8 Timing diagram Enblemi Ll i 2 3 4d 5 8 7 8 9p Q01 Q02 Q03 Q04 Q05 Chapter 6 FBD Block Diagram Programming C8 Logic Block Instructions Logic blocks display in FBD Logic block number 4 connect with next input terminal Function block Dinp Logic type Press the button Move cursor Logic block number gt input terminals Logic Function display input terminal 1s block Move cursor up or down when multiple input terminals Logic Block include AND AND EDGE NAND NAND EDGE OR NOR XOR NOT RS PULSE BOOLEAN AND Logic Diagram FBD LADDER 102 001 dekar oc 101 And 102 And 103 Note The input terminal is NOP which is equivalent to H The B output ON when all input terminals status are ON AND
102. TECO SG2 Smart PLC USER Manual AN s02 i E r 4 C X I sa r LET urs ann SG2 Programmable Logic Smart Relay 4KA72X023 Version 04 2010 11 24 0086 0510 8522 7555 Apply to SG2 firmware version 3 3 www taian technology com PC client program software version 3 3 4KA72X023 Content oi I DUI KC GS A a dc Ent C TTT ee errr IV Chapter T Getting arte i 1 ExamiliiatiOn betore 1115 ta ERO N aaa nl laa A a a un neta 3 Environmental Prec aon derman aradi E BARA aa E E EN EE TE 3 No WAIN orale iio AAA a a 3 SO EA UD iaaea r a ttt EK ARE tus merle ee ere mee em te 4 EE EA Diet SOT E ace A ias 4 Connect Power to SG2 smart relay eioi E E E yada EEEE ENEE QNM DRM UN TUUS UTR klan dalan 4 ConnecEProsrammne CD e e ee ince sz gt Establish CotnimuriogtiOTE alada ala aile lili Ga BOK L BK akla i nk ball SE 5 NV eh a NY PA KR 6 Chapter 2 NN YY e A AY YE 10 Sata lo ao o AAA EKTE e alee de mti e e A Ge 11 Producto pecie dOS oen idilio 14 Mown n me cr C RE 15 ANTAS cisco n mi le 17 Ib pedndicdtor 1o hito 505 dos oi ta souder clon ui ka nse Taverne abc Tree hae deal ooa or 19 Chapter 5 Prostrani TOOLS 5 eerie Sint Al illa ine al Sl e Sli Eod Does va es se Os eka bata saws Up deu al dub Dd apte 20 PC Prosrammi o sottwate oz C Hell menin restent Alas tai de etait Bani Alain a fune Ha
103. TER M 09 D 00 SUM WIN SET Press SEL once USA H 02 Press SEL once isplay fixe SUM 1 02 D 02 Display edit menu USA standard I WINTER M 10 D 01 WINTER M 01 D 01 Then pressing selects edit location pressing 1 edit content Example Year 2009 SUM M 05 D 01 gt 2009 5 3 M 10 D 00 gt 2009 10 25 SUM WIN SET 2009 5 3 8 00 2009 10 25 8 00 OTHER H 08 Time EE SUM H 05 0 01 WINTER M 10 D 2009 5 3 9 00 2009 10 25 9 00 Summer Winter 6 ANALOG SET 010 gt GAIN 0 999 default 10 gt OFFSET 50 50 default 0 ADIZGAIN 010 OFFSET 00 A Z GAIN 010 OFFSET 00 010 ASAS Gain Offset Now Press 1 Move downward the Cursor 2 Switch the setting screen from A01 A02 A03 A04 A50 A06 gt A07 A08 TY SEL Begin to input parameters SEL then e gt OK SC 1 GAIN 000 999 2 OFFSET 50 50 OK Sethe pan SSS 1 Cancel the Input Data when press SEL 2 Back to Main Menu save edit data V01 A01 A01 GAIN A01 OFFSET E V08 A08 A08 GAIN A08 OFFSET Chapter 3 Program Tools 7 PASSWORD setting password PASSWORD PASSWORD v 0000 ed Now Press EET 1 Begin to input numeral 2 When the password is ON it will not display 0000 but SER 2 Back to Main Menu A Class Password number is set to 0001 9FFF B Class Password number is set to A000 FFFE Password number 0000 or FFFF is di
104. The Symbol editing environment can be access through the menu using the Edit gt gt 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 File Operation View Help l EN Em TENA Select Model ao ala ie e Fs 8 al a a ej Keypad Capacity 1187 free Space Ladder 5 Tr St zm oor R I 12 i E w Eile 002 Lae X 12 N cu uir ae XT on 0 12 BRL Text UM a co Sube Symbol d md Y 12 Data Register Set 2 Analog Ouput Set Peg E M 1237556 T89RBCUEFSZT p 4 Pd Pd d T 123456789ABCDEF xt Pis d 4 005 C 123456788ABCDEF Fi rd R 123456789ABCDEF aal T t 006 G 123456789ABCDEF aal t H 123456789ABCDEF E 007 L 12345678 a E 008 Display Enable ERAT K 909 C Contact Coil Both Symbol Line Comments The Line Comment editor is accessed by clicking the W icon on the Ladder Toolbar After clicking on the W icon to drag the line number you want to comment and release and then type the desired comments and press OK X 123456789ADC 0 12345678 P 1 003 A m e m a e a m m a Y1 123456789ABC Release M 123456 780ABCDEF L 004 and edit T 123456789ABCDEF ul v f dde 005 C 123456789ABCDEF al R 123456789ABCDEF il 006 G 123456T789ABCDEF al
105. ad Programming Step 13 B Press SEL gt Step 14 Press SEL Method 2 Step 1 d 243 1415 161718 Column Press SEL Column 258 Appendix Keypad Programming Press J Press T Press J Press T Press Press T Step 7 E INES rd 5 M6 TT S Column Line 1 r 7 2 L o w y FOO 1 ipei 000000 Ilt Al L 000001 4 Press J Press T Column Column 259 Appendix Keypad Programming 260 Press J Press 7 Step 11 A 16 7 8 Column Step 11 B Column Press SEL gt Press 7 Step 12 n 213 1415 Line 1718 Column Column Step 13 B Press SEL gt Appendix Keypad Programming 261 Jump from T01 to T09 Press T Step 15 X PAT 1415 61718 Column Step 16 Press T 8 times or Press 7 times Step 17 Press OK
106. address through the Network address Translation or The manager of the Ethernet In the Local area network please be sure to follow the procedures given below 1 Click Start in the Windows Taskbar Programs XPortInstaller XPortInstaller 2 Click the Search icon Search and choose it 2 Lantronix IFort Installer 3 7 Bl x File Edit View Action Device Help PA r col Search Assign IP Ping Update Uper ade Telnet Web E SC MN IP Address Hardware Address 5 E Device a Firmware Type he Firmware Version 1 50 L EP A oe A Hardware Address The format 00 20 4A XX XX XX where the XXs are unique numbers assigned to the product B IP Address ENO1 must have a unique IP address on your network The systems administrator generally provides the IP address subnet mask and gateway The IP address must be within a valid range unique to your network and in the same subnet as your PC The format 0 0 0 0 e g 10 128 19 119 e 3 Click the Assign IP M AMET x NST x Hardware Address iege O DO AA 14 01 1U Hardware Adrere fe gp DAA IA D 20 4A 58 AB BT ce BE Caneel gt IF Addres bo a sign decimal del notation IP Addrest to axzign decimal dot notation I0 128 17 5 Fo Click the Assign IP icon Enter the IP address Format and click OK Note Enter the IP address Format 0 0 0 0 and click OK Waiting for about 10Sec and the window displays in you
107. am for Kp Ti Td variable setting value to SV PI 1 Td and Ti setting value is large Kp setting value is small 2 Td and Ti setting value is small 3 Kp setting value is large A micro sampling time Ts setting will consume lots of resource of controller and variation value won t have sufficient change A huge sampling time Ts setting expect stable system and a slow response Variable reference chart Control type Application field Kp Ty 0 1s Tp 0 01s Ts 0 01s Fast temperature Small space and capacity Dn 625 30 100 50 variation Slow Temperature Large space and capacity EN 1250 120 800 100 variation Kp Ty Tp is adjustable after observe the application field Chapter 5 Relay Ladder Logic Programming MX Multiplexer The SG2 smart relay includes a total of 15 MX instructions that can be used throughout a program This special function transmits 0 or one of 4 preset values to MX current value memory The MX function enables simple operations to be carried out on integers There are 7 parameters for proper configuration The table below describes each configuration parameter and lists each compatible memory type for configuring MX VO parameter 32768 32767 i V parameter 32768 32767 Em V2 parameter 32768 32767 V3 parameter 32768 32767 Selection bit 1 S1 0000 En Selection bit 2 S2 MX code MX01 MXOF The parameters from to can be
108. ample 2 AQO1 preset value is other parameters M01 DRD4 AQol A I V AGO2Z 20 Q0m amp AGOS 00 QV Analog Ouput Set bd AGO4 00 O0m Mode Preset AGOI 05 134 AQUE 20 m AGOS 00 OOV AQUI 00 0OmA Voltage mode reset value when atop When running DRD4 output value is out control of MO1 and V01 AO01 output value is AOI adjust the value of A01 DRD4 output value changed with A01 AQO1 01 MO AQ02 20 ALD AQQ4 D MO AQUI 02 AQUZ 20 AQUS 00 ABO4A O00 117 Chapter 5 Relay Ladder Logic Programming AS Add Subtract The SG2 smart relay includes a total of 31AS instructions that can be used throughout a program The ADD SUB Addition and or Subtraction function enables simple operations to be carried out on integers There are 6 parameters for proper configuration The table below describes each configuration parameter and lists each compatible memory type for configuring AS Symbol Description a AS current value 32768 32767 V parameter 32768 32767 V2 parameter 32768 32767 00009 OEC Error output coil M N NOP AS code ASO1 AS1F Compute formula AS V1 4 V2 V3 AS current value is the result of compute Parameters V1 V2 and V3 can be a constant or other function oo V3 parameter 32768 32767 current value The output coil will be set to 1 when the result is overflow And the current value is no meaning at this time But it will do nothing if the ou
109. and will reset to init value on a powering up to the smart relay In the example below the counter will stop counting when it reaches the preset value of 20 Counter status bit CO1 will be ON when the current value is 20 Edit Contact Coil Counter C o1 01 1F Function Mode 1 M 0 8 Counter without overtaking and without power down retain current value Pre wakes Car val Fe ele Tr Ti Ta GT et ToEsbabobaTo Eobobo Duipul l i Current Value 1 Preset Value 000020 MOL 000000 Preset Type N oooozo f CO Direction Set Reset Input Contact IM 01 Contact E y loz 50 O A VI rl 1010101 21212412121 24 0 119119 201 200 20 0 201 201 20 Under this mode the counter current value will be init value when the smart is power up or switching between RUN and STOP The init value is 0 if the counter configured as counting up else it is preset value Chapter 5 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 but it won t count when the current value equals 0 if it s configured as down Counter Additionally the current count value is non retentive and will reset to init value on a powering up to the smart relay or switching between RUN and STOP In the example below the counter will continue counting after its preset value of 20 Counter status bit CO1 will be
110. anged with A01 Chapter 6 FBD Block Diagram Programming EN Coil Block Instruction Output coils including Q Y M N H L P S FBD menu display Input terminal Output coil block H L P S is special function coil and press OK button into function display Press the button OK Into function display when cursor address is output coil and coil type is H L P S Move cursor input terminal output coil type output coil number Move cursor output coil number output coil input terminal Logic Function display input terminal is block Change output coil type when cursor address is output coil Oe YoMoNCHCLe Pes 0 3 Change output coil number when cursor address is output coil number Chapter 6 FBD Block Diagram Programming By HMI The SG2 smart relay includes a total of 31 HMI instructions that can be used throughout a program Each HMI instruction can be configured to display information on the SG2 16x4 character LCD in text numeric or bit format for items such as current value and preset value for functions Input Output bit status and text There are three kinds of text in HMI They are Multi Language Chinese fixed and Chinese edit Only the coils function blocks and analog value which used in the program can be set in HMI to display status preset value and current value Each HMI instruction has a choice of 2 operation modes Model display mode when pressing key SEL
111. ansion output coil Y Y Y Y Y y 1 2 Y01 YOC y01 y0C Differential one shot D d ORO TF Analog comparator G 9 O e HMI or oro oros soy Positive input Differential 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 Hi p 001 101 OFF edi ON D OFE OFE E one compelet scan period i i COT 01 OFF 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 101 d 001 006 101 OFF 9H OFF ON d OFF OFF lt gt one compelet scan period l ON 201 OFF OFF Chapter 5 Relay Ladder Logic Programming 69 Output Instructions Set Output Instruction Latch A 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 101 001 007 101 OFF ON OFF ON 001 OFF Reset Ou
112. apter 5 Relay Ladder Logic Programming Example 3 Monday Tuesday Wednesday Friday cauia Sunday S00 1700 00 1700 00 17 00 S00 1700 00 1700 00 17 00 0C e mr Monday Tuesday T Friday calumiay Sunday S00 1700 00 c O mun Es 1 I Ic co O mn pi i Meyil men eu a a ER m a Ic Week Monday Tuesday xs Friday salutary Sunday Time 00 17 00 00 17 00 S00 17 00 8 00 17 00 00 17 00 ENABLE Week Monday Tuesday gt Friday wedi Sunday Time S00 17 00 800 17 00 S00 17 00 00 17 00 00 17 00 ENABLE 3 NE EN EE ME EE En Output o Chapter 5 Relay Ladder Logic Programming RTC Mode 2 Interval weekly The Interval Time Mode 2 allows the Rxx coil to activate based on time and day per week The configuration dialog below example 1 allows for selection of Day and Time for the Rxx coil to activate ON and Day and Time for the Rxx coil to deactivate OFF Example 1 Edit Contact Coil N T lc Real time clock R o1 01 1F Function Mode 2 0 4 Interval time action mode Week 0n 0 TU gt tra Current Value ozz Preset Value 08 1 oo r 17 hour minute Week Monday Tuesday m Friday meaty Sunday Time amp 00 17 00 00 17 00 a DU 17 00 ann 17 00 sn 17 00 ENABLE 3 Fon Output Example 2 Monday Tuesday e LET N Sunday al 17 00 17 00 S00 17 00 8 00 17 00 olmu RR GR
113. arameter display FBD display Enable Input gt 1017 16002 IILI T L Moi Le J Counter 02 EN 101 OFF ON OFF oe OFF C02 M01 OFF Chapter 6 FBD Block Diagram Programming Ey 2 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 or count down to 0 and stop counting when the current count is equal to 0 Additionally the current count value is non retentive and will reset to init value on a powering up to the smart relay 01 Counter Function Block x Function Mode FEN Counter number 01 Counter without overtaking and without power down retain current value Current Value Preset Value 000020 Counter 01 Cur Value O Pre Value 20 Fixed Time Sec Upper Lower FBD display Parameter display Counting Input _ Z lr lll 156011 B001 Up Down Counting No14 TL DODODO lt Current value Reset gt X014 B z C 000020 lt Preset value Counting Parameter gt Part d Mode 1 20 REGE GNE xim acer A mixer uU andas ENS Ga eni ani GS mE bue en A nz e A Ge Game Current value glglg zg17 2 2 7 7 g 79 79 29 29 20 0 20 20 20 Input count pulse Counting up down Under this mode the counter current value will be init value when the smart is power up or switching between RUN and STOP The init value is 0 if the counter co
114. as Remote I O nodes and linked to one master smart relay The Master can run its programming but the Slave can t The Master writes its state of expansion output coil Y to Slaver s output coil Q The Slave writes its state of input coil I to Master s expansion input coil X Input Coils 101410C Output Coils 001 008 Expansion Input Coils X01 X0C I01 IOC Expansion Output Coils YOI Y08 001 008 Hardware Configuration 1 Link 2 RS485 type SG2 as illustration show below 2 Set left SG2 in the illustration to master 3 Set another SG2 to Slave Set to slaver Set to master ID SET REMOTE 1 0 ID SET REMOTE 1 0 BACKLIGHT BACKLIGHT W KEEP M KEEP 562 20VT D B sG2master sGaslave SG2 20VT D Master user program is valid and slave user program is not valid Don t use expansion DI DO modules when remote I O function is enabled Example Create a Ladder program as show below in SG2 which is master If input coils 102 and 103 in the Slave are on X02 and X03 in master will be on state with the influencing of 102 and 103 in the Slave Obviously YO1 and Y02 in the master will be the on state Then for the influenceing of YOL and Y02 in master Q01 and Q02 in slave will on You can see the consequence on the IO interface show below I O State on Slave Run mode I O State on Master Run mode 1 1 4567890ABC X 1MB 4567890ABC Z 1234 y 28 34567890ABC 0g834567890ABC EXE MO 14 42 2010 05
115. ation is reviewed regularly and any necessary corrections are included in subsequent editions SG2 Model Identification 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 Chapter 1 Getting Started A 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 Install SG2 Client Software Install the SG2 Client Software from CD or from the free internet download at www taian technology com is Setup 5G2 Client Welcome to the SG Client Setup Wizard This will install SG Client on your computer It is recommended that you close all other applications before Click Next to continue or Cancel to exit Setup 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 modules See Chapter 2 Installation for complete wiri
116. ay 2 galoo MED 0100 Preset value V2 Y MX current value Preset value VO Y Preset value V1 Y OOS00 lt Preset value V3 Display MX current value when running mode Preset Value V3 display code A03 when stopping mode and display current value as example V3 00111 when running mode Press SEL lt gt button can convert between displayl and display2 MX and V0 V3 values range from 32768 32767 CO O O CO Chapter 6 FBD Block Diagram Programming fi AR Analog Ramp function block There is a maximum of 30 AR analog ramp control function blocks under FBD mode and the function is same as Ladder mode 1 AR model Function description s AR will keep the current level at StSp Offset B for 100ms when it s a enabled Then the current level runs from StSp Offset B to target level at e Md Level2 10000 20000 enactment Rate If St is set the current level decreases from current level to level StSp B at enactment Rate Then AR holds the level StSp Offset B for 100ms After 100ms AR current level is set to offset B which makes AR current value equals 0 Proportion A 0 10 00 Excursion B 10000 10000 AR current value AR current level B A The parameters can be constant or other function current value Selection level Sel 0 target level Levell Sel 1 target level Level2 MaxL is used as target level if the selected level is bigger tha
117. ble tp ouf a location sw T wes PIDEN EN wn EN EE W57 W64 W Table ar IU Amm One controller can use 8 IO Link L01 lt L08 Only one IO Link instruction can work at Mode 1 send mode and the other IO Link instructions must be Mode 2 receive mode Chapter 5 Relay Ladder Logic Programming The Mode 1 Send memory range is determined by the Controller ID The adjacent table show the memory range of Wxx locations associated with each controller ID The Mode 2 read the selected Wxx status and write to the selected coil If the select coil type 1s input coil I or X coil status can t be changed by Wxx status Symbol a Setting mode 1 2 I sending 2 receiving 101 10C i01 i0C oOo Number of send receive points 1 8 Type of send receive points Auxiliary coil M01 M3F m01 m3F 0 __ SeiReseveW Table icon Uo 1 O link output terminal L01 lt L08 X01 X0C x01 x0C Yo1 YoC yo1 yoC Edit Contact Coil R G E I 0 Link L fox 01 08 Function Mode n 1 2 Send IO3 IO07 I l WO9 W13 i Select 1 8 5 l From 103 07 Ta Example 1 IO Link Mode 1 Set 1 5 set as the initiate of 103 the state of actual sending terminal 103 107 is sent to memory list the controller ID 1 the state of corresponding memory list position W09 W13 and relationship of sending terminal is as below 21 4 5 103 107 ID 1 U W09 W13 Memory List Positi
118. can display HMI preset Mode2 no display mode when pressing key SEL can t display HMI preset Displays preset only be enabled Example H01 controlled by M01 and setting HO1 model display MOI status preset value and current value for block B001 Timer TOI current value for block B002 Counter C01 HMI Text H01 H1F oa v mem H01 Ea Current value a Display BOOL Flas Preset value unit Current value unit MOL 44 T0l1 20 005ec TOL 5e C l rzzssmsu WEN gt Analog Display set W Display Mobile Number Mobile Message rlIext Multi Language Chinese fixed Chinese edit Text Input CESAR Ch 4 0123456789 i lt gt 7 ABC gt DEFGHITELMNOPQRSTUVWXYZ 1 0_ abedefzg Cur Value D hiiklmnoparstuvwxvz o Pre Value 1000 mode 5 Timer 01 Cur Valuel 0 00 Pre Valuel 20 00 S zh amp bbBIZIEEXESMMKINMHOUPCTNVS XIIMUIUEHb39E5 gen aBvS2TIvtHRHECo sa Ya amp BE FBD output coil display Press OK button into Press SEL T and OK to M01 enable input coil function display edit HMI iode HNIOl HAI 01 UN Hode 1 Mode 2 Noi Hoi Displav No Display LL HMI display and keypad function same as ladder mode HMI function Press SEL button when Enabled display when Press SEL T and OK to stopping running edit pres
119. cation port release the port when disable and ID SET REMOTE 1 0 BACKLIGHT M KEEP one MU period is completed There can be a number of communication orders in one program but only one order can come into possession of communication port at the same time And the others keep their enable state for executing function Function mode corresponding communication function code mode Communication function code 03 read registers 06 write single register 10 write multiple registers 01 read coils 05 write single coil The coil used in MU function M3D Received M3D is set to ON after received then check up for error Transferring data to target address if there is no error M3E Error flag communication error flag M3F Time out flag M3F is set to 1 when the time from after sending to start receiving is longer than setting and M3D also be set to 1 M3F is automatically reset if M3D reset The time out time is depending communication baud rate as shown in the table below sem 89 There are 5 parameters in MU function as shown below symbol Description MU mode 1 5 Communication address slave ID range 0 127 Communication content address and data length 1 address is constant range 0000 ffff if mode 1 or 3 data length is fixed at 1 word if mode 4 data length is fixed at 16 bits 2 DR code get address and length from this DR and the next DR code store sending
120. cee aa m A A A A 147 TMS EB ACEO TS e e ve e ccc 148 Common Counter TUB CHOR DIOCK oso nene CLR LEE EL CES EE 156 High Speed Counter Function Block DC VersionOnly nn narran 162 RTC Comparator Function Block ia 164 Analog Comparator Function Block isses eene n nennen nennen eene nnns 169 AS SDIDSSUD foncion DIOE i SE ME EE teen ederent fece ederent fece EMEA ecu EMRE er EMRE re cuite 172 MD MUF DIV Tunetton DIOCK a u aeneo ee n An sede da 173 PID Proportion Integral Differential function block essen 174 MX Multiplexer Ul CHO i BLOCK uoto tree Marten euet ten e oem al em eoe oen et en eoe oen e en eo Ren cd teen b ERROR 175 AR Analog Ramp function D NER uere RE beo eb e bee to tbe o bee o tee Ro bee ote e E E EUR 176 Example eite ime ei 0 emi 9 Ama EIL MMC CI MMC EIL AMA C EIL AM EI E 179 DR Data Register function block sele ds 180 Mb ll het ce 0 0 OC al all ll a al a 181 Chapter 6 FBD Block Diagram Programming JI FBD Instructions pat Opa ei Range o Hw rs Keypad input MO 4 201 204 yansin ap RRA ow 9 o kow Pyar sup Y v mewweo Suy coil 63 M01 M3F Pasay oi N Nien a 8 same mw o EV sur s Gp wwx houw Toson Bok B B zo BO01 B260 NmuON fa Noma OFF fe Nomen Np analog input a 849A Analog input parameter V 8O0EW
121. ceive data negative S mmd PIS Chapter 9 Expansion Module vol Baud rate adapt oneself and address set After PBUS mode powers up it can identify the baud rate on Profibus automatically when at least one master sends right message The baud rate range is 9 6Kbit s 6Mbit s In equipment network each slave node has a difference ID and the maximal number of ID is 127 0 126 Its ID can be set by 8 bit switch integration on itself SW I SW 2 SW 3 SW 4 SW 5 SW 6 SW_7 SW_8 ID OFF OFF OFF OFF OFF OFF OFF i ON OFF OFF OFF OFF OFF OFF T OFF ON OFF OFF OFF OFF OFF ld on TON for orr om om for gt p Bl Ww NI el ON OFF ON ON ON ON ON Wi 125 Lom ON on on Jon ON ON ms The SW_8 bit is reserved LED state display PBUS module has two number of double color LED green and red used for fast diagnostics to indicate the state of COMM Bus and itself 1 power LED Yellow red and green flash 4Hz Hardware error Red flash 2Hz Connection with SG2 error Red flash 1Hz Read write order COMM With Network bus error 2 BUS LED Green ON Connect with DP Net and communication right Not connect with DP Net More information about protocol and GSD file to see RO9 SG2 DP C04 X 30 SG2 PROFIBUS DP manual H TECO SG2 GSD Chapter 9 Expansion Module 233 ENO1 TCP IP Module Summarize ENO1 makes SG2 to work in TCP IP network read write and monitor program by software PC Link
122. ch configuration parameter for High Speed Counter Mode 8 Edit Contact Coil Mode le y 0 8 1K Hz Input Counter Fixed meis ind Eli le Eyi ee ee re eee aa Duipul Fixed Time N v fe 01 00 Sec Current Value Preset Value ooooos joooaas Off 8 OFF Preset Type N ln v 00 10 Input Il I2 Reset Input 000005 contact mi contact 000003 2 58 3 019 01s dis dis i Os dis Qe 5 3 5 4 3 4 0 5 i gt l OFF ON OFF Chapter 5 Relay Ladder Logic Programming 89 Real Time Clock RTC Instructions The SG2 smart relay includes a total of 31 separate RTC instructions that can be used RTC SET V3 0 throughout a program Each RTC instruction has a choice of 5 operation modes and has 10 2009 06 26 parameters for proper configuration The initial clock calendar setting for each connected SG2 Fri 10 11 is set using the Operation RTC Set menu selection from the SG2 Client software Symbol Description Input the first week to RTC Input the second week to RTC RTC mode 0 2 0 internal coil 1 daily 2 consecutive days RTC displays the hour of present time 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 RO1 RIF Total 31 RTC OO a RTC Mode 0 Internal Coil Mode 0 RTC Internal Coil used as internal auxiliary coils No preset value
123. currently running program during runtime Additional online functions include I O forcing and Mode changes Run Stop Quit File Edit Operation View ele BEER gt ERs wa o Tp xa Coil Contact Capacity 1191 free space Symbol Moi Toggle Run Stop Status ON Un I 123456 7T88ABC 1234 123456 7TB9ABC 12345678 Pil 003 123456789 ABC Input Status Tool 129456 789ARCDEF 12345678 SABE ES Active circuits A 2 2153168164 Ca fe namang a d Gi Bin BiR ER 21 change color High light coil 123456789ABCDEF 3 t t O VIEW CUITCTILU 123456T7T88ABCDEF 123456789ABCDEF 123456789ABCDEF c F IO voint Status bar filename version mode orce ints ns id online offline SG2 mode and ID c ie MEA PI IN MNR iD t i n G Aeon aR 4H e Ske ARG Ah SB EM See EAD ie ile si 4E x pu e M y ues 3 Verim Z Status Run ONLINE Model 562 20VT D 009 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 Chapter 3 Program Tools Operation menu The Operation menu includes several system configuration functions for both online and offline setup The following explains the details of each function TERE View Help Simulator Offline function for testing and debugging a program PIAR COREA E Y Stop ES RIC Set MEM dais
124. cursor located at 7 column and the 8 column is set as O Y M N 4 SP lt o When the cursor located at 7 column and the 8 column is set as T SEL then Tees DEL Delete an instruction ESC 1 Cancel the Instruction or action under Edition 2 Back to Main Menu after query the program save program to flash OK 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 blocks and set the parameters such as T C SEL DEL Delete a Line of Instruction SEL ESC Display the number of the Lines and operation state of SG2 RUN STOP SEL T 4 Skip up down every 4 line program SEL OK Insert a space line Operation Sample more detailed to see Appendix A Keypad programming in Ladder mode Chapter 3 Program Tools FUNCTION BLOCK program input After into FUNCTION BLOCK cursor flicker on T press SEL key cursor will into edit mode This time if press SEL key continuously Ladder function block display in sequence T C R G H L P S AS MD PI MxX AR MU gt T This time if cursor flicker on T press T Ladder function block display in sequence TOCoRoGoHoLoPoSoASOMDoeoPIOMXeoS ARMUT rl 1 r 1 r SU SU 1 rl 1 14 1014 01 00 1 401 V 00 00 FT01 000250 Kol 00 00 Rol 402 V Kol i L 000200 4 L 00 00 4 L 00 00V 4 rl 1 r2 1 1 r 1 r 1 141
125. d 000 01Sec 2 Under FBD mode Press SEL key Block which used in program displays in seguence Chapter 3 Program Tools RUN or STOP 1 RUN Mode 2 STOP Mode m FON e POS Koa So Execute the instruction then back to main menu DATA REGISTER Displaying preset value when the smart is STOP status and displaying current value when the smart is RUN status DRO1 00000 DROS DRO2 00000 DRO6 DRO3 00000 SEL pro7 DROS 1 Edit DR display number only first line 2 Edit DR preset value i 2 Back to main menu save DR preset data Other Menu Items 1 CLEAR PROGRAM Clear RAM Program in flash and Password at the same time 2 WRITE save the program RAM to PM05 3rd program spare cartridge 3 READ read the program from the PM05 or PMOS 3rd program spare cartridge to SG2 RAM CLEAR PROG WERIT READ TES TES TES NU N eNO 1 3 Now Press OK Execute the instruction ESC Back to main menu 4 SET system setting ID SET REMOTE I O EN N BACK LIGHT ID SET RENOTE 1 0 BACKLIGHT M KEEP 1 0 NUMBER 1 0 ALARM C KEEP Z SET RS485 SET DATA REG Chapter 3 Program Tools ID setting 00 99 Remote I O Mode N none M Master S Slave Back light mode N always light x light for 10s after pressed M non Volatile V Volatile x Non Volatile Setting expansion I O module number 0 3 Siren setting when is not available to Expansio
126. d in Chinese characters User defined Chinese characters 5 Telephone number used by GSM module SMS Alarm function HMI TEXT editing and parameter setting interface as shown below File PENN Operation Xiew Help een 8 le et Select Model RN Cail Keypad nabo v Ladder HMI Text 1 12 mn em timer T l Preset unit 2 12 inle ke CO Current unit i pre eos reset BlCompare 904 Reference unit Y Eind Hild Replace zyabal S Display trac Y 12 Data Register Set eal ts los ereset ua y ie D pd is eleg Display et a po reg rre M 12 i Phone Number its 2 PS 1 m i 5 Clear Cancel T 1234586788ABCDEF od ee Mt A n o l LUE NL DI IL C 1234586TBSABCDEF nl i Multi Language thinese fixed Chinese edict i Text Input 4 he R 123486T88ABCDEF I 83 5 5 7 012345678338 C gt T amp ADC DEFGHITELENOPORSTUVWXYZ X B abcdefgg hiiklmnoparstuvwxyz l A amp amp hecteeiiln if AENyooocuuul nnhf ELNOS222celn PIIABBDIAEEEGUUKINHODPCTYSXISD LHb2ON pa a Brs2T 1 EBRFCO e aT GRARE G 123456 789 ABCDEF ud H 123456788ABCDEF ad IL 123455678 HMI TEXT setting step 1 7 Wred am ruka e 21134298 FAFABC FTT Pita i re E 173400 TA mor June alej a os m oin won ma mas Moe TO1 50 asec gO T
127. d low bit means Baud Rate 5 Press OK button to save setting Chapter 8 20 Points RS485 type Models Instruction Function parameters ID setting 00 99 Remote I O Mode N none M Master S Slave Function description Function ID SET REMOTE I O Description Up to 2 additional SG2 units can be configured as Remote IO function 00 99 M amp S Remote I O nodes master and slave IO Link function Up to 8 additional SG2 units can be configured as IO Link and ID must be continuous 0 7 gt MU can be enabled only when no remote IO function MU instruction N and IO Link function Modbus RTU slave is effective when no remote IO Modbus RTU slave 1 99 N function IO Link function and MU instruction Communication parameters 0 8 N 2 Data 8bits No Parity 2 Stop bits 8 E 1 Data 8bits Even Parity 1 Stop bit Format 1 8 0 1 Data 8bits Odd Parity 1 Stop bit AR ss Baud Rate SG2 default ID SET 1 and REMOTE I O N no remote I O SG2 RS485 port default communication format is 8 N 2 Data 8bits No parity 2 stop bits and baud rate is 38400bps The communication parameter setting takes effect after power up again TEM ATN 420000000 WwocoooooQ Moooooo0 ni RS435 rr RSS RS435 Chapter 8 20 Points RS485 type Models Instruction 204 Detail instruction Remote IO function Function Description Up to 2 additional SG2 units can be configured
128. dder Logic Programming MU Modbus The max data length for Mode 1 and 3 is 25words The max data length for Mode 4 is 400bits Under FBD program mode program edit and parameter display as shown blow 101 m BOOL a Q01 B g p Function Wiopsus A s Mod mode 1 i 1 vs ID 01 x l SETA Read register Data 0000 Remote ID 01 0 7F Comm add ETE F moods C DE 0 FFFF N The data length ig 1 Comm data DR EO Symbol cance Model FBD display Parameter display B Enable Input gt ID u l lt Slaver ID Y1 0005 lt Register address Parameter gt Ve DREO lt Saving data address More description and examples to see Chapter5 FBD Block Diagram Programming MU Modbus function block The max data length for Mode 1 and 3 is 25words The max data length for Mode 4 is 400bits Chapter 8 20 Points RS485 type Models Instruction 209 Modbus RTU slave function Function Description SG2 series PLC can be communication controlled by the computer or other controller with the communication PC and other controller can read and write IO state Function Block preset value It also can use to read Function Block current value control SG Run Stop mode Frame length maximum is 128bytes Hardware Configuration 1 Line some SG2 RS485 port A B as show below SG2 A B ID nC02 99 2 Set all the SG2 in the SET menu to No Remote IO ID SET 3 Set SG2 ID 01 99 each of those SG2 s ID is different REMOTE 1 0
129. de 0 6 Input I01 I0C 101 10C Use 101 g1F to set counting up or down Keypad input Z01 Z04 z01 z04 OFF counting up 0 1 2 3 Output ON counting down 3 2 1 0 Auxiliary coil Use 101 g1F to reset the counting value Auxiliary coil N01 N3F n01 n3F ON the counter value reset to 0 Expansion input X01 X0C x01 x0C OFF the counter continues to count Expansion output Y01 Y0C y01 y0C am o Counter current Value range 0 999999 RTC RO01 R1F r01 r1F Counter preset Value range 0 999999 Counter C01 CIF cO1 clF Counter Code CO1 CIF total 31 Counters Timer TO1 T1F t01 t1F Analog comparator G01 F1F g01 g1F Normal open contact The preset value of Counter could be a constant or other function current value Counter Mode 0 Internal coil Mode 0 Counter Internal Coil used as internal auxiliary coils No counter preset value In the example below shows the relationship among the numbered block diagram for a mode 0 counter the ladder diagram view and the software Edit Contact Coil dialog box Q col 0 ON ON EN OFF OFF OFF COl OFF ON OFF ON OFF Chapter 5 Relay Ladder Logic Programming T 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 or count down to 0 and stop counting when the current count is equal to 0 Additionally the current count value is non retentive
130. de 2 Enable Reset a Output PT LT LT Le Time Base 1SEC Y Current Value SEC Preset Value 0010 SEC Preset Iype N v En Direction Set Reset Input Contact v Contact E M lor TOL cu enable reset relay enable reset relay present value 0 le Timer starts operating M present vues Timing enable relay lime up Output terminal TO1 T1F enable reset relay t preset value The current value of Timer can not be kept on a loss of power to smart Chapter 5 Relay Ladder Logic Programming 78 Timer Mode 7 FLASH Cascade without Reset Mode 7 Timer is a Flash Timer which using two Timers in a cascade configuration without reset The second Timer number follows the first Timer 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 Timer current value will reset to zero when Timer is disabled In the example below timer status TOl 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 TO2 will flash and Timer 1 will begin timing again This type of cascade timer is of ten used in combination with a counter in applications where it 1s necessary to coun
131. de 6 Timer is a Flash timer with reset that will time up to a fixed preset value and then change the state of its status bit Additionally the Timer current value will reset to zero when Timer is disabled Timer Function Block Function vae E Flash timer mode 103 Tamer 03 Cur Valuel 0 00 Pre Valuel 3 33 Current Value SEs Preset Value 03 33 Sec Time Base 0 015e Y symbol FBD display r 1B005 Enable Input gt 1044 ilL Reset gt a zs a Timing Parameter Par JUL Parameter display BOOS OO OD Current value 05 586 lt Preset value enable reset relay present value 0 ela Timer starts operating le pa enable reset relay present value 0 Timing enable relay Time up Output terminal enable reset relay t preset value Chapter 6 FBD Block Diagram Programming EN 8 Timer mode 7 FLASH C Mode Mode 7 Timer is a Flash Timer which using two Timers in a cascade configuration without reset The second Timer number follows the first Timer 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 Timer current value will reset to zero when Timer is disabled Timer Function Block Function EN Flash timer mode 3 Ioff lon o 02 Time Base o 0156 Y o 1Sec
132. der toolbar and drop it on the right most cells Select QO1 from the dialog and press OK as shown below See Chapter 5 Ladder Programming instructions for complete instruction set definitions Edit Operation Bes sa ole EHE BSSS e BB Coil Contact Capacity 1197 Frees space PC Hoda A Symbol Used I 123456788ABC 2 1234 X 123456789ABC Q x E E lc Al Output Type Q 12345678 P 1 v Reset IC Sec C Y 123456789ABC C Sec C P M 123456789ABCDEF al T 123456789ABCDEF al Chapter 1 Getting Started 8 d Test the simple program From the Operation menu select the Write function and write the program to the connected smart relay as shown below File Edit MBA View Help Monitor S1m1l ator Simulator Control Coil Cont symbol Eun Used v Stop Power Pause Cait Read Ctrltk CtrltT Ctrl U Ctrlt RIC Set Analog Set Password Language Module System Set Link Com Port e 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 BSE 60 6 HEHE EA Sj i e 88 e Coil Contact Capacity 1196 free space symbol Used 1 123456789ABC 1234 K 123456789ABC Q 12345678 P 1 Y 123456789ABC M 123456789ABCDEF l x T 123456789ABCDEF al C 123456789ABCDEF R 123456789ABCDEF l G 123456789ABCDEF sn H 123456788ABCDEF Ed L
133. e Mode 4 Counter operation is similar to Mode 2 except its current count value is retentive The current count value is retentive and will keep its current count after a loss of power to the smart relay Mode 4 Counter will count up to a fixed preset value and then continue counting after the preset value but it won t count when the current value equals 0 if it s configured as down Counter FBD display Parameter display Counting Input z0lr LLL 138001 BOO Up Down Counting No14 L 000000 lt Current value Reset x01 302 C 000020 lt Preset value Counting Parameter Pare pps Note The gt means the current value appeared will be greater than present value The PD means the current value will be retain until the power recover This mode is similar to mode 2 but First 31 Counter functions CO1 C1F can keep their current value after a loss of power to the smart relay The current counter value will be kept when the smart switches between RUN and STOP if C keep is active Counter Function Block E r Function i Mode EE Counter number 01 Counter without overtaking and with power down retain current value Counter Function Block Current Value Function Mode ME Counter number 01 Counter with overtaking and with power down retain current value Current Value Preset Value 000020 Fixed Time Sec Preset Values Fixed Time Sec
134. ecification 197 12V DC 20 I O model SG2 20HR 12D Analog input used Normal digital input High speed input as normal digital Analog input input 103 108 101 102 I09 I0A IOB IOC WCC mme 6 3 a L4 3 2mA 12V DC 3 2mA 12V DC 0 63mA 12V 0 17 mA 10V ON current gt 1 875mA 7 5V gt 1 875mA 7 5V gt 0 163mA 9 8V Nd inpu OFF current A 0 625mA 2 55V 0 625mA 2 55V 0 083mA 5V inpu lt 100m lt 100m lt 100m On gt Off On gt Off On gt Off _ 0 5ms Typical 5ms a dll Off gt On Off gt On 0 3ms Typical 3ms D e 0 10 V DC 0 01V DC 2 0 12V Un z Off gt On voltage Precision class bit of conversion Conversion time sensor resistance NM OB NM Chapter 7 Hardware Specification 198 Output Specifications output circuitry Extern power Extern power Less than AC265 DC30V 23 9 24 1V Maximal 8A point 0 3A point Extern power Load Inductive light 200W 10W DC 24V Upsdsnumw fA A 0 8 Response OFF amp ON time ON OFF Less than 0 6 ms Output Port wiring notice Light Load The current value will be 10 20 times of normal value for several 10ms when filament is turning on A distributaries resistance or restricted current resistance is added at output port to reduce the concussion current value distributaries resistance restricted current resistance n url O
135. endu lala datada dido adas 146 AS A A E IN 147 Eure Punc tro rb ave Estudio E ey bts AYAN e tet Gt mrt DR erek 148 Common Counter NeoN D YE Kekler elli rica 156 High Speed Counter Function Block DC VersionOn ly 162 RIC Comparator Function Block scsi heic tiere A aveo ise Eua RE EY Ra EET FAR au UE 164 Analog Comparator PUNCH ON b C K mama eei ida 169 AS ADD SUB futicton block ces eoa otro dll cinc 172 MDXMULSDIV fonc hon DIGG Ki ocurre EY ue te ota S quede oon tae de Pede ev cM dria 173 PID Proportion Integral Differential function block 174 MA Nbultipie Ser runc om DOCK dia aii cdi td ri ek dei benimi iki 175 AR Analog Ramp functionblock enr aa Eai aaia 176 I AUN o E md UL MM ME M e e 179 DR CData Re sister fonction DIOCK d ior ioo da pala ss 180 MU Modbus y FUNCTION BLOCK uomo eii ER EU bs baee uae Nba bebo o re ooo aa rel 181 Chapter 7 Hardware Specification a3 Rea la sl rodeo cae 187 Normal Ne CITC AOL ate artistes doi Seta dado ts peabec estudia totes rodea 188 Product SPE CIM CALI ONS A ADHERE UAE Be RR EHE UR RUNE A lal EROR NR Topic Eau du PO dix dos dT Na UR lala RUE 189 POWEr SPCC AMONG au osito dk e hii aL ston eR eek ER eiie 190 Normal model machine Specificatlons ll 190 12N DE model SPC CH CATIONS Ade etd TRA a et Ro ub Rin e elk Ra dec M i ace aaa anal 191 24N AC model Spec
136. equal to the preset value Additionally the Timer current value will reset to zero when Timer is disabled In the example below the timer reset input is Input 101 The timer status bit TO1 will turn ON only after its rung transitions from true to false Timer status bit TOl will turn OFF when the current time value reaches its preset value of 10 seconds Edit Contact Coil Timer T o v 01 1F Function Mode F M 0 6 7 P Off delay timer mode 2 Enable 1 a L3 Output Time Base 1SEC Current Value SEC Preset Value od SEC Preset Type In v EX Direction Set Reset Input Contact 7 Contact 1 o enable reset pi Timer start operating mt enable reset relay present value present value 0 Timig enable relay OFF ON OFF lime up TO1 T1F OFF ON OFF output terminal T OFF enable reset relay t preset value TOE and TOF keep their current value after a loss of power to the smart relay if M Keep is active but the others reset to 0 Chapter 5 Relay Ladder Logic Programming 76 Timer Mode 5 FLASH without reset Mode 5 Timer is a Flash timer without reset that will time up to a fixed preset value and then change the state of its status bit Additionally the Timer current value will reset to zero when Timer is disabled In the example below timer status bit T01 will be ON immediately when its rung is true and begin its timing sequence Timer status bit TOI will
137. er if the M Keep is active Timer Mode 0 Internal Coil Mode 0 Timer Internal Coil used as internal auxiliary coils No timer preset value The status of T coil becomes with enable coil as shown below 002 01 OFF ON OFF oe OFF TO OFF Sn OFF Sa OFF 101 is enable coil Chapter 5 Relay Ladder Logic Programming Timer Mode 1 ON Delay Mode 1 Timer ON Delay will time up to a fixed value and stop timing when the current time is equal to the preset value Additionally the Timer current value will reset to zero when Timer is disabled In the example below the timer will stop timing when it reaches the preset value of 5 seconds Timer status bit TO1 will be ON when the current value is 5 Edit Contact Coil ly n x T lc Select Coil No Output Type 01 1F risp CR T 0l v C sec C p Function Mode n 0 6 7 P On delay timer mode 1 Enable l Output Ets Tine Base 1SEC v Current Value Sec Preset Value 0005 Sec Preset Type ES Direction Set Reset Input Contact Contact fo resent value Timer starts operating P 4 4 enable reset relay Timing enable relay OFF ON OFF time NO OFF 5 ON OFF output temina TOLTI F t Timer preset value TOE and TOF keep their current value after a loss of power to the smart relay if M Keep is active but the others reset to 0 Chapter 5 Relay Ladder Logic Program
138. et value coil status NOL H MO1 0N MO1 0N TO1 20 00sec TOL 20 00sec 101250 00sec TOL Sec T01 10 00sec LOLZE C01 000001 T01 0 60sec COL 000002 More information about HMI TEXT to see Chapter 3 Program Tools Ladder Logic Programming Environment HMI TEXT Chapter 6 FBD Block Diagram Programming EZ PWM function block only transistor output version The transistor output model smart relay includes the capability to provide a PWM Pulse Width Modulation output on terminal Q01 and Q02 The PWM instruction 1s able to output up to an 8 stage PWM waveform It also provides a PLSY Pulse output output on terminal Q01 whose pulse number and frequency can be changed The table below describes number and mode of PWM PWM mode The PWM output terminal Q01 or Q02 can output 8 PWM waveforms Each PWM has 8 group preset stages which contents Width and Period The 8 group preset values can be constant or other function current value Display Description P01 PWM code PWMOI PWMO2 M01 Enable Input 101 B260 N02 Select2 101 B260 N03 Select3 101 B260 Mode PWM mode 1 PWM Function Mode n y HE LIL Ep Select 1 8 1 T ma t ms Current Value ms ms Ereset Value 10 ma E ms Preset Type N y ln Symbol O cance Mlt PWHOL Mode 1 PWHOL Mode 1 N014 SET 1 Out Q0l SET 2 Out g l N024 PO TP1 00005 TP2 00002 N03 3 TT1 00010 TT2 00011
139. eter Part 1 HZ J Note High speed input terminal 101 102 Example as shown 901 output ON with C01 B001 but Q01 Output with scan time Preset S000 mmmunm mm pea m mm so games um mmm E e e a r p sacs aes 2 Ics 5 LESTIE i aurcs a E ee acc rr Current 0 11111212 e 149991499915000 5000 5000 5000 5000 5000 5000 0 i 0 I 1 A r E 1 d A E CELT O CO O TT en E ee ne A oe A ee ae O A A ILLI p pere Counting input 101 Enable input 103 Reset input MOI Output B001 Q01 ON OFF Scan time Chapter 6 FBD Block Diagram Programming 0 2 Counter Mode 8 DC powered versions only The Mode 8 High Speed Counter can use either input terminals 101 or 102 for forward up counting to 1 KHz maximum at 24VDC high speed input signal The selected Counter Coil C01 C1F 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 counter will reset when the preceding rung 1s inactive Counter Function Block pd Function Mode Counter number 01 lKHz input compare counter H3 1I01 Current Value Preset Value Value 1 a Fixed Time Sec 00 10 mode B Counter 01 Upper Fixed Time 0 10 Upper 5 Lower 3 Lower Symbol FBD display Parameter display High counting input _ oir lll 38001 BOO Enable Input gt 1034 TL T 00 105ec lt nterva
140. eters PO Pesada oo Total number of pulse storing in DRC9 1 fem of PSY 10008 0 pls sumere PESYO 3277 0 EN Output port Q01 PWM code P01 Example Edit Contact Coil P l 01 02 Function Mode 1 2 PLSY Current Value Preset Value l Hz Preset Type c fo1 The preset frequency and pulse number could be constant or other function current value They are variable if the preset are other data code The PLSY will stop output if it has outputted the number of pulse PLSY will 103 Chapter 5 Relay Ladder Logic Programming i run again if it is enabled for a second time In the example above the frequency is other data code C01 So the wave s frequency will change following the current value of C01 In the example above frequency is 1000 if the current value of CO1 is bigger than 1000 PLSY stops outputting pulse after it has output 100 pulses PLSY will be going on as long as it s enabled if is 0 Example Parameter setting 500Hz 5 output as shown below PLSY stops outputting when the number of output pulse 1s completed Chapter 5 Relay Ladder Logic Programming MA IO Link Remote I O Instruction SG2 20Vxxx model only The SG2 20Vxxx models include the capability to link additional SG2 20Vxx units Redes SET 03 via the RS 485 connection terminals The baud rate and communication format DR SET rl o igh bi both can be set using the Operatio
141. f the master device changed if it doesn t get the ModBus order when it gets power or is running the extended module gets the ID itself and renews it LED state display State indication Error type and reason Manage method The error LED light flick slow 2Hz The error LED light The error LED light flick slow 2Hz The error LED light flick quickly 5Hz The connection between SG2 and COMM Mode is improper SG2 set error IO number set is different from factual ModBus order error data frames function code address of register CRC data unseemliness verifying error etc COMM data error Verifying bit error Length of data respond error CRC error check up connection among SG2 IO mode and COMM Mode check up SG2 set check up the order and communication set according COMM protocol Make sure the connection between SG2 and COMM Mode is credible describe environment interfere The question is connection with the mode before 1t 1f there are many expansion modes More information to see RO6 SG2 MBUS D01V31 SG2 MBUS Communication User Manual DNET Module Summarize Chapter 9 Expansion Module 227 DNET makes SG2 which doesn t have the ability of DeviceNet to work in DeviceNet network At DeviceNet side DNET is a GROUP 2 ONLY eguipment slave eguipment in this network At PLC side DNET communicate with SG2 through SG2 COMM Port it is point to point commu
142. gic Programming Setting parameter communication address is constant Edit Contact Coil rpSelect Coil No wo ni 01 0F Write single register Remote ID o 0 7F Comm add F 0003 DR o 0 FFFF Comm data DR Eo Function parameter display rz 1 o coos Hdi L DREQ 4 Address is constant 0003 Setting data DRE0 1234 hex 04D2 Send data 01 06 00 03 04 D2 CRC16 Received response from slavel 01 06 00 03 04 D2 CRC16 Setting parameter communication address is data register DR Edit Contact Coil Select Coil No mo lor 01 0F m Function Mode z Write single register Femote ID o1 0 7F Comm add co REN 0 FFFF Comm data DR Eo y Function parameter display a o pgos Fiol L DREO 4 Setting address DR03 0001 Setting data DRE0 1234 hex 04D2 Send data 01 06 00 01 04 D2 CRC16 Received response from slavel 01 06 00 01 04 D2 CRC16 110 Chapter 5 Relay Ladder Logic Programming Ui MU mode3 Write Multiple Registers Setting parameter communication address is constant Edit Contact Coil 8 Function parameter display Select Coil No MU o1 01 0F Function Mode a x Write multi register r 1 o coos HO L DREQ 4 NIETO o Address is constant 0003 p is E n s gt a Data length is fixed at 1word Setting data DRE0 1234 he
143. goi S E MU Function Bonens A p Mode ID 01 NGC ids Read register Data 0000 Address is constant 0003 Remote ID N O PF Data length is fixed at 1word Comm add y 3 Send data 0 FEEF mkaka Ni 01 03 00 03 00 01 CRC16 NE ERE e Comm data DR Eo y Received response form slavel Symbol 01 03 02 datal data2 CRC16 Saving date to DREO DREO data1 2 Model FBD display Parameter display r BOO 1014 01 ID i lt Slaver ID a Hol 1z 0003 lt Register address Part NU 7 V2 DREO lt Saving data address Enable Input gt Parameter Setting communication address 1s data register DR TL MU Funetion Function Moreus A Mode 51 MU Number o1 mode 1 a bd E ID 01 Read register 2 dd 0000 Data 0000 Setting address DRO3 0001 usum Ae a Setting data length DRO4 0002 O 7F Send data Comm add 00 DB 03 0 FEFF 01 03 00 01 00 02 CRCI6 The data length is DRO4 The max length of Data is 25 Received response from slave e Eo El Symbol 01 03 04 datal data2 data3 data4 CRC16 Saving data to DREO DREI DREO datal 2 DREI data3 4 Cancel the max length of data is 25 Model FBD display Parameter display r 1B00 BOO I014 01 ID 01 lt Slaver ID s adi V DR S lt Register address Part MU 4 V2 DREO lt Saving data address Enable Input gt Parameter MU mode2 Write single register Setting communication address is constant 10
144. hapter 5 Relay Ladder Logic Programming 86 High Speed Counters DC Version Only The DC powered version smart relays include two 1 KHz high speed inputs on terminal 101 and 102 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 High Speed Counter Mode 7 DC powered versions only The Mode 7 High Speed Counter can use either input Symbol terminals I01 or I02 for forward up counting to 1 KHz FUN Counting Mode 7 high speed counting maximum at 24VDC high speed input signal The High speed counting input terminal I01 or I02 only selected Counter Coil CO1 C1F will turn ON when the I Use 101 g1F to Reset the counting value pulse count reaches preset value and remain ON The ON the counter reset to 0 counter will reset when the Reset Input is active In the OFF the counter continues to count example below shows the relationship among the m Current Count Value range 0 999999 numbered block diagram for a Mode 7 Counter the Preset Value range 0 999999 ladder diagram view and the software Edit Contact Coil dialog box 2 ja s z 4 Counter 5 1014 000000 c loz 01 1F 050000 6 Function Made 3 oF 0 E 1 7 Scale Input Counter 5 050000 TIE a nueprocequecsquononsesen poceqsearwpeces queens enean aeneae ese ET i Geral fe fa lel te izzete lee la Fa 24 917 5 4 em 549999 0000f
145. hen the value of A01 is not greater than 2 50 Parameter display current value of Ax when running mode Analog Comparison Mode 5 FBD display Parameter display Enable Input gt HO17 1B003 E003 G l Ref x AQL V lt Analog Input Ax Hol Parameter L J G 02 GOV Reference Par B003 G01 output ON when the value of A01 is not low than 2 50 Parameter display current value of Ax when running mode Analog Comparison Mode 6 FBD display Parameter display Enable Input gt MOLT 1B003 BOOS Gul Ref Ax AO V lt Analog Input Ax FOL Parameter L J G 02 50y lt Reference Par B003 G01 output ON when the value of A01 is equal to 2 50 Parameter display current value of Ax when running mode Analog Comparison Mode 7 FBD display Parameter display Enable Input gt Holt 160030 B003 601 Ref Axz AOL V Analog Input lt gt Ax Frol Parameter Part J G 0 G V lt Reference B003 G01 output ON when the value of A01 is not equal to 2 50 Parameter display current value of Ax when running mode 171 Chapter 6 FBD Block Diagram Programming IWA AS ADD SUB function block There is a maximum of 250 AS Addition and Subtraction function blocks under FBD mode and the function is same as Ladder mode Compute formula AS V1 V2 V3 Parameters V1 V2 and V3 can be a constant or other function current value The output coil will be set to 1 when the result is ove
146. i JN jd JY EN EAN Nu A NEE RD NANA NEN NED i O i iG M DC24V INPUT8xDCIA1 A2 0 10 Vl N i HR E AP a AF A NECE d if LA J I N TE B gt CO CO NM ml E f aS CT lon D wil AER gt 3 5 T om e CEN IL AJ EN Y SG2 12HR D E r a OUTPUTAxRELAY 8A T i Mr NC Y EN 20 UN 15 C T g UN K E y ES Y MX d i Lu y J UN NIN No a IND 23 3 LY i Q1 Q2 03 04 Y i 20 points DC 24V Input 12 x DC A1 A4 0 10V _ eE DEL N SEL LN JA ES gt Y E E gt N C3 EEE AG VS Pp x ec Ne C y k KE HO n f 2 c J SS C7 oo LA I 1E co Ee gt On m f A MO 3 H pa N v7 HA rz V O TM SS OK NI AP SG2 20HR D Output 8x Relay 8A fS 2 at KG FON oN GES f epi A j A P S E k M vi P wae El EY 3 zl Y Ci Q3 Q4 Q6 Q8 A LU Chapter 8 20 Points RS485 type Models Instruction Chapter 8 20 Points RS485 type Models Instruction Communication Tuot KOD Ga A ai E DM E P e nas ld 202 Detail ERE IB AAA m 204 Ie AGH Ey e A t atolls cou ioa a
147. ial 191 EO GE ELLE Oa Eo Tb eee nore Ee lot cat M qe 192 Input specifications sessies Cg la ar itd tdi iR lek inn 193 1005240 V AC MMO EL dissentire rone ie ed iet t rese er dt 193 2AN AC MOdel t inde Baal daa a da il e Mi a AMA a ai aa 193 O BI A kiki hele P P 194 ANDE ZO MO modo n a Ba ere Bun OO a inle izel 195 PADE Za E e K Tai 196 RE RA e e 197 OUT WES CCT O O e OE o e e Mr e a 198 Outputb POR viris NOUS Hb d a li tl K lin ula lr te bd iste vero crus tae ERU du 198 PP AE E SR sae is Rutas 198 IMG UE TAN CS TOA c e 199 Dar ob e iata tutto tu utn ii alkali Lee Do asd A eR kii 199 LA dia tano li tala acabado ME SV MN OR te erent EY atria 200 hapter 0 20 Points R5455 type Models Instruction 3o eoe ila E 201 COMMUNICATION ENE MOM ee bii ad utc el e ol ssd Adaro 202 DOC Sis EROS O a Sk o ace lela a a 204 Remote OACI A Ei 204 SAB EU COP AAA A items o o E E A n 205 MU instruction Modbus RTU Tina ster cose reet ae ea e UR aeu tut eae kl kalan lk a A dl SA 207 a Indes ty MOLI OM k ies O iel Mali Saad titel 209 SCZ Modbus Protocolar dit tava dle its 209 4KA72X023 Chapter 9 Expansion Melle sia 211 LL m c c ui LM D MI MICI MI UII UI ee eee 212 SA AAA O ni lil ailem obo lak ir e SEES 216 A ado MOGU RR A ula 220 Analog Input Mod le AA I iv c 22
148. ic Programming i95 Timing diagram for AR Sel ot Mal Level Levell otoptB B 100ms 100m 100ms The example below shows how to configure AR function Edit Contact Coil m PI vx AR DR Select Coil No Error Coil ar 008 101 0F mor Function Current value AR Level Offtset r Gair Levell 10000 lt 00001 Levels 10000 200001 MaxL 1000020000 stp O Z0000 ee 1 10000 alaka delili ALL Gain O 10 00 00000 Moi ooso0o Hop Noid gogoo 5891 01000 10000 10000 Offset 4 Sel at Contact u l o Contact M Chapter 5 Relay Ladder Logic Programming 19 AR mode2 In mode 2 four output levels can be preset and at one time only one of this 4 preset levels can be target level The current level will switch to target level at a designed rate by user There are 12 parameters for proper configuration The table below describes each configuration parameter and lists each compatible memory type for configuring AR mode2 AR current value 0 32767 Level0 0 32767 o fe Level2 0 32767 Q2 Do Level3 0 32767 o Mant evel 0767 ID sem ine 132767 o Re MESES Level selection coil Sel2 Drop ONO AR Swe AROI ARO The parameters from to can be constant or other function current value The rate designed by user MaxL Rate Ta S1 0 S2 0 target level Leve
149. icon 3rd on SG2 V3 smart and side of PMOS 3rd About to use PM05 and PMOS 3rd with SG2V2 3 see next figure SG2V2 PM05 SG2V2 SG2V3 gt PMOS 3rd 5G2V3 The optional PMOS 3rd memory cartridge 1s used to easily transfer programs from one smart relay to another The PMOS 3rd 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 below 2 Insert the PM05 3rd memory cartridge onto the connector as shown below 3 From the display keypad on the face of the SG2 smart relay select either WRITE or READ to transfer the program to PMOS 3rd or from the PMOS 3rd memory cartridge to the smart relay 4 K type and C type electrify the product the program in PMOS 3rd 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 RS485 type Model program available RS485 type Model D 2 RS485 Model type program unavailable Not RS485 type Model E 1 SG2V2 program
150. ier roi current Funcion TO1 RB 4RSC 6 jnas 101 Preset unit Mode Ji gt uen i a inlaw i o oe E rrant TO Preset unit Th TEST TO He R i234xAT L 102 Current junit sd T02 Current Gilet yi ad I 1 v 103 Preset unir Hr12J4545TB TOS Current unit TS jo Bi ERES H 101 Current Lr123458TB Pe alez a s I b b HT Add E e a t wt Wo NEN ti Language Chinese fixed Chinese edit pd Zal Input b hagra 5 4 0123456783 5 eS DEFGHITELANOPORATUVRIYZ 1 J9_ Display timer counter RTC hilklmnoprarstuvwxvz l e amp 8 ai used in program 211 Cancri uy pae Chapter 3 Program Tools Enter H01 coil Into HMI TEXT edit frame Choice the T Choice the E Choice TO1 current Choice TO1 current unit Li O 1 EI AO LL Choice T01 present unit user can modify TOI preset value when H coil enable and display on LCD Download to SG2 and 101 turn ON or press SEL if the H coils is set to mode 1 then the SG2 LCD will display the first H text as shown below Stop display Run display input xAC Press t or to choice the nearest H coil l Press SEL 1 or and OK update TOI T 1 56 00Se Y TO01 50 008ec preset value In this example 050 0 can update TOI TOL 25e TO1 05 20Sec preset value depends on HMI TEXT edit frame TESTRTOLS h TESTOS
151. il will turns OFF when the result is right or the function is disabled The example below shows how to configure MD function Edit Contact Coil lc lu MD pr select Coil No Error Coll MD o1 01 1F ln o1 Function Current value Hbsvl Vz V3 3 Nl V2 Preset 16586 noo Pre Type u EN v o m lol Error output coil MOI will turn ON when the compute result is overflow 119 Chapter 5 Relay Ladder Logic Programming PID Proportion Integral Differential The SG2 smart relay includes a total of 15 PID instructions that can be used throughout a program The PID function enables simple operations to be carried out on integers There are 9 parameters for proper configuration The table below describes each configuration parameter and lists each compatible memory type for configuring PID Symbol Description PI PID current value 32768 32767 SV Destination value 32768 32767 PV Test value 32768 32767 Ts Sampling time 1 32767 0 01s o EN A o Oo Kp Proportional gain 1 32767 E o 0 LA 0000 OMO Y a O50 T Integration time 1 32767 0 1s Tp Differential time 1 32767 0 01s Error output coil M N NOP PID code PIO1 PIOF The parameters from to can be constant or other function current value The error coil will turn ON when either Ts or Kp is 0 But it will do nothing if the output coil is NOP The outpu
152. inds of connecting of expansion modules as shown below Connecting communication modules are including MBUS DNET and PBUS ENO1 and GSM module connected with SG2 by PLOI Mainframe digital IO V1 2 V3 0 3 AAI 1 COMM 1 BUZ V3 x IO IO IO digital IO SG2 8ER A SG2 8ER D SG2 8ET D SG2 8ER 24A Digital IO version can be either 1 2 or 3 0 Mainframe digital IO V1 2 V3 0 3 240 1 4PT 1 502 V3 x 2A0 IO IO IO 4PT digital IO SG2 8ER A SG2 8ER D SG2 8ET D SG2 8ER 24A Digital IO version can be either 1 2 or 3 0 Either 2AO or APT Mainframe digital IO V3 0 3 2AO0 2 4PT 1 4AI 1 COMM 1 SG V3 X IO IO IO 2A0 2A0 4PT digital IO SG2 8ER A SG2 8ER D SG2 SET D SG2 8ER 24A V3 0 Digital IO version is V3 0 Chapter 9 Expansion Module Size Al the expansion modules size is the same as shown below Ui t nm 1i nch 25 Ann re O 05 pe l gt INPUT X1 X2 X3 X4 A Lj wa QOOOG EE L N AC 100 240V A m YN C A C 2 FRY RUN C 2 O 2 C 5 C 2 AY CO CO M N JN J 9 x N M LA SG2 8ER A Output 4 x Relay 8A 4 E UL Esso Y O Joe i Y3 Y4 Y Y Se Sl i 59 30 38 00 x a
153. ine Column i Auto Enter Function Block Edition Column i Column Appendix Keypad Programming 247 Procedure Press SEL DEL Simultaneously ESC Cancel OK Execute Insert a whole line Step Press SEL OK at the same time column Step id 12 Press SEL P 4 T at the same time l Present action area The present value will appear when SG is under RUN mode Procedure 1 Press OK Enter FUNCTION BLOCK edition Appendix Keypad Programming If you want to edit T02 Press SEL simultaneously 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 id 213 4i5 6 8 Column 7 Press SEL Line 1 7 2 begin input the target value 3 F Procedure 2 3 Column Press 1 for 3 times Press SEL and followed by TV The digital 0 is changed to 3 Procedure 2 4 Press OK Save the input data i Column Procedure 2 6 248 Step2 3B Press SEL Step 2 3C press SEL Step 2 3D Press SEL Step 2 3E Press SEL Step 2 3F Press SEL Step 2 3G Press SEL Step 2 3H Press SEL Appendix Keypad Programming As the present value of the timer counter analog input A01 A08 and analog gain value V01 V0
154. ing when stop or power down DRDO DRE3 as special registers used to set parameters the output value function is as follows Function description DRDO AQO1 output mode 0 voltage mode and reset value when stop AQO02 output mode 1 current mode and reset value when stop DRD AQ03 output mode 2 voltage mode and keep value when stop DRD3 3 current mode and keep value when stop Analog output value 0 4095 Reserved DRC9 DRCF and DRE4 DRFO as special registers used to store status the output current value function is as Refer to Chapter3 LCD Display and Keypad gt Original screen follows DRC9 Output pulse number of instruction PLSY DRCA ATO current degree Fahrenheit Used as normal registers when no ATO1 AT04 input DRCB AT02 current degree Fahrenheit Used as normal registers when no A05 A08 analog input such as don t connected with extension module DRES A01 current value 0 4095 DRE9 A02 current value 0 4095 input such as AC type DREA A03 current value 0 4095 Used as normal registers when no A03 and A04 analog input such as AC type or 12points DC type DREF A08 current value 0 4095 such as don t connected with extension module APT Used as normal registers when no A01 and A02 analog Used as normal registers when no A05 A08 analog input such as don t connected with extension module AAI
155. ion click the toolbar Comments Comments configuration dialog box appears edit and click OK notes will be displayed in the programming interface and can be moved by dragging the mouse position a Fr Erit psrs uium Y a Harim Bel c 5 ei m ms ECCEDERE el DESEN bele Bags ANAR am tart gas foe m m T EELE program contend T R mda made i rhe m r Du Timar 0 Car Walust Dus als E Pre Valani Fee Valuwsi NT M Paar e Tut prem ga soda 1i Ecunzzr PP Car Value B ad Pre Value 106 E gt leest 1122 Pr im Stop OFFLINE Nodel s562 20VT D Page I A amp Chapter 3 Program Tools Parameters List Parameters list display coils and functional blocks which used in program and explain coil functions and tags function block settings and markings and other information as shown below Select Model KeyPad Ctrl4K E Y FBD Ctrl F Parameters List Block Parameters Undo Ctrl Z Tier Redo Ctrl Y mode 5 Time Base 0 01Sec Ctrl X B or Preset Value 5 00 E ULNAS Label Copy Ctrl A Dimer Paste Ctrl V Dune c dst Delete De Counter illi Select All Ctrl g Clear Comments je gt Find HMI Text Sym b o l EM NE Parameters List Chapter 3 Program Tools m Memory Cartridge sold separately PMOS 3rd is a special kind of PMOS it can be used in all version of SG2 There is an
156. l 0 Sel S1 0 S2 1 target level Level 1 Sel2 S1 1 S2 0 target level Level 2 S1 1 S2 1 target level Level 3 MaxL is used as target level if the selected level is bigger then MaxL MaxL Ta The result of MaxL divided by Ta is the change rate from current level to target level The table below describes detail information of each parameter of AR mode2 The output coil turns ON when A is 0 The output coil can be M N or NOP The output coil is set when the wrong thing happens but it will do nothing if the output coil is NOP And the current value is no meaning at this time AR will vary from 0 to current level at a designed rate when it s enabled Then the current level will change to different level base on Sell and Sel2 When AR is disabled current outputs vary to 0 immediately For detail you can see the Timing diagram show next page Chapter 5 Relay Ladder Logic Programming Timing diagram for AR sl TL TT T3 Suede m Rate MaxL Ta Tl Level0 Ta MaxlIL T2 Levell LevelO Ta MaxL T3 Levell Level2 Ta MaxL T4 Level3 Level2 Ta MaxL The example below shows how to configure AR function Edit Contact Coil MD PI mx AR Select Coil No Error Coil AR Ol DF NOP Function Mode 2 1 21 000 0000 OO amp E Current value O 3000 0004 0 Level u w foLooo 10 32767 Leveli N lozoo0 0 327867 Levelz u
157. l time koe CT 000005 On preset Value Counter Parameter gt Part eee CL 000003 lt Off preset Value Note High speed input terminal 101 102 Interval time Q 7 Os dis olis ols lis On preset Value 5 3 5 4 3 3 4 Off preset Value 3 3 High speed input count pulse Chapter 6 FBD Block Diagram Programming Z RTC Comparator Function Block There is a maximum of 250 RTC function blocks under FBD mode can be set mode 0 4 and the function is same as Ladder mode 1 RTC Mode O Internal Coil Mode 0 RTC Internal Coil used as internal auxiliary coils No timer preset value and no parameter display FBD display Enable Input gt 101 BOO ETC 1 ON ON EN 01 OFF OFF OFF B002 R01 Q01 OFF Chapter 6 FBD Block Diagram Programming WA 2 RTC Mode 1 Daily The Daily Mode 1 allows the Bxxx Rxx coil to active based on a fixed time across a defined set of days per week The below example allows for selection of the number of days per week i e Mon Fri and the Day and Time for the B002 R01 coil to activate ON and the Day and Time for the B002 R01 coil to deactivate OFF Example 1 RTC Function Block X Function im T g gor Mode E RTC number 01 B a Every day action mode ode 1 RIC 01 E ia Week On Off MO y gt FR E bun Current Value 09 38 Preset value gt Hour Minute gt On 17 o Off Symbol cene FBD di
158. ll 21 Ins talline tlie SoftWare otto E a come BAT Ma Duma SN EROR QUAE ma iade Pa Ra S DHL MEE 21 COME time e SOLEO HO ico elm a toda iile l emil ak oae doi anemi ei ee il 21 BU CUE CC ON oou o Sette E ie ai LE Leni E d op tto Ue Lon ttt ikel d cess nee De 21 adder Lose Procramimuns LE Byte so unos HEP alla a Glam Mu MERI dE 22 Menus Icons andstatus roads 23 PEO OF QO eo cic e ICM I C ICM MG E 24 Simulation LOGS A ERR ERR ERR ERR EROR 25 EstablishCommuticaO oboe dendi abore iege dhcp ill 25 Writing Prostamito Sumattreldy salam dial Rae UDIN RE PA ERE NURSE REEF HU EDA pie yle 26 online Wonton me Edition diosa Eis ne ai 27 IN a haa la E O 28 HNE A A AO 29 Prosram Documentation pec ov ni bue tenet aud ebd bee re ii base yi i yes lele 33 O oso oit a ei a al uito Dr e uud o m ost a b a a Dar n 35 Data Resister EL e e cs 36 MAA c 38 EBD Prosrammine Enviromnett ii 39 Memi Icons and Status Batma isis id etas be dee lia 39 A DR e eT edis RNA MD 40 SERRE A a a e a Gen a d mE IBN mI Im al ali 4 Online Monto rad FI DP ciao 4 Sabor and ace THES ee rS S BN RM eM MD Rd E MU MD MM RN 42 MemoryCartridge soldseparately eee 44 4KA72X023 LCD Display and Key pelerin PG 45 KC Oe ui tecum ux DI n cU LM E LE pa D EE M are 45 ODT MR AV Sere e Tian
159. lue show as below CH4 E y or y 32 zc DRD5 2047 conversion AQ02 500 display 20 00mA Current mode keep value when stop Chapter 9 Expansion Module 225 When output value type of AQ is set to constant AQ output value changed by DR value AQx DRx 4 095 When output value type of AQ is set to other parameters variables DR value changed by AQ output value DRx AQx 4 095 More information about AQ correspondence with the DR to see Chapter4 Relay Ladder Logic Programming AQ Analog output Wiring Voltage output VN OVO WP 1 WP ES DC 24V AN NA nal voltage output equipment shielded Twisted pair rc POWER SUPPLY Current output LA 90000 24 cid A NS YT we wei A WS C1 V1 1 C2 current output External equipment shielded Twisted pair oc POWER SUPPLY Chapter 9 Expansion Module 224 Communication Module MBUS Module Summarize MBUS module makes SG2 which doesn t have communication ability to communicate with other controller as master slave mode MBUS works as RTU slave node responses RTU master node s request but it can t communicate initiatively MBUS makes the scan period of SG2 become longer it is different from difference communication order Normally the extend time is less than 20ms but it will be 100ms if the order is to rework the preset value of function MBUS
160. ly integral control can delay the react of the system and shrink control loop variation EV and time automatically adjust variable API PY EV t t Integral controller characteristic reduce variation delay reaction time Differential controller System react is depends by PV value then convert to variable API and control the output result API will change depend on the value of PV Process time is reduced via differential controller Differential control characteristic reduce vibration increase stability accelerate process time The features of PID control fast stable and accurate Description of Kp T Tp as show next page Chapter 5 Relay Ladder Logic Programming W The PID function control variable Kp Ti and Td Increase Kp value to has a fast response time and reduce deviation quickly and the large Kp value will eventually affect the stability of the system or even unstable Once the variation is occurred and integral loop start to process a small Ti setting value has a greater integral result and vice versa Differential control has a fast react feature greater differential time Td setting is able to increase the system response and minimal the variation but the large differential time settings will un stabilize the system easily Although the large Td setting value could reduce response time user should setting differential time Td value properly to prevent a system become a ultra sensitive controller Illustrate diagr
161. m from PM05 SET System setting RTC SET RTC setting ANALOG SET ANALOG SET ANALOG SET PASSWORD PASSWORD PASSWORD LANGUAGE LANGUAGE INITIAL INITIAL Analog setting Password setting LANGUAGE INITIAL Select the language initially set Edit method 2 The Main Menu as SG2 under RUN Mode LADDER gt FBD LADDER FUN BLOCK PARAMETER FUN BLOCK PARAMETER STOP STOP DATA REGISTER a STOP DATA REGISTER DATA REGISTER WRITE WRITE RTC SET RTC SET PASSWORD WRITE gt PASSWORD gt LANGUAGE RTC SET WRITE PASSWORD RIC SEI LANGUAGE PASSWORD LANGUAGE Press the Button 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 1t to FLASH Chapter 3 Program Tools Main Menu LADDER Press the Button Button Description SEL 1 Ixx gt ixx gt gt space gt Ixx only for digital and character position of 1 3 5 column 2 Oxx gt space gt Qxx only for digital and character position of 8 column 3 7 gt Space T all available but the 2 4 6 column of the first line L SEL LleXxXxezZeRQeYeMeNe eDeTecCe RG I the cursor located at 1 3 5 then T J column 2 0QoYoM eoN oToCoR lt oGoHs oLoeoPo5SeAS o MD o Pl MX o AR 2 DR gt MU SQ When the cursor located at 8 column 3J SASvVoP lt so When the
162. ming 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 Timer current value will be kept when Timer is disabled In the example below the Timer will stop timing when it reaches its preset value of 5 seconds Timer status bit TO1 will be ON when the current value is 5 The timer reset input is input 101 The timer current value will reset to 0 and Timer status bit TO1 will turn off when 101 is ON Edit Contact Coil lc Output Type el 01 1E mt I loz ss Function Hode 2 0 6 7 P On delay timer mode 2 Enalde 3 l A ja l n Reset Ea LET Fe hiipui l Time Base 15EC Current Value SEC Preset Velua 0005 SEC Preset Types li nd Direccion Ser Reset Input Contact Contact 1 for enable reset relay a Nc P enable reset relay present value 0 mi present value timing enable relay mm Tuc P time up Gr 11 417 ON OFF output ee ILF 3 OFF ON OFF enable reset relay t Timer preset value TOE and TOF keep their current value after a loss of power to the smart relay if M Keep is active but the others reset to 0 Chapter 5 Relay Ladder Logic Programming 74 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 ti
163. ming 64 Chapter 5 Relay Ladder Logic Programming Common Memory TI Pesada 65 Specialy Memory TYPES a A lama ia ma ila imkan leri 68 Bible DUE sn ap eta e ap eer Me e ap Me Map Seer Ma ap MM e ee 69 AnaloP memory Ly DG duisi me Mail ieee Nie eae Nei e 70 a A O A 71 Counter ASEOS AAA AA AAA A A Lue Dutton 79 Real Time Clock REG THStUC OMS daa 89 Comparator SE LOS tisdale i 97 HMI DIS pla OS SE c m 99 PWM Output Instruction DC TransistorOutputModelsOnly 102 IO Link Remote I O Instruction 5G2 20Vxxxmodelonly W W W W W 105 MU Modbus 5422043 dd den 108 SHIFT Ge o A A A A A at 115 A PORRO PORCH 116 AS CAUSA A osea Ud INE 118 MDO MUEDI mq 119 PHD Proportion Inte oral Differential d aie dd lm eR Bal a AR ae 120 WES CMU DIGX Cf ios nin ass ess esi ELLE se se eee 123 AR Ana lot te UD sonitu ideal eI ILI ELI ILLI ILLI LIII IM 124 IB Data it 128 Chapter 5 Relay Ladder Logic Programming Common Memory Types General RESET PULSE N O N C Number mpe ou M ES Symbol N O N C Input 12 I01 I0C 101 10C contact Keypad input Output coil coil cp 8 Q01 Q08 q01 q08 A ENS relay Auxili uxillary 63 NO1 N3F n01 n3F relay Be poe rrr Timer Y a T Inputs I memory Type The SG2 digital input points are designated I memory types The number of digital I input
164. ming when the current time is equal to the preset value Additionally the Timer current value will reset to zero when Timer is disabled In the example below the timer reset input 1s Input 101 Timer status bit TOl 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 TO1 will turn OFF when the current time value reaches its preset value of 10 seconds Edit Contact Co1 Timer Output Type t for 01 15 ae E a Function Hode s ow 0 6 i T P Off delay timer mode 1 Enable J ay Opel nb 3 Time Base szc Current Valua Preset Valus 0010 SEC preset Type Direction Set Reset Input Contact E y Contact 1 enable reset relay pla C4 4 enable reset relay present value 0 Timer start operating present value 0 Timing enable relay OFF ON OFF Ting w 9 np Eo Oen oce output terminal C3 enable reset relay OFF t preset value Timing enable relay OFF ON OFF ON ON OFF E OFF eb ee Timing TOR ATIF output terminal a to r C3 enable reset relay OFF ON OFF t preset value TOE and TOF keep their current value after a loss of power to the smart relay if M Keep is active but the others reset to 0 Chapter 5 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
165. mn and Line 2 244 Appendix Keypad Programming Cae 1415 16178 Column move the cursor to column 2 Note never press SEL before hand Procedure 13 A de i415 161718 Column Press SEL Liellq 0 47M01 I103 Q0 1 2 un A vertical line emerges 3 Procedure 14 i 1213 415 161718 Column Press OK Linellg 04 T M0 1 103 0QO0 I 2 L Move the cursor to character in 3 pen 3 4 Repeat the step 1 7 and key in rO 3 at Line 2 and column 3 6 Procedure 15 d WES Press OK in column 5 Linellg 0 47M 0 1 2 tr 0 3 move the cursor to the character in 3 Column 4 Procedure 16 Press SEL When the cursor located in digital or character press SEL Q01 will A Press Tt for 5 times Press SEL Py The character Q the cursor locating will change to C Procedure 18 gt 6 gt Press 2 times 245 246 Appendix Keypad Programming Procedure 19 i Press tT for 6 times The digital 1 the cursor locating will change to 7 Procedure 20 Press OK Auto shift to FUNCTION BLOCK and the counter input parameter Procedure 21 Press ESC back to LADDER edition screen Delete the Program Element Procedure Press DEL to delete the element C07 the cursor The Line 4 displays where the cursor locating and operation state of SG2 Delete the whole L
166. n Module System Set menu selection from the SG2 Client software They also can be set through keypad like adjacent picture The two bits of keypad how to decide the communication format and baud rate like describing below Module System Set Data Meaning net ID Current ID l Master New ID 00 99 1 Slave 0 8 N2 Data 8bit No Parity 2 Stop bit 8 E 1 Data 8bit Even Parity 1 Stop bit High bit 8 O l Data 8bit Odd Parity 1 Stop bit EINEN 8 N 1 Data 8bit No Parity 1 Stop bit ID Tun n H 0 4800bps Back Light 9600bps 1 0 Alarm rz Set Low bit 19200bps J 3 DR Format Set 3 38400bps 3 Unsigned 57600bps Bena pees 58400 Signed 115200bps TE Cancel IO Link 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 The Master smart relay s ID must be 00 and Slave nodes ID should start with 01 and be continuous If nodes ID isn t continuous the Master won t communication with those nodes which are behind the first broken For example the nodes ID is 01 02 04 and 05 The Master thinks there are only two Slave nodes whose ID is 01 and 02 and communication with them max points lO send per stations Max 7 8 756 points I O received per station ID must set to be 0 1 2 max to 7 Remote l O disa
167. n DRD4A AQ output 07 32 V Voltage modelli lla gt A NS 0 o fos Capacity Ed Preset Current mode reset value when lue when stop Current mod ao DRD7 AQ pp wv 0 00 mA DE Mode Register Output Value Register AQ output value DRDO 0 Channell AQ output mode 1 voltage mode Channel2 and reset value when stop DRD1 1 AQ output mode 2 Current mode and reset value when stop DRD2 2 AQ output mode 3 voltage mode Channel3 Channel4 and keep value when stop DRD3 3 AQ output mode 4 Current mode and keep value when stop AQ01 732 DRD4 4 095 AQ output 7 32V DRD4 3000 DRD5 A01 4 095 Current mode 0 2047 AQ02 A01 Current mode 0 500 DRD6 V01 4 095 Voltage mode 0 4095 AQ03 V01 Voltage mode 0 1000 AQ04 500 DRD7 4 095 AQ output 20 00mA DRD7 2047 When output value type of AQ is set to constant AQ output value changed by DR value AQx DRx 4 095 When output value type of AQ is set to other parameters variables DR value changed by AQ output value DRx AQx 4 095 Chapter 3 Program Tools Data Register Set The content of Data Register is either unsigned or signed it can be set as shown below Selecting Unsigned the range of DR 1s 0 65535 and selecting Signed the range of DR 1s 32768 32767 File Edit MBA View Help n AEREO Rb s Os simulator Coil Cont Simulator Control Abal E roa Hodule System
168. n I O Points V Yes x No in stop run switching Counter Present Value Keeping V Yes x No Enable or disable keypad input Z01 Z04 V enable x disable Setting the form and baud rate of RS 485 RS485 SET 03 Setting the Data Register type DATA REG U U 16bit unsiged S 16bit sign M KEEP function is available for keeping M status and current value of TOE TOF when power is re supplied after loss Now Press Begin to di SEL then lt gt Move the cursor for ID SET item and RS485 SET item SEL then TV 1 ID SET 00 99 I O NUMBER 0 3 2 REMOTE I O NSEMS amp SSN 3 BACK LIGHT C KEEP Z SET xev 4 M KEEP I O ALARM Ve gt x 5 RS485 SET 0 3 0 5 6 DATA REG USS Confirm the Edition Data 1 Cancel the setting when pressed SEL 2 Back to Main Menu save edit data When IO LINK 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 X01 X0C I01 10C vov Q01 00 The high bit of RS485 SET detects the form of RS 485 and the low bit detects the baud rate of RS 485 More detailed to see chapter 8 20 Points RS485 type Models Instruction 5 RTC SET Year month day Now Press TY Chapter 3 Program Tools Enter RTC setting or Daylight saving setting Begin to input
169. n MaxL Selection stop coil The St s state becomes from 0 to 1 will startup the current level decrease to start stop level StSp excursion B and then keep this level for 100ms Then AR current level is set to B which will make AR current value equals 0 The output coil turns ON when Proportion A is 0 Timing diagram for AR Sel DE ot Maxl Level Levell otoptB B Example FBD display Enable Input Select level input Sel Stop input St Parameter Parameter display AR current value Preset levell Preset level2 LY lv Max level Ma 01 Cur Value n Level1 5000 Levelz B nn MaxL 10000 dtdp 500 Hate 10 Gain 1 00 OFFset 20 I dT NO54 NK y Chapter 6 FBD Block Diagram Programming AR Function Block x Function AR number Current Value Preset Levell Preset Level2 Preset MaxL Preset StSp Preset Rate Preset Gain Preset Of set Ss 16005 FL N06 A Fart AR Mos J Parameter display 1 Parameter display 2 00528 AROL 00500 ARO Start Stop level OS000 Q0 10000 00010 Stepping rate 01 00 Proportion value 00020 Excursion value Display AR current value when running mode Press SEL lt gt button can convert between displayl and display2 Chapter 6 FBD Block Diagram Programming _ f 2 AR mode2 Function description AR current value 0 32767 AR will var
170. nable Input 00039 run mode DRO1 000359 lt Preset value DRO1 B003 stop mode Parameter Chapter 6 FBD Block Diagram Programming EJI MU Modbus function block There is a maximum of 250 MU Modbus function blocks under FBD mode can be set mode 1 5 and the function is same as Ladder mode Remote IO and IO Link are precedence than MU MU is executed when the system setting is N No Remote IO and ID isn t 0 Function mode corresponding communication function code Communication function code 03 read registers 06 write single register 01 read coils 05 write single coil The max data length for Mode 1 and 3 is 25words The max data length for Mode 4 is 400bits 10 write multiple registers The coil used in MU function M3D Received M3D is set to ON after received then check up for error Transferring data to target address if there is no error M3F Time out flag M3F is set to 1 when the time from after sending to start receiving is longer than setting and M3D also be set to 1 M3F is automatically reset if M3D reset The time out time is depending communication baud rate as shown in the table below Baud rate bp 4800 96000 192000 38400 More information about communication to see Chapter 8 20 Points RS485 type Models Instruction Chapter 6 FBD Block Diagram Programming ky MU model Read Registers Setting communication address is constant 101 B n1i
171. ndix A Keypad programming in Ladder mode Operation Sample Procedure 1 Press OK Enter LADDER Edition ress SEL When cursor located at character or digital press the button to show I01 Procedure 3 213 4415 161718 Column Press 1 3 times Line T e 0 1 d i Press T V and the digital cursor 4 located will change from I to G Procedure 4 d 1213 i415 161718 Column Press SEL Line g 0 1 2 start end modifying parameter 3 d i213 14 161718 Line 1 q 0 1 2 3 the cursor located in digital Procedure 6 i Press T for 3 times Linel q O 4 2 Press Py 3 the digital the cursor located will 4 change from 1 to 4 243 Appendix Keypad Programming Press SEU e gt to move the cursor to the position Required revision Procedure 7 oo 7 213 1415 161718 Column Press OK Lime l q 0 4 2 Move the cursor to character in 3 column 3 4 bula des OR e Naz move the cursor to the link location in column 2 Repeat the step1 7 and input M01 103 Instruction to column 3 5 Procedure 8 14 5 61718 Column Press OK in Column 5 move the cursor to the character in Column Press SEL when the cursor located at character and digital press SEL to show Procedure 10 Press OK Save the input program data the position of the cursor will not move Move the cursor to colu
172. nfigured as counting up else it is preset value Chapter 6 FBD Block Diagram Programming IE 3 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 but it won t count when the current value equals 0 if it s configured as down Counter Additionally the current count value is non retentive and will reset to init value on a powering up to the smart relay or switching between RUN and STOP Counter Function Block bd r Function Mode PE counter number 01 Counter with overtaking and without power down retain current value Current Value F Preset Value 000020 Fixed Time Sec mode Counter 01 Cur Value Lower Pre Value 20 Upper Symbol FBD display Parameter display Counting Input gt z ir 4B001 B001 Up Down Counting gt Noi4 TL dC lt Current value Reset gt X014 02 C 000020 Preset value gt Part gt J Counting Parameter Note The means the current value appeared will be greater than present value Mode 2 e i iia Ana a o X X al a a urbs ed Ke i Ur Kiri en ps Gn ni Deck picco e 1 hw a GEN foal EN Current value 9 191191 201201 211211 201201 19119 181 181 01 01191191201 0 120 Input count pulse Under this mode Counter will continue c
173. ng and installation instructions 100 240V T 50 60Hz N Chapter 1 Getting Started Connect Programming Cable Remove 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 RS232 serial port on the computer Establish Communication a Open the SG2 Client software and select New LAD as shown below left b Select Operation Link Com Port as shown below right LAD Version File Edit Operation View Help Monitor Simulator Simulator Control Run br a Stop By oe a el Power Pause Ctrl U Quit CtrlHg 28 562 Client Read Write Lompare RIC Set Analog bet Password Language Module System Set Link Com Port Chapter 1 Getting Started 6 c Select the correct Com Port number where the programming cable is connected to the computer then press the link button Link Com Port COM 4 PORT i Single c Search ID Jo EE E malik d The SG2 Client will then begin to detect the connected smart relay to complete its connection Write simple program a 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 MOI and press the OK but
174. nication equipment DNET is together with SG2 as one slave equipment in DeviceNet network DNET Cell Configuration m DNET function description Support predefine master slave connection Support predefine explicit message connection Support predefine poll IO message connection Support explicit and IO message fragment Support duplicate MAC Id check UCMM incapable device No bit strobe IO message No change of state and cycle IO message No device communication faulted message No device heartbeat message No device shutdown message 24V DC power supply port Network state LED light NS Mode state LED light MS 5 pin DeviceNet port L Button Linker Port connection with SG2 SW1 8 bit switch set network s ID and baud rate SW2 2 bit switch network terminal resistance selection Flexed installation feet Chapter 9 Expansion Module 228 Connect with electrical source Input 24VDC DG 24V PP ON o M 1A quick blowing fuse circuit breaker or circuit protector Surge absorber Connect with DeviceNet network Using 5 pin network tie in connected DNET to DeviceNet bus Please use network tie in and cable ordained by ODVA The style of cable decides the maximal length of cable and baud rate of communication at more degree O 1 La NE 1 GND black O LS CAN L 2 CANL blue O 3 4 Shield 3 Shield no color 0
175. nput coils Z01 Z04 T Z01 Z02 Z03 Z04 Original Screen LCD displays 4 line state Original screen as power on Chapter 3 Program Tools Input state B oN a Keypad input 201 Z04 state OFF 4 Z enable X Z disable B 7 enable and ON Z enable and OFF Output state CL N23456789AB gt K F ON 1234 do 2345678 gt Ren EMV EE RTC week hour minute Mode display RUN mode STOP mode Press the button Enter Main Menu screen Under LADDER Mode DRDS current value 0 display the state of relays I Z Q gt X Y SEL IOMSNSTSCSERSGSASAT e AQ Original Screen Under FBD Mode DRDS current value 0 display the state of relays I Z Q gt X Y S M N e A AT AQ e Original Screen SEL lt When display AO5 A08 value change voltage or current mode Or lt gt When display ATO1 AT04 value change Celsius display or Fahrenheit display SEL H Function will be displayed whose mode is 1 as the button is pressed SEL OK Enter RTC setting screen Expansion display State Expansion Input state E ON O OFF Expansion Output state M ON O OFF Expansion module state B Linked s Not Linked O Not Set Expansion module setting refer to Main Menu SET Chapter 3 Program Tools Other Display State Coils M N TU CU R G status T C R G display only Ladder mode Coils M2x 3x
176. o o feierte o Red on Dup MAC ID check error Replace node address and pe Communication error and restart power up again More information about protocol and EDS file to see R06 SG2 DNET D01 X30 SG2 DNet user manual R09 SG2 DNET C02X30 04D2000C00020300 eds Chapter 9 Expansion Module 230 PBUS Module Summarize PBUS makes SG2 which can t work in ProfiBus DP network to work in ProfiBus DP network At ProfiBus DP side PBUS mode is a gateway a slave node in network At PLC side PBUS communicate with SG2 through SG2 COMM Port it is point to point communication equipment PBUS is together with SG2 as one slave equipment in ProfiBus DP network PBUS Cell Configuration 2 bit switch terminal resistance selection 24V DC power supply port Power indicate light BUS indicate light Port connection with SG2 8 bit switch slave node ID set E VE a Ed EG AO 9 hole PROFIBUS DP socket Chapter 9 Expansion Module Connect with electrical source Input 24VDC 1A quick blowing fuse circuit breaker or circuit protector Surge absorber Connection with Profibus Net Using 9 hole pin to connect with PROFIBUS DP bus please use the regulated pin and cable Ports assign rene o o Go eme 70 0 RP Le Sendfreceive data positive _ Ho qmmwd 5 bonom baono 6 vrer sv DC supply bus expansion A E S RXDTXD N A Line Sendre
177. ocedures 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 E CO 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 4 F 131 F 20 C 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 Disclaim of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described Since variance cannot be precluded entirely we cannot guarantee full consistency However the information in this public
178. on W09 WI0 WII WI2 W13 WI4 WI5 Wl6 Corresponding receiving 4 A 4 4 4 4 4 A Or sending terminal 103 104 105 106 107 0 0 0 Example 2 IO Link Mode 2 Set 2 5 set as start from M03 set as from W17 when enabling the IO Link the state ON OFF of M03 M07 is controlled by the state of memory list position W17 W21 106 Chapter 5 Relay Ladder Logic Programming H 1 5 2 MO34MOT W17 W21 Memory List Position W17 W18 W19 W20 W21 Corresponding receiving v Y Y Y Y Or sending terminal M03 M04 MOS M06 M07 Remote I O Up to 2 additional SG2 units can be configured as Remote I O nodes and linked to one master smart relay ID SET REMOTE 1 0 BACELIGHT M KEEP Mf Set to slaver Set to master ID SET SGZeUVED ID SET REMOTE 1 0 Remote I O disable REMOTE 1 0 BACKLIGHT M KEEP BACKLIGHT M KEEP 362 20WT D Set to master Set to slave User propc valid User program not valid X slave input Y slave output Input X coil of master Output Y coil of master Don t use expansion DI DO modules when remote I O function is enabled 107 Chapter 5 Relay Ladder Logic Programming E MU Modbus SG2 20Vxxx model only MU function carries out Modbus RTU master communication at RS485 port There are 15 MU functions MU01 MUOF Remote IO and IO Link are precedence than MU MU is executed when the system setting is N No Remote IO and ID isn t 0 MU comes into possession of communi
179. onfiguration parameter and lists each compatible memory type for configuring SHIFT Symbol a Preset number of output pulse 1 8 mE SHIFT input coil 101 g1F SHIFT output coils Q Y M N EN SHIFT code S01 In the example below 5 101 003 007 Edit Contact Coil PI ux lag R Select Coil Ho 5 Ol Function Pulse Coil m lor Select 1 8 E Start Coil o o3 Q07 Q03 is ON and from Q04 TO 007 are OFF when ENABLE is active 004 turns ON when I01 s rising edge coming on and others points turn OFF The next coil turns ON at each rising edge of SHIFT input and others turn OFF Chapter 5 Relay Ladder Logic Programming MG AQ Analog Output AQ instructions need to use with extension analog out module 2AO The default output of AQ is 0 10V voltage the 12bits data is 0 4095 and the corresponding value of AQ is 0 1000 It also can be set as 0 20mA current output the 12bits data is 0 2047 and the corresponding value of AQ is 0 500 The 12bits data saved in DRD4 DRD4 The output mode of AQ is set by the current value of DRDO DRD3 Taipei Mode register 3 Current mode and keep value when stop It will be thought as 0 if the value of DR isn t in the range of 0 3 That means the output mode of AQ is mode 1 AQ display AQ displays the preset value under STOP mode and displays the current value under RUN mode Analog Ouput Set X Mode Preset
180. onfigured as down Counter Additionally the current count value is retentive when the smart switches between RUN and STOP if C Keep is active In the example below the counter will continue counting after its preset value of 20 Counter status bit CO1 will be ON when the current value isn t less than 20 Edit Contact Coil n E T Counter C o1 01 1F Function Mode m 1 8 Counter with overtaking and with power down retain current value Pre sabe ces TAGE CERES G RL 4 MOIJ OOOO0O00 Current Value a 000020 Preset Value 000020 Preset Type N Direction Set Reset Input Contact n l Contact 1 loz This mode is similar to mode 2 but The current counter value will be kept on a loss of power when the smart status is RUN The current counter value will be kept when the smart switches between RUN and STOP if C keep is active Chapter 5 Relay Ladder Logic Programming 84 Counter Mode 5 Continuous Count Up Down Count Non Retentive Mode 5 Counter s operation is similar to Mode 2 except its current count value is continuous and non retentive The status bit is fixed to the non zero preset value regardless of the state of the direction bit Its status bit will be ON when the counter current value isn t less than its preset value and will be OFF when the current value 1s less than its preset value The Mode 5 Counter will count up to a fixed preset value and continue counting af
181. ort Mode state LED light MS Network state LED light NS Button SIM card port 9 hole socket PLO1 connect with SG2 Antenna SMA port ci a ES qub 0O AO Sucked type antenna SMA port Chapter 9 Expansion Module 240 Connect with electrical source Input 24VDC T Z Z Weed Sept Seno 1A quick blowing fuse circuit breaker or circuit protector Surge absorber Insert SIM card Step 1 uncover the tag paper Step 2 insert SIM card as the picture above show Step 3 recover the tag paper Warning Before inserting and removing SIM card must cut off the power of GSM module Installation of antenna Sucked type antenna can attracts to any metal form Connect to SG2 with the PLOI cable L N It 12 I3 M I5 16 DC 24V ANT OG OOOODOO AC 100 240V INPUT 6 X AC in ES Be p UA A PW
182. ounting after reaching preset value if it s configured as counter up But it stops counting when its current value is 0 if it s configured as counter down The counter current value will be init value when the smart s status switches between RUN and STOP or the smart is power up If the counter configured as counting up the init value 1s 0 else it 1s preset value Chapter 6 FBD Block Diagram Programming By 4 Counter Mode 3 Fixed Count Retentive Mode 3 Counter operation is similar to Mode 1 except its current count value is retenttve when Counter powers down So the current value won t be init value when Counter powers up but be the value when it powering down Mode 3 Counter will count up to a fixed preset value and stop counting at that value or stop counting when its current value is O if it s configured as down counter FBD display Parameter display Counting Input E Z lT 18001 BOC Up Down Counting gt NO14 DODODO Current value Reset gt X014 Koz C 000020 lt Preset value Fart ppd Counting Parameter Y Note The PD means the current value will be retain until the power recover This mode is similar to mode 1 but First 31 Counter functions CO1 C1F can keep their current value after a loss of power to the smart relay The current counter value will keep when the smart switches between RUN and STOP if C keep is active 5 Counter Mode 4 Continuous Count Retentiv
183. p FBD Environmental E Maximum Humidity 90 Relative non condensing MSS Vibrat 0 075mm amplitude 1 0g acceleration a according to IEC60068 2 6 Main machine peak value 15g 11ms according to IEC60068 2 27 Maximum Noise 0 15 80MHz 10V m s 80 1000MHz 10V m Enclosure Type IP20 installation Maximum Concussion Direct Mounting or DIN rail 35mm Mounting According to chapter 2 Installing c 2x90x59 6 mm WxLxH Din rail 72x126x59 6 mm WxLxH Direct Chapter 7 Hardware Specification 189 Product Specifications un e Power MODE ca pee CON oe expansion od point point input s ere ad 240V ca 12V xpansion models IOHR A relay 12HR D relay mal ol leli tele o 1 gt OEM Blind An No Keypad No Disp ay 10 Gan to eta eis 2 e e e D e 8 Hms 2 Jel e lolol im tes mw fol e fel DER 24A relay OEM Baseboard eS No Keypad E eem No Expansion era o 6 4 rey e T TT DOcRD Je 8 4 rely 2 e lol PCD Je 8 4 transistor 2 ol Oj Re 0 8 4 relay 2 e 09 Expansion models A A A ES IC O Lew ie O C o relay mo To A suse a e e 9 9 8 20HR 12D 0 0 18 ey 4 o o e e 20HR 24A 2 8 rely jojo o j DEM Bln Mods Ne Keypad No Display pp OEM Blind Models No Keypad No Display cw jo E alet jejej OTD Je 8
184. parameters SEL e 3 SEL then N SEL then SEL 1 year 00 99 month 01 12 day 01 31 2 hour 00 23 minute 00 59 Daylight saving setting NO EUROPE USA OTHER NO save the Input Data According to set the date automatically calculate weeks RTC precision 25 C 3s day 20 C 50 C RTC Daylight saving setting There are 2 fixed Daylight saving options EUROPE and USA 1 editable Daylight saving option in SG2 Daylight saving options can be set through the two methods as shown below 1 PC Client File Edit E Coil Lont symbol T Edit rule M Used 12345 ik al 0159435 lid 12345 rlata i235 Operation simulator simulator Control Eun w Stop duit RIC Set Analog Set Language Module System Set Link Com Fort 142345 ee Month range 1 12 D Week range 0 5 means the 0 to 5th Sunday of the setting month and 0 said the last Sunday of the setting month View Help Ctrltk CtrltT Ctrlt ia 2308 E RIC Set Time Set Week Hour Minute Year Month Day Daylight saving Mode N SL e E H Hour range 1 22 summer hour and winter hour are the same 54 Chapter 3 Program Tools 2 Keypad RTC SET Vx x SUM WIN SET 2009 05 07 Press SEL twice EUROPE Press amh Thur 11 16 None ROD m SUM M 02 D 00 WIN
185. parity Note2 When you click the Update Settings button to save your settings the status online will turn to status busy Waiting for about 5 Sec the status busy will turn to status online After this you are configuring successful n P eri LIS LE P Pe RJ lila Mi ie m m a ih US me di m bk Dem i IRURE line Mrd Ha l mem lea I al LJ i 53 T A m om prj A I Rang Ton Fa a D des i Baud Ente zd E MER ES Data Dita J ka Flas Canteal Wand J i er Parity Hara v LLL Click Ports o Er E UDF Pet agrem Beds M MM a Datagrmm Bade Folie je A nn e i Whether sr ml 206 AE t4tworh hecoplFaisira Commer tien aT EN ATE ad for Lar d Me ao Sie Fu chm a unral 4 Chapter 9 Expansion Module 237 7 Click Start in the Windows Taskbar Programs Lantronix Redirector Configuration Click Com Setup button A Port Setup dialog box displays Click all the logical ports to which the PC will be redirected EE ao Lamir emin Eedirecetior Conlara don f al xi Pr r nl Advanced Bebes ETENIM gt Come re r Hw mil Com Setup Hove Dean Comes Dk ien Mode F Com coxa Click Com Setup T Canis Comar M gt ras Conc O Bee ue sw _ 0 F C0 T Comi x 8 Clik Add IP button IP Service Set EE x x Host 10 128 19 119 TCPFort Cancel Enter the hardware address Host fi 0 128 195 119 TCPPort fi 0001
186. pe All the data stored in SG2 inner system are integer Even through some parameter likes A01 9 99V display in LED in fact 9 99 stored in SG2 inner system is 999 Only in display stage the decimal point of 9 99 added according to its physical significance When analog variable and other function block current value passed to other function block or analog output as preset value essentially just integers passed When need to display those passed integer preset value in LED decimal point will be added according to physical significance Examplel AOS current value passing to other function block as preset value When A05 2 34V AOS s inner value 234 is passed to other function block as preset value Passing to AQOI automatically as 2 34V Passing to B001 G01 automatically as 2 34V Passing to BOO2 TOI time base is 0 01s automatically as 2 34s Passing to BOO3 TO2 time base is 0 1s automatically as 23 4s Passing to BOOA TO3 time base is s automatically as 234s Passing to B005 CO01 automatically as 234 Ai05 i im B001 mode 1 Analog 01 Cur Valuel Ret Value mode 1 Timer l Boos Cur Valuel i Pre Valuel mode 1 Timer z Cur Valuel 0 0 BOOS mode 1 Counter l Cur Value Pre Chapter 4 Parameter passing Example2 MDO current value passing to other function block as preset value When B006 MD01 2430 MDOI s inner value 430 is passed to othe
187. picture shown below and click OK I 0 Display Set E Display LCD I O Set Iw Y OL X0C 01 00 M1 M01 M1F Me M20 M3F i NLINOL NLF N2 M20 N3F W TiT l TlF Iw CICOL CIF RIRO l RIF IW G G l GLlF I 411401 404 AS ADS A08 AT ATUL ATU AQ AQUI AQD4 3 Down load the program This time I O interface M20 M3F N20 N3F ROI RIF A05 A08 ATO1 AT04 AQ01 AQ04 are hide SEL T 4 Under LADDER Mode DRD8 current value 1750 display the state of relays I Z Q lt XIYSMISN20TSOCSGSAl lt Original Screen I O interface can be hide in the same way in FBD Chapter 3 Program Tools 49 LCD Display Main Menu 1 The Main Menu as SG2 under STOP Mode Into ladder main function to press ESC after power on when the user program is ladder type or empty program Into FBD main function to press ESC after power on when the user program is FBD type or empty program LADDER Ladder edit FUN BLOCK Ladder function block timer counter RTC edit LADDER FED FUN BLOCK PARAMETER PARAMETER RUN RUN DATA REGISTER PARAMETER FBD block or LADDER function DATA REGISTER CLEAR PROG mun il CLEAR PROG WRITE RUN RUN or STOP WRITE READ DATA REGISTER DR display READ 2581 CLEAR PROG SET RIC SET WRITE RTC SET ANALOG SET READ ANALOG SET PASSWORD PASSWORD gt LANGUAGE Clear the user program and the password Save user program to PMOS 3rd Read user Progra
188. play Not displayed Hi NI NOI NIE kiz Display 1 Not displayed 5 N NON3F JBit ODisplay l Notdisplayed 6 JT TOI TIF Bit 0Display l Notdisplayed Z e lt lt i eye Not displayed 7 R ROISRIF Bit8 0 0 Display Not displayed 9 6 olr BiS ODisply INordiglyed A05 A08 Bit11 0 0 Display Not displayed AT01 AT04 Bit12 0 Display 1 Not displayed AQ01 AQ04 B1t13 0 Display 1 Not displayed Chapter 3 Program Tools 48 e g In order to hidden some I O interfaces You can setting DRDS current value through running a Ladder FBD program you also can setting it by PC LINK as shown below 1 Open Edit gt I O Display Set H LAD Yersion 3 25 100920 Operation View Help Select Model Ti E Keypad CapacityilaDO free spi Ladder I 0 Display Set E Display LCD 1s0 Set X YiXOl XOC YOl YOC M1 M01 M1F1 MZ ME20 M3F1 NMliM l MlFi MziMZ N3F HMI Text T TUl TlF symbol C EDL CLF lata Register Set RiRO1L R1F Analog Ouput Set GiGO1 G1F TO Display Set A1 A01 404 A5 A05 A08 AT ATO1 ATO4 123456789ABCDEF A0 A001 4004 Find Replace 1z3456 7898ABCDEF aul 123456 7029214BCDEF Bi 123456 750214BCDEF Bi lt gt JH AE AF HBO bro abro aH EMO HA H bro 4F iO 5353 none gen Ver x Xx Status Stop OFFLIHE Model Si52 10HE 4A 2 Setting I O Display Set as the
189. pter 9 Expansion Module 218 Wiring 1 24V DC power input SG2 SER D SET D 2 24V 100 240V AC power input nv Le 100 240V FG 50 60Hz N 2 bil SG2 SER A SER 24A 3 Relay Output OO E Ya x 2 wie ume LA F um 50 60 Hz A AT L3 EJ L L 2 241 Mae y dum DEN eo Chapter 9 Expansion Module 219 4 Transistor output SG2 8 BRUT i a 5A mn ty tyo tyg NN NN TL 1A quick blowing fuse circuit breaker or circuit protector Surge absorber 43V DC Surge absorber Input 24VAC 43V Input 100 240VAC 430V AC Fuse circuit breaker or circuit protector Inductive load AC inductive load needs parallel connect Surge absorber to describe noise if the SG2 output is relay DC inductive load needs parallel connect commute diode if the SG2 output is relay The commute diode s inverted voltage should be more than 5 10 times of load voltage and the positive current should be more than load current Inductive load needs parallel connect commute diode if the SG2 output is transistor Digital IO module and Analog module both have orange indicator light The state of indicator light is the same The state of indicator light is shown below HEC E au Se DCA hprt 8x DO MAZ in Running status of expansion module ms ll p lw y
190. puts and All inputs and All inputs and relays are ON relays are ON relays are ON relays are ON 270mA 250mA 290mA 260mA All inputs and All inputs and All inputs and All inputs and Relays are OFF Relays are OFF Relays are OFF Relays are OFF 160mA 160mA 200mA 200mA Chapter 7 Hardware Specification Power circuitry diagram 1 AC 10 20 points Veel to Relay Back Circuit Varistor Vcc2 to System 2 DC12V DC 24V DC 12 24V NEED AC 24V Yee to Relay Switch O Circuit Varistor Vcc2 to System 3 Mainframe expansion and communication power in power in 502 V3 x noumenon S2 V3 x expansion Buck expansion p E e Circuit drive amp c a c a photo couplers PC LINK amp PMOS 192 Chapter 7 Hardware Specification 193 Input Specifications 100 240V AC model SG2 10HR A SG2 10KR A SG2 20HR A amp SG2 20KR A SG2 10CR A 101 106 101 109 IOA IOB IOC Diode Resisrot Capacitor number 6 digital input 12 digital input Ni current AC 110V AC 220V AC 110V AC 220V input 0 66mA 1 3mA 0 55mA 1 2mA ON t na AC 79 V 0 41mA gt AC 79 V 0 4mA inpu OFF current AC 40 V 0 28mA x AC 40V 0 15mA inpu lt 100m lt 100m response time On gt Off On gt Off of input Typical 50 60 Hz 50 45 ms AC 110 V Typical 50 60 Hz 50 45 ms AC 110 V Typical 50 60 Hz 90 85 ms AC 220 V Typical 50 60 Hz 90 85 ms AC 220 V Off gt On Off gt On Typical 50 60 Hz 50
191. r display ON OFF preset value week hour and minute Week Monday Tuesday S Friday catur awy Time a DD 17 00 00 1700 a 00 17 00 s 00 17 00 00 17 00 ENABLE En Output Example 2 Week Monday Tuesday Cahariay Sunday BNO Time eu dn db dn 2nd is Pus i ENABLE 7 P od Pe ON SA 17 00 OFF TU 08 00 RnOulmt E Chapter 6 FBD Block Diagram Programming 4 RTC Mode 3 Year Month Day The Year Month Day Mode 3 allows the Bxxx Rxx coil to activate based on Year Month and Date The below example allows for selection of Year and Date for the B002 R01 coil to activate ON and Year and Date for the B002 R01 coil to deactivate OFF Example 1 RIC Function Block x Function Mode B v RIC number 01 101 z B002 i qo1 interval month action mode H g B o Year On gt 0ff E gt 10 RIC 01 On 09 2 17 Current Value OFF 10 11 11 Preset value 2 E 17 Month Day E m E lu Off Symbol cancel FBD display Parameter display Boo KO Enable Input gt 10 01 13 lt Current time ON 09 09 17 ON preset value RIC Parameter OFF 10 jn 11 OFF preset value Note Parameter display current time year month and day Parameter display ON OFF preset value year month and day Year Month Day 2009 02 17 2010 11 11 Time 0 00 0 00 ENABLE ON ETC output OFF OFF Example 2 Year Month Day 2009 02 17 2010 11 11 BOOZ Time 0 00 0 00 ON 10 11 11 ENABLE OFF DS test ETC output 167
192. r function block as preset value Passing to AQOI automatically as 4 30V Passing to BOOI GOI automatically as 4 30 Passing to BOO2 TOI time base is 0 01s automatically as 4 30s Passing to BOO3 TO2 time base is 0 1s automatically as 43 0s Passing to BOOA TO3 time base is s automatically as 430s Passing to B005 CO01 automatically as 430 aqu B001 B00 6 mode 1 Analog 01 Cur Valuel Boo MD 01 Cur Valuez 0 08 3 Cur Value 3 Ref Value 0 00 Pre Valuel 1 7 z 3 Pre Valuez Pre Valued E003 mode 1 Timer 01 Cur Valuel 0 00 Pre Valueli 4 30 mode 1 Timer 02 Cur Valuel E004 Pre Valuel B us5 mode 1 Timer 03 Cur Valuelz 0 Pre Valnunell 430 Counter 01 Cur Value Pre Valuq 430 7 mode 1 Chapter 4 Parameter passing Passing parameter out of range MD current value data range is 32768 32767 T preset value data range is 0 9999 If MD current value is passed to T as preset value obviously sometimes MD current may greater T preset value upper limit or less than T preset value down limit This moment SG2 will use upper limit or down limit value as its preset value Similar situation of passing parameter SG2 will use the same processing method Examplel When B006 MD01 230000 MDOI s value 30000 is passed to other function block as preset value Passing to B002 TO1 time base is 0 01s as preset value 30000 is greater than upper limit of TO 9
193. r own logic program and their I O linked to one Master smart relay The Master smart relay s ID must be 00 and Slave nodes ID should start with 01 and be continuous If nodes ID isn t continuous the Master won t communication with those nodes which are behind the first broken For example the nodes ID is 01 02 04 and 05 The Master thinks there are only two Slave nodes whose ID is 01 and 02 and communication with them Each controller can use 8 IO Link L01 L 08 Only one IO Link instruction can work at Mode I send mode and the other IO Link instructions must be Mode 2 receive mode The Mode 1 Send memory range 1s determined by the Controller ID The adjacent table show the memory range of Wxx locations associated with each controller ID The Mode 2 read the selected Wxx status and write to the selected coil If the select coil type is input coil I or X coil ID Memory list location W01 W08 status can t be changed by Wxx status W09 W 16 MOL m 101 m i 2 Start Coil i Start Memory W 4 W33 W40 Symbol CUA Press SEL V and OK FBD output coil display Press OK button into to modify mode coil number M01 enable input coil function display coil type and W address I O Link l I 0 Link l Hode 1 Num 5 Mode 2 Num 5 I 1 Mo14 Loi 10309 HOdW17 LA IO0T 413 NOBeu1 Display Description Type of points Range L01 I O link output terminal L01 L 08
194. r reaching its preset value The current value is always 0 regardless of the state of its direction bit when the reset is availability The current value is always 0 regardless of the state of its direction bit when the smart switches between RUN and STOP Chapter 6 FBD Block Diagram Programming 161 6 Counter Mode 6 Continuous Count Up Down Count Retentive Mode 6 Counter s operation is similar to Mode 5 except its current count value is continuous and retentive Counter Function Block pd Function Mode ED Y Counter number 01 os counter with overtaking and with power down retain current value 01 Current Value I Preset Value 000020 Fixed Time Sec mode amp Counter 01 Cur Value oO Pre Value 0 Upper Lower Symbol FBD display Parameter display Counting Input _ Z lr Lll 1B001f B001 Up Down Counting Noid TL DOOCODO Current value Reset gt X01 koe C 000020 lt Preset value Counting Parameter gt pap DD Note The C means compare count The means the current value appeared will be greater than present value The PD means the current value will be retain until the power recover First 31 Counter functions CO1 C1F can keep their current value after a loss of power to the smart relay The current counter value will be kept when the smart switches between RUN and STOP if C keep is active AE a Olyigigtigi gt
195. r window click OK Chapter 9 Expansion Module 236 4 Click the Search icon Search and choose it 2 Lantronix EFort Installer 3 7 3 loj x File Edit View Action Device Help s Ej e v Search Assign IF Ping Update Upgrade Telnet Web Type Hame Group IP Address Hardware Address S El Device unknown BNET REED Firmware Type Firmware Version Product Type El Ena11Botificatior 5 Click the Ping icon Pine Ping button The results display in the Status area make sure the unit is properly attached to the network and that the IP address assigned is valid for the particular network segment you are working with Click the Close button EO s ingiag LO bel 17 108 with DE bytes af data laply ioa E un U L1 EytarzXt diaatlmr TTLA A 2 Ia 1190 bytia ieee TIL EA y ear i a La 119 byin Lis aa TILA Bagli ess BO SS 15 1100 bykami isa LH E ing rtakirkicr For 1 128 19 108 Packati Sent 4 Hessiyud 4 Laat O E laii G kada raund krip Lamas bo silli soparla Biria 5 Gen Baris Ges Average zme 6 Click the Ports Rework the Baud Rate member Data Bits member Stop Bits member But make sure these members accord with the Main type module Write down the Local Port member 10001 When you are finished then click OK Click the Update Settings button to save your settings Notel We recommend Baud Rate 19200bps Data Bits 8 Stop Bits 1 Parity bit no
196. ramming ME Example MU sending and receiving data via RS485 port when it s enabled It is recommended that you use D trigger to control MU DROS agaga 10000 E DROE oo0000 08000 id e ooooo PURO A xi e pa DROB Ps E Gi oooog PURI 00014 izi cl I Ex ogoogo PREIS oooo4 tol D 04000 3 oz DR13 MOOS DROS MUO1 and MUOS controlled by T01 Setting MUOI model read registers address DR11 14 0x0E data length DR12 4 and saving data to registers DRO1 DRO04 Setting MUOS mode3 write multiple registers address DR13 14 0x0E data length DRI4 4 and getting data from register DROS DRO0S DR05 10000 0x2710 DR06 8000 0x1F40 DR07 6000 0x1770 DR08 4000 0x0FA0 TOI ON when running then trigger MUOI sending command 01 03 00 OE 00 04 CRC16 and saving data to DRO1 DRO04 after receiving response After 0 2s TO1 OFF then trigger MUOS sending command 01 10 00 OE 00 04 08 27 10 IF 40 17 70 OF AO CRCI6 After 0 2s TOI ON then trigger MUOI After 0 2s TOI OFF then trigger 01 pg1 HUOl DRO1 Chapter 5 Relay Ladder Logic Programming TB SHIFT shift output The SG2 smart relay includes only one SHIFT instruction that can be used throughout a program This function output a serial of pulse on selection points depending on SHIFT input pulse It has 4 parameters for proper configuration The table below describes each c
197. recautions to be aware of while transporting installing operating or examining the SG2 Controller T WARNING Personal injury may result from improper operation N 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 N Never install the product in an environment beyond the limits specified in this user manual such as high temperature humidity dust corrosive gas vibration etc Precaution for Wiring T Improper wiring and installation could lead to death serious bodily injury or considerable damage to property AN The SG2 smart relay should only be installed
198. rflow Example AQO01 AS01 100 A01 V02 AS Function Block x Function AS V1rV2 V3 AS number 01 Current Value M 3 01 Cur Value 0 Pre Valuel Pre Valuez Pre Valued Preset Vi 100 Preset Vi 7value 0 00 voz Preset V3 Talue 0_00 value 0 0 0 FBD display Enable Input gt Parameter Parameter display Stopping Running E001 ASOL 00404 asol lt AS output value Preset VI VIZ 00100 00100 lt Current value V1 Preset V2 5 Vo AD 00424 lt Current value V2 Preset V3 Current value V3 Vo VOZ 00120 AS and V1 V3 values range from 32768 32767 Chapter 6 FBD Block Diagram Programming f amp MD MUL DIV function block There is a maximum of 250 MD Multiplication and Division function blocks under FBD mode and the function is same as Ladder mode Compute formula MD V1 V2 V3 Parameters V1 V2 and V3 can be a constant or other function current value The output coil will be set to 1 when the result is overflow or parameter V3 is zero Example AQ02 MDOI AT01 15 100 MD Function Block x Function MD Vl V2 V3 M Z MD number 01 Current Value l Preset Vl a O Preset V2 01 Cur Value Pre Valuel 1 Pre Valuez 15 Pre Valued Preset V3 SYMBOL 7alue 0 00 7aluege 0 00 FBD display Enable Input gt Parameter Parameter display Stopping Running 0
199. rmation SG2 Chapter 3 Program Tools 40 Programming SG2 Client Programming software can be programmed using the mouse the following examples of program instructions Click the right mouse button appears below the left screen and select Constants Connectors or simply click on the FBD the toolbar see below right there will be all available coils icon above the toolbar Paste tele Select All Ctrl 4 Line Constants Connectors La Logic Block i Funtion Block ied I E t ce Bora Find Untitled Wer Status Stop OFFLINE Model 5G2 20VT D Were selected symbol M and the Q the icon will be put to the editor area and used to connect the two coils connected as the left part of Operation 1 3 if multiple cross connections they can use scissors functional separation of the connection shown in the following figure the right part operation 4 3FBD Version Untitled2 ENSIS a File Edit Operation View Window Help Operation View Window Help pees ee acd eue ee ee ERA ea a 9 sef ed 3 le s oa ada ud f a s en x V I feris Status Stop OFFLINE S E E EX ES ES Pe aA n Veris Status Stop OFFLINE Model S62 20VT D Page 1 A Simulation Mode Chapter 3 Program Tools SG2 Client build in simulation test function the following diagram shows the di
200. s 20 4 28 8V 24VDC 12 point 125mA 20 point 185mA I2VDC 12 point 195mA 20 point 265mA 100 240VAC 100mA 24VAC 290mA Wire Size all terminals 26 to 14 AWG Programming Program Memory 300 Lines or 260 Function Blocks LCD Display 4 lines x 16 characters Pe Timers Maximum Number Ladder 31 FBD 250 Timing ranges 0 01s 9999min et Maximum Number RTC Real Time Clock Maximum Number Ladder 31 FBD 250 Resolution Input Power Voltage Range Power Consumption min Time span available week year month day hour min Analog compare Numeric values or function block current value such as Analog input A Timer Counter Temperature Input AT Analog Output AQ Analog gain Offset AS MD PI MX AR DR Compare versus other inputs Chapter 2 Installation Environmental Enclosure Type IP20 Maximum Vibration 1G according to IEC60068 2 6 Operating Temperature Range 4 to 131 F 20 to 55 C Storage 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 10 12 point 230g C type 160g 20 point 345g C type 250g Agency Approvals CUL CE UL Discrete Inputs 3 2mA 24VDC 4mA 12VDC Current consumption 1 3mA 100 240VAC 3 3mA 24VAC 24VDC 5VDC 12VDC lt 2 5 VDC Input Signal OFF Threshold 100 240VAC lt 40VAC 24VAC lt 6VAC
201. s is constant 0003 Data length is fixed at 1 word Setting data DREO 1234 hex 04D2 Send data 01 10 00 03 00 01 02 04 D2 CRC16 Received response from slavel 01 10 00 03 00 01 CRC16 Mode3 FBD display r Enable Input P 24 3 amp Part NU Parameter Setting communication address is data register DR 101 B002 H001 A a MODBUS A mode d 10 01 Add 0000 Data 0000 Setting address DRO3 0001 Setting data length DRO4 0002 Setting data DRE0 1234 hex 04D2 Setting data DRE1 5678 hex 162E Send data 01 10 00 01 00 02 04 04 D2 16 2E CRC16 Received response from slave 01 10 00 01 00 02 CRC16 the max length of data is 25 Mode3 FBD display Enable Input gt Parameter 16001 Hc J Qo Chapter 6 FBD Block Diagram Programming MU Function Function Mode 3 y MU Number 01 Write multi register Remote ID 01 0 7F H Wig Eg er 2 Com add WEE ep for gt 0 FFFF The data length ig 1 Comm data DR Eo y Symbol Parameter display pogi In Slaver ID V1 0005 lt Register address VZ DREO Source data address MU Function Function Mnde E MU Number 01 Write multi register Remote ID o1 0 7F Comm gi DR 03 y 0 FFFF Ihe data length is DRO4 The max length of Data is 25 Comm data DR Eo y Symbol cence Parameter display BOO ID 01 lt Slaver ID V1 DR
202. sabled Password function Default setting 0000 If there are H coils HMI coils enable A B Class password have same access right If there are no H coils enable A B password have different access right A B Class password Description No H coil ON H coil ON LADDER Y y y FUN BLOCK y y y FBD y y y PARAMETER y y RUN STOP y y DATA REGISTER y y CLEAR PROG y y y WRITE READ RTC SET ANALOG SET LANGUAGE INITIAL y cannot accessed under password protecting Chapter 3 Program Tools 8 LANGUAGE Selection menu language ENGLISH gt English FRANCAIS gt French ESPANOL gt Spanish gt ITALI Italian DEUTSCH gt German PORTUGUES gt Portuguese gt al HR FH X J gt Simplified Chinese POLSKI gt Polish TYCCKMM gt Russian gt Turkish Now Press EN Vertically move the Cursor Select the language the cursor located Back to Main Menu Language display V means current selection for menu language LI Language display means current selection for HMI multi language characters only Russian or Turkish Press key T or J to move cursor and press OK key to select language if select Russian or Turkish HMI multi language characters also changed if select other language HMI multi language characters don t changed 9 INITIAL select Ladder Logic and Function Block Diagram FBD INITIAL gt LADDER F
203. scanning state press SEL into HIM at IO interface 1 123456789ABC p 4 d 101 20 00Sec 2 1234 x Q o TOL H Sec Q 12345678 A ROA ei 2 HMI running state HMI is enabled at IO interface I 123456789ABC Fon T01 20 00Sec 1234 A Q 0 12345678 lt gt RUN Wed 09 18 be 2 35 T01200 00Sec Enable M0 m 00 00 MOZ ON 100 Chapter 5 Relay Ladder Logic Programming 3 HMI edit preparing state press SEL when HMI is scanning or running state flicker cursor will show if there is edited content T01 20 00Sec TO1 00 00Sec 00 00 TO1 H0 00Sec T01 200 00Sec 00 00 NOZON MO2 0N NERO VON T01 00 00Sec Q 00 00 le T01 20 00Sec TO1200 00Sec 00 00 MO2 O0N 101 Chapter 5 Relay Ladder Logic Programming ty 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 Q01 and Q02 The PWM instruction 1s able to output up to an 8 stage PWM waveform It also provides a PLSY Pulse output output on terminal Q01 whose pulse number and frequency can be changed The table below Mode Oups PWM mode P01 and P02 both can work under this mode Each PWM has 8 group preset stages which contents Width and describes number and mode of PWM Period The 8 group preset values can be constant or other function current value Each PWM has
204. splay Parameter display BOOS KO Enable Input We 09 76 lt Current time ON MO ME oc ON preset value RTC Parameter OFF FR 17 oc OFF preset value Note Parameter display current time week hour and minute Parameter display ON OFF preset value week hour and minute Week Monday Tuesday Wednesday Friday saturday Sunday Time 8 00 1700 8 00 1 00 800 17 00 amp 00 1700 ENABLE iii Enn Output Example 2 Monday Tuesday Wednesday I Friday aay Sunday S00 17 00 040 D 00 17 00 a00 17 00 ED BOO ON TU 17 00 OFF SA 08 00 Rn Output a Chapter 6 FBD Block Diagram Programming 3 RTC Mode 2 Continuous The Interval Time Mode 2 allows the Bxxx Rxx coil to activate based on time and day per week The below examplel allows for selection of Day and Time for the B002 R01 coil to activate ON and Day and Time for the B002 R01 coil to deactivate OFF Example 1 RTC Function Block ES Function 101 Bote y Qni Mode Y RIC number 01 B a interval time action mode ida a i Week On Off Ir gt ll TU gt SA oe ias Current Value a Preset value g o l Hour Minute M 17 o DEF Symbol FBD display Parameter display ROL Enable Input We 9 48 Current time UN TU Os 00 lt ON preset value RTC Parameter gt OFF SA 17 00 lt OFF preset value Note Parameter display current time week hour and minute Paramete
205. splay characteristics in simulation mode m File Edit Operation View ema Kasseniie i 44 25 E V Le ro n 43 s Input Stats Toor Status Run OFFLINE Model 362 20VI D E E ile Edit peration View Window He E III A BE Bl To status and control 0122345678 SABCODEF LI GU CC CI C2 C2 GU aa EJ fear pd fer ESTE mode 5 Timer 01 EE SIR EST B Active circuits change color mede 1 Counter Cur Valus 1 aa Fre Value 400 Pre Valusi amp Display function block current value and preset value Dre Urinal S Fre Value 462 Bona Display function block current value and preset value test1122 gfb Ver 3 2 Status Run Chapter 3 Program Tools Symbol and Parameters list FBD list symbols for coils and function blocks which only been used in program and will comment tags appear in the program B File FILE Operation Yiew Window Help 3 em E Select Medel A d e a a farce Berfe Ctrl T Bit wt Raat ARR Deve helt Farte Ctrl F Salact gn ce elik Fig EAL Text Farametere Lifi Tig jud Pie Value 125 Ce AAA Ca To test 1122 eth Yar na Statuses Stop OFFLINE ModelisGi 20VI b Pape 1 4 Symbol also can describe the function of main program The following diagram operat
206. t ON when all input terminals status are OFF XOR Logic Diagram FBD LADDER R 15001 101 102 1011 XOR H 7 101 102 E001 102 HBO HE 101 XOR 102 Note The input terminal is NOP which is equivalent to Lo The B output ON when the input terminals status are different SR Logic Diagram FBD LADDER r 18001 ie i I014 Ss Bu ul 1024 R 5002 102 L J 4 D fo holding o pt o 1 pr jo Note The input terminal is NOP which is equivalent to Lo Logic Table NOT Logic Diagram FBD LADDER r 18001 101 I01 NOT tt RS O 201 L J Not I01 Note The input terminal is NOP which is equivalent to Hr Chapter 6 FBD Block Diagram Programming ES Pulse Logic Diagram FBD LADDER P 18001 101 XX Rulo gt Hp II LT Fool L J Note The input terminal is NOP which is equivalent to Lo The B output change status when input terminal OFF ON BOOLEAN Logic Diagram FBD LADDER Foo MOST 18002 NO 1014 BL aig a 1024 1548 FBO01 Boost J Note The input terminal is NOP which is equivalent to Lo Description Inputi q BE E E bhloek code Inputz Input3 real tables output Input4 Bp p The relationship between input and real table 1s shown below Input Input2 Input3 Input4 Output edit Example Real table ree EUER ONE M pe fe pepe e 0 1 0 0 1 pm Ol NS
207. t by the two ways below NHodule System Set pate dE f NO Current ID 1 z Master New ID 00 99 1 Slave Remote 1 0 Set Expand I 0 Others 4 ID SET A REMOTE 1 0 I 0 Mum l A C Keep LI Back Light I 0 Alarm Foz Set E3455 jet DR Format Set Baud Rate 38400 Signed Comm Mode 8 N 2 Unsiqned i Special Auxiliary Relays M31 M3F User program upstart flag Outputting ON during the first scanning period and used as normal auxiliary relay at other scan period Isecond blinking output 0 5s ON 0 5s OFF M33 Summer Winter output Summer time turn ON winter time turn OFF used as normal ees mls M3D Received fla E MODBUS function using oe MU instruction Chapter 5 Relay Ladder Logic Programming Auxiliary Relays N memory type Auxiliary relays N is the same to auxiliary relays M but it can t be kept when the smart powers down In the first rung of this example auxiliary relay NO1 is being used as an output coil and will energize when input 103 turns on In the second rung auxiliary relay NOI is being used as an input and when energized will turn on outputs Q04 and 005 004 O05 O06 Timers and Timer Status Bits T Memory Type Timer status bits provide the rela
208. t coil will turns OFF when the result is right or the function is disabled PID computes formula EV SV PV API K ev EV EV p I D Lo 2PV PV PV S PI API The example below shows how to configure PID function Edit Contact Coil In dps De rode sel Select oil fe Error Coil nom 01 08 fr e r 7 Function Current value FIO 32768 32767 avi m w enzo t sa7ex xa767 min fe az7ee a9787 Is hr v oozoo EENI 1 327467 pi m oon 1 32 767 Tis H 00100 12127567 oQ000 Td ln 1 32741 d z fol 00100 foi e prt Ea pozon 00100 120 Chapter 5 Relay Ladder Logic Programming WI Three types of PID controller Proportional loop P Integral loop 1 Differential loop D PID controller diagram Proportional controller EV Proportion controller Control Kp Gain value process PY AFI Ep EV EY According to the difference or error EV between the target value and measuring value this alters the adjustable value or variables API proportionally then change the output result PI of the program control Proportion controller can work promptly but it can t make the difference to 0 The feature of the proportion controller Correspond to the change or variation of the process value instantly Integral controller For smooth and stabilize the system once the EV value and is change drastical
209. t the number of time cycles completed Those two timers of Timer Mode 7 that cannot be double used as Timers for other modes in the same program Edit Contact Coil ly M ly T c Select Coil No Output Type T 01 01 1F Function Mode a 0 6 7 P Flash timer mode 3 ERE A E Tx Ta of wh Ww TOL TOZ EIL Time Base 0 15EC Oo 0 15EC v TOl Current Value Sec Sec y Preset Value 002 5 Sec 001 0 Sec Preset Twpe N in m Direction Set Reset Input Contact Contact y mm enable reset relay enable reset relay present value 0 aie Timer status operating P present value tiring enable relay Timer up TU1 T1F output terminal Timer 2 DL EA 1l dl tl preset value of the first timer t2 preset valueot the second timer The current value of Timer can not be kept on a loss of power to smart Chapter 5 Relay Ladder Logic Programming 79 Counter Instructions The SG2 includes a total 31 separate counters that can be used throughout a program Each counter has a choice of 9 operation modes 1 for pulse counter 6 for general purpose counting and 2 for high speed counting Additionally each counter O has 6 parameters for proper configuration The tables below describe each 9 configuration parameter and lists each compatible memory type for configuring counters Common Counter Compatible Instructions Range Counting Mo
210. ter the preset value Additionally the current count value is non retentive and will reset to 0 on a loss of power to the smart relay Additionally the Mode 5 counter is always reset to zero and the current value also is always 0 when the smart switches between RUN and STOP unrelated to the state of its direction bit In the example below the counter will continue counting after its preset value of 20 Counter status bit CO1 will be ON when the current value is 20 Edit Contact Coil M N T Counter c fo 01 1F Function Hode 1 8 With overtaking and without power dom Compare Counter Current Value E Preset Value 000020 Preset Type N Direction Set Reset Input Contact In E lo1 Contact 1 foz EE E E L th a 4 4 EOE E 4 d 1 dp 01191191 20 20 211 21120 201 191 191 781 18 19 19 20 ol g 1 g 1 gi input count 41 r pulse ded OFF ON OFF ON OFF Under this mode the count will continuous after reaching its preset value The current value is always 0 regardless of the state of its direction bit when the reset is availability The current value is always 0 regardless of the state of its direction bit when the smart switches between RUN and STOP Chapter 5 Relay Ladder Logic Programming Counter Mode 6 Continuous Count Up Down Count Retentive Mode 6 Counter s operation is similar to Mode 4 except its current count value is continuous and retentive
211. th AQ03 AQ04 It can out 0 10V voltage signal or 0 20mA current signal and 12bits data 0 4095 stored in data register of DRD4 DRD7 content standard OV 10V OmA 20mA Analog output range Load impedance should belLoad impedance should be bigger than 5000 smaller than 5000 Digital output 0 00V 10 00V 0 00mA 20 00mA Register AQ01 AQO04 0 1000 0 500 0 value DRD4 DRD7 4095 0 2047 The output mode of AQ is set by the current value of DRDO DRD3 Output Mode DRDO DRD3 data definition Register Register Channel 1 AQOI DRD4 DRDO 0 voltage mode and reset value when stop Channel 2 AQ02 DRD5 DRDI 1 Current mode and reset value when stop Channel3 AQ03 DRD6 DRD2 2 voltage mode and keep value when stop Channel 4 AQ04 DRD7 DRD3 3 Current mode and keep value when stop It will be thought as 0 if the value of DR is not in the range of 0 3 AQ display AQ displays the preset value under STOP mode and displays the current value under RUN mode Analog Ouput Set Mode Preset CH1 i M 4000 STOP display RUN display Voltage mode reset value when stop DRD4 AQ output 09 77 V CH2 2 v u v 2047 Current mode reset value when stop DRD5 AQ output 20 00 mA AQUI 09 TTV AQUI 09 TTV AZE Om AGUZ Z 00mA AN S A I V AQUS 02 T V AGUJ DRSF m AQUI 00 mm Voltage mode keep value when stop When AQ mode is current output the DR value conversion AQ output value and display va
212. tionship 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 103 turns on timer TO1 will start When the timer reaches the preset of 5 seconds timer status contact TO turns on When TOI turns on output 004 will turn on Turning off 103 will reset the Timer OUO OZ 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 or greater than the preset value of a selected counter In this example each time the input contact I04 transitions from off to on the counter C01 increments by one When the counter reaches the preset of 2 counts the counter status contact C01 turns on When C01 turns on output Q05 will turn on When M02 turns on counter C01 will reset If M09 is turned on the counter will change from a count up mosd 000000 cooooz fp Ul to a count down counter 104 col Obra COL OOS 00d Chapter 5 Relay Ladder Logic Programming 68 Specialty Memory Types pa gs og sina cms S Number output output output output contact contact Symbol N O N C gt Used i in function block Expansion input coil X X 1 2 X01 X0C x01 x0C Exp
213. ton See Chapter 5 Ladder Programming instructions for complete instruction set definitions LAD Version BEC ga ala EH pee e B8 el Coil Contact apacity 1200 free space Symbol Used 1 123456789ABC 1234 1123456789ABC Fdit Contact 12345678 P 1 123456789A4BC la t Internal auxiliary relay 123456 789ABCDEF wl M EH 01 3F 123456789ABCDEF ml Contact Type 123456788ABCDEF u T em zi pa Jr 1234586T88ABCDEF al 123456T88ABCDEF wl 1234586788ABCDEF u 1234 5678 0 More thE AE afro dro Hiro abro afo afro a o Ho Fd J 6 SUS 9 6 SS 2101303 Ver 3 2 Status Stop ONLINE Model 562 20VT D ID 0l Note If the ladder toolbar is not visible at the bottom of the screen select View Ladder Toolbar from the menu to enable Chapter 1 Getting Started b Use the A key on your keyboard or the A icon on the ladder toolbar to draw the horizontal circuit line from the M contact to the right most cell as shown below LAD Version File Edit Operation View Help BEE 40 gt ERE Osaka ewer aa e Coil Contact Capacity 1197 free space Symbol Used 1 123456789ABC Z 1234 X 123456789ABC 0 12345678 P 1 Y 123456789ABC M 123456789ABCDEF E aul C 123455789ABCDEF al R 123456789ABCDEF G 123456789ABCDEF ul H 123456789ABCDEF J L 12345678 Ver 3 2 MEA Tam Model SG2 20VI D c Select the Q coil icon from the lad
214. tput 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 from OFF to ON Once the output is OFF or reset it will remain OFF until it if reset using another output instruction It 1s not necessary for the preceding input contact controlling the Reset output instruction to remain ON 101 001 008 101 OFF ON OFF 001 ON OFF 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 transition 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 103 is pressed and released Motor Q04 will turn on and remain on When Pushbutton 103 is pressed again Motor Q04 will turn off and remain off The pulse output instruction P will flip flop 1ts state from ON to OFF at each press of Pushbutton 103 ggg 103 OFF ON OFF ON OFF ON OFF 105 204 CGH JEFE ON OFF Chapter 5 Relay Ladder Logic Programming 70 Analog memory type i pat Asp mier Pipa A AA E V SURV Temperance AT E 5 Multiply Divide control PID control D ID Analog Ramp control 15 ARO1 AROF 20 DROT DRFO Analog value A01 A08 V01 V08 ATO1 AT04 AQ01 AQO04 and current value of functions T01 T1F
215. tput coil is NOP The output coil will turns OFF when the result is right or the function 1s disabled The example below shows how to configure AS function Edit Contact Coil E E H select Coil Ho Error Coil s mE 01 1F N lo1 Function Current value PEA RS vi VE V3 Preset 16453 ooo Pre Type E jf T oi c for Error output coil NOI will turn ON when the compute result is overflow 118 Chapter 5 Relay Ladder Logic Programming MD MUL DIV The SG2 smart relay includes a total of 31MD instructions that can be used throughout a program The MUL DIV Multiplication and Division function enables simple operations to be carried out on integers There are 6 parameters for proper configuration The table below describes each configuration parameter and lists each compatible memory type for configuring MD Symbol Description Oo MD current value 32768 32767 V parameter 32768 32767 V2 parameter 32768 32767 00009 OEC Error output coil M N NOP MD code MD01 MDIF Compute formula MD V1 V2 V3 MD current value is the result of compute Parameters V1 V2 and V3 can be a constant or other function oo V3 parameter 32768 32767 current value The output coil will be set to 1 when the result is overflow or parameter V3 is zero And the current value is no meaning at this time But it will do nothing if the output coil is NOP The output co
216. turn OFF when the current time value reaches its preset of 10 seconds This Flash sequence of the Timer status bit T01 will continue as long as its rung remains true Edit Contact Coil ly m u T lc Select Coil No Output Type T lol Ol lF fc CP 7 P Flash timer mode 1l Enable J T EE Output Time Base lSEC Current values Sec Preset Value 0010 Sec Preset Type N Ly Direction Set Reset Input Contact Contact enable reset relay nr e ie enable reset relay present value 0 present value 0 Timing enable relay Time up output terminal 101 T1E t preset value The current value of Timer can not be kept on a loss of power to smart Chapter 5 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 and then change the state of its status bit Additionally the Timer current value will reset to zero when Timer is disabled In the example below the timer reset input is Input 101 Timer status bit TOl will be ON immediately when its rung is true and begin its timing sequence Timer status bit TOl will turn OFF when the current time value reaches its preset of 10 seconds This Flash sequence of the timer status bit TO1 will continue as long as its rung remains true Edit Contact Coil 01 01 1F Function Mode le M 0 6 7 P Flash timer mo
217. ursor address 1s Preset value Modify preset value type when in edit mode ESC Cancel the current edit Quite parameter display Save the current edit 147 Chapter 6 FBD Block Diagram Programming Et Timer Function Block There is a maximum of 250 timers function blocks under FBD mode can be set mode 0 7 and the function is same as Ladder mode Timer Mode7 occupied one blocks and two timers TOE and TOF keep their current value after a loss of power to the smart relay if M Keep is active Timer edit and display 103 m m FBD display Timer 03 Cur Valuel 0 00 r 1B005 Pre Valuel 1 00 1044 TL mo Q04 Timer Function Block r Function Mode w Off delay timer mode 1 Parameter display BOOS OO 00 Time Base 0 01Se y Current Value j gec Preset Value 01 00 Sec T 01 00sec T Symbol 1 Timer mode 0 Internal coil Mode Mode 0 Timer Internal Coil used as internal auxiliary coils No timer preset value and no parameter display FBD display r 15005 Enable Input gt Tod I L koa LT OFF OFF To3 Q04 FF OFF Chapter 6 FBD Block Diagram Programming 165 2 Timer mode 1 ON Delay A Mode Mode 1 Timer will time up to a fixed value and stop timing when the current time is equal to the preset value Additionally the Timer current value will reset to zero when Timer is disabled Timer Function Block
218. ware 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 a 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 1s 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 www taian technology com i Setup SG Client Welcome to the 5G Chent Setup Wizard This wil install 552 Clent en your computer lt a recommended tho ou cone al other gnnlcanons bale COMTE Glick Ned la continue or Cancel lo ext 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 below Start screen will be displayed From this screen you can perform the following functions 8
219. x 04D2 Comm data DR EO x Cend datos 01 10 00 03 00 01 02 04 D2 CRCI6 Received response from slavel 01 10 00 03 00 01 CRC16 Function parameter display r 1 o rSelect Coil No M lor 01 0F pros Hil L DREQ 4 r Function Mnde 3 Write multi register Remote 1p or Setting address DRO3 0001 O 7F a Joar Setting data length DR04 0002 B T The data length is DRO4 The max Setting data DREO 1234 hex 04D2 length of Data is 25 Comm data DR Eo y Setting data DRE1 5678 hex 162E Send data 01 10 00 01 00 02 04 04 D2 16 2E CRCI6 Received response from slavel 01 10 00 01 00 02 CRC16 the max length of data is 25 Chapter 5 Relay Ladder Logic Programming i MU mode4 Read Coils Setting parameter communication address is constant Edit Contact Coil Function parameter display Select Coil No r 1 o MU 01 01 0F Function Mode la y Read coil 60260 Hdi L DREO 4 mc lo1 Address is constant 32 hex 0020 Comm add s 0020 C n Data length is fixed at 16 hex 10H 1 word O FFEE the data length is 16 Send data Comm data DR fzo v 01 01 00 20 00 10 CRC16 Received response from slave1 01 01 02 datal data2 CRC 16 saving data to DREO DREO datal 2 Setting parameter communication address is data register DR Edit Contact Coil Function parameter display r 1 o
220. xoa ade NR onis eli ets Mar cest S MAE t END LS ee 25 Establish O mim Ga ON cmo ce ent Eua teme auch Gent dun pci ton EUN ii ia mlm alma 23 Wrin Prora dO SITE TO ld o oe dune Ee 26 One 3VIOBIOL US SOIT TUB eee Re ee bsc db 27 Operation Menu asso tuom nios topic ecol toti ual toc alot a kt ahead toi UE ETE 28 O A c nno oo poo A 29 Program IOC AA aminn alak en aa e e alel a alalim lal 33 Alo ONO o S CD e a e e Ee Ee 39 Data Resister Seb ot o no Dn OQ o Pe uuu e e 36 MIC UEBER I DUM MP EE EE 38 FBD Probsraummitipb Eny TONM DE oett iet eere oov ecient detail a Atle a ue Pau 39 Ment Icons and Status Bai cen ete te et ie ee eas ese a ee et 39 MINI LE TET 40 simulation WOE o oe EID RUE A P DM e MM M MD A EM MI I LP I ELE PUE 4 Online Mom torine Edit ele ane ese feto ee thee Sosa asu iile ee teeth e ties 4 Symbol and Paramore ete eet eet A A beer e en bees 42 Memory C arridee sold separately bec n ab cB Gb BEP ri MUN MM E 44 CODI anda Dudes xt Sn nea e kak A OR BU EDI DABIS n 45 IC i 0 215 oes ge ee ae en E eae MA el eae e ee eee een ree 45 OWI a C1 Cell casacesanasacstaastacssaseasgavedstadesacedagssecseadusccuaagssedteadasacisdagsuecseadasacisgagasee meade sacsgagsseeseadasacsgaget EE Le cu EU 46 ECD Display Main WIG susana 49 RIC Tay IG savma SELL M sene n ice lk di AO ATO A kodi ATO nel OE 54 e ELAR E D T E e E E E E A E E E E S E 58 Chapter 3 Program Tools PC Programming Software SG2 Client The SG2 Client programming soft
221. xtension GSM module send this HMI text to telephone after reading this HMI text HMI Text mo moz sos so mos mos__ mo7 moe STR AFAN AA mui 1386111 _ a dne 101 Premetjuni i i Analog Alarm pin emn x nti Reset HUI 2 vi RIC ROS Current ALEA Ba G Compare G04 Reference unit T 8 i idis n 101 unit DR fos Current u Rese ft oss vi H i fot T as aos unir zl TEO Clear E 7 e unit v Multi Langusge im e r Chinese edir a Text aes TU mu a ER yl rere Ev Pe r SIS ECCODEPCSHIIIRIANOAPKSSTUUVYZ UE n eat ig abyc TLlwEHAFCoe ee QRAAE Linel set telephone number shown as Only set by dialog and max 15 number characters Line2 line4 set text information show as include preset value and current value of function block coil status shown as and ASCII characters shown as Run display PHONE Analog Alarm Reset OFF A 9 00 Stop display 1386111 Analog Alarm Reset H0l AOQL HEN Example 1 SG2 saved H01 display information M01 status and A01 value when MOI is enabled rising edge 2 Extension GSM module send SMS to telephone H01 linel number after reading message H01 line2 line4 text information Chapter 3 Program Tools Example HMI TEXT and Z keypad input function Capacity 1185 free space H edit display 201 z02 0 EDI amp i ik
222. y form 0 to current level at a preset rate when it s enabled Base on Level0 0 32767 the state of Sell and DES Current level will change to ome pices level at the Levell 0 32767 preset rate When AR is disabled current output vary to 0 immediately Level2 0 32767 Level3 0 32767 MaxL 0 32767 Ta 0 3276 7 The rate designed by user Rate The table below describes detail information of each parameter Ta S1 0 S2 0 target level Level 0 S1 0 S2 1 target level Level 1 S1 1 S2 0 target level Level 2 S1 1 S2 1 target level Level 3 MaxL is used as target level if the selected level is bigger then MaxL MaxL The result of MaxL divided by Ta is the change rate from Ta current level to target level The output coil turns ON when A is 0 Timing diagram for AR al Rate MaxL Ta Tl Level0 Ta MaxlL T2 Levell LevelO Ta MaxL T3 Levell Level2 Ta MaxL T4 Level3 Level2 Ta MaxL Example Tol Enable Input Select Select2 Parameter Display AR current value when running mode v b l4 Bl O mode E 4R O1 Cur Value Level u luu Lewell 000 Lewelz 2000 Lewel 4000 MasxL 4000 Ta 4 0 FBD display 1001 Nap X Nop At HNO Part AR 4 Chapter 6 FBD Block Diagram Programming AE Function Block Function Mode E AR number m Current Value Preset Leveld 1000 Preset Levell 2000 Preset Level2

Download Pdf Manuals

image

Related Search

Related Contents

SA-02 取扱説明書ダウンロード(1.05MB  SEGURANÇA, JUSTIÇA E CIDADANIA Perícia e Investigação  EUROPANEL II EUROPANEL II H  SOCIOCRITIQUE ET HISTOIRE CULTURELLE  Users Manual (Spanish)  iiyama ProLite E483S 19" Silver  Descargar curso-tecnic  Benutzerhandbuch - Sena Technologies, Inc.  Operating instructions  SY-K7VTA-B Motherboard  

Copyright © All rights reserved.
Failed to retrieve file