background image

BAR  H

Elektronik GmbH

®

4/7
9021-0011-A
21.04.2016
A

Page:
Document:
Date:
Revision:

Mini-PLC
STG-660 CAN
Art. No. 0850-0660

MANUAL

© 2014-2015 BARTH Elektronik GmbH | Im Depot 1-3 | D-49838 Lengerich | www.barth-elektronik.de
® BARTH is a registered trademark. All rights reserved.

9021-0011-A

OPERATION AND PROGRAMMING

6.1 

Programming software

BARTH

®

 supplies several third party compilers to program 

their range of Open Source Mini-PLC´s.

Please refer to

www.barth-elektronik.de
www.microchip.com
www.rs-online.de

to receive further information about suitable software pro-
ducts. Any compiler which supports the PIC18F46K80-I/ML 
can be used to program the STG-660.

6.2 

Programming templates

For free programming templates and datasheets please 
download the following software package:

www.barth-elektronik.de/download/9045-0012-A.zip

This package includes:

•  Virtual Windows

®

 COM port driver for USB connection

•  Programming templates for BARTH

® 

Mini-PLC

•  Datasheets

6.3 

Virtual COM port driver installation

Before you establish USB connection (X4) to a Windows

® 

PC you have to install the USB-/COM-port driver (folder 
‚USBdriver‘) from the software download package. Please 
follow the instructions of the SETUP routine.

6.4 

Connecting the Mini-PLC

In order to program or operate the STG-660, you have to  
establish proper power supply connection to the X1 con-
nector first.

Programming ensures using the X5 ISP connector with the 
following connection (Pin 1 marked with a black dot):

Pin

Function

1

VDD +5V

2

GND

3

VPP/MCLR

4

PGC

5

PGD

5.2.4  Connecting the outputs

Depending on load type and current the STG-660 is able 
to drive electric loads directly without any additional driver 
or protection circuit. The Mini-PLC provides 8 digital solid-
state highside outputs and 1 solid-state lowside switch with 
PWM functionality.

Common features of outputs OUT1 to OUT8

•  Rugged solid-state higside switch up to 1.5A
•  Paralleling permissible up to 6A
•  Short circuit protection and current limitation
•  Fast demagnetization of inductive loads
•  Stable behaviour at undervoltage
•  Comprehensive integrated protection circuits
•  Outstanding electromagnetic compatibility (EMC)
•  Electrostatic discharge protection (ESD)

Features of output OUT5

•  Solid state lowside switch with PWM capability
•  Sinks up to 2A
•  Rugged solid-state design
•  Fast demagnetization of inductive loads
•  Outstanding electromagnetic compatibility (EMC)
•  Electrostatic discharge protection (ESD)

The 9-pole connector X3 contains the digital outputs of 
the Mini-PLC. While OUT1 to OUT8 are overload-protected 
highside switches, OUT9 is carried out as lowside switch 
with PWM capability without short circuit protection. A logi-
cal HIGH will switch the Mini-PLS´s supply voltage at OUT1 
to OUT8, while OUT9 switches lowside (GND). Aviod a sink 
current exceeding 2A at OUT9 because this outputs is not 
protected against short-circuiting or overload current !

The total current sourced by OUT1 to 
OUT8 must not exceed 6A!
Avoid reverse voltage at any output higher 
than the Mini-PLC´s supply voltage!
OUT9 provides NO short circuit protection.
Take care the sink current not exceeds 2A!
Negligence may cause irreversible
damage of the Mini-PLC!

Please refer to the appendix for detailed electrical specifi-
cation of the outputs.

5.2.5  Connecting the CAN interface

The X1 connector of the STG-660 contains the CAN specific 
‚CANH‘ and ‚CANL‘ pins.

The voltage at CANH or CANL must not 
exceed -27 or +40 VDC referred to ground 
(GND). Higher voltages may cause irrever-
sible damage of the Mini-PLC!

Please refer to the appendix for detailed electrical specifi-
cation of the CAN interface. There is no termination resistor 
integrated in the STG-660.

Summary of Contents for Mini-PLC STG-660 CAN

Page 1: ...necting the power supply 3 5 2 3 Connecting the inputs 3 5 2 4 Connecting the outputs 4 5 2 5 Connecting the CAN interface 4 6 OPERATION AND PROGRAMMING 4 6 1 Programming software 4 6 2 Programming templates 4 6 3 Virtual COM port driver installation 4 6 4 Connecting the Mini PLC 4 6 5 Programming 5 7 APPENDIX 5 7 1 Specifications 5 7 1 1 General 5 7 1 2 Power supply 5 7 1 3 Inputs 5 7 1 4 Outputs...

Page 2: ... functionality of the Mini PLC in case of disregar ding this manual The strict accordance of this manual is important since the installation methods peripheral connections usage and maintenance can not be con trolled by BARTH Elektronik GmbH Therefore BARTH Elektronik GmbH assumes no liability for any claim 4 PRODUCT DESCRIPTION The picture below shows the BARTH Mini PLC STG 660 Art No 0660 0660 i...

Page 3: ...integrated within battery supplied 12V or 24V DC systems cars trucks battery powered cars forklifts and digger for example Turn off the power supply before perfor ming any wiring operations False electrical connection voltage reversal or disregarding the electrical specifications may cause irreversible damage of the Mini PLC Connect the supply voltage of 7 to 32 VDC to the 4 pole terminal X1 of th...

Page 4: ...state highside outputs and 1 solid state lowside switch with PWM functionality Common features of outputs OUT1 to OUT8 Rugged solid state higside switch up to 1 5A Paralleling permissible up to 6A Short circuit protection and current limitation Fast demagnetization of inductive loads Stable behaviour at undervoltage Comprehensive integrated protection circuits Outstanding electromagnetic compatibi...

Page 5: ...ourite compiler tool BARTH recommendes to integrate your compiler software within the Microchip MPLABX software which supports both programming simulating and debugging Get the latest MPLABX software and several related soft ware tools for the STG 660 on www microchip com 7 APPENDIX 7 1 Specifications 7 1 1 General Hardware design BARTH Mini PLC fully enclosed in proprietary PU resin tiny and rugg...

Page 6: ...EPROM data memory 1024 byte byte endurance 100 000 min characteristic retention 40 yrs 7 1 8 Timebase oscillator Primary Oscillator Crystal quartz MEMS unit precise micro electro mecha nical system Nominal Frequency 16 000 MHz Frequency tolerance 50 10 6 Frequency aging 5 10 6 year max Second Fail Safe Oscillator 16 MHz 7 1 9 Electrical connection Electrical Connection plugable spring terminal con...

Page 7: ...ntre or dealer for details about how to do this in accordance with the applicable disposal regulations 7 4 Conformity declaration For the following designated product it is hereby confirmed that the construction in that technical design brought by us in traffic corresponds to the standards specified below In the event of any alternation which has not been approved by us being made to any device as...

Reviews: