Lines Matching +refs:if +refs:ref +refs:master
20 …master(s) and slave devices (multiple masters are allowed on using Modbus TCP/IP). The slave devic…
30 …hat the number of slaves and their register maps are known by the Modbus master before the start o…
44 …us`. The sections cover initialization of a Modbus port, and the setup a master or slave device ac…
46 - :ref:`modbus_api_port_initialization`
47 - :ref:`modbus_api_slave_overview`
48 - :ref:`modbus_api_master_overview`
55 …e used to create and then initialize Modbus controller interface (either master or slave) over a p…
68 // Initialization of Modbus master for serial port
70 if (master_handler == NULL || err != ESP_OK) {
81 if (slave_handler == NULL || err != ESP_OK) {
91 The following overview describes how to setup Modbus master communication. The overview reflects a …
93 1. :ref:`modbus_api_port_initialization` - Initialization of Modbus controller interface for the se…
94 2. :ref:`modbus_api_master_configure_descriptor` - Configure data descriptors to access slave param…
95 3. :ref:`modbus_api_master_setup_communication_options` - Allows to setup communication options for…
96 4. :ref:`modbus_api_master_start_communication` - Start stack and sending / receiving data.
97 5. :ref:`modbus_api_master_destroy` - Destroy Modbus controller and its resources.
109 The Data Dictionary is the list in the Modbus master which shall be defined by user to link each CI…
112 .. list-table:: Table 1 Modbus master Data Dictionary description
144 It is optional field and can be set to zero if the parameter is not used in the application.
162 …`param_key`` have to be unique. Please use the prefix to the parameter key if you have several sim…
199 // Enumeration of modbus slave addresses accessed by master device
238 :cpp:func:`mbc_master_set_descriptor`: Initialization of master descriptor.
270 …master TCP port requires additional definition of IP address table where number of addresses shoul…
299 …call to UART specific APIs to setup communication mode and pins. Refer to :ref:`uart-api-running-u…
314 if (err != ESP_OK) {
318 The list of functions below are used by the Modbus master stack from a user's application:
320 :cpp:func:`mbc_master_send_request`: This function executes a blocking Modbus request. The master s…
337 if ((err != ESP_ERR_NOT_FOUND) && (param_descriptor != NULL)) {
339 if (err == ESP_OK) {
359 …ed slave device. The additional data for parameter request is taken from master parameter descript…
367 if (err == ESP_OK) {
395 1. :ref:`modbus_api_port_initialization` - Initialization of Modbus controller interface for the se…
396 2. :ref:`modbus_api_slave_configure_descriptor` - Configure data descriptors to access slave parame…
397 3. :ref:`modbus_api_slave_setup_communication_options` - Allows to setup communication options for …
398 4. :ref:`modbus_api_slave_communication` - Start stack and sending / receiving data. Filter events …
399 5. :ref:`modbus_api_slave_destroy` - Destroy Modbus controller and its resources.
406 …ed when the Modbus controller slave port is already initialized. Refer to :ref:`modbus_api_port_in…
408 …:func:`mbc_slave_check_event` function which will block until the Modbus master access the slave. …
431 … API is called the Modbus stack can access the data in user data structures by request from master.
457 …type must be set in order to provide register access to its area. If the master tries to access an…
532 …for a event specified (represented as an event mask parameter). Once the master accesses the param…
536 …t accessed parameters from the Modbus controller event queue. The KConfig :ref:`CONFIG_FMB_CONTROL…
547 - start Modbus register accessed by master
553 - number of registers being accessed by master
568 // Get information about data accessed from master
573 if (event & (MB_EVENT_HOLDING_REG_WR | MB_EVENT_HOLDING_REG_RD)) {
581 } else if (event & (MB_EVENT_INPUT_REG_RD)) {
607 …d master boards are not able to communicate correctly, it is possible to find the reason for error…
613 …E (1692332) MB_CONTROLLER_MASTER: mbc_master_get_parameter(111): SERIAL master get parameter failu…
625 - Refer to slave register map. Check the master data dictionary for correctness.
628 …- Measure and increase the maximum slave response timeout `idf.py menuconfig`, option :ref:`CONFIG…
629 …onnection or network configuration and make sure that the slave response can reach the master side.
630 …igher priority than :ref:`CONFIG_FMB_PORT_TASK_PRIO` it is recommended to place Modbus tasks on th…
631 …Configure the Modbus task's priority :ref:`CONFIG_FMB_PORT_TASK_PRIO` to ensure that the task gets…
634 …cal connection then refer to register map of your slave to configure the master data dictionary pr…
636 …- ``ESP_ERR_INVALID_STATE`` - Critical failure or FSM sequence failure or master FSM is busy proce…
642 The examples below use the FreeModbus library port for serial TCP slave and master implementations …