MINI PIC-PLC APPLICATION MODULE VM142 Mini PIC-PLC application 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.
Safety and warning instructions WARNINGS All repairs should be executed by qualified technicians. Avoid the installation of the module in locations with standing or running water or excessive humidity. Indoor use only ! SAFETY INSTRUCTIONS Handle the module gently 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.
Specifications & features SPECIFICATIONS & FEATURES 1 2 3 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 experience in PIC™ microcontrollers and their programming is required.
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.
Descriptions of the terminal block Out1,Out2,Out3,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.
Descriptions of the terminal block BUZZER: The built-in buzzer with fixed frequency can be activated and deactivated in your program. Programming example: BSF BCF PORTC,BUZZER PORTC,BUZZER ;activate the 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 BCF PORTA,DIAGLED PORTA,DIAGLED ;activate the led. ;activate the led.
Connection examples CONNECTION EXAMPLES Connection of a load (e.g.
Connection examples Connection of a relay Connection of a switch, push button… Jumper “Jp3” closed GND +12V 12V relay GND +12V 8
Connection examples Connection of a LED Connection of two or more LEDs to the same output * Remove jumper "JP4" 9
Use USE The controller (type PIC16F630) can be programmed in Microchip® PIC™ Assembler and other compilers. The compiler HEX file can be programmed using one of our PIC™ programmers K8048, K8076, VM111, VM134. The programming method whit the controller remaining onto the PCB is called in-circuit (via the ICSP connector). The controller chip can also be removed out of the IC socket and be inserted into an external programmer.
Test TEST The VM142 is pre-programmed with a test program allowing you to test all inputs and outputs of the module. The program can be read as follows: The diagnose LED blinks when applying voltage to the module. Activate input 1 Output 1 is energized. Activate input 2 Output 2 is energized. Activate input 3 Output 3 is energized. Activate input 4 Output 4 is energized. After the activation of the 4 inputs, the relay will energize a couple of times and the buzzer will sound.
Veiligheidsaanwijzingen en waarschuwingen WAARSCHUWING Reparaties mogen uitsluitend uitgevoerd worden door vakkundige personen. Installeer de module niet op plaatsen met staand of stromend water of in ruimtes met een te hoge vochtigheidsgraad. Binnengebruik enkel! VEILIGHEIDSAANWIJZINGEN Vermijd een ruwe behandeling. Stoten of laten vallen kunnen ernstige schade aanbrengen. Overschrijdt nooit de opgegeven veiligheidswaarden in de specificaties.
Technische gegevens & eigenschappen TECHNISCHE GEGEVENS & EIGENSCHAPPEN 1 2 3 De VM142 heeft een zeer populaire 8-bit microcontroller van Microchip aan boord en de hardware layout is zo ontworpen dat er 4 gebufferde in- en uitgangen zijn. Verder is er ook een potentiaalvrije relaisuitgang en een zoemer geïntegreerd. Dit alles maakt deze module veelzijdig. De PIC microcontroller is door U vrij te programmeren. De software kan ontwikkeld worden in Assembler, C of zelfs speciale versies van Basic, Pascal..
Beschrijving aansluitklemmen BESCHRIJVING VAN DE AANSLUITKLEMMEN GND-Vin: De voedingsspanning wordt aangesloten tussen de aansluitingen GND en Vin. Leg tussen deze pennen een gelijkspanning aan van 12 (gestabiliseerd of ongestabiliseerd). De elektronica van de module zelf is beschermd tegen polariteitinversie. Sluit de 12V DC aan de ‘Vin’-terminal; sluit de aarding aan de ‘GND’terminal. In1,In2,In3,In4: Dit zijn de 4 ingangen van de module.
Beschrijving aansluitklemmen Out1,Out2,Out3,Out4: Dit zijn 4 uitgangen van het ‘open-collector’ type. Zij kunnen max 100mA per uitgang schakelen. Deze transistoren zitten samen gebundeld in een transistor array chip, IC2. Bij een defect van één van de 4 in- of uitgangen kan dit IC, type ULN2803A snel worden vervangen, dit zonder soldeerwerk.
Beschrijving aansluitklemmen BUZZER: De ingebouwde zoemer met vaste frequentie kan in het programma geactiveerd en gedeactiveerd worden. Programma voorbeeld: BSF BCF PORTC,BUZZER PORTC,BUZZER ;Activeer de zoemer ;Deactiveer de zoemer Diagnose LED (LD3): De vaste led is aangesloten op een in-/uitgang van de PIC™ controller en is vrij programmeerbaar.
Aansluitvoorbeelden AANSLUITVOORBEELDEN Aansluiten van een belasting (vb.
Aansluitvoorbeelden Aansluiten van een relais Aansluiten van een schakelaar, drukknop, ...
Aansluitvoorbeelden Aansluiten van een led Aansluiten van 2 of meerdere LEDs op dezelfde uitgang * verwijder shunt "JP4" 19
Gebruik GEBRUIK De controller van het type PIC16F630 kan worden geprogrammeerd in PIC assembler van Microchip, maar ook door andere 3rd party compilers. Het afgeleverde HEX bestand door een compiler pakket kan met één van onze PIC programmers: K8048,K8076,VM111,VM134 geprogrammeerd worden. Als de controller op de print blijft zitten van de VM142 wordt de methode van programmering “in circuit” genoemd.
Test TEST De VM142 is in de fabriek voorgeprogrammeerd met een testprogramma. Hiermee is het mogelijk al de in- en uitgangen van de module te testen. Het programma zit schematisch zo in elkaar: De diagnose LED knippert bij het onder spanning zetten van de module. Activeer ingang 1 Uitgang 1 wordt bekrachtigd. Activeer ingang 2 Uitgang 2 wordt bekrachtigd. Activeer ingang 3 Uitgang 3 wordt bekrachtigd. Activeer ingang 4 Uitgang 4 wordt bekrachtigd.
UK To all residents of the European Union NL Aan alle ingezetenen van de Europese Unie FR Aux résidents de l'Union Européenne D An alle Einwohner der Europäischen Union ES A los ciudadanos de la Unión Europea PT A todos os cidadãos da União Europeia IT A tutti i cittadini dell’Unione europea ENG Important environmental information about this product This symbol on this unit or the package, indicates that disposal of this unit after its lifecycle could harm the environment.
NO Til alle innbyggere i Den Europeiske Union DK Til alle beboere i den Europæiske Union (EU) FIN Kaikille Euroopan Unionin kansalaisille PL Do wszystkich obywateli Unii Europejskiej ů TJ Všem obyvatelům Evropské Unie.
MINI PIC PIC--PLC APPLICATION MODULE VM142 USER MANUAL Belgium [Head office] Velleman Components +32(0)9 384 36 11 France Velleman Electronique +33(0)3 20 15 86 15 Netherlands Velleman Components +31(0)76 514 7563 USA Velleman Inc.