Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Jack H.Integration and automation of manufacturing systems.2001.pdf
Скачиваний:
80
Добавлен:
23.08.2013
Размер:
3.84 Mб
Скачать

page 237

 

 

 

 

 

MOV

 

 

 

 

 

 

 

Source F8:0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Dest N7:0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AIC

 

 

 

 

 

 

 

Source N7:0

 

 

 

 

 

 

 

Dest ST9:0

 

 

 

R6:0/EN

 

 

 

 

 

 

 

 

 

AWT

 

 

 

 

 

 

ASCII WRITE

 

 

 

 

 

 

 

 

 

 

 

 

Channel

0

 

 

 

 

 

 

 

 

 

 

Source

ST9:0

 

 

 

 

Control

R6:0

 

 

 

 

String Length

5

 

 

 

 

 

Characters Sent

 

 

 

 

 

 

 

 

 

 

7.26 REFERENCES

Bryan, L.A., Bryan, E.A., Programmable Controllers, Industrial Text Company, 19??.

Cox, R., Technician’s Guide to Programmable Controllers, Delmar Publishing, 19??.

Filer and Linonen, Programmable Controllers and Designing Sequential Logic, Dryden &

Saunders/HBJ, 19??.

Petruzella, F., Programmable Logic Controllers, McGraw-Hill Publishing Co., 19??.

Sobh, M., Owen, J.C., Valvanis, K.P., Gracanin, S., “A Subject-Indexed Bibliography of Dis-

crete Event Dynamic Systems”, IEEE Robotics and Applications Magazine, June 1994, pp. 14-

20.

page 238

Sugiyama, H., Umehara, Y., Smith, E., “A Sequential Function Chart (SFC) Language for Batch Control”, ISA Transactions, Vol. 29, No. 2, 1990, pp. 63-69.

Swainston, F., A Systems Approach to Programmable Controllers, Delmar Publishing, 19??.

Teng, S.H., Black, J. T., “Cellular Manufacturing Systems Modelling: The Petri Net Approach”, Journal of Manufacturing Systems, Vol. 9, No. 1, 1988, pp. 45-54.

Warnock, I., Programmable Controllers: Operation and Application, Prentice Hall, 19??.

Wright, C.P., Applied Measurement Engineering, Prentice-Hall, New Jersey, 1995.

7.27 LABORATORY - SERIAL INTERFACING TO A PLC

Purpose:

To write C++ and ladder logic program to communicate over RS-232.

Overview:

only transmit a fixed number of characters line endings important

when plc receives the following charaters it should, A - turn on an output

B - turn off an output

C - return ’0’ if output is off, or ’1’ if output is on

Pre-Lab:

1.If necessary review PLC basics and the PLC-5 tutorial.

2.Write a ladder logic program to receive ASCII commands as described in the Overview, and perform the desired action.

3.Write a C++ program to communicate with the ladder logic program using a user menu.

page 239

In-Lab:

1.Enter the ladder logic program and test it with a terminal program.

2.Enter the C++ program and test it with a terminal emulator.

3.Test the two programs together.

Submit (individually):

1.Program listings.