|
|
|
|
- Overview
- Use with WINDEV and WEBDEV
Modbus is a "field" (industrial and/or restricted environments) communication protocol created in 1979. This protocol is widely used in industrial environments to control programmable logic controllers (PLCs). It is known for its versatility, robustness, simplicity, and the large number of compatible devices. A Modbus network is composed of at least 1 master (or client) which will ask slaves (or servers) to perform an action. In Modbus, there are only two basic actions, which have several variants: query to read data, query to write data. Novedad versión 2024 Use with WINDEV and WEBDEV WINDEV and WEBDEV allow you to communicate with Modbus slaves (or servers) via two methods. - Modbus RTU using serial lines (serial port, USB port converted to serial port, etc.). Slaves that use RS-232 can connect directly to the serial port of the PC. However, for RS-422 or RS-485, a converter is required (in almost all cases, computer serial ports only support RS-232). To connect using this mode, simply use ModbusConnectRTU.
- Modbus TCP using an Ethernet link. To connect using this mode, simply use ModbusConnectTCP.
WLanguage offers read functions:
| | ModbusReadBit | Lee uno o más bits de un esclavo Modbus, empezando por una Address específica. | ModbusReadFloat | Lee uno o más flotadores de una sola precisión de un esclavo Modbus, a partir de una Address específica. | ModbusReadRegister | Lee uno o más registros de un esclavo Modbus, comenzando en una Address específica. |
and write functions:
| | ModbusWriteBit | Escribe uno o varios bits a una Address específica en un esclavo Modbus. | ModbusWriteFloat | Escribe uno o más flotadores de precisión simple a un esclavo Modbus, comenzando en una Address específica. | ModbusWriteRegister | Escribe uno o más registros (valores de 16 bits) a un esclavo Modbus, a partir de una Address específica. |
CAUTION: Since write operations make it possible to control PLCs, it is recommended to test the different commands before the production phase to make sure the PLCs perform the required operations.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|