Velleman VM142 User Manual

MINI PIC-PLC APPLICATION MODULE
VM142
Mini PIC- P LC a pplicatio n module 2 Mini PIC-PLC toepassingsmodule 12
The translation of this manual and all other information concerning this module can be found on our website : www.velleman.be
Safety and warning instructions
WARNINGS
All repairs should be executed by qualified technicians.
Avoid the installation of the module in locations with standing or runni ng water or excessive humidi ty. Indoor use onl y !
Handle the module gentl y and carefully. Dropping it can damage the circuit board and case. Never exceed the protection limit values indicated in the specifications. As safety requirement vary, please check with your local authorities. No objects or liquids should be allowed to penetrate the housing. Disconnect the module from the AC power before connecting new devices. Wipe the device with a dry and clean cloth. Do not use detergents or other liquids that may damage the housing. Keep the device away from children. Facilitate the operation of the device by familiarising yourself with its adjustments and indications. Velleman modules are not suitable for use or as part of life support systems , or systems that might create hazardous situations of kind.
Repair under warranty is only possible with date and proof of purchase.
WARRANTY
This pro duct is gua ranteed agai nst defe cts in compone nts and c onstruct ion fro m the mome nt it i s purcha sed and for a pe riod o f TWO YEAR starting from the date of sale. This guarantee is only valid if the unit is submitted together with the original purchase invoice. VELLEMAN components Ltd limits its responsibility to the reparation of defects or, as VELLEMAN components Ltd deems necessary, to the replacement or reparation of defective components. Costs and risks connected to the transport, removal or place­ment o f the pro duct, or any ot her cost s direc tly or indi rectly conne cted to the repa ir, will not be re imburs ed by VEL LEMAN co mponents Ltd. VELLEMAN components Ltd will not be held res ponsible for any da mages caused by the malfuncti oning of a uni t.
SAFETY INSTRUCTIONS
2
SPECIFICATIONS & FEATURES
2
3 1
4
Description
-1- Diagnose LED
-2- Relaycontrol LED
-3- Power supply indication
-4- Terminal block
See also connection diagram on page 7...9
Specifications & features
The VM142 is equipped with a popular 8-bit Microchip® microcontroller. The PCB layout is designed in such way to include 4 buffered inputs and outputs, a potential-free relay output and an onboard buzzer. The PIC™ microcontroller is freely programmable and the software can be developed in Assembler,C or even special versions of Basic,Pascal,... Note that a certain level of experi-
ence in PIC™ microcontrollers and their programming is required.
Visit www.velleman.be and download software examples.
FEATURES
9 freel y programmable inputs and outputs (4 inputs, 5 outputs) onboard MicrochipLED indication for power supply and relay output 1 freely programmable LED indication onboard buzzer output transistor can be easily repl aced ICSP™ connector for direct controller programming
You need a PIC™ programmer supporting the PIC16F630, e.g. VM134 (K8076), for programming this module.
SPECIFICATIONS
Power supply: 12VDC / 100m A
®
PIC16F630 microc ontroll er
4 NPN transistor inputs / 4 NPN transistor outputs
1 relay output with NO/NC contact (24VDC / 2A)
MCU speed: fixed 4MHz internal oscillator
Input signal voltage: 5 – 24VDC, max. 10mA
max. transistor output current: 100mA each
dimensi on: 80 x 70 x 25mm
3
Descriptions of the terminal block
DESCRIPTIONS OF THE TERMINAL BLOCK
GND-Vin:
Connect the power supply between connections GND and Vin. Apply a direct voltage of 12V (regulated or not regulated) between the two pins. The electronics of the module are protected against polarity inversion. The 12V DC must be connected to the “Vin” terminal, your ground level to the “GND” terminal.
In1,In2,In3,In4:
These are the four module inputs which can be activated by applying a direct voltage between 5 and 24V. The input impedance is 4.7K. Note that a voltage exceeding 24V can damage the input transistor.
I/O of the PIC16F630: PORT A
INPUT1 I/O 3
INPUT2 I/O 2
INPUT3 I/O 1
INPUT4 I/O 0
Programming example :
BTFSC PORTA,INPUT1 ;Read status of input 1 GOTO INPUT1_NOT_ACTIVE ;’1’ Not active GOTO INPUT1_ACTIVE' ;’0’ active (5V ... 24VDC)
4
Descriptions of the terminal block
Out1,Ou t2,Ou t3,Out4:
These are the four open-collector type outputs and can each handle a current of max. 100mA. These transistors are grouped in a transistor array chip, IC2. In case of damage of one of the four inputs or outputs, this IC type ULN2803A can be replaced easily and without soldering.
I/O of the PIC16F630: PORT C
OUTPUT1 I/O 5
OUTPUT2 I/O 4
OUTPUT3 I/O 3
OUTPUT4 I/O 2
N.O. - COM - N.C.
Output 5 is voltage-free relay contact with double operation. COM is the common contact, NO is the normally open contact, NC is the normally closed contact
Programming example :
BSF PORTC,RELAY ;activate the relay. BCF PORTC,RELAY ;deacti vate the relay
Programming example:
BSF PORTC,OUTPUT1 ;activate output 1 BCF PORTC,OUTPUT2 ;deactivate output 2
5
Descriptions of the terminal block
BUZZER:
The built-in buzzer with fixed frequenc y can be activated and deactivated in your program.
Programming example:
BSF PORTC,BUZZER ;activate the buzzer BCF PORTC,BUZZER ;deactivate the buzzer
Diagnose LED (LD3):
This LED is fixed connected to an I/O of the PIC controller and can be freely programmed. The built-in LED can be activated as follows:
Programming example:
BSF PORTA,DIAGLED ;activate the led. BCF PORTA,DIAGLED ;activate the led.
6
Connection examples
CONNECTION EXAMPLES
Connection of a load (e.g. Motor) In circuit connection between VM142 and VM134/K8076
7
Connection examples
Connection of a relay
GND
+12V
Jumper “Jp3” closed
12V relay
Connection of a switch, push button…
GND
+12V
8
Loading...
+ 16 hidden pages