Home

UISB-420T User`s Manual

image

Contents

1. Print 27 80 1 Turn buzzer on Buzzer Duration Print 27 90 nl n2 nl ow value n2 high value Sets buzzer duration to n2 n1 200ms Print 27 90 0 5 Sets buzzer duration to 1000ms 1 second Comfile Technology www ComfileTech com page 1 2 User Interface Panel User s Manual COMFILE UISB 420T TECHNOLOGY ll LCD Display COMFILE UISB 426T COUNTER 138 The following program displays a counter incrementing by 1 approximately every second Const Device CB400 UISB 420T uses the Cubloc CB400 Modeule Dim i As Byte Set Display 2 0 0 20 Y QUOI loti 3 z8n bon i 0 ole Clear the screen Delay 200 Delay 20mS Cue Ot iE J bles wrie cursor ert 1 Turn on the backlight Do TACE al Increment counter Display string at 0 0 Clecdowe 0 O COMPILE U1SB 420m Delay 10 Display count value at 0 2 Leem 0 2 COUNTER Decr T Delay 1000 Loop Comfile Technology www ComfileTech com page 1 3 deel UISB 420T TECHNOLOGY ll Reading Input from the Keypad The UISB 420T can process key presses from its integrated keypad using commands Set Pad On Pad Gosub and GetPad Set Pad Set Pad mode packet bufferSize mode Bit mode 0 to 255 packet Packet size 1 to 255 bufferSize Receive buffer size 1 to 255 Before the keypad can be used it must be initialized using the following command See the Cubloc Manu
2. Comfile Technology www ComfileTech com page 24 COMFILE UISB 420T home page Do Loop Inkey PARSING ABCE Inkey SCANCODETB Getpad 1 Select Case Inkey Case 19 age 1 ls elay 100 lecoue O ut JI SEAS SORIA ledout 0 PASSWORD CISCO OT s Case 20 age 2 ls elay 100 elo 0 JezweuE 0 gt LOGIN PASSWORD EE E Case 16 home page End Select If 0 lt Inkey And Inkey lt 9 Then Select Case page Case 1 secpass page Takey Case 2 login page Inkey End Select Endif Return E HOME LOGIN Sub home page S Wait 20 Cledout 0 0 DOOR LOCK Clheclotte O ert ESAS ECG Cleclouwie O 2 pes LOG 1N 1 EN JD Bac Silo Comfile Technology www ComfileTech com page 25 OR UISB 420T TECHNOLOGY y SET PASSWORD Sub setpass page key As Byte ClkelonhE 0 SEAS SINO TY Cielo 0 I PASSWORD in li PS leu lt 4 Then L cars 10 28 benp 1 pswd PS Len key Clecdont LOPS Lem Lei Eer 0 c psemen L DeC PSW ES Lemn Endif Ti PS Lem 3 Then Clecoume 0 2 Cleo Die Endif li BS Lean gt 3 Mica Loeven 0 2 Emeals Ws Y Ck pswd PS Len 4 key Qherkownr 10 28 Len 4 Ap Han Cleckowic 10128 isin 2 Dec jostiyel 128 Len BACHE Dacia EIS ECA dx 28 Lem 7 Then Po emt Wo S TE asta clau gt lt Ck jasa eme The
3. RS 232 3 pin Download Cable USB to Serial amp 3 pin Download Cable x The 3 pin download cable is not included When making your first UISB 420T please be sure to also purchase the download cable Comfile Technology www ComfileTech com page 6 EOM UISB 420T TECHNOLOGY 6 Circuit and Specifications Bees ES 323333358 E Eege E lt INPUT Internal Circuit An input signal of approximately 16 24V will be read as a logic high Comfile Technology www ComfileTech com page 7 del UISB 420T TECHNOLOGY ple Current transmitter Voltage transmitter ADO AD4 3 ADS AD2 3 AD 3 AD3 gt AD7 gt GND GND 0 20mA 0 10V ADC for receiving analog input ADO AD1 AD2 AD3 0 20mA 071023 10 bit Approx 1 AD4 AD5 AD6 AD7 0 10V 071023 Approx 1 Caution Supplying an input signal outside of the measurable range could result in damage Comfile Technology www ComfileTech com page 8 COMFILE UISB 420T E Output 883288883 C OUTPUT Outputs are in an open collector configuration Voltage does not occur at VIN When connecting and inductive load please wire VIN for surge protection x Caution Due to the open collector configuration please be sure to always supply a load between the external voltages source and the output pin Directly connecting a voltages source without a load will provide a virtual
4. Examples l Output Port Control using Keypad OUT LE Video http www youtube com watch v nTm2rXJJcIg amp feature youtu be Const Device CB400 Ramclear Set Display 2 0 0 200 See Pad 0 1 20 On Pad Gosub ABC Const Byte SCANCODETB tra 39 Lo 11525 9207 107 dlc B E 117 1 8D 22 y LS y 10 0 il Gale Ena 12 1 9 14 Clown Byte io oue AA 26 27 28 29 201 Sp 327 335 34 OS SS SI N Dim INKEY As Byte Dim CNT As Byte Dim OUT PORT 16 As Byte V Gonremt Is De mg SE DIA JAS Byte Output port number 0 15 Dim NUM IDX As Byte Output port index Cls Delay 100 OUTPUT DISPLAY Do Loop ABE INKEY SCANCODETB Getpad 1 KEYIN PARSING INKEY Return Comfile Technology www ComfileTech com page 1 9 E UISB 420T TECHNOLOGY i OUT DISPLAY Sub OUTPUT DISPLAY Clcdout 0 0 OUT STATUS clero 0 1 WS ew Cbexroxue 9 1 MW gue ON As Out De End Sub OUT DETECT DISPLAY Sub Out Detect display Dim STR l1INDX As Byte Dim STR 2INDX As Byte Dim SPACE As Byte Dim CTO As Byte Dim CT1 As Byte CTO 4 EE 40 MEAN DO STR Zeg _SPACE 2 Cedo 0 2 N Claro 10 5 Y Che domemOpe VOD SW Ce Geeks Delay 10 ou CNL 49 e LS ILE OUT PORT CNT 1 Then TE CO KIS Misa Gedo man COR PNE C oe NPE If CNT gt 9 T
5. SES OOOO Dim CNT As Byte Dim eel dara 8 As tee ADC low Bue Cle Delay 20 Do Check ADC ADC DISPLAY Wait 500 Loop d ADC Sampling Sub Check ADC por CNI e Te 7 ad data CNT Adin CNT lit acl dara CNI lt 1 Then ad dera CNI 0 Next Bele So Comfile Technology www ComfileTech com page 22 COMFILE UISB 420T H ADC DISPLAY Sub ADC DISPLAY Clcdout 0 0 ADC STATUS Gecke 0 1 ADOS Dee al clues 0 0 2 ADLI Y Dee acl carati 0 3 78D249 Y Dee al elem 2 CL Clcdout Delay 20 GLe ekong 1 0 1 WADERS Y bes evel clencei 4 Clecowme 10 2 5s Des acl claicei 5 Cleo 10 3 ADOS Y Dec acl elles 9 End Sub Comfile Technology www ComfileTech com page 23 EE UISB 420T TECHNOLOGY ll Door Lock Security Key DOOR LOCK J CSET PASSWORD C LOG IN 1l Video http www youtube com watch v xkcRucbZOSU amp feature youtu be Const Device CB400 Ramclear Sew Display 2 0 0 200 Sew IEewl 0 1 20 On Pad Gosub ABC Dim Inkey As Byte Dim page As Byte Dim PS Len As Byte Dim cnt As Byte Dim conf As Byte Dim pswd 4 As Byte password Dim ck pswd 4 As Byte check password Dim LOGIN pswd 4 As Byte login password SOS Byte SCANCODETER LEIT 19 15 1 2 3 20 16 A 6 21 17 1 8 9 22 18 10 0 11 Galen eim 12 13 14 CIS Delay 100 Caio
6. short circuit to ground possibly damaging the internal transistor Comfile Technology www ComfileTech com page 9 TECHNOLOGY OE UISB 420T 8 Command Description Cubloc Studio supported functions can be used to control the UISB 420T s digital analog and communication ports Letters numbers and symbols can be displayed on the character LCD with the Cubloc Studio s CLCD commands To read input from the kepad Cubloc Studio s Pad functions can be used Please see the Cubloc User s Manual for detailed instructions J Character LCD Display Set Display Set Display kind method baud ID buffersize kind O ALCD HLCD 1 GHLCD GHB3224 2 UISB 420T CLCD method Communication Method OZ CuNET 1 RS232 CH1 2 RS232 CH2 3 RS232 CH3 baud ID UISB 420T 0 bufferSize Send buffer size This command must be present at the beginning of your program before any other command character LCD command can be used See the Cubloc User s manual for more information Example Set Display 2 0 0 200 CLCD CUNET Slave Address 0 send buffer 200 bytes Cls CLS Clears the LCD A short delay of 20ms may be needed after executing this command See the Cubloc User s manual for more information Csron CSRON Shows the cursor See the Cubloc User s manual for more information Csroff CSROFF Hides the cursor See the Cubloc User s manual for more information Cicdout CLCDOUT x y text x x coordinate of LCD y y coordinat
7. COMFILE TECHNOLOGY User Interface Panel UISB 420T 1 Product Overview The UISB 420T is an integrated character LCD keypad I O controller powered by a Cubloc CB400 core It can be programmed with Cubloc Studio C el BC E eae LJE Character LCD Keypad Cubloc I O CLCD CB400 The UIF 420T makes it easy to quickly add a user interface to an industrial system at low cost Characters numbers and symbols are displayed on the LCD providing textual output to the user User input is activated by pressing buttons on the keypad and processed by the CB400 core module In addition the rear panel contains various I O and communication ports that be used to monitor and control industrial systems Comfile Technology www ComfileTech com page 1 TECHNOLOGY OR UISB 420T 2 Features 1 Powered by an integrated Cubloc CB400 2 Integrated Keypad See the Set Pad command in Cubloc Studio 4 Integrated ASCII Character LCD See the Set Display command in Cubloc Studio 5 16 16 24V Digital Inputs 6 16 Open Collector Digital Outputs 7 4 10 bit O 20mA Analog Inputs 8 4 10 bit O 10V Analog Inputs 9 LCD Software Controllable Backlight On Off 10 4 LED Indicators 11 Software Controllable Piezo Buzzer 12 Software Controllable Audio Keypress Feedback On Off 13 RS 232 RS 485 Serial Communication 3 Specifications 1 Power Supply Voltage 9 24 VDC Power Consumptio
8. al for more information Set Pad 0 1 20 On Pad On Pad GoSub label Causes the program to jump to label on a keypress See the Cubloc User s manual for more information On Pad Gosub OnKeyPress Jump to OnKeyPress when key is pressed OnKeyPress A Getpad 1 Read a byte from the receive buffer CLCDOut 11 1 hex2 A Write value read to the LCD Return Comfile Technology www ComfileTech com page 14 COMFILE UISB 420T TECHNOLOGY Getpad variable GetPad length length The number of bytes to read from the receive buffer Reads length bytes from the receive buffer For the UIF 420 when a keypress occurs one byte is stored in the receive buffer A Getpad 1 Gets 1 byte from the receive buffer and store it in A l Receiving Data from the Keypad BAR COMFILE MAN KEV INPUT 9 The following code displays the scan code for each keypress Const Device CB400 UISB 420T uses the Cubloc CB400 Modeule Dim A As Integer Set Display 2 0 0 200 U CLOD Imitializatioa Ser Sec 0 1 20 Keypad Initialization On Pad Gosub OnKeyPress Jump to OnKeyPress when key input is received Cls Clear screen Delay 20 20 ms Delay Ee 1 SNOW Ses Ola CLCDOut 0 0 COMFILE Delay 10 Deng 0 1L der TINT g Y Do Main program loop Run Forever Loop lee A Getpad 1 Get scancode for keypress pen Ii i es YA Display scancode on LCD TEXTE UL Ie TOR Comfile Te
9. chnology www ComfileTech com page 15 ME UISB 420T TECHNOLOGY Device Control Commands UISB 420T s rear panel digital and analog I O on the rear can be controlled with the many features of the integrated Cubloc CB400 and Cubloc Studio Out Out Pin Value Pin The Output pin to use P24 P36 Value The value to output 1 for logic high 0 for logic low Outputs a 1 logic high or a O logic low to the specified pin See the Cubloc User s manual for more information OUT 24 1 Outputs a logic high to P24 OUT 24 0 Outputs a logic low to P24 In variable In pin variable The variable to store the result pin The int to read from P64 P74 Returns the current state of the specified pin See the Cubloc User s manual for more information Dim A As Byte A In 64 Read state of P64 and store the result in variable A Adin variable ADIn channel variable The variable to store the result channel Analog input channel 0 7 Samples the the analog signal on the specified channel The UISB 420T has 4 10 bit current analog to digital channels 0 3 and 4 10 bit voltage analog to digital channels 4 7 See the Cubloc User s manual for more information A Adin 0 Sample analog signal on channel 0 l Serial Communication The UISB 420T has two serial communication channels Channel 1 for RS 485 and channel 2 for RS 232 Please see the Cubloc User s manual for detailed information on pr
10. e of LCD text The text to display Displays the text at the given position x y See the Cubloc User s manual for more information Comfile Technology www ComfileTech com page 0 ME UISB 420T TECHNOLOGY Example CLCDOUT 1 0 COMFILE Display COMFILE at 1 0 CLCDOUT 1 1 DEC i Display in base 10 value stored in i at 1 1 CLCDOUT 1 2 COMFILE DEC i Display COMFILE and the value stored in i at LI Eu x When displaying multiple strings in a row it can be helpful to add a short delay between each CLCDOut command Do CLCDOut 1 0 COMFILE UISB 420T Delay 10 CLCDOut 1 2 System count DI Incr I Delay 1000 Loop E Q H Locate Locate x y X X coordinate y y coordinate Sets the position of the text cursor After the CLS command the cursor defaults to 0 0 See the Cubloc User s manual for more information Locate 1 1 Move cursor to position 1 1 Light Light On Off On Off Backlight O Off 1 On Turns the LCD backlight on or off Light 1 Turn backlight on ll Special Commands LED ON OFF Print 27 69 nl n2 ni LED position 0 4 n2 Q OFF 1 0N Turns one of the 4 LED indicators on or off Print 27 69 E 1 Turn LED 1 On Comfile Technology www ComfileTech com page 1 1 COMFILE UISB 420T Buzzer ON OFF Print 27 80 nl ni O 0FF 1 ON Turn button press audio feedback buzzer on or off
11. hen Cro Cross Else Cro 03 2 Endif Else Clecome CHL S Dec CHE If CNT gt 9 Then GL uis Else HL Qus2 Endif Endif Endif Next End Sub Comfile Technology www ComfileTech com page 20 PE UISB 420T TECHNOLOGY OUT ERROR DISPLAY exeo Obre JHOIDEDWALCIS ROR AS Bye Om As Ihe If PORT lt 16 Then QUIE OEI POR Oeil Dip abe en ORME ONO Qut Detect olei Else Cledout 0 2 Error Cleclowme 0 3 LECH PORTE MMS y Endif Delay 1000 OUTPUT DISPLAY End Sub R ISS ILIN Sub KEYIN PARSING KEY As Byte OUTPUT DISPLAY Select Case KEY Sas 35s E Iie NUM IDX 2 Then Clecouet Z Er Y Out SET DATA 0 NUM IDX 0 Endif Clcdout 6 NUM_IDX 1 Dec KEY If NUM IDX 0 Then Out SET DATA KEY Else Out SET DATA Out SET DATA 10 KEY EET Jbewese INIOIM DG Case Is 17 ix Qut Sad DAIA gt 0 Masia Our OECD Out SE DATA NUM_IDX 2 Oie SIDE DATA 0 Clecdoue 6 1 Y Case Is 15 If Out SET DATA gt 0 Then Out IODEVICE Out SET DATA NUM IDX 2 Out SET DATA 0 Gikewkowrce Op ll Y Wae Selec End Sub Comfile Technology www ComfileTech com page 21 EE UISB 420T TECHNOLOGY ADC Display Video http www youtube com watch v XsVIwFvQ6U4 Const Device CB400 Ramclear
12. n 1 2 W Max 1 6 VA 2 Operating Environment Operating Temperature 0 50 C Operating Humidity 35 85 RH No Condensation 3 Membrane Switch Life Push 100 000 times Force 250gf Comfile Technology www ComfileTech com page 2 COMFILE UISB 420T TECHNOLOGY 4 Dimensions ll Panel Dimensions AA OF TT we 103 d o CUTOUT LINE d AFTER D UIF420 PANEL CUTOUT BACK VIEW Unit mm Port Dimensions V ESTA S L d A n IEA 76 PON re e SE MESI 3 2 Membrane Switch E Ey 99 Pire FRONT VIEW 16 4 266 14 8 26 6 637 8 30 2 A 13 SR 6 zi SEI fd riim al a ES D E i q 3 o D Ke a du d of a eI t al CH iN SIDE VIEW 200 5 3 T solr E 4 B H y 3 EI SI QDODODOD000000000000 Ta ga 4 03 4 03 BOTTOM VIEW Comfile Technology www ComfileTech com page 3 del UISB 420T TECHNOLOGY 5 Parts and Functions Front LED Indicators c COMFILE ge s For labeling indicators technolog with a pen O Charact Display letters number r LCD and symbols Key Keypad butto
13. n come 1 Next Locsite 0 3 TE soma 9 Then Clcdout 0 3 Succeed Password Else Clcdout 0 3 Confirm Password Endif INTI_DATA Endif End Sub Comfile Technology www ComfileTech com page 26 COMFILE TECHNOLOGY User Interface Panel User s Manual UISB 420T le LS Len lt Then Locas 105185 en LOG_pswd PS_Len Clcdout 10 PS_ Len Clecoue 10128 Len 1 Endif avere IPS ieu lit IPS Len gt 3 Then loue emt 0 Wo 3 If pswd cnt Next Locate 0 S li cont Then SAQUE O 22 Clacdoute 0 S Else Cleo 0 2 Clecowe 0 3 Endif INTI DST Endif Kol Slo Sub INTI DATA page 0 ES Lem 0 ca 00 conf 0 End Sub y LOGIN Sub login page key As Byte Clcdout 0 0 LOGIN Clecouwe 0 dL WIENSSWOREDS Y key 1 gt lt LOGIN pswd cnt xw Dec LOGIN pswd PS Len 1 THEN CORT 1 tt Wellcome Succeed Password tt lInicie ne UN Confirm Password Comfile Technology www ComfileTech com page 27
14. ns For downloading programs from Cubloc Studio DC 9 24V i Depp EREEEREREEINPUI Outputs COMPILE TE COMPILE H RS 232 p 2mA GE DOWN LOAD gt 82888 38338 ADC POWER 5353 ERRRRRREG Zansnnsasf COUP peiz D O Comfile Technology www ComfileTech com page 4 User Interface Panel User s Manual EO UISB 420T TECHNOLOGY ll Rear 1 O Ports CH2 CHI rsza Teen BBR BBS F 12 AAA REERERRE ISSCC 222EB 2885 D ao a 7 EN OF 2 Ee TTT TTS i 22333306 KREREELE lt INPUT o a aren NI SS o C a e O TECHNOLOGY DOWN LOAD gt POWER sc bw E 7e z o SIS COMPILE EgR RERPRS DPPSPESPRRP OUTPUT PTT TAT AAA HO 238388888 3 CAS AAA Comfile Technology www ComfileTech com page 5 COMFILE UISB 420T ll Download Cable If you have an RS 232 serial port on your PC the 3 pin download cable is recommended If you only have a USB port on you PC a USB to Serial cable be used to give you an RS 232 serial port to which you can conned the 3 pin download cable If using a USB to Serial cable drivers will likely be required Please refer to the cable s product manual
15. ogramming the integrated Cubloc CB400 for serial communication Comfile Technology www ComfileTech com page 6 EOM UISB 420T TECHNOLOGY 8 Key Scancodes The UISB 420T has a total of 23 keys sealed in a water resistant membrane Each key is assigned a unique scancode that will be received by the integrated CB400 when the key is pressed UISB 420T Scancodes ll Scancode Conversion The scancodes are highly irregular but getting the appropriate value for each keypress can be determined using the simple program below Each scan code is an index into the array SCANCODETB Const Device CB400 Dim SCODE1 As Byte comer Byte SCANCODEENS amp rs 19 15 1 2 952051G5 _ AB Gral ll 1 8 9 22 18 10 0 11 ca emm 12 13 14 Dim A As Integer Set Display 2 0 0 20 Sep Pac 0 1 20 On Pad Gosub KEYPROCESS Cls Comfile Technology www ComfileTech com page 17 COMPILE UISB 420T Wait 10 Ceueoiti fc QM 0 0 MACOMER De Loop ISSESYAEJENG EE SCODE1 Getpad 1 Clecowt 2 2 IDEC2 SCANCODIETE SCOJ UDI L Return The code above will convert each scancode into regular decimal number as depicted below Of course further processing will need to be added to take action on a given keypress After scancode conversion Comfile Technology www ComfileTech com page 8 COMFILE UISB 420T TECHNOLOGY UISB 420T

Download Pdf Manuals

image

Related Search

Related Contents

Manual do operador  ViewSonic®  Voir le cahier des charges  Guide de l`utilisateur  Cefar Acus 4 - Medical Fitness  取扱説明書を ダウンロード    RC 1209 - Sigma Sport  PSIA-Spanish_for elements  User Manual - ADFWeb.com  

Copyright © All rights reserved.
Failed to retrieve file