eBook: Integration and Automation of Manufacturing Systems
   



TOC PREV NEXT

10.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.

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.

TOC PREV NEXT

Search for More:

Custom Search