BAR H
Elektronik GmbH
®
5/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
The X5 connector is ESD sensitive!
Electrical stress may cause irreversible
damage of the Mini-PLC!
Please use the BARTH
®
VK-6 connection cable (Art. No.
0091-0006) to connect the Mini-PLC to the PICkit 3 pro-
grammer (Art. No. 0017-0045).
For PC connection the USB connection cable VK-16 (Art.
No. 0091-0016) and a PC with installed Windows
®
opera-
ting system are mandatory. Take care that the tappet of the
3-way VK-16 connector shows to right direction of the STG-
660 (black square).
Reversal connection only causes
malfunction and no damage of the
Mini-PLC.
6.5
Programming
To program the STG-660 please refer to the BARTH
®
pro-
gramming templates and the related datasheets.
Microchip
®
provides a large knowledge base for the PIC18
®
microcontroller series which is used in the STG-660. Seve-
ral templates and sample programs will help you to get in
touch with the native and hardware-oriented microcontrol-
ler programming using your favourite 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 rugged housing
with plugable spring terminal
connectors, ultra-lightweight
Programming
Open Source PLC
programmable with any compiler
which supports the Microchip
®
PIC18F46K80-I/ML
Interfaces
X4:
TTL-232 (5V TTL level)
USB (VK-16 required)
X5:
Microchip
®
ICSP
®
programming
interface (VK-6 required)
X1:
CAN or RS-485
7.1.2 Power supply
Operating voltage
7 to 32 VDC
Current consumption
nominal 15 mA at 32 VDC
(depending on configuration)
Fusing
8 A max. (external)
mandatory for voltage reversal
protection
Voltage reversal protection
yes
(combined with external fuse)
ESD/TVS protection
yes
Heat dissipation air
(at full load)
normally < 2.5 W
7.1.3 Inputs
Number digital
4+6
Number analog
6
Digital input IN7 - IN10
U
IN
= 0..30 VDC
R
IN
> 30 kOhm
U
LOW
<= 2 VDC
U
HIGH
> =4VDC
f
IN
<= 1 kHz
t
IN
>= 1 ms
Analog input IN1 - IN6
U
IN
= 0..30 VDC
R
IN
> 11 kOhm
f
IN
<= 100Hz
t
IN
>= 10 ms
Accuracy ADC
IN1 - IN6
± 2% (0.25 VDC)
ADC resolution
(internal)
12 Bit
Potential isolation
no (common GND)
ESD/TVS protection
yes
Permissible cable lenght
(per input)
normally 40 m