Tuya PLC Gateway Development Framework Software
Specifications
- Product: PLC Sub-Device Connectivity
- Version: 20250317
- Online Version
Product Information
Power Line Communication (PLC) sub-device connectivity is designed to help you easily develop PLC gateways. Tuya’s hardware and software-integrated solution provides a PLC module and software implementation, allowing you to build a PLC gateway with no code and connect to PLC sub-devices in the Tuya ecosystem. This topic describes how to use the PLC features with the TuyaOS Gateway Development Framework.
Background Information
Developing a PLC gateway has a high barrier to entry and a long development cycle. Tuya’s hardware and software-integrated solution makes complicated gateway development simple. Even if you do not have any PLC knowledge, you can build a PLC gateway cost-effectively. Connect your hardware to Tuya’s PLC module through the serial port and enable PLC features in the software. Then, your product becomes PLC-capable and can connect to Tuya-enabled sub-devices.
Development Guide
This section describes how to enable PLC features with the TuyaOS Gateway Development Framework by making API calls. Two interfaces are used to enable PLC features: PLC initialisationtuya_plc_svc_init
and PLC startup tuya_plc_svc_start
. They have the same parameters in JSON used for configurations.
Configuration Description
Fields in the JSON data:
Field | dev name | Cts | baud rate | Description |
---|---|---|---|---|
Specifies the serial port number. | — | — | — | Specifies the serial port number used for communication. |
Specifies whether to enable hardware flow control. | — | 1 : Enable0 : Disable | — | Whether to enable hardware flow control depends on the PLC module you use. |
Baud rate for serial communication | — | — | Set according to PLC requirements | The baud rate for serial communication between the PLC module and the gateway’s microcontroller chip. |
Example
FAQs
Q: What is the purpose of the PLC Sub-Device Connectivity?
A: The purpose is to help users easily develop PLC gateways and connect to PLC sub-devices in the Tuya ecosystem.
Documents / Resources
![]() |
tuya PLC Gateway Development Framework Software [pdf] User Guide PLC Gateway Development Framework Software, Gateway Development Framework Software, Development Framework Software, Framework Software |