modbus/web_settings.py
changeset 3733 d1acf20e8e7c
parent 3163 7cf38cd0d820
child 3743 5450dd9e9370
equal deleted inserted replaced
3625:bb1eff4091ab 3733:d1acf20e8e7c
   147     # (C code var name)   (used on web interface)      (C data type)       (web data type)
   147     # (C code var name)   (used on web interface)      (C data type)       (web data type)
   148     #                                                                      (annotate.String,
   148     #                                                                      (annotate.String,
   149     #                                                                       annotate.Integer, ...)
   149     #                                                                       annotate.Integer, ...)
   150     ("host"             , _("Remote IP Address")     , ctypes.c_char_p,    MB_StrippedString),
   150     ("host"             , _("Remote IP Address")     , ctypes.c_char_p,    MB_StrippedString),
   151     ("port"             , _("Remote Port Number")    , ctypes.c_char_p,    MB_StrippedString),
   151     ("port"             , _("Remote Port Number")    , ctypes.c_char_p,    MB_StrippedString),
   152     ("comm_period"      , _("Invocation Rate (ms)")  , ctypes.c_ulonglong, annotate.Integer )
   152     ("comm_period"      , _("Invocation Rate (ms)")  , ctypes.c_ulonglong, annotate.Integer ),
       
   153     ("req_delay"        , _("Request Delay (ms)")    , ctypes.c_ulonglong, annotate.Integer )
   153     ]
   154     ]
   154 
   155 
   155 RTUclient_parameters = [                                                   
   156 RTUclient_parameters = [                                                   
   156     #    param. name       label                        ctype type         annotate type
   157     #    param. name       label                        ctype type         annotate type
   157     # (C code var name)   (used on web interface)      (C data type)       (web data type)
   158     # (C code var name)   (used on web interface)      (C data type)       (web data type)
   159     #                                                                       annotate.Integer, ...)
   160     #                                                                       annotate.Integer, ...)
   160     ("device"           , _("Serial Port")           , ctypes.c_char_p,    MB_StrippedString),
   161     ("device"           , _("Serial Port")           , ctypes.c_char_p,    MB_StrippedString),
   161     ("baud"             , _("Baud Rate")             , ctypes.c_int,       MB_Baud         ),
   162     ("baud"             , _("Baud Rate")             , ctypes.c_int,       MB_Baud         ),
   162     ("parity"           , _("Parity")                , ctypes.c_int,       MB_Parity       ),
   163     ("parity"           , _("Parity")                , ctypes.c_int,       MB_Parity       ),
   163     ("stop_bits"        , _("Stop Bits")             , ctypes.c_int,       MB_StopBits     ),
   164     ("stop_bits"        , _("Stop Bits")             , ctypes.c_int,       MB_StopBits     ),
   164     ("comm_period"      , _("Invocation Rate (ms)")  , ctypes.c_ulonglong, annotate.Integer)
   165     ("comm_period"      , _("Invocation Rate (ms)")  , ctypes.c_ulonglong, annotate.Integer),
       
   166     ("req_delay"        , _("Request Delay (ms)")    , ctypes.c_ulonglong, annotate.Integer)
   165     ]
   167     ]
   166 
   168 
   167 TCPserver_parameters = [                                                   
   169 TCPserver_parameters = [                                                   
   168     #    param. name       label                        ctype type         annotate type
   170     #    param. name       label                        ctype type         annotate type
   169     # (C code var name)   (used on web interface)      (C data type)       (web data type)
   171     # (C code var name)   (used on web interface)      (C data type)       (web data type)