TECO SG2 User Manual

TECO SG2 User Manual

Smart plc programmable logic smart relay
Hide thumbs Also See for SG2:
Table of Contents

Advertisement

Quick Links

SG2 Smart PLC USER Manual
SG2 Programmable Logic Smart Relay
0086-0510-8522-7555
4KA72X023 Version: 03
2009.07.03
www.taian-technology.com
Apply to:
SG2 firmware version 3.0,
PC client program software version 3.0

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SG2 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for TECO SG2

  • Page 1 SG2 Smart PLC USER Manual SG2 Programmable Logic Smart Relay 0086-0510-8522-7555 4KA72X023 Version: 03 2009.07.03 www.taian-technology.com Apply to: SG2 firmware version 3.0, PC client program software version 3.0...
  • Page 2: Table Of Contents

    Environmental Precautions ............................. 2 SG2 Model Identification............................2 Quick Start Setup....................... 4 Install SG2 Client Software..........................4 Connect Power to SG2 smart relay ........................4 Connect Programming Cable ..........................5 Establish Communication ............................5 Write simple program ............................. 6 Chapter 2: Installation ......................10 General Specifications ............................10...
  • Page 3 Real Time Clock (RTC) Instructions ........................69 Comparator Instructions............................76 HMI Display Instructions............................79 PWM Output Instruction (DC Transistor Output Models Only)................82 Data Link/Remote I/O Instruction (SG2-20Vxxx model only)................85 SHIFT (shift output).............................. 88 AQ (Analog Output) ............................. 89 AS (Add-Subtract) ..............................90 MD (MUL-DIV) ..............................91...
  • Page 4 24V DC, 20I/O model ..........................125 Output Specifications............................126 Output Port wiring notice.............................126 Light Load..............................126 Inductance Load............................127 Life of relay..............................127 Size diagram of SG2 ............................128 Chapter 7: 20 Pointe V type High-powered Models Instruction........129 Function Summarization ............................129 Detail Instruction ..............................129 Remote IO function............................131 IO Link Function............................132 Modbus RTU master ............................133...
  • Page 5: Summary Of Changes

    SG2 Client programming software V3.0. SG2 V3.0 adds some new functions with firmware version V3.0 to strong SG2 function. The upgrade content is shown as the 2 tables below simply. More information about idiographic function to see function instruction. Edit and Display SG2 V3.0...
  • Page 6: Examination Before Installation

    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.
  • Page 7 • 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.
  • Page 8: Quick Start Setup

    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.
  • Page 9: 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.
  • Page 10: Write Simple Program

    Select the correct Com Port number where the programming cable is connected to the computer then press the “Link” button. d. The SG2 Client will then begin to detect the connected smart relay to complete its connection. Write simple program a.
  • Page 11 Quick Start Setup 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. c. Select the “Q” coil icon from the ladder toolbar and drop it on the right most cells. Select Q01 from the dialog and press OK as shown below.
  • Page 12 Quick Start Setup 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. 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.
  • Page 13 Quick Start Setup f. On the Input Status dialog, click on M01 to activate the contact M01 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.
  • Page 14: 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.
  • Page 15 Chapter 2 Installation Analog compare Maximum Number Ladder: 31;FBD: 250 Analog, Timer, Counter, Temperature Input (AT), Compare versus other inputs Analog Output (AQ), Analog*gain + Offset, AS, MD, PI, MX, AR , DR , or Numeric values Environmental Enclosure Type IP20 Maximum Vibration 1G according to IEC60068-2-6...
  • Page 16 Chapter 2 Installation Analog Inputs Basic unit: 12 bit Resolution Expansion unit: 12bit 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 <...
  • Page 17: Product Specifications

    12 AC 8 Relay Accessories SG2-PL01 SG2 Programming Cable, SG2 Programming software SG2-PM05(3rd) SG2 Memory cartridge If module with keypad and display, Max IO can be added keypad input Z01-Z04. ※ More information about Product Specifications to see “chapter 6: Product Specifications”.
  • Page 18: 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...
  • Page 19 Output 4 x Relay / 8A Direct Mounting Use M4 screws to direct mount the SG2 as shown. For direct installation of the expansion module, slide the expansion module and connect with the Master after the Master is fixed. Input 4 ×...
  • Page 20: Wiring

    Chapter 2 Installation Wiring WARNING: The I/O signal cables should not be routed parallel to the power cable, or in the same cable trays to avoid the signal interference. To avoid a short circuit on the load side, it is recommended to connect a fuse between each output terminals and loads.
  • Page 21 Chapter 2 Installation Input 100~240V /24V AC I5 I6 I5 I6 AC ..V Input ..AC ..V INPUT ..Output (Relay) Output 4 x Relay / 8A Output 8 x Relay / 8A Output (Transistor) OUTPUT 4 x TR / 0.5A OUTPUT 8 x TR / 0.5A...
  • Page 22: Indicator Light

    ※ Instruction”. 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. State of light Description Power up, SG2 is stopping...
  • Page 23: Chapter 3 Program Tools

    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.
  • Page 24: 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.
  • Page 25: Ladder Logic Programming Environment

    Chapter 3 Program Tools 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-->New, and select the desired model of...
  • Page 26: Menus, Icons And Status Displays

    5. Current Mode – operation mode of the controller, or simulator, from the connected PC. 6. Ladder Toolbar – Icons for selecting and entering all available Ladder Logic instructions. 7. Status Bar – Status of current open project and connect SG2 smart relay.
  • Page 27: Programming

    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. The “A” and “L” keys or icons are used to complete parallel and serial circuits. The right column is for output coils.
  • Page 28: Simulation Mode

    Chapter 3 Program Tools Simulation Mode 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 red RUN icon. The program below is shown in simulation mode, identifying the significant available features.
  • Page 29: Writing Program To Smart Relay

    Run-Stop-Quit – Mode change selections for both runtime editing and simulation mode. Read-Write – Reading and writing programs to and from a connected SG2 smart relay. RTC Set – Online function for setup of the Real-time clock/calendar (see dialog below left) Analog Set –...
  • Page 30: Online Monitoring/Editing

    I/O forcing, and Mode changes (Run/Stop/Quit). ※ 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.
  • Page 31: Hmi/Text

    Chapter 3 Program Tools HMI/TEXT This function block can display information on 16×4 LCD screen. Information displaying can be present value or target value of Counter, Timer, RTC and Analog comparator etc. Under running mode, to modify the target value of timer, counter and analog comparator via HMI is available.
  • Page 32 ⑦ Choice T01 present (unit), user can modify T01 preset value when H coil enable and display on LCD Download to SG2, and I01 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.
  • Page 33 Chapter 3 Program Tools Power ON and RUN (initial display) Press “↑” (Z01) and display H03 coil ① Press “SEL” to display cursor Press “↑”, “↓”, “←”, “→” to move cursor ② Press “SEL” again to choice modified position ③ Press “↑”, “↓”...
  • Page 34: Program Documentation

    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.
  • Page 35: Aq Set

    Chapter 3 Program Tools Line Comments The Line Comment editor is accessed by clicking the “N” icon on the Ladder Toolbar. After clicking on the “N” icon, to drag the line number you want to comment and release, and then type the desired comments and press OK. AQ Set…...
  • Page 36 Chapter 3 Program Tools Data Register Set… The content of Data Register is either unsigned or sign, it can be set as shown below. Selecting Unsigned, the range of DR is 0~65535; and selecting Signed, the range of DR is -32768~32767. After the operating above, the Data Register editing environment can be access through the menu using the Edit>>...
  • Page 37: Memory Cartridge (Sold Separately)

    Chapter 3 Program Tools Memory Cartridge (sold separately) PM05 (3rd) is a special kind of PM05, it can be used in all version of SG2. There is an icon on SG2 V3 smart and side of PM05 (3rd). About to use PM05 and PM05 (3rd) with SG2V2/3, see next figure:...
  • Page 38: Lcd Display And Keypad

    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 is highly recommended to only perform logic changes using the SG2 Client software.
  • Page 39 Chapter 3 Program Tools Press the button: Enter Main Menu screen Under LADDER Mode, display the state of relays (I ⇔ Z ⇔ Q ⇔ X ⇔ Y ⇔ SEL+↑ ↓ M ⇔ N ⇔ T ⇔ C ⇔ R ⇔ G ⇔ A ⇔ AT ⇔ AQ) ⇔ Original Screen ↑...
  • Page 40: Lcd Display Main Menu

    Chapter 3 Program Tools 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.
  • Page 41 Move the Cursor to select Main Menu Confirm the selected Function Skip to Initial Screen ※SG2 can be modified, edited, cleared and read user program only when it is under STOP Mode. As the program is modified, SG2 will automatically backup it to FLASH.
  • Page 42 2. When the cursor is on Column 8, Press the button to automatically enter the function block and set the parameters(such as T/C)。 SEL+DEL Delete a Line of Instruction. SEL+ESC Display the number of the Lines and operation state of SG2 (RUN/STOP)。 SEL+↑/ ↓ Skip up/ down every 4-line program. SEL+OK Insert a space line Operation Sample: more detailed to see appendix A.
  • Page 43 Chapter 3 Program Tools ◎PARAMETER Under Ladder mode, press “SEL” key, function block display in sequence: T→C→R→G→AS→MD→PI→MX→AR→MU→T… Under FBD mode, Press “SEL” key, Block displays in sequence. RUN or STOP ◎ (1) RUN Mode (2) STOP Mode ↑ ↓ Move the cursor Execute the instruction, then back to main menu Back to main menu ◎DATA REGISTER...
  • Page 44 (1) CLEAR PROGRAM (Clear RAM, EEPROM 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 PM05 (3rd) program spare cartridge to SG2 (RAM) (1) ∼ (3) Now Press: ↑...
  • Page 45 Chapter 3 Program Tools Now Press: ↑ ↓ ← → Move the cursor Begin to edit. Move the cursor for ‘ID SET’ item and ‘V COMM SET’ item ‘SEL’ then ‘←/→’ 1. ID SET = 00~99 ; I/O NUMBER = 0~3 ‘SEL’...
  • Page 46 Chapter 3 Program Tools RTC Summer/Winter setting There are 2 fixed Summer/Winter, EUROPE and USA, 1 edit Summer/Winter in SG2. Edit rule: ①The last Sunday is defined as 0; ②Hour range: 1~22; ③Summer hour and Winter hour are the same.
  • Page 47 Chapter 3 Program Tools (6) ANALOG SET A 1=GAIN : 010 GAIN (0~999), default 10 OFFSET : +00 OFFSET (-50~+50), default 0 A 2=GAIN : 010 OFFSET : +00 A3~A8…Gain + Offset Now Press 1. Move downward the Cursor ↑ ↓ 2.
  • Page 48 Chapter 3 Program Tools A/B Class password Description (√:cannot use under password protected ) Menu A Class B Class LADDER √ √ FUN.BLOCK √ √ √ √ PARAMETER √ RUN/STOP √ DATA REGISTER √ CLEAR PROG. √ √ WRITE √ √...
  • Page 49: Chapter 4: Relay Ladder Logic Programming

    Timer 31(T01-T1F/t01-t1F) Inputs (I memory Type) The SG2 digital input points are designated I memory types. The number of digital I input 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 is 4 depending on SG2 H type model and V type model.
  • Page 50 Summer/Winter output Summer time turn ON, winter time turn OFF, used as normal auxiliary relay. AT01 flag Output ON when the first channel of SG2-4PT is error AT02 flag Output ON when the second channel of SG2-4PT is error AT03 flag...
  • Page 51 Chapter 4 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 N01 is being used as an output coil and will energize when input I03 turns on.
  • Page 52: Specialty Memory Types

    Chapter 4 Relay Ladder Logic Programming Specialty Memory Types General RESET PULSE N.O. N.C. Number output output output output contact contact Symbol (N.O./N.C.) Used in function block Expansion input coil 12(X01-X0C/x01-x0C) Expansion output coil 12(Y01-Y0C/y01-y0C) Differential (one shot) 31(R01-R1F/r01-r1F) Analog comparator 31(G01-G1F/g01-g1F) 31(H01-H1F) 2(P01-P02)
  • Page 53: Output Instructions

    Chapter 4 Relay Ladder Logic Programming Output Instructions Set Output Instruction (Latch) ( ) A set output instruction, or Latch, turns ON an output coil (Q) or an auxiliary contact (M) when the preceding input contact transitions from OFF to ON. Once the output is ON or set, it will remain ON until it is reset using the Reset output instruction.
  • Page 54: Analog Memory Type

    Chapter 4 Relay Ladder Logic Programming Pulse Output Instruction (Flip-Flop) ( 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.
  • Page 55: Timer Instruction

    The preset value of Timer could be a constant or other function current value. ※ The current value of T0E and T0F will be kept when SG2 on a loss of power if the “M-Keep” is active. ※ Timer Mode 0 (Internal Coil) Mode 0 Timer (Internal Coil) used as internal auxiliary coils.
  • Page 56 Chapter 4 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.
  • Page 57 Chapter 4 Relay Ladder Logic Programming Timer Mode 2 (ON-Delay with Reset) Mode 2 Timer is an ON-Delay with reset that will time up to a fixed preset value and stop timing when the current time is equal to the preset value. Additionally, the 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.
  • Page 58 Chapter 4 Relay Ladder Logic Programming Timer Mode 3 (OFF-Delay) Mode 3 Timer is an OFF-Delay with reset that will time up to a fixed preset value and stop timing when the current time is equal to the preset value. Additionally, the Timer current value will reset to zero when Timer is disabled. In the example below, the timer reset input is Input I01.Timer status bit T01 will be ON immediately when its rung is true.
  • Page 59 Chapter 4 Relay Ladder Logic Programming Timer Mode 4 (OFF-Delay) Mode 4 Timer is an OFF-Delay with reset that will time up to a fixed preset value and stop timing when the current time is equal to the preset value. Additionally, the Timer current value will reset to zero when Timer is disabled. In the example below, the timer reset input is Input I01.
  • Page 60 Chapter 4 Relay Ladder Logic Programming Timer Mode 5 (FLASH without reset) Mode 5 Timer is a Flash timer without reset that will time up to a fixed preset value 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.
  • Page 61 Chapter 4 Relay Ladder Logic Programming Timer Mode 6 (FLASH with Reset) Mode 6 Timer is a Flash timer with reset that will time up to a fixed preset value 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 I01.
  • Page 62 Chapter 4 Relay Ladder Logic Programming 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.
  • Page 63: Counter Instructions

    Chapter 4 Relay Ladder Logic Programming 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 has 6 parameters for proper configuration.
  • Page 64 Chapter 4 Relay Ladder Logic Programming 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.
  • Page 65 Chapter 4 Relay Ladder Logic Programming Counter Mode 1 (Fixed Count, Non-Retentive) Mode 1 Counter will count up to a fixed preset value and stop counting when the current count is equal to the preset value, 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.
  • Page 66 Chapter 4 Relay Ladder Logic Programming Counter Mode 2 (Continuous Count, Non-Retentive) Mode 2 Counter will count up to a fixed preset value and continue counting after the preset value, 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.
  • Page 67 Chapter 4 Relay Ladder Logic Programming Counter Mode 3 (Fixed Count, Retentive) Mode 3 Counter operation is similar to Mode 1 except its current count value is retentive when Counter powers down. So, 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 0 if it’s configured as down counter.
  • Page 68 Chapter 4 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 configured as down Counter.
  • Page 69 Chapter 4 Relay Ladder Logic Programming 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 is less than its preset value.
  • Page 70 Chapter 4 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. 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 is less than its preset value.
  • Page 71 Chapter 4 Relay Ladder Logic Programming High Speed Counte s (DC sion On 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.
  • Page 72 Chapter 4 Relay Ladder Logic Programming High Speed Counter Mode 8 (DC powered versions only) The Mode 8 High Speed Counter can use either input Symbol Description terminals I01 or I02 for forward up-counting to 1 Counting Mode (8) high speed counting ①...
  • Page 73: Real Time Clock (Rtc) Instructions

    Chapter 4 Relay Ladder Logic Programming Real Time Clock (RTC) Instructions The SG2 smart relay includes a total of 31 separate RTC instructions that can be used throughout a program. Each RTC instruction has a choice of 5 operation modes, and has 10 parameters for proper configuration.
  • Page 74 Chapter 4 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 (i.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.
  • Page 75 Chapter 4 Relay Ladder Logic Programming Example 4: Example 5: Example 6: 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.
  • Page 76 Chapter 4 Relay Ladder Logic Programming Example 2: Example 3: Example 4: 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.
  • Page 77 Chapter 4 Relay Ladder Logic Programming Example 1: Example 2: Example 3:...
  • Page 78 Chapter 4 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.
  • Page 79 Chapter 4 Relay Ladder Logic Programming Example 2: preset second > 30s The present time will change to be 8:01:00 when it achieves 8:00:40, and RTC status bit R01 turns ON. Then ※ time is gonging on and R01 turns OFF. This means that the RTC status bit will be ON for one pulse.
  • Page 80: Comparator Instructions

    Chapter 4 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.
  • Page 81 Chapter 4 Relay Ladder Logic Programming Analog comparator Mode 1~7 − ≤ ≤ ④ ④ ⑤ (1) Analog Comparator mode 1: ≤ ⑤ (2) Analog Comparator mode 2: ≥ ⑤ (3) Analog Comparator mode 3: ≥ ④ Ax ⑤ (4) Analog Comparator mode 4: ≤...
  • Page 82 Chapter 4 Relay Ladder Logic Programming 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).
  • Page 83: Hmi Display Instructions

    Chapter 4 Relay Ladder Logic Programming 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 16×4...
  • Page 84 Chapter 4 Relay Ladder Logic Programming The Chinese (fixed) and Chinese (edit) are shown below. The total number of Chinese (edit) is 60. 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.
  • Page 85 Chapter 4 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. 4. HMI editing state, press SEL again under status 3 Keypad instruction Abrogate operation Into status 3 if there is edited content at status 1 or 2 Into status 4...
  • Page 86: Pwm Output Instruction (Dc Transistor Output Models Only)

    Chapter 4 Relay Ladder Logic Programming PWM Output Instruction (DC Transistor Output Models Only) The transistor output model smart relay includes the capability to provide a PWM (Pulse Width Modulation) output on terminal Q01 and Q02. The PWM instruction is 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.
  • Page 87 Chapter 4 Relay Ladder Logic Programming The state of M01, M02 and M03 are 010, so PWM output pulse is 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 P01 is running.
  • Page 88 Chapter 4 Relay Ladder Logic Programming In the example below, 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 C01 is bigger than 1000. PLSY stops outputting pulse after it has output 100 pulses.
  • Page 89: Data Link/Remote I/O Instruction (Sg2-20Vxxx Model Only)

    Data 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.
  • Page 90 Chapter 4 Relay Ladder Logic Programming Symbol Description Type of points Range Setting mode(1,2) 1:sending 2:receiving Inputs I01~I0C/i01~i0C ① Number of send/receive points (1~8) Outputs Q01~Q08/q01~q08 ② Type of send/receive points Auxiliary coil M01~M3F/m01~m3F ③ Send/Receive W Table list location Expansion inputs X01~X0C/x01~x0C ④...
  • Page 91 Chapter 4 Relay Ladder Logic Programming Remote I/O Up to 2 additional SG2 units can be configured as Remote I/O nodes, and linked to one master smart relay. Set to slaver Set to master Remote I/O disable Set to master...
  • Page 92: Shift (Shift Output)

    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.
  • Page 93: Aq (Analog Output)

    Chapter 4 Relay Ladder Logic Programming AQ (Analog Output) The default output mode of AQ is 0-10V voltage, the corresponding value of AQ is 0~1000. It also can be set as 0-20mA current, the corresponding value of AQ is 0~500. The output mode of AQ is set by the current value of DRD0~DRD3 as shown below.
  • Page 94: As (Add-Subtract)

    Chapter 4 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.
  • Page 95: Md (Mul-Div)

    Chapter 4 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.
  • Page 96: Pid (Proportion- Integral- Differential)

    Chapter 4 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.
  • Page 97: Mx (Multiplexer)

    Chapter 4 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.
  • Page 98: Ar (Analog-Ramp)

    Chapter 4 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. The 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.
  • Page 99 Chapter 4 Relay Ladder Logic Programming Timing diagram for AR The example below shows how to configure AR function.
  • Page 100: Dr (Data Register)

    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.
  • Page 101 Chapter 4 Relay Ladder Logic Programming The data registers from DR65 to DRF0 will be kept when the smart powers down. The last 40 DR that from DRC9 to DRF0 are special data register as shown below. The content of DRC9 is PLSY’S total number of pulse, and DRD0~DRD3 are output mode registers of AQ01~AQ04, and DRCA~ DRCF, DRD4~ DRF0 are reserved.
  • Page 102: Mu (Modbus) (Only V Type Model)

    Chapter 4 Relay Ladder Logic Programming MU (MODBUS) (only V type model) MODBUS function carries out Modbus RTU master communication at RS485 port. There are 15 MODBUS functions: MU01~MU0F. Remote IO and Date Link are precedence than MODBUS. MODBUS is executed when the system setting is N (No Remote IO) and ID isn’t 0.
  • Page 103 Chapter 4 Relay Ladder Logic Programming The example below shows how to configure DR function. Examples: mode display Address is constant: 0003, Receive: Read Length ≡ 1, 01 03 02 data1 data2 CRC16, Send: 01 03 00 03 00 01 CRC16; register data storage: DRE0= (data1<<8) | data2,...
  • Page 104 Chapter 4 Relay Ladder Logic Programming Receive: Address: 0003,Length ≡ 1, Write 01 10 00 03 00 01 CRC16; data storage: DRE0=1234(hex: 04D2), register Send: 01 10 00 03 00 01 02 04 D2 CRC16; Receive: Address: DR03=0001, 01 10 00 01 00 02 CRC16; Length: DR04=0002,...
  • Page 105: Chapter 5: Function Block Diagram Programming

    Analog temperature input 4(AT01~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.
  • Page 106: Hmi

    Chapter 5 FBD Block Diagram Programming PWM function block (only transistor output version) PWM mode The PWM output terminal Q01 or Q02 can output 8 PWM waveforms.
  • Page 107: Data Link Function Block

    Chapter 5 FBD Block Diagram Programming PLSY mode he PLSY output terminal Q01 can output preset number of pulse whose frequency is variable from 1 to 1000 Hz. Data Link function block SHIFT function block Timing diagram...
  • Page 108: Logic Block Instructions

    Chapter 5 FBD Block Diagram Programming Logic Block Instructions Logic function block source: block Number(byte) Total block 6000 AND(EDGE) NAND NAND(EDGE) PLUSE BOOLEAN AND Logic Diagram FBD: LADDER: I01 And I02 And I03 Note: The input terminal is NOP which is equivalent to ‘Hi’...
  • Page 109: Nand Logic Diagram

    Chapter 5 FBD Block Diagram Programming NAND Logic Diagram FBD: LADDER: Not(I01 And I02 And I03) Note: The input terminal is NOP which is equivalent to ‘Hi’ AND (EDGE) Logic Diagram FBD: LADDER: Not(I01 And I02 And I03) And D Note: The input terminal is NOP which is equivalent to ‘‘Hi’...
  • Page 110: Nor Logic Diagram

    Chapter 5 FBD Block Diagram Programming OR Logic Diagram FBD: LADDER: Not ( I01 or I02 or I03 ) Note: The input terminal is NOP which is equivalent to ‘‘Lo’ XOR Logic Diagram FBD: LADDER: I01 XOR I02 Note: The input terminal is NOP which is equivalent to ‘Lo’ SR Logic Diagram FBD: LADDER:...
  • Page 111: Pulse Logic Diagram

    Chapter 5 FBD Block Diagram Programming Pulse Logic Diagram FBD: LADDER: Note: The input terminal is NOP which is equivalent to ‘‘Lo’ BOOLEAN Logic Diagram FBD: LADDER: Note: The input terminal is NOP which is equivalent to ‘‘Lo” Description: The relationship between input and real table is wn below.
  • Page 112: Function Block

    Chapter 5 FBD Block Diagram Programming Function Block Function Block include s three kinds of function: special f unction, adj ust-controlling function and communication function. Function type and number are shown in the table below. Function type number Timer Counter special function Analog Comparator adjust-controlling function...
  • Page 113: Timer Function Block

    Chapter 5 FBD Block Diagram Programming Function displaying : Timer Function Block T0E and T0F keep th eir current value after a l oss of power to the smart relay if “M p” is active. But the other imers’ current value is 0. (1) Timer mode 0 (Internal coil Mode) FBD display Parameter display...
  • Page 114 Chapter 5 FBD Block Diagram Programming (4) Timer mode 3 (OFF-Delay A Mode) FBD display Parameter display Program display Enable Input → Reset → Timing Parameter → (5) Timer mode 4(OFF-Delay B Mode) FBD display Parameter display Program display Enable Input → Reset →...
  • Page 115: Common Counter Function Block

    Chapter 5 FBD Block Diagram Programming Commo n Counter function block ) Counter Mode 0 FBD display Parameter display Program display Counti ng Inpu → (2) Counter Mode 1 FBD display Parameter display Program display Counting Inpu → Up/Down C ounting →...
  • Page 116: High Speed Counter Function Block

    Chapter 5 FBD Block Diagram Programming (6) Counter Mode 5 FBD display Parameter display Program display Counting Input → own Counting → Reset → Counting Parameter → Note: The “>”means the current value appeared will be greater than present value. (7) Counter Mode 6 FBD display Parameter display...
  • Page 117: Rtc Comparator Function Block

    Chapter 5 FBD Block Diagram Programming RTC Comparator Function Block ) RTC Mode 0(Internal C oil) D display Parameter display Program display Enable Inpu t → (2) RTC Mode 1(Daily) display Param eter display Progr am display Enable Input → RTC Parameter →...
  • Page 118: Analog Comparator Function Block

    Chapter 5 FBD Block Diagram Programming Analog Comparator Function Block (1) Analog Comparison Mode 0 (Internal coil) D display rameter display rogram display nable Input → (2) Analog Comparison Mode 1 BD display arameter display rogram display Enable I nput → nalog Input →...
  • Page 119: As (Add-Sub) Function Block

    Chapter 5 FBD Block Diagram Programming (6) Analog Comparison Mode 5 FBD display Parameter display Program display Enable I nput → nalog Input → Reference → (7) Analog Comparison Mode 6 FBD display Parameter display Program display Enable Input → Analog Input →...
  • Page 120: Pid (Proportion- Integral- Differential) Function Block

    Chapter 5 FBD Block Diagram Programming PID (Proportion- Integral- Differential) function block FBD display Parameter display Program display able Input → SEL+←/→ Reference → MX (Multiplexer) function block FBD display Parameter display Program display Enable Input → election input1 → Selection inpu 2 →...
  • Page 121: Mu (Modbus) Function Block

    Chapter 5 FBD Block Diagram Programming MU (MODBUS) function block Mode1 FBD display Parameter display Program display Enable I nput → Reference → Mode2 FBD display Parameter display Program display Enable Input → Reference → Mode3 FBD display Parameter display Program display Enable Input →...
  • Page 122: Chapter 6 Hardware Specification

    Chapter 6 Hardware Specification Chapter 6: Hardware Specification Normal Specification Content Specification Mode of user program Ladder & FBD Operation temperature -4° to 131°F (-20° to 55°C) Storage temperature -40° to 158°F (-40° to 70°C) Environmental Maximum Humidity 90% (Relative, non-condensing) Operation Gas No corrosive gases 0.075mm amplitude, 1.0g acceleration...
  • Page 123: Product Specifications

    Chapter 6 Hardware Specification Product Specifications Input Power 1KHz Input Output Analog High MODE expansion point point input keypad speed LINK 100~ input 240V Expansion models 10HR-A relay ◎ ◎ ◎ ◎ 12HR-D relay ◎ ◎ ◎ ◎ ◎ 12HT-D 4 transistor ◎...
  • Page 124: Power Specifications

    Chapter 6 Hardware Specification 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...
  • Page 125: 12V Dc Model Specifications

    Chapter 6 Hardware Specification 12V DC model Specifications content 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 10 ms / 10 times (IEC 61131-2) 1ms/ 10 times (IEC 61131-2)
  • Page 126: Power Circuitry Diagram

    Chapter 6 Hardware Specification Power circuitry diagram AC 10/20 points DC 12V,DC 24V Mainframe, expansion and communication...
  • Page 127: Input Specifications

    Chapter 6 Hardware Specification Input Specifications 100~240V AC model content SG2-10HR-A SG2-10KR-A SG2-20HR-A & SG2-20KR-A SG2-10CR-A Input circuitry number digital input digital input Signal current AC 110V AC 220V AC 110V AC 220V input 0.66 mA 1.3 mA 0.55mA 1.2 mA ON current >...
  • Page 128: 24V Dc, 12I/O Model

    Chapter 6 Hardware Specification 24V DC, 12I/O model content SG2-12HR-D& SG2-12KR-D & SG2-12CR-D SG2-12HT-D&SG2-12KT-D&SG2-12CT-D Normal digital input High speed input Analog input used Analog input as normal digital input Input I03~I06 I01,I02 I07,I08 circuitry number Signal 3.2mA/24V DC 3.2mA/24V DC 0.63mA/24V...
  • Page 129: 24V Dc, 20I/O Model

    Chapter 6 Hardware Specification 24V DC, 20I/O model content SG2-20HR-D& SG2-20KR-D SG2-20HT-D& SG2-20KT-D Normal digital input High speed input Analog input used Analog input as normal digital input Input I03~I08 I01,I02 I09,I0A,I0B,I0C circuitry number Signal 3.1mA/24V DC 3.1mA/24V DC 0.63mA/24V <0.17 mA/10V...
  • Page 130: Output Specifications

    Chapter 6 Hardware Specification Output Specifications content relay transistor Load Load output circuitry Extern power Extern power Extern power 23.9~24.1V Less than AC265,DC30V circuitry isolation isolation Photo couplers isolation mechanism Maximal Resistive 8A/point 0.3A/point Load Inductive - - light 200W 10W/DC 24V Open drain current <10uA...
  • Page 131: Inductance Load

    The life is more than 100K times if the current is less than 2A. Power mode Mode Input/Output DC +12V AC 100~240V / DC +12V DC +24V AC 100~240V / DC +24V Accessory MODE description PM05(3rd) memory cartridge SG2 Client SG2 program software...
  • Page 132: Size Diagram Of Sg2

    Chapter 6 Hardware Specification Size diagram of SG2 10/12 points 20 points I3 I4 I5 I6 A2 A3 DC 24V Input 12 x DC(A1...A4=0~10V) SG2-20HR-D Output 8 x Relay / 8A...
  • Page 133: Chapter 7: 20 Pointe V Type High-Powered Models Instruction

    Detail instruction Communication parameter 1. About SG2 communication parameter SG2 provides different communication parameter to satisfy your needs. And there are two ways to set that parameter. ●. Setting communication parameter via SG2 Client. Insert the plastic connector end of the programming cable into the SG2 smart relay. Connect the opposite end of the cable to an RS232 serial port on the computer.
  • Page 134 Data 8bit, No Parity, 1 Stop bit. 4800 bps 9600 bps 19200 bps Low bit 38400 bps 57600 bps 115200 bps 2. SG2 RS485 port default communication parameter as table show below: Baud rate 38400bps Data bit Stop bit Parity Frame length maximum 128 bytes ※...
  • Page 135: Remote Io Function

    Function Description: Up to 2 additional SG2 units can be configured 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.
  • Page 136: Io Link Function

    4. L1 of other 7 SG2 be set as fellow illustration. 5. Run program.Let I01 of the SG2 which’s ID = 7 on. And M01~M08 will be on state. 6. You will find M01~M08 of other 7 SG2 will be controlled by the M01~M08 of the SG2 which’s ID=7.
  • Page 137: Modbus Rtu Master

    Chapter 7: 20 Points V type Models Instruction Modbus RTU master MODBUS function carries out Modbus RTU master communication at RS485 port. There are 15 MODBUS functions: MU01~MU0F. Remote IO and Date Link are precedence than MODBUS. MODBUS is executed when the system setting is N Remote IO and ID isn’t 0.
  • Page 138 Chapter 7: 20 Points V type Models Instruction Examples: mode display Address is constant: 0003, Receive: Length ≡ 1, Read 01 03 02 data1 data2 CRC16, Send: 01 03 00 03 00 01 CRC16; register data storage: DRE0= (data1<<8) | data2, Address is DR03=0001, Receive: 01 03 04 data1 Length is DR04=0002,...
  • Page 139: Slaver Via Modbus Rtu Protocol

    Slaver via Modbus RTU protocol 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.
  • Page 140: Sg2 Modbus Protocol

    Chapter 7: 20 Points V type Models Instruction 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.
  • Page 141: Chapter 8: Expansion Module

    Communication module: MBUS, DNET, PBUS, TCP/IP SG2 V type, H type and K type all can connect expansion module. And the maximal expansion team is 3 Digital modes, 2 Analog Output modes, 2 Analog Input modules (each of 4PT and 4AI) and 1 Communication module. The sequence of these expansion modules connect with SG2 is digital, analog and communication.
  • Page 142 V3.0: Digital IO version is V3.0 ※ The method of all expansion modules connecting with SG2 is the same as shown above. ※ The number of digital module must be accord with IO number set if there are other modules after digital module,.
  • Page 143: Digital Io Module

    Chapter 8: Expansion Mode 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) SG2 Client software...
  • Page 144 Chapter 8: Expansion Mode Expansion display State Installation and Wiring E type of expansion module: SG2-8ER-D/8ET-D, SG2-8ER-A/8ER-24A...
  • Page 145 All the expansion modules’ size is the same as shown below. ※ Unit:mm (1inch=25.4mm) X1 X2 INPUT 4 × AC AC 100~240V SG2-8ER-A Output 4 x Relay / 8A Installation All the expansion modules’ installation method is the same as shown below. ※ X1 X2 Input 4 ×...
  • Page 146 Chapter 8: Expansion Mode 0.14...1.5 0.14...0.75 0.14...2.5 0.14...2.5 0.14...1.5 26...16 26...18 26...14 26...14 26...16 (0.14in) lb-in Please do power down before maintaining equipment. ※...
  • Page 147 Chapter 8: Expansion Mode Wiring 1) 24V DC power input 2) 24V/100~240V AC power input 3) relay output S G 2-8 E R -A O utp ut 4 x R ela y / 8 A...
  • Page 148 ④-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.
  • Page 149: Analog Module

    Analog module The maximal assembled of Analog expansion module to SG2 is 2 2AO, 1 4PT and 1 4AI. The nearer 2AO to SG2 corresponds with AQ01~AQ02, and the farer 2AO to SG2 corresponds with AQ03~AQ04. The 4 input of 4AI corresponds with A05~A08.
  • Page 150 0~500 Definition ±2.5% ±2.5% 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...
  • Page 151 Chapter 8: Expansion Mode...
  • Page 152: Communication Module

    SG2-MBUS module makes SG2, which doesn’t have communication ability, to communicate with other controller as master/slave mode. SG2-MBUS works as RTU slave node, responses RTU master node’s request, but it can’t communicate initiatively. SG2-MBUS makes the scan period of SG2 become long, it is different from difference communication order.
  • Page 153 SG2-MBUS uses 24V DC provide for oneself Communication set The SG2-MBUS communication baud rate and format can be set by 8 bits switch (DIP) SW1. Baud rate SW1-3~SW1-1 set communication baud rate is 57.6K, 38.4K, 19.2K, 9.6K, 4.8K as shown below.
  • Page 154 The error LED light COMM. data error: Make sure flick quickly(5Hz) Verifying bit error, connection between Length of data respond COMM. error, CRC error Mode credible, describe environment interfere. More information to see SG2-MBUS user manual. ※...
  • Page 155: Devicenet Comm. Module

    DeviceNet COMM. Module Summarize SG2-DNET makes SG2, which doesn’t have the ability of DeviceNet, to work in DeviceNet network. At DeviceNet side, SG2-DNET is a GROUP 2 ONLY equipment, slave equipment in this network. At PLC side, SG2-DNET communicate with SG2 through SG2 COMM. Port, it is point-to-point communication equipment.
  • Page 156 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 SG2-DNET oneself mode. And the baud rate of communication can be set by SW1-7 and SW1-8, the baud rate set must be the same as equipment network.
  • Page 157 Chapter 8: Expansion Mode LED state display SG2-DNET has two LED lights, watching itself and COMM. Bus’ state. 1) mode state LED (MS) Double color LED (green and red) indicates SG2-DNET state. Module status LED Explanation Correct or prevent fault...
  • Page 158: Profibus

    ProfiBus Summarize SG2-PBUS makes SG2, which can’t work in ProfiBus DP network, to work in ProfiBus DP network. At ProfiBus DP side, SG2-PBUS mode is a gateway, a slave node in network. At PLC side, SG2-PBUS communicate with SG2 through SG2 COMM. Port, it is point-to-point communication equipment.
  • Page 159 Baud rate adapt oneself and address set After SG2-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).
  • Page 160 Chapter 8: Expansion Mode LED state display SG2-PBUS mode 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 State of LED Description Green ON...
  • Page 161: Appendix: Keypad Programming

    Appendix: Keypad Programming Appendix: Keypad Programming Appendix A: Keypad programming in Ladder mode Operation Sample: 6 7 8 Column Line 1 > L A D D E R F U N . B L O C K P A R A M E T E R R U N Procedure 1: 6 7 8...
  • Page 162 Appendix: Keypad Programming Procedure 7 : 6 7 8 Column Line 1 q 0 4 Press ‘←’ 2 times (Press ‘SEL’ + ‘← →’ to move the cursor to the position Required revision. Automatically Link Procedure 7 : 6 7 8 Column Line 1 q 0 4 ⎯...
  • Page 163 Appendix: Keypad Programming Procedure 12 : 6 7 8 Column Line 1 q 0 4 ⎯ M 0 1 ⎯ I 0 3 ⎯ ( Q 0 1 Press ‘→’ 3 times (move the cursor to column 2) Note: never press ‘SEL’ before hand Change Wire ‘...
  • Page 164 Press ‘DEL’ ┴ r 0 3 ⎯ ⎯ ⎯ ⎯ ⎯ (to delete the element C07 the cursor locating) Display the present Line the cursor locating and operation state of SG2. Procedure : 6 7 8 Column Line 1 q 0 4 ┬ M 0 1 ⎯ I 0 3 ⎯ ( Q 0 1 Press ‘SEL+ESC’...
  • Page 165: Appendix B: Keypad Programming In Ladder Function Block

    2 > F U N . B L O C K P A R A M E T E R R U N Present action area The present value will appear when SG2 is under ‘RUN’ mode. Procedure 1: 6 7 8 Column Press ‘OK’...
  • Page 166 Appendix: Keypad Programming 6 7 8 Column ┌ 1 ┐ Line 1 Never press ‘→’ to move to the 1 ┤ │ digital position. (If T02 is required to be changed, │ 0 0 . 0 0 S e c ├ T 0 1 Press ‘↑’/‘↓’...
  • Page 167 Appendix: Keypad Programming As the present value of the timer, counter, analog input (A01-A08) and analog gain value (V01-V08) is set as the preset value of them. Next to the step 2-2, to execute the following operation: Step2-3A: 6 7 8 column Press ‘SEL’...
  • Page 168 Appendix: Keypad Programming Step 2-3I: 6 7 8 column ┌ 1 ┐ Press ‘SEL’ line 1 1 ┤ │ │ M D 0 1 S e c ├ T 0 1 ┴ ┘ Step 2-3J: 6 7 8 column Press ‘SEL’ line 1 ┌...
  • Page 169 Appendix: Keypad Programming Procedure 2-8: 6 7 8 Column Press ‘SEL’ Line 1 ┌ 1 ┐ 1 ┤ │ (begin to edit data) │ 3 3 . 3 3 S e c ├ T 0 1 ┴ ┘ Procedure 2-9: 6 7 8 Column Press ‘↑’...
  • Page 170 Appendix: Keypad Programming ② Edit action program and preset the action relay Procedure 2-16: 6 7 8 Column Press ‘‘→’’ 2 times, Press ‘SEL’ Line 1 ┌ 4 ┐ 2 ┤ │ (Begin to modify ) │ 3 3 . 3 3 S e c ├ T 0 1 4 L o w ┴...
  • Page 171 Appendix: Keypad Programming Procedure 2-20: 6 7 8 Column Press ‘OK’ Line 1 ┌ 4 ┐ 2 ┤ │ │ 3 3 . 3 3 S e c ├ T 0 1 (save the input data) 4 M 0 4 ┴ ┘...
  • Page 172 Appendix: Keypad Programming Step 2-26: 6 7 8 column Press ‘OK’ line 1 ┌ 1 ┐ │ A 0 1 │ │ ├ G 0 1 Save the present data T 0 2 ┴ 0 0 . 0 0 V ┘...
  • Page 173 Appendix: Keypad Programming Change Function Block Category: 6 7 8 Column ┌ 4 ┐ Line 1 2 ┤ │ │ 3 3 . 3 3 S e c ├ T 0 1 4 M 0 4 ┴ ┘ Move the cursor to change to T, C, R, G, H, L, P, S, AS, MD, PI, MX, AR Step 1: 6 7 8 Column...
  • Page 174 Appendix: Keypad Programming Step 8: 6 7 8 Column ┌ ┐ Press ‘SEL’ Line 1 │ 0 0 0 0 0 ├ N o p │ 0 0 0 0 0 ├ A S 0 1 ┴ 0 0 0 0 0 ┘...

Table of Contents

Save PDF