Programmable controller
First Claim
Patent Images
1. A programmable controller having a serial port for serial communication, comprising:
- a switching unit that switches the serial port in any one of a first state, a second state, and a third state, the first state being a state in which a general-purpose communication protocol which establishes the serial communication in accordance with a specification of a partner equipment can be processed, the second state being a state in which a computer link-only protocol which establishes the serial communication based on a fixed specification can be processed, and the third state being an idle state, wherein the switching unit switches the serial portto the first state by a first command that initializes the serial port in a program for the general-purpose communication protocol when the serial port is in the idling state,to the second state when the serial port receives a second command comprising a prefix value from external equipment, and the prefix value causing the switching unit to automatically trigger the serial communication using the computer link-only protocol based on the fixed specification, wherein no response to the second command is sent from the serial port of the programmable controller to the external equipment prior to automatically triggering the serial communication using the computer link-only protocol, and the serial communication with the external equipment is established based on only the received second command from the external equipment,to the idling state, upon the serial port being in the first state, by a third command that closes the serial port in the program for the general-purpose communication protocol, andto the idling state, upon the serial port being in the second state, after the serial communication with the external equipment using the computer link-only protocol is completed.
1 Assignment
0 Petitions
Accused Products
Abstract
A programmable controller includes a switching unit that switches functions of a serial port so that the serial port can process a general-purpose communication protocol, a computer link-only protocol, and does nothing based on a command received from outside.
-
Citations
8 Claims
-
1. A programmable controller having a serial port for serial communication, comprising:
-
a switching unit that switches the serial port in any one of a first state, a second state, and a third state, the first state being a state in which a general-purpose communication protocol which establishes the serial communication in accordance with a specification of a partner equipment can be processed, the second state being a state in which a computer link-only protocol which establishes the serial communication based on a fixed specification can be processed, and the third state being an idle state, wherein the switching unit switches the serial port to the first state by a first command that initializes the serial port in a program for the general-purpose communication protocol when the serial port is in the idling state, to the second state when the serial port receives a second command comprising a prefix value from external equipment, and the prefix value causing the switching unit to automatically trigger the serial communication using the computer link-only protocol based on the fixed specification, wherein no response to the second command is sent from the serial port of the programmable controller to the external equipment prior to automatically triggering the serial communication using the computer link-only protocol, and the serial communication with the external equipment is established based on only the received second command from the external equipment, to the idling state, upon the serial port being in the first state, by a third command that closes the serial port in the program for the general-purpose communication protocol, and to the idling state, upon the serial port being in the second state, after the serial communication with the external equipment using the computer link-only protocol is completed. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method for switching between protocols in serial communication, comprising:
-
switching a serial port of a programmable controller to one of a first state, a second state, and a third state, wherein the first state is a state in which a general-purpose communication protocol is used for the serial communication with a partner equipment, the second state is a state in which a computer link-only communication protocol which establishes the serial communication based on a fixed specification is used for communicating, and the third state being an idle state, wherein the serial port is switched from the idle state to the first state by a first command that initializes the serial port in a program for the general-purpose communication protocol, and wherein the serial port is switched from the idle state to the second state when the serial port receives a second command from the partner equipment, said second command comprising a frame defined in the computer link-only protocol and the frame comprising a prefix value, and the prefix value automatically triggering the serial communication in the second state using the computer link-only protocol based on the fixed specification, wherein no response to the second command is sent from the serial port of the programmable controller to the partner equipment prior to automatically triggering the serial communication using the computer link-only protocol, and the serial communication with the partner equipment is established based on only the received second command from the partner equipment, wherein the serial port is switched from the first state to the idle state by a third command that closes the serial port in the program for the general-purpose communication protocol, and wherein the serial port automatically detects end of the serial communication with the partner equipment when the computer link-only protocol is used for the serial communication and automatically switches the serial port from the second state to the idle state when the end of the serial communication is detected.
-
Specification