Ссылка на нас!

Link To Us




 

 

 

FFXI Haven - Ваш Источник #1.


 

 

 


So, if I typed in my initial "HJ", I would get the response "HI HJ".

plc serial -27.11
R6:1/EN ACB Channel 0
Control R6:1
GEQ Source A R6:1.POS Source B 2 ARL Channel 0 Dest ST10:0 Control R6:0
Length 2
R6:0/DN ACN
StringA ST10:1 StringB ST10:0 Dest ST10:2
AWT
ST10:1 = "HI " Channel 0
String ST10:2 Length 7

Figure 27.9 An ASCII String Example

The ASCII functions can also be used to support simple number conversions. The example in Figure 27.10 will convert the strings in ST9:10 and ST9:11 to integers, add the numbers, and store the result as a string in ST9:12.

plc serial -27.12

Figure 27.10 A String to Integer Conversion Example

Many of the remaining string functions are illustrated in Figure 27.11. When A is true the ABL and ACB functions will check for characters that have arrived on channel 1, but have not been retrieved with an ARD function. If the characters "ABC"have arrived ( is an ASCII carriage return) the ACB would count the three characters, and store the value in R6:0.POS.The ABL function would also count the and store a value of four in R6:1.POS.If B is true, and the string in ST9:0 is "ABCDEFGHIJKL", then "EF" will be stored in ST9:1. The last function will compare the strings in ST9:2 and ST9:3, and if they are equal, output O:001/2 will be turned on.

plc serial -27.13
A ACB
Channel 1
Control R6:0
ABL
Channel 1
Control R6:1
B AEX
Source ST9:0
Index 5
Length 2
Dest ST9:1
ASR O:001/2
StringA ST9:2
StringB ST9:3

Figure 27.11 String Manipulation Functions

The AHL function can be used to do handshaking with a remote serial device.

27.3 PARALLEL COMMUNICATIONS

Parallel data transmission will transmit multiple bits at the same time over multiple wires.

BACK | NEXT

Easy Access To All Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106











 

 

 

 

Automation

 

Part I

Part II

Part III

Part IV

Part V

 

Foods Overview


Hunting

 

Symbols

 

Part I

Part II

Part III

Part IV

 

 

 
Copyright @ FFXI Haven, 2004-2005.