Method and device for controlling input and output of controller, and controller
An input and output, controller technology, applied in the field of data processing, can solve the problem that the internal processing program cannot flexibly adapt to the external terminals
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0022] An embodiment of the present invention provides a method for controlling input and output of a controller.
[0023] figure 2 It is a flow chart of the input and output control method of the controller according to the embodiment of the present invention. Such as figure 2 As shown, the method may include the following steps:
[0024] In step S20, an external input terminal of the controller receives an input signal.
[0025] Step S22, query from the address relationship table to obtain the second input address corresponding to the first input address of the external input terminal, the first input address is the internal address set in the controller for the external input terminal, and the second input address is the The address of the signal input port provided by the internally running handler.
[0026] In step S24, the input signal is transmitted to the processing program running inside the controller according to the second input address, and the output signal...
Embodiment 2
[0056] The embodiment of the present invention also provides an input and output control device of the controller. The device can realize its functions through various functional modules. It should be noted that the input and output control device of the controller in the embodiment of the present invention can be used to implement the input and output control method of the controller provided in the embodiment of the present invention.
[0057] Figure 4 is a schematic diagram of the input and output control device of the controller according to the embodiment of the present invention. Such as Figure 4 As shown, the device may include: a receiving module 40 , a first query module 42 , a processing module 44 , a second query module 46 and an output module 48 .
[0058] Wherein, the receiving module 40 is used for external input terminals to receive input signals; the first query module 42 is used for querying from the address relationship table to obtain the second input a...
Embodiment 3
[0066] Based on the above-mentioned method embodiment and device embodiment, the present application may also provide a controller capable of running the above-mentioned method and device, Figure 5 is a structural schematic diagram of a controller according to an embodiment of the present invention, and the controller may include: an external input terminal, a processor, and an external output terminal.
[0067] Among them, the external input terminal is used to receive the input signal; the processor is connected to the external input terminal, and is used to obtain the second input address corresponding to the first input address of the external input terminal from the address relationship table, and send the input signal According to the second input address transmitted to the processing program running inside the controller, the first output address is generated and used to output the output signal, wherein the first input address is the internal address set by the externa...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 