프로그램&회로

Terminal V1.9b 2013

엠칩 2019. 9. 6. 14:55
반응형

Terminal V1.9중 가장 무난한 버전인듯.

Terminal_2013.exe
0.32MB

 

수신된 데이타를 그래프로도 받아볼 수 있음

 

좌측상단 Help를 누르면 도움말을 얻을 수 있다.

 

PC측 Dsub 9PIN 연결 번호..
DB9 PINOUT on PC:
1 - CD - Carrier Detect (IN)
2 - RX - Data Receive (IN)
3 - TX - Data Transmit (OUT)
4 - DTR - Data Terminal Ready (OUT)
5 - GND - Ground
6 - DSR - Data Set Ready (IN)
7 - RTS - Request To Send (OUT)
8 - CTS - Clear To Send (IN)
9 - RI - Ring Indicator (IN)

MACRO 단축키
HOT KEYS:
F1..F12 - send macros #1..#12
CTRL+F1..F12 - send macros #13..#24
ESC - clear Rx box

RX box에서 사용할 수 있는 편집키
(in Rx box):
CTRL+F - find hex sequence
CTRL+A - select all
CTRL+C - copy selection
CTRL+S - save Rx bo to file
CTRL+Del - clear Rx box


Macro에서는 ASCII, DEC, HEX값을 미리 지정하여 입력할 수 있다. 
$xx는 16진수  #xxx는 10진수
 # 또는 $char를 사용하려면 $=$ 및 ##=#을 두 번 입력해야 합니다.
문자 %는 매크로 내부의 특수 기능을 위해 예약되어 있습니다.
%를 일반 기호로 사용하려면 %%와 같이 두 번 입력해야 합니다.
XOR 체크섬 바이트를 계산하려면 %XORxx 명령을 사용합니다.
여기서 xx는 첫 번째 바이트의 오프셋입니다.

SUM(1바이트 합계) 체크섬 바이트를 계산하려면 %SUMxx 명령을 사용합니다. 여기서 xx는 첫 번째 바이트의 오프셋입니다.
매크로 문자열에 지연을 삽입하려면 %DLYxxxxx를 사용합니다.여기서 xxxx는 0000-9999(ms) 값입니다.
매크로 문자열에서 브레이크 신호를 보내려면 %BRKxxxxx를 사용합니다. 여기서 xxxx는 0000-9999(ms) 값입니다.


HOW TO USE MACROS?
In macros you can use all characters from keyboard and any ASCII char if you use $xx or #xxx. 
Where $xx is hex and #xxx dec format of ascii code. 
If you want to use # or $ char in macro you should type it twice ($$=$ and ##=#). 
Character % is reserved for special functions inside macros. 
If you want to use % as a regular sign you have to type it twice like %%.
To calculate XOR checksum byte use %XORxx command, where xx is offset of first byte.
To calculate SUM (1byte sum) checksum byte use %SUMxx command, where xx is offset of first byte.
To insert delay in macro string use %DLYxxxx, where xxxx is value 0000-9999 in ms.
To send break signal in macro string use %BRKxxxx, where xxxx is value 0000-9999 in ms.

%RUN"cmd.exe" - this will run command line prompt

%URL"http://www.google.com" - guess what?! ;)

%URL"mailto:braypp@gmail.com?subject=terminal url test&body=test" - 
compose mail (without sending)

%M03 - this will send/run macro #3 (there are some limits when using this)

Macro examples...

example 1.
abcdefgh123456 - this will send 'abcdefgh123456'   ASCII code로 전송됨.

example 2.
AT#013#010 - this will send AT and "CR" + "LF" (cariage return + line feed)   

example 3.
X1##Y2##Z3##$0D$0A - this will send 'X1#Y2#Z3#"CR""LF"'

example 4.
$$value=123$0D - this will send '$value=123"CR"'

example 5.
$01$02$03$04$05%XOR00 - this will send $01 $02 $03 $04 $05 and calculated  XOR byte $01 

example 6.
ABC%DLY0123DEF - this will send ABC and after ~123ms DEF

example 7.
$01$02$03%SUM00 - this will send $01$02$03$06

example 8.
$01$02$03%SUM01 - this will send $01$02$03 and $01 (XOR offset=1, result = $02 xor $03)

example 9:
$00$FF$00$FF%BRK0001 - this will send short DMX512 packet (generic  RGB node on addr#1- red on, green off, blue on) 

Macro string can be up to 128 characters long.


SIMPLE SCRIPTING (experimental) - NEW!

- pascal syntax
Writeln(s: string) - write line to Debug window
Readln(var s: string) - opens input form for string/line 
Random(range: Longint): Longint - return random number in range
StrCpy(s1:string, s2:string): string - copy s1 and s2 to new string
GetTimeStr(): string - return current time in string
GetDateStr(): string - return current date in string
Beep() - sound signal
Delay(ms: integer) - simple delay (milli seconds)
ShowMessage(s: string) - show message box
RunApl(aplfilename: string) - run application
Browse(url: string) - open url in default browser
OpenFile(filename: string) - open file with default application
WriteToFile(filename: string; text: string) - append a line of text to a file

ComSendchr(c: byte) - send one byte
ComSendstr(s: string) - send string
ComSendmacro(s: string) - send macro like string ($xx,#ddd,%XOR,%SUM...)
ComReadchr() - read curent char/byte
ComReadStr(): string - read string/line 
ComBaud(s: string) - set baudrate...'9600','19200',...
ComDataBits(s: string) - set number of data bits...'5','6', '7', '8'
ComParity(s: string) - set parity...'none','odd', 'even', 'space', 'mark'
SetRTS(state: boolean) - set or clear RTS line
SetDTR(state: boolean) - set or clear DTR line
ComSendBreak() - send BREAK signal (for DMX512 testing)

Graph_Rx(enable: boolean) - enable/disable Rx graph
Graph_Text(x: integer; y: integer; text: string) - print text on graph
Graph_Clear() - clear graph 
Graph_Point(x: integer; y: integer; color: string) - Plot point on graph; 
  color:
   'R' - red
   'G' - green
   'B' - blue
   '0' - white
   '1' - black


반응형

'프로그램&회로' 카테고리의 다른 글

STM32F0X0 Flash Programming  (2) 2019.10.01
STM32 UART  (0) 2019.09.23
QMC5883 지자기센서  (0) 2019.01.16
라즈베리파이 전원버튼 추가.  (0) 2018.12.17
라즈베리파이 네트워크 설정  (0) 2018.12.14