|
Publicité | ||||||||||||||||||||||
|
|
#1 |
|
Invité de passage
![]() Inscription : juillet 2009 Messages : 2 ![]() |
Bonjour,
je désirerais mettre une macro minuterie sur mon terminal Bray version 1.9 comme celui décrit dans ce lien : http://hw-server.com/software/termv19b.html je voudrais que ma macro me serve à switcher entre DTS et RTS aprés un temps donné (exemple: 10min DTS puis 5min RTS puis 10min DTS ... ) l'aide ne m'aide pas beaucoup, mais elle raconte ceci : 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) HOT KEYS: F1 - send macro #1 F2 - send macro #2 F3 - send macro #3 F12 - clear Rx box 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 ##=#). To calculate XOR checksum byte use !XOR command. Macro examples... example 1. abcdefgh123456 - this will send 'abcdefgh123456' 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!XOR - this will send $01 $02 $03 $04 $05 and calculated XOR byte $01 Macro string can be up to 128 characters long. SIMPLE SCRIPTING (experimental) - NEW! - pascal syntax Random(range: Longint): Longint - return random number in range Beep() - sound signal Delay(ms: integer) - simple delay (milli seconds) ShowMessage(s: string) - show message box ComSendchr(c: byte) - send one byte ComSendstr(s: string) - send string ComSendmacro(s: string) - send macro like string ($xx,#ddd,!XOR,...) ComReadchr() - read curent char/byte ComBaud(s: string) - set baudrate...'9600','19200',... SetRTS(state: boolean) - set or clear RTS line SetDTR(state: boolean) - set or clear DTR line 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 Je vous serez très reconnaissant si vous puissiez m'aider. |
|
|
00
|
|
|
#2 |
|
Invité de passage
![]() Inscription : juillet 2009 Messages : 2 ![]() |
mon probleme est donc un probleme de language car je ne sais pas trop quel language employe et sous quelle syntaxe...
s il vous plait donner moi au moins une piste, car j ai deja essayer mais en vain et j en ai vraiment besoin pour mon travail. d avance merci |
|
|
00
|
Copyright © 2000-2012 - www.developpez.com