Claims
- 1. An apparatus that provides a free port mode that allows a user to control a free port that links to a programmable logic controller, said apparatus comprising:a port for linking to said programmable logic controller; and a mode selectable by said user that allows said user to control said port, wherein said mode allows said user to configure a protocol for communication to said programmable logic controller through said port, said mode selectable via setting a protocol memory bit that controls use of said port.
- 2. The apparatus according to claim 1, wherein said mode allows said user to configure a character based protocol.
- 3. The apparatus according to claim 1, wherein said mode allows said user to configure a number of bits per character.
- 4. The apparatus according to claim 1, wherein said mode allows said user to configure a parity of said protocol.
- 5. The apparatus according to claim 1, wherein said mode allows said user to configure a baud rate of said protocol.
- 6. The apparatus according to claim 1, wherein said programmable logic controller is a microcontroller.
- 7. The apparatus according to claim 1, further comprising a built-in protocol that is provided to the user for free port mode.
- 8. The apparatus according to claim 1, further comprising a predetermined receive instruction that defines a message content of data communicated through said port.
- 9. A method for providing a free port mode that allows a user to control a free port that links to a programmable logic controller, said method comprising the steps of:selecting a mode that allows said user to control said free port, wherein said mode allows said user to configure a protocol for communication to said programmable logic controller through said free port; said mode selectable via setting a protocol memory bit that controls use of said free port; and configuring said protocol for communicating to said programmable logic controller through said free port.
- 10. The method of claim 9, wherein said step of selecting implements an interrupt that interrupts said programmable logic controller and passes control of said free port to said user.
- 11. The method of claim 9, wherein said step of selecting passes control of said free port to a user program that instructs said programmable logic controller to function in a manner consistent with instructions of said user program.
- 12. The method of claim 9, wherein said programmable logic controller is a master that controls slave devices, wherein said step of selecting passes a token to said master to authorize said master to control said free port.
- 13. The method of claim 9, further comprising the step of setting a UART in accordance with predetermined settings for user control of said free port.
- 14. The method of claim 9, wherein said step of configuring provides a built-in protocol to the user for free port mode.
- 15. The method according to claim 9, wherein said step of configuring provides a predetermined receive instruction that defines a message content of data communicated thorugh said free port.
- 16. The method according to claim 9, further comprising the step of automatically returning to a normal mode after said free port mode is complete wherein said programmable logic controller resumes control over said free port.
PRIORITY
This is a divisional of application Ser. No. 09/538,817, filed Mar. 30, 2000.
The present invention claims priority to a provisional application, U.S. Serial No. 60/126,958, filed Mar. 30, 1999.
US Referenced Citations (5)
Foreign Referenced Citations (1)
Number |
Date |
Country |
2339940 |
Feb 2000 |
GB |
Provisional Applications (1)
|
Number |
Date |
Country |
|
60/126958 |
Mar 1999 |
US |