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

Link To Us




 

 

 

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


 

 

 


A variety of communications cables and settings were discussed.
* ASCII functions are available of PLCs making serial communications possible.

27.6 PRACTICE PROBLEMS

1. Describe what the bits would be when an A (ASCII 65) is transmitted in an RS-232 interface with 8 data bits, even parity and 1 stop bit.
1. Divide the string in ST10:0 by the string in ST10:1 and store the results in ST10:2. Check for a divide by zero error.
2. ST10:0 “100” ST10:1 “10” ST10:2
2. How long would it take to transmit an ASCII file over a serial line with 8 data bits, no parity, 1 stop bit? What if the data were 7 bits long?
3. Write a number guessing program that will allow a user to enter a number on a terminal that transmits it to a PLC where it is compared to a value in N7:0. If the guess is above "Hi" will be returned. If below "Lo" will be returned. When it matches "ON" will be returned.

plc serial -27.16

5. Write a program that will convert a numerical value stored in F8:0 and write it out the RS-232 output on a PLC-5 processor.

27.7 PRACTICE PROBLEM SOLUTIONS

1.

before start data parity stop

1.
2. If we assume 9600 baud, for (1start+8data+0parity+1stop)=10 bits/byte we get 960 bytes per second. If there are only 7 data bits per byte this becomes 9600/9 = 1067 bytes per second.

plc serial -27.17

4.
R6:4/EN ACB
Channel 0
Control R6:4
EQU SourceA R6:4.POS Source B 2 ARL Channel 0 Dest ST9:0 Control R6:0
Length 3
R6:0/DN ACI
Source ST9:0
Dest N7:1
LES AWT
Source A N7:1 Channel 0
Source B N7:0 Source ST9:1
Control R6:1
Length 2
EQ AWT
ST9:1="Lo" ST9:2="ON" ST9:3="Hi" Source A N7:1 Source B N7:0 Channel 0 Source ST9:2 Control R6:2 Length 2
GRT AWT
Source A N7:1 Channel 0
Source B N7:0 Source ST9:3
Control R6:3
Length 2

plc serial -27.18

5.

27.8 ASSIGNMENT PROBLEMS

1.

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.