TECO SG2 Series User manual

I
T
able
of
Contents
Chapter 1: Getting Started 1
ExaminationbeforeInstallation 2
EnvironmentalPrecautions 2
SG2 Model Identification 3
QuickStartSetup 4
Chapter 2: Installation 10
GeneralSpecifications 10
Product Specifications 12
Mounting 13
Wiring 15
Chapter 3: ProgramTools 18
PCProgrammingSoftware“SG2Client” 18
MemoryCartridge 26
LCDDisplayandKeypad 27
Chapter 4: Relay Ladder Logic Programming 44
CommonMemoryTypes 44
SpecialtyMemoryTypes 46
OutputInstructions 47
Counter Instructions 49
High Speed Counters (DCVersion Only) 55
TimerInstructions 57
RealTimeClock(RTC)Instructions 65
ComparatorInstructions 70
HMIDisplayInstructions 72
PWM Output Instruction (DCTransistor Output Models Only) 74
Data Link/Remote I/O Instruction (SG2-20Vxx Models Only) 75
Chapter 5: Function Block Diagram Programming 77
CoilBlockInstruction 77
PWMFunctionBlock 78
SHIFTFunctionBlock 79
Logic Block Instructions 80
AND Logic Block 80
AND (Edge) Logic Block 80
NAND Logic Block 81
NAND (Edge) Logic Block 81
OR Logic 81

II
NOR Logic 81
XOR Logic 82
SR Logic Block 82
NOT Logic Block 82
Pulse Logic Block 82
FunctionBlock 83
Common Counter Function Block 83
High Speed Counter Function Block 84
TimerFunctionBlock 85
RTCFunctionBlock 86
AnalogcomparatorFunctionBlock 87
Appendix: Application Illustration 89

Chapter 1: Getting Started 1
Chapter
1:
Getting
Started
The SG2 tiny smart Relay is an electronic device. For safety reasons, please carefully read and
follow the paragraphs with "WARNING" or "CAUTION" symbols. They are important safety
precautions to be aware of while transporting, installing, operating, or examining the SG2
Controller.
W
ARNING:
Personal injury
may
result
from
improper
operation.
CAUTION:
The
SG2 smart relay
may
be
damaged
by
improper
operation.
Precaution for Installation
Compliance with
the
installation
instructions
and
the
user
manual is
absolutely
necessar
y
.
Failure
to
comply
could lead
to
improper
operation,
equipment
damage
or in
extreme
cases
even
death,
serious
bodily
injury
or
considerable
damage
to
property
.
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.
Always
switch off
power
before
you wire
,
connect, install
,
or
remove
any
module.
The
wiring
for
the
SG2
smart relay is
open
and
exposed.
For
the
open-board
models, all electrical
Never
install
the
product
in
an
environment
beyond
the
limits
specified
in
this
user
manual
such
as
high
or Wiring
Improper
wiring
and
installation
could
lead
to
death,
serious
bodily injury
or
considerable
damage
to
prop
The
SG2 smart relay
should
only
be
installed
and
wired
by
properly
experienced
and
certified
personnel.
Make
sure
the
wiring
of
the
SG2 smart relay
meets
all
applicable
regulations
and
codes
including
local
and
Be
sure
to
properly
size
cables
for
the
required
current
rating.
Always
separate
AC
wiring,
DC
wiring
with
high-frequency
switching
cycles,
and
low-voltage
signal
wiring.
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.
t
emperature,
humidity
,
dust,
corrosive
gas,
vibration,
etc.
Precaution f
erty
.
national
standards
and
codes.

Chapter 1: Getting Started 2
Precaution for Operation
T
o
insure
safety with the
application
of
the
SG2 smart relay
,
complete
functional
and
safety
testing
must
be
con
When
the
power is
on,
never
contact
the
terminals,
exposed
conductors
or electrical components.
Failure
to
c
It
is
strongly
recommended
to
add
safety
protection
such
as
an
emergency
stop
and
external
interlock
cir
cuit
in
Examination before Installation
and examined before shipment. Please carry out the
ered.
e
SG2 smart relay
to
the
Contact
ducted.
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.
omply
could
lead
to
improper
operation,
equipment
damage
or in
extreme
cases
even
death,
serious
bodily
injury
or
considerable
damage
to
property
.
case
the
SG2 smart relay
operation
must
be
shut
down
immediately
.
Every SG2 smart relay has been fully tested
following examination procedures after unpacking your SG2 smart relay.
•
Check
to
see if
the
model
number
of
the
SG2
matches
the
model
number
that
you
ord
•
Check
to
see
whether
any
damage
occurred
to
the
SG2
during
shipment.
Do
not
connect
th
power supply if
there
is
any
sign
of
damage.
if you find any abnormal conditions as mentioned above.
Environmental Precautions
s very important. It relates directly to the functionality
unt
the
unit
vertically
:
32°F
-
131°F
(0°C
-
55°C)
nment
gas
e
gases
and
liquids
m
contacting
the
SG2 smart relay
mounting
device
should
be
The installation site of the SG2 smart relay i
and the life span of your SG2. Please carefully choose an installation site that meets the following
requirements:
•
Mo
•
Environment
temperature
•
A
void
placing
SG2
close
to
any
heating
equipment
•
A
void
dripping
water
,
condensation,
or
humid
enviro
•
A
void
direct
sunlight
•
A
void
oil,
grease,
and
•
A
void
contact
with
corrosiv
•
Prevent
foreign
dust,
flecks,
or
metal
scraps
fro
•
A
void
electric-magnetic
inter
ference
(soldering
or
power
machiner
y)
•
A
void
excessive
vibration; if
vibration
cannot
be
avoided,
an
anti-rattle
installed
to
reduce
vibration.

Chapter 1: Getting Started 3
SG2 Model Identification
SG2 - 20 H R - A
Input Power:
D = 24V DC Powered
12D = 12V DC Powered
A = 100~240V AC Powered
24A = 24V AC Powered
I/O Count:
8 = 8 points (expansion modules)
10 = 10 I/O points
12 = 12 I/O points
20 = 20 I/O points
Form Factor:
H = Encased / LCD & Keypad
V = Encased /LCD, Keypad & RS-485 Communication
K = Encased /Blind (no LCD & Keypad)
C = Bareboard
E = Expansion
OutputType:
R = Relay
T = Transistor
Controller Type

Quick Start Setup 4
Quick
Start
Setup
This section is a simple 5-steps guide to connecting, programming and operating your
new SG2 smart relay. This is not intended to be the complete instructions for
programming and installation of your system. Many steps refer to other sections in the
manual for more detailed information.
1. Install SG2 Client Software
Install the SG2 Client Software from CD or from the free internet download at
www.taian-technology.com
2. Connect Power to SG2 smart relay
Connect power to the Smart Relay using the below wiring diagrams for AC or DC supply
for the applicable models. See “Chapter 2: Installation” for complete wiring and installation
instructions
AC ..V
NL
DC ..V
+ -

Quick Start Setup 5
3. 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 RS232C serial port on the computer.
4. Establish Communication
a. Open the SG2 Client software and select “New Ladder Document” as shown below.
b. Select “Operation/Link Com Port…” as shown

Quick Start Setup 6
c. 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 as shown below.
5. 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 M1 and press the OK button. See Chapter 4: Ladder Programming
instructions for complete instruction set definitions.
Note: If the ladder toolbar is not visible at the bottom of the screen, select
View>Ladder Toolbar from the menu to enable.

Quick Start Setup 7
b. Use the “A” key on your keyboard (or the “A” icon from the ladder toolbar) to draw
the horizontal circuit line from the M contact to the right most cell, as shown below.
c. Select the “Q” coil icon from the ladder toolbar and drop it on the right most cells.
Select Q1 from the dialog and press OK as shown below. See Chapter 4: Ladder
Programming instructions for complete instruction set definitions.
™

Quick Start Setup 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.
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.

Quick Start Setup 9
f. From the Input Status dialog, click on M1 to activate the contact M1 which will turn
ON the Output Q1, as shown below. The highlighted circuit will show active and
the first Output (Q1) on the connected smart relay will be ON. See Chapter 3:
Programming Tools for more detailed software information.

Chapter 2 Installation 10
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
Input Power Voltage Range
24V DC Models: 20.4-28.8V;
12V DC Models: 10.4~14.4V
AC Models: 85-265V;
24V AC Models: 20.4-28.8V
Power Consumption
24VDC: 12-point : 90mA ;
20-point: 150mA ;
12VDC: 12-point: 150mA ;
20-point: 240mA ;
100-240VAC: 90mA ;
24VAC: 290mA ;
Wire Size (all terminals) 26 to 14 AWG
Programming
Programming languages Ladder/Function Block Diagram
Program Memory 200 Lines or 99 Function Blocks
Programming storage media Flash
Execution Speed 10ms/cycle
LCD Display 4 lines x 12 characters
T
i
mers
Maximum Number 15
Timing ranges 0.01s–9999min
Counters
Maximum Number 15
Highest count 999999
Resolution 1
R
TC
(Real
T
ime
Clock)
Maximum Number 15
Resolution 1min
Time span available week, year, month, day, hour, min
Compare Instructions (Analog, Timer, or Counter Values)
Maximum Number 15
Compare versus other inputs Analog, Timer, Counter, or Numeric values
Environmental
Enclosure Type IP20
Maximum Vibration 1G according to IEC60068-2-6
Operating Temperature Range 32° to 131°F (0° to 55°C)
Storage Temperature Range -40° to 158°F (-40° to 70°C)
Maximum Humidity 90% (Relative, non-condensing)
Vibration 0.075mm amplitude, 1.0g acceleration
Weight 8-point:190g
10,12-point: 230g (C type: 160g)
20-point: 345g (C type: 250g)
Agency Approvals cUL , CE, UL

Chapter 2 Installation 11
Discrete
Inputs
Current consumption
3.2mA @24VDC
4mA @12VDC
1.3mA @100-240VAC
3.3mA @24VAC
Input Signal ”OFF” Threshold
24VDC: < 5VDC;
12VDC: < 2.5VDC
100-240VAC : < 40VAC
24VAC: <6VAC
Input Signal ”ON” Threshold
24VDC: > 15VDC;
12VDC: > 7.5VDC
100-240VAC : > 79VAC
24VAC: >14VAC
Input On delay 24, 12VDC: 5ms
240VAC: 25ms; 120VAC: 50ms
24VAC: 5ms
Input Off Delay 24, 12VDC: 3ms
240VAC: 90ms; 120VAC: 50ms
24VAC: 3ms
Transistor device compatibility PNP, 3-wire device only
High Speed Input frequency 1kHz
Standard Input frequency < 40 Hz
Required protection Inverse voltage protection required
Analog
Inputs
Resolution Basic unit: 10 bit
Expansion unit: 12bit
Voltage Range acceptable
Basic unit: Analog input: 0-10VDC voltage,
24VDC when used as discrete input;
Expansion unit: Analog input: 0-10VDC voltage or
0-20mA current
Input Signal ”OFF” Threshold < 5VDC (as 24VDC discreet input)
Input Signal ”ON” Threshold > 9.8VDC (as 24VDC discreet input)
Isolation None
Short circuit protection Yes
Total number available Basic unit: A1-A4
Expansion unit: A5-A8
Relay
Outputs
Contact material Ag Alloy
Current rating 8A
HP rating 1/3HP@120V 1/2HP@250V
Maximum Load Resistive: 8A /point
Inductive: 4A /point
Maximum operating time 10ms (normal condition)
Life expectancy (rated load) 100k operations
Minimum load 16.7mA
T
ransistor
Outputs
PWM max. output frequency 0.5kHz (1ms on,1ms off)
Standard max. output frequency 100Hz
Voltage specification 10-28.8VDC
Current capacity 1A
Maximum Load Resistive: 0.5A/point
Inductive: 0.3A/point
Minimum Load 0.2mA

Chapter 2 Installation 12
Product Specifications
Part
#
Input
Power
Inputs
Outputs
Display &
Keypad
RS-485
Communications
Max
I/O
SG2-12HR-D
6 DC, 2 Analog 4 Relay □, Z1-Z4 N/A 36 + 4
*1
SG2-12HT
-D
6 DC, 2 Analog 4 Trans. □, Z1-Z4 N/A 36 + 4
*1
SG2-20HR-D
8 DC, 4 Analog 8 Relay □, Z1-Z4 N/A 44 + 4
*1
SG2-20HT
-D
8 DC, 4 Analog 8 Trans. □, Z1-Z4 N/A 44 + 4
*1
SG2-20VR-D
8 DC, 4 Analog 8 Relay □, Z1-Z4 Built-in MODBUS 44 + 4
*1
SG2-20VT
-D
24 VDC
8 DC, 4 Analog 8 Trans. □, Z1-Z4 Built-in MODBUS 44 + 4
*1
SG2-12HR-12D
6 DC, 2 Analog 4 Relay □, Z1-Z4 N/A 36 + 4
*1
SG2-20HR
-12D
8 DC, 4 Analog 8 Relay □, Z1-Z4 N/A 44 + 4
*1
SG2-20VR
-12D
12 VDC
8 DC, 4 Analog 8 Relay □, Z1-Z4 Built-in MODBUS 44 + 4
*1
SG2-10HR-A
6 AC 4 Relay □, Z1-Z4 N/A 34 + 4
*1
SG2-20HR-A
100-240 VAC 12 AC 8 Relay □, Z1-Z4 N/A 44 + 4
*1
SG2-12HR-24A
8 AC 4 Relay □, Z1-Z4 N/A 36 + 4
*1
SG2-20HR-24A
24VDC 12 AC 8 Relay □, Z1-Z4 N/A 44 + 4
*1
Expansion
Modules
SG2-8ER-D
4 DC 4 Relay N/A N/A N/A
SG2-8ET
-D
24VDC 4 DC 4 Trans. N/A N/A N/A
SG2-8ER-A
100-240VAC 4 AC 4 Relay 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-MBUS
Communications Module, RS-485 ModBus RTU slaver
SG2-DNET
Communications Module, DeviceNet Group2 slaver
SG2-PBUS
Communications Module, Profibus-DP slaver
EN01
24 VDC
Communications Module, TCP/IP
OEM
“Blind”
Models,
No
Keypad,
No
Display
SG2-12KR-D
6 DC, 2 Analog 4 Relay XN/A 36
SG2-12KT-D
6 DC, 2 Analog 4 Trans. X N/A 36
SG2-20KR-D
8 DC, 4 Analog 8 Relay XN/A 44
SG2-20KT
-D
24VDC
8 DC, 4 Analog 8 Trans. XN/A 44
SG2-12KR-12D
12VDC 6 DC, 2 Analog 4 Relay XN/A 36
SG2-10KR-A
6 AC 4 Relay XN/A 34
SG2-20KR-A
100-240VAC 12 AC 8 Relay XN/A 44
OEM
“Bareboard”
Models,
No
Keypad,
No
Display
,
No
Expansion
SG2-12CR-D
6 DC, 2 Analog 4 Relay XN/A 12
SG2-12CT-D
6 DC, 2 Analog 4 Trans. XN/A 12
SG2-20CR-D
8 DC, 4 Analog 8 Relay XN/A 20
SG2-20CT
-D
24VDC
8 DC, 4 Analog 8 Trans. XN/A 20
SG2-10CR-A
6 AC 4 Relay XN/A 10
SG2-20CR-A
100-240VAC 12 AC 8 Relay XN/A 20
Accessories
SG2-PL01
SG2 Programming Cable, SG2 Programming software
SG2-PM05
SG2 Memory cartridge
*1: If module with keypad and display, Max IO can be added keypad input Z1-Z4.

Chapter 2 Installation 13
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)
SG2-8ER-A
Output 4 x Relay / 8A
Q1 Q2 Q3 Q4
DC 24V Input 8 x DC(A1,A2 0~10V)
SG2-12HR-D
+-I1 I2 I4
I3 I5 A1I6 A2 Input
4×AC
LN
Run
AC 100~240V
X4X1 X2 X3
Output 4 x Relay / 8A
Y1 Y2
Y3 Y4

Chapter 2 Installation 14
It is recommended to apply a DIN-rail end clamp to hold the SG2 in place.
Q3Q1
Output 4 x Relay / 8A
SG2-12HR-D
Q2
SG2-8ER-A
Q4
DC 24V Input 8 x DC(A1,A2 0~10V)
+-I1 I3I2 I4 Input
4×AC
A2I6I5 A1
Run
AC 100~240V
N
L
X2X1 X3 X4
Output 4 x Relay / 8A
Y1 Y2
Y4Y3
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.
Q2
Output 4 x Relay / 8A
SG2-12HR-D
Q1
Y1 Y2
Q3 Q4 Y3 Y4
SG2-8ER-A
Output 4 x Relay / 8A
Run
DC 24V Input 8 x DC(A1,A2 0~10V)
+-I1 A2I3I2 I4 I6I5 A1 Input
4×AC
AC 100~240V
LN
X1 X3X2 X4

Chapter 2 Installation 15
Wiring
W
ARNING:
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.
T
o
avoid
a
short
cir
cuit
on
the
load
side,
it
is
recommended
to
connect
a
fuse
between
each
output
terminals
and
loads.
Wire size and Terminal Torque
Input 12/24V DC
DC V Input
+I5I3 I4I2I1
-A1I6 A2
DC V INPUT
I7I1+- I4 I5 I6I3I2 A4A2 A3A1I8
+-A2A1 A3
A1
+-A4A2
Sensor Connection
DC V Input
+A1I6
I4
I3I2I1
-I5 A2 A3A2 A1 A4
26...1626...1426...1426...1826...16
AWG
3.5
(0.14in) lb-in
Nm 0.6
5.4
0.14...1.5
mm20.14...1.50.14...2.50.14...0.75 0.14...2.5
C
C

Chapter 2 Installation 16
PE PE PE
PE
C2V2I2
C4
V4
C3I3 V3 I4 I4
V3I3 C3 V4 C4
I2 V2 C2 PE
PEPEPE
PE
PE
C1
I1 V1
-
+DC 24v
RUN
SG2-4AI
Input 4 x (0..10V/0..20mA)
+-
V1I1 C1 PE
PE
DC 24v
SG2-4AI
RUN
Input 4 x (0..10V/0..20mA)
Input 100~240V /24V AC
AC ..V Input ......
I2I1 I4I3 I5 I6
NL
AC ..V INPUT ......
I4I1 I3I2NL I7 IBI9I8 IA IC
I5 I6
Output (Relay)
Output 4 x Relay / 8A
Q1 Q4Q3Q2
Output 8 x Relay / 8A
Q6Q2 Q3Q1 Q4 Q5 Q8Q7

Chapter 2 Installation 17
Output (Transistor)
OUTPUT 8 x TR / 0.5A
Q1 Q2
Q4Q3Q1 Q2
OUTPUT 4 x TR / 0.5A
-
+-
+-
+
-
++
-
+-Q8Q7Q5 Q6Q3 Q4 +--
++ -++ --
+-
Data Link OR Remote I/O Link
A2A3 S
A4
A1 A2 A1
RS485
BA A3 S
A4
RS485
BA A3A1 A2 AB
RS485
A4 S
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 & Slave).
①-1A quick-blowing fuse, circuit-breaker or circuit protector
②-Surge absorber (36V DC)
③-Surge absorber (400VAC)
④-Fuse, circuit-breaker or circuit protector
⑤-Inductive load
⑥-Only short circuit the first product and the last product
⑦-Comply with standard : EIA RS-485.

Chapter 3 Program Tools 18
Chapter
3:
Program
T
ools
PC Programming Software “SG2 Client”
The SG2 Client programming software provides two edit modes, Ladder Logic and Function Block
Diagram (FBD).
The SG2 Client software includes the following features:
1.
Easy
and
convenient
program
creation
and
editing.
2.
Programs
can
be
saved
on
a
computer
for
ar
chiving
and
reuse.
Programs
can
also
be
uploaded
directly
from
an
SG2
and
saved
or
edited.
3.
Enables
users
to
print
programs
for
reference
and
review
.
4.
The
Simulation
Mode
allows
users
to
run
and
test
their
program
before it
is
loaded
to
the
controller
.
5.
Real-time
communication
allows
the
user
to
monitor
and
for
ce
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
Connecting the Software
connector cover from SG2 using a flathead screwdriver as shown in the
ert the plastic connector end of the programming cable into the SG2 smart
Remove the plastic
figure below. Ins
relay as shown in the figure below. Connect the opposite end of the cable to an RS232C
serial port on the computer.
Other manuals for SG2 Series
3
Table of contents
Other TECO Relay manuals