background image

©2012 by e-Gizmo Mechatronix Central

Page 11 of 16 pages

EZ HMI Display Terminal

4. COMMUNICATIONS FUNCTIONS

 

Communications settings:

v=-K"%=;+W"

^RUU

Data:   

8 Bit

Parity:   

none

E=2K0:=M+W" 212+

Summary of Functions

- Clear Display

Q"

A"G.073=4";1"3.2+"U"H&17"%1PJ

5"

A"G.073=4";1"3.2+"Q"Hv1;;19"%1PJ

?"

A"D3+=/"w"G.073=4";1"3.2+"U

- Clear & Display to line 1

k"

A"]+;"N/.2;"];=/;"710.;.12

9"

A"]</133"G.073=4";1"3.2+"U

C"

A"]</133"G.073=4";1"3.2+"Q

- Goto Edit Parameter Mode

/"

A"%+=K"N=/=9+;+/0

M"

A"%+=K"="Z+4"H12+"0:1;"91K+J

Z"

A"%+=K"="M+4"H3+F+3"91K+J

+"

A"%+=K"-0+/"+2<1K+/

O"

A"a/.;+"-0+/"+2<1K+/"F=3-+

v"

A"]+;"v=<M3.L:;"v/.L:;2+00"UAQ^

- Test

G"

A"G.=31L"v1c(#0+/"'27-;

]"

A"]+;"$-c"6-;7-;

%"

A"%+0+;"$-c"6-;7-;

'"

A"%+=K"$-c"'27-;

&:+"g/0;"<:=/=<;+/"=8;+/";:+"

q]&Xr

""9=/M+/".0"="0.2L3+"

<:=/=<;+/"8-2<;.12"07+<.g+/T"O=<:";/=209.00.12"9=4"
<12;=.2"d-0;"="8-2<;.12"07+<.g+/"1234*"1/"9=4"<12;=.2"
="0+/.+0"18"K=;=".2"=KK.;.12";1";:+"8-2<;.12"07+<.g+/T"

End of transmission is signaled by the 

qO&Xr

9=/M+/T

q]&Xr

 and 

qO&Xr

"=/+"K=;="7=<M+;"9=/M+/0"=2K"0:1-3K"

not be transmitted as literal string. They should be 

0+2K".2";:+./"$]D''"/+7/+0+2;=;.12T"&:+"<1//+<;"P=4"

of transmitting the 

q]&Xr

  and 

qO&Xr

"9=/M+/0"=/+"0:1P2"

in the following example:

Example 1: Clear LCD Display

Transmission Format:

 

q]&Xr

c

q]&Xr

 

&:.0"0:1-3K">+";/=209.;;+K".2";:+./"$]D''"<1K+"/+7/+

-

sentation as shown in the following table:

]49>13

]&X

c

ETX

Hex

UcU5

UcR?

UcU?

@.0-=3"v=0.<W

 

Correct:

"

]+/.=3QT7/.2;H<:/H5JIf

c

fI<:/H?JJ

"

a/12LW

"

]+/.=3QT7/.2;Heq]&Xr

c

qO&XrfJ

Arduino:

 

Correct:

"

]+/.=3TP/.;+HUcU5Jx

"

]+/.=3T7/.2;He

c

”);

"

]+/.=3TP/.;+HUcU?Jx

"

a/12LW

"

]+/.=3T7/.2;Heq]&Xr

c

qO&XrfJx

Line

(Top Row)

0

Line

(Bot Row)

1

_

Important:

Communications Format

OF+/4"7=<M+;"18"K=;=";/=209.00.12"H=2K"/+07120+J"

are wrapped inside an 

q]&Xr"

and 

qO&Xr

"9=/M+/T"

q]&Xr

"n"];=/;"18";/=209.00.12"9=/M+/*"$]D''"F=3-+""y"

UcU5

qO&Xr"

n"O2K"18";/=209.00.12"9=/M+/*"$]D''"F=3-+""y"

UcU?

Summary of Contents for EZ HMI

Page 1: ...need to worry about you can put all your programming effort on the application project 0 1234 5 6 7 20 8 19 10 controller 71 197 3 1 AB CD E10 including Arduino gizDuino F 0 G 6 H5 27 0 I 1 7 0J 7 1...

Page 2: ...PORT ROTARY ENCODER SWITCH WITH PUSH FUNCTION EXT DC INPUT 7 5V 9V DC ENTER EXIT SELECT FUNCTION SWITCHES SW2 SW3 SW4 SW5 LCD CONTRAST ADJUST UART PORT POWER AUX DIO Figure 3 EZ HMI Controls and Port...

Page 3: ..._ NQ A N6aO 6 DO a NQ 20 33 K I 7 2 0 IB 71P 27 1 output and is used as follows no J1 DC input Ob EC 2 71P K 4 0 7734 2L IB 1 I 1 G 27 18 N6 T N1P 773 K 1 L Q I 0 0 IB 71P 01 41 2 0 1 71P 1 K F 0T D 2...

Page 4: ...LER MICROCONTROLLER with 5V Supply Voltage drawn from EZ HMI TXD RXD GND JUMPER INSTALLED ON JP1 5V POSITION 5V INPUT WIRING CONFIGURATIONS Important a 3 2L 0 9 0 21 c K Q C Figure 6 UART wiring inter...

Page 5: ...ND NO JUMPER 3 0 3 3V SOURCE VCC HOST CONTROLLER MICROCONTROLLER with 5V Supply Voltage TXD VCC RXD GND GND 5V SOURCE VCC JUMPER INSTALLED ON JP1 5V POSITION Figure 8 The EZ HMI conversely can be powe...

Page 6: ...2012 by e Gizmo Mechatronix Central Page 6 of 16 pages EZ HMI Display Terminal Figure 10 EZ HMI Schematic Diagram...

Page 7: ...r hence may be hard to read To minimize this adjust the LCD contrast until an acceptable scrolling display is obtained This may result in lower over 33 12 0 T 0 3 9 12 K1 0 21 7734 1 G displays 12 YTQ...

Page 8: ...5T5TQA 5T5T T 5T5TB C19 2 34 7 0 aB ekf 0P T 01 0 1 3K 77 g 0 710 12 of the alias 5T5TR 1 2 1K 0P 2 3 K 0 K character is displayed 5T5Th C19 2 34 7 0 aB ekf 0P T sor should jump to the next character...

Page 9: ...B N 00 a 1 2 1 2K c T Exit Selection Yes To save all changes to non volatile memory No To exit without saving to non volatile memory The edited data will remain in effect but will be reset to the last...

Page 10: ...de 3 2 Mode 1 Numeric Alphanumeric In this mode the input character set is divided into L 1 70 1 9 M 9 00 L 19710 12 0M easier The active input character set selection is in dicated by a single charac...

Page 11: ...2 2 d 0 8 2 12 07 g 1234 1 9 4 12 2 0 0 18 K 2 KK 12 1 8 2 12 07 g T End of transmission is signaled by the qO Xr9 M T q Xr and qO Xr K 7 M 9 M 0 2K 0 1 3K not be transmitted as literal string They sh...

Page 12: ...intable characters The three line implemen 12 H312L 2K 81 9 J 9 4 9 M 41 7 1L 9 longer but is more human readable Hence for clar ity all example codes given are shown in the long 81 9 T a 3 F 7 1 41 8...

Page 13: ...of the printing functions if you want to start print ing on any arbitrary position along the line 1 9 W q Xr1wqO Xr a W Py 0 9 00 L 7 1 QR 0 312L Example 1 Arduino G 073 4 e 912f 1 3 2 U 3TP HUcU5Jx S...

Page 14: ...K UJ to the brightest setting 1 9 W q XrBnnqO Xr a W 22 n v L 2 00 3 F 3 UAQi 07120 W H 1 W a 77 K P q Xr qO Xr O y 2F 3 K 3 F 3 6Z y K4 Example Arduino SDG M3 L L 2 00 1 B 3TP HUcU5Jx STX code 3T7 2...

Page 15: ...1K 7 00 K M 4 P 33 LL K 0 eQf 1234 8 0 2 K K 0 21 7 00 K K 2L 7 F 1 0 K Z 4 0 T 2 1 P1 K0 P 2 F M 4 0 7 00 K P 33 2 eQf 12 g 0 K Z 4 M 0 0 0 2 K Z 4 k 0 P 33 2 eUf F 2 8 KK 00 K M 4 9 2 K 7 00 KT 0 9...

Page 16: ...ions 1 9 W q XrSnqO Xr q XrRnqO Xr q XrInqO Xr a W 2 n 6 2 9 6 7 N1 U n NDY Q nNDB 5n NDR Input Port H a P M 7 33 7 21 9 334 eQfJ U n NDh Q n NGU 07120 W H 1 W a 77 K P q Xr qO Xr S R function 6Z A K4...

Reviews: