add working with pseudo-FX3U with my firmware

This commit is contained in:
2026-09-29 17:06:31 +03:00
parent 985a179b87
commit 1db54ed07c
11 changed files with 297 additions and 15 deletions

View File

@@ -51,6 +51,7 @@ glob_pars G = {
.speedchk_interval = 10.,
#endif
#ifdef SERVER
.io_ID = -1, // no IO board
.motlogdir = "/tmp",
#endif
};
@@ -75,6 +76,7 @@ static sl_option_t cmdlnopts[] = {
{"serialdev",NEED_ARG, NULL, 'd', arg_string, APTR(&G.serialpath),_("path to RS-485 device")},
{"serialspeed",NEED_ARG,NULL, 's', arg_int, APTR(&G.serialspeed),_("speed of serial device")},
{"mldir", NEED_ARG, NULL, 'D', arg_string, APTR(&G.motlogdir), _("directory to store motor logs (default: /tmp)")},
{"ioid", NEED_ARG, NULL, 'i', arg_int, APTR(&G.io_ID), _("I/O board modbus ID")},
#endif
#ifdef CLIENT
{"mottmout",NEED_ARG, NULL, 'M', arg_double, APTR(&G.speedchk_interval), _("interval of motor's speed checking, s (default: 10)")},