author | Edouard Tisserant |
Wed, 18 Mar 2020 12:06:50 +0100 | |
branch | svghmi |
changeset 2885 | f398896b7ebf |
parent 2019 | 92f02bb17c7e |
child 2647 | 990004083eb8 |
permissions | -rw-r--r-- |
1912
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
1 |
/* File generated by Beremiz (PlugGenerate_C method of modbus Plugin instance) */ |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
2 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
3 |
/* |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
4 |
* Copyright (c) 2016 Mario de Sousa (msousa@fe.up.pt) |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
5 |
* |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
6 |
* This file is part of the Modbus library for Beremiz and matiec. |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
7 |
* |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
8 |
* This Modbus library is free software: you can redistribute it and/or modify |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
9 |
* it under the terms of the GNU Lesser General Public License as published by |
2019
92f02bb17c7e
Make Modbus extension license compatible with the rest of Beremiz IDE python code : GPLv2.
Edouard Tisserant
parents:
1912
diff
changeset
|
10 |
* the Free Software Foundation, either version 2 of the License, or |
1912
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
11 |
* (at your option) any later version. |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
12 |
* |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
13 |
* This program is distributed in the hope that it will be useful, but |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
14 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
16 |
* General Public License for more details. |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
17 |
* |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
18 |
* You should have received a copy of the GNU Lesser General Public License |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
19 |
* along with this Modbus library. If not, see <http://www.gnu.org/licenses/>. |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
20 |
* |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
21 |
* This code is made available on the understanding that it will not be |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
22 |
* used in safety-critical situations without a full and competent review. |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
23 |
*/ |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
24 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
25 |
#include "mb_addr.h" |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
26 |
#include "mb_tcp_private.h" |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
27 |
#include "mb_master_private.h" |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
28 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
29 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
30 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
31 |
#define DEF_REQ_SEND_RETRIES 0 |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
32 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
33 |
// Used by the Modbus server node |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
34 |
#define MEM_AREA_SIZE 65536 |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
35 |
typedef struct{ |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
36 |
u16 ro_bits [MEM_AREA_SIZE]; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
37 |
u16 rw_bits [MEM_AREA_SIZE]; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
38 |
u16 ro_words[MEM_AREA_SIZE]; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
39 |
u16 rw_words[MEM_AREA_SIZE]; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
40 |
} server_mem_t; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
41 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
42 |
typedef struct{ |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
43 |
const char *location; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
44 |
u8 slave_id; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
45 |
node_addr_t node_address; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
46 |
int mb_nd; // modbus library node used for this server |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
47 |
int init_state; // store how far along the server's initialization has progressed |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
48 |
pthread_t thread_id; // thread handling this server |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
49 |
server_mem_t mem_area; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
50 |
} server_node_t; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
51 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
52 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
53 |
// Used by the Modbus client node |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
54 |
typedef struct{ |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
55 |
const char *location; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
56 |
node_addr_t node_address; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
57 |
int mb_nd; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
58 |
int init_state; // store how far along the client's initialization has progressed |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
59 |
u64 comm_period; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
60 |
int prev_error; // error code of the last printed error message (0 when no error) |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
61 |
pthread_t thread_id; // thread handling all communication with this client |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
62 |
} client_node_t; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
63 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
64 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
65 |
// Used by the Modbus client plugin |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
66 |
typedef enum { |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
67 |
req_input, |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
68 |
req_output, |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
69 |
no_request /* just for tests to quickly disable a request */ |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
70 |
} iotype_t; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
71 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
72 |
#define REQ_BUF_SIZE 2000 |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
73 |
typedef struct{ |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
74 |
const char *location; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
75 |
int client_node_id; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
76 |
u8 slave_id; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
77 |
iotype_t req_type; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
78 |
u8 mb_function; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
79 |
u16 address; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
80 |
u16 count; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
81 |
int retries; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
82 |
u8 error_code; // modbus error code (if any) of current request |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
83 |
int prev_error; // error code of the last printed error message (0 when no error) |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
84 |
struct timespec resp_timeout; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
85 |
// buffer used to store located PLC variables |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
86 |
u16 plcv_buffer[REQ_BUF_SIZE]; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
87 |
// buffer used to store data coming from / going to server |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
88 |
u16 coms_buffer[REQ_BUF_SIZE]; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
89 |
pthread_mutex_t coms_buf_mutex; // mutex to access coms_buffer[] |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
90 |
} client_request_t; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
91 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
92 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
93 |
/* The total number of nodes, needed to support _all_ instances of the modbus plugin */ |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
94 |
#define TOTAL_TCPNODE_COUNT %(total_tcpnode_count)s |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
95 |
#define TOTAL_RTUNODE_COUNT %(total_rtunode_count)s |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
96 |
#define TOTAL_ASCNODE_COUNT %(total_ascnode_count)s |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
97 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
98 |
/* Values for instance %(locstr)s of the modbus plugin */ |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
99 |
#define MAX_NUMBER_OF_TCPCLIENTS %(max_remote_tcpclient)s |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
100 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
101 |
#define NUMBER_OF_TCPSERVER_NODES %(tcpserver_node_count)s |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
102 |
#define NUMBER_OF_TCPCLIENT_NODES %(tcpclient_node_count)s |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
103 |
#define NUMBER_OF_TCPCLIENT_REQTS %(tcpclient_reqs_count)s |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
104 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
105 |
#define NUMBER_OF_RTUSERVER_NODES %(rtuserver_node_count)s |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
106 |
#define NUMBER_OF_RTUCLIENT_NODES %(rtuclient_node_count)s |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
107 |
#define NUMBER_OF_RTUCLIENT_REQTS %(rtuclient_reqs_count)s |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
108 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
109 |
#define NUMBER_OF_ASCIISERVER_NODES %(ascserver_node_count)s |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
110 |
#define NUMBER_OF_ASCIICLIENT_NODES %(ascclient_node_count)s |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
111 |
#define NUMBER_OF_ASCIICLIENT_REQTS %(ascclient_reqs_count)s |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
112 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
113 |
#define NUMBER_OF_SERVER_NODES (NUMBER_OF_TCPSERVER_NODES + \ |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
114 |
NUMBER_OF_RTUSERVER_NODES + \ |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
115 |
NUMBER_OF_ASCIISERVER_NODES) |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
116 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
117 |
#define NUMBER_OF_CLIENT_NODES (NUMBER_OF_TCPCLIENT_NODES + \ |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
118 |
NUMBER_OF_RTUCLIENT_NODES + \ |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
119 |
NUMBER_OF_ASCIICLIENT_NODES) |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
120 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
121 |
#define NUMBER_OF_CLIENT_REQTS (NUMBER_OF_TCPCLIENT_REQTS + \ |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
122 |
NUMBER_OF_RTUCLIENT_REQTS + \ |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
123 |
NUMBER_OF_ASCIICLIENT_REQTS) |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
124 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
125 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
126 |
/*initialization following all parameters given by user in application*/ |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
127 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
128 |
static client_node_t client_nodes[NUMBER_OF_CLIENT_NODES] = { |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
129 |
%(client_nodes_params)s |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
130 |
}; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
131 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
132 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
133 |
static client_request_t client_requests[NUMBER_OF_CLIENT_REQTS] = { |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
134 |
%(client_req_params)s |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
135 |
}; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
136 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
137 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
138 |
static server_node_t server_nodes[NUMBER_OF_SERVER_NODES] = { |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
139 |
%(server_nodes_params)s |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
140 |
} |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
141 |
; |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
142 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
143 |
/*******************/ |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
144 |
/*located variables*/ |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
145 |
/*******************/ |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
146 |
|
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
147 |
%(loc_vars)s |
8391c11477f4
Merged Mario's modbus branch. Fixed line endings.
Edouard Tisserant
parents:
1909
diff
changeset
|
148 |