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
6
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.