a.binder 5 years ago
parent
commit
e5f4e687a5

+ 3 - 1
SE/stuff/P5_Automation_can-dev-res/LCD1602.h

@@ -2,7 +2,9 @@
 
 Queue<int> _LCD_print_queue = Queue<int>(5);
 
-
+ const int LCD1602rs=12, LCD1602en=11, LCD1602db4=5, LCD1602db5=4, LCD1602db6=3, LCD1602db7=2; // lcd keypad shield pins
+  LiquidCrystal lcd(LCD1602rs, LCD1602en, LCD1602db4, LCD1602db5, LCD1602db6, LCD1602db7);
+  int lcdPos = 0 ;
 
  
  struct _LCD_print_bufforS {

+ 16 - 20
SE/stuff/P5_Automation_can-dev-res/P5_Automation_can-dev-res.ino

@@ -76,30 +76,34 @@
  */
 
 
-#include "Queue.h"
- 
- Queue<int> _Slave_Ports_queue = Queue<int>(10);
 
- 
 
 
 #define  _ControllerID   0x101 
 #define  _Slave1_ID   0x103 
 
-#define Active_ControllerID _ControllerID 
+#include "config_Active_ControllerID.h"
+//#include "Active_ControllerID_0x103.h"
+//#define Active_ControllerID _ControllerID 
 //#define Active_ControllerID _Slave1_ID 
 
 
+
+
+#include "_Slave_Ports_Struct.h"
+#include "Queue.h"
+ 
+ Queue<int> _Slave_Ports_queue = Queue<int>(10);
+
+ 
+
  #if Active_ControllerID == _ControllerID 
     String lcdPattern = "s" ;
-  //   #define HAS_LCD1602 
-   //  #define HAS_TFT_ILI9163C 
-   #define HAS_ROTTARY_SW
+   
  #endif
  #if Active_ControllerID == _Slave1_ID 
     String lcdPattern = "." ;
-    #define HAS_TFT_ILI9163C 
-   // #define HAS_LCD1602 
+    
  #endif
 
 //BEGIN 1602
@@ -108,19 +112,12 @@
   // initialize the library with the numbers of the interface pins
   //LiquidCrystal lcd(4, 6, 10, 11, 12, 13);
   //LiquidCrystal lcd(4, 6, 53, 51, 50, 52  );
-  const int LCD1602rs=12, LCD1602en=11, LCD1602db4=5, LCD1602db5=4, LCD1602db6=3, LCD1602db7=2; // lcd keypad shield pins
-  LiquidCrystal lcd(LCD1602rs, LCD1602en, LCD1602db4, LCD1602db5, LCD1602db6, LCD1602db7);
-  int lcdPos = 0 ;
   #include "LCD1602.h"
 #endif
 
 
 #if defined(HAS_TFT_ILI9163C)
-
-  #include <SPI.h>
-  #include <Adafruit_GFX.h>
-  #include <TFT_ILI9163C.h>
-  #include "TFT_ILI9163C.h"
+  #include "_TFT_ILI9163C.h"
 
 #endif
 
@@ -169,8 +166,7 @@ _Slave_Port _Slave_Ports[] = {
  
  
  
- int LCDtim = 250;  //the value of delay time
-
+#include "_DISPLAY_init.h"
 
 
 

+ 21 - 0
SE/stuff/P5_Automation_can-dev-res/_DISPLAY_init.h

@@ -0,0 +1,21 @@
+int LCDtim = 250 ;//the value of delay time
+
+
+typedef  char LCDarray16_T[16] ;
+
+
+typedef  int LCD_pos_seq_T ; //reqiested position in LCD
+    #define  LCD_pos_seq_A_NEXT 0x01
+
+typedef  int LCD_pos_id_T ; //reqiested position id in LCD
+
+ 
+
+ struct _DISPLAY_LCD {
+      int _queue_id ; //current queue task
+       LCD_pos_seq_T LCD_pos_seq_A = LCD_pos_seq_A_NEXT;
+       LCD_pos_id_T LCD_pos_id_A;
+       LCDarray16_T LCDarray16_A ; 
+       long time_seq_id;
+       long time_min_run;
+    } ;

+ 0 - 56
SE/stuff/P5_Automation_can-dev-res/_Slave_Ports.h

@@ -3,47 +3,6 @@
 #include "Slave_Ports_Status_QUEUE.h"
 //#include "Slave_Ports_Status_S.h"
 
-typedef struct  {
-  const char * const _Protocol;
-  int _Slave_ID; //remote id - use FF for broadcast
-  int PortTypes;  //0xFF  =  1111 1111 s
-                                          /*
-                                          {
-                                      bit 1 - PWM port
-                                      bit 2 - on I2C managed port
-                                      bit 3 - expanded port with LocalPort address
-                                      bit 4 - not allocated
-                                      bit 2 - not allocated
-                                      bit 5 - not allocated
-                                      bit 6 - not allocated
-                                      bit 7 - not allocated
-                                      bit 8 - not allocated
-                                    } 
-                                           */
- // byte has_Address;
-  int Address ;
- // byte has_Local_Port;
-  int LocalPort;
-  int Exp_state;                  /*0xFF  =  1111 1111
-                                    0x00  =  0000 0000  = OFF = 0V
-                                    0x01  =  0000 0001  = ON = PWM max
-                                    {
-                                      bit 1 - OFF = 0V
-                                      bit 2 - ON = PWM max
-                                      bit 3 - not allocated
-                                      bit 4 - not allocated
-                                      bit 2 - not allocated
-                                      bit 5 - not allocated
-                                      bit 6 - not allocated
-                                      bit 7 - not allocated
-                                      bit 8 - not allocated
-                                    }*/
-  int Exp_state_ttl;  // 0x00 = odswiezyc
-  //int Broadcast_state; //0x00 - not broadcast; 0x01
-} _Slave_Port;
-
-
-
 /*
  * 
 _Slave_Port _Slave_Ports[] = {
@@ -57,21 +16,6 @@ _Slave_Port _Slave_Ports[] = {
 #include "Slave_Ports_Status_QUEUE.h"
 
 
- struct _Slave_Ports_queue_tasksS {
-  int queueID;
-  int _Slave_Ports_queue_task_type ; /*
-              { 0x01 _Slave_Ports_ttl_decrement, 
-                 0x02  request_confirm_Exp_state ,
-                 0x03  request_set_new_Exp_state,
-                 0x04 
-                  }
-  */
-  int _Slave_Port_link; //todo link
- long time_seq_id;
- long time_min_run;
-} ;
-
-typedef struct _Slave_Ports_queue_tasksS _Slave_Ports_queue_tasksT;
 
 _Slave_Ports_queue_tasksT _Slave_Ports_queue_tasks_LIST[11];
 

+ 15 - 60
SE/stuff/P5_Automation_can-dev-res/_Slave_Ports_LOCAL.h

@@ -1,66 +1,21 @@
-
-#include "Slave_Ports_Status_S.h"
-
-
 void _Slave_Ports_LOCAL_init(Slave_Ports_Status_T* Slave_Ports_Status_A ,
                 Slave_Ports_Status_add_port_count_T* Slave_Ports_Status_add_port_count_A) {
 
 
-
-  Slave_Ports_Status_add_port(
-                Slave_Ports_Status_T* Slave_Ports_Status_A ,
-                Slave_Ports_Status_add_port_count_T* Slave_Ports_Status_add_port_count_A,
-                1,  // int  Port_ID,
-                Active_ControllerID ,  //int  _Slave_ID,
-                PortTypes_P2M_EXP_I2C , //int  PortTypes,
-                0x00 ,  //int  Address,
-                1 , //int  LocalPort,
-                Exp_state_OFF, //int  Exp_state,
-                Exp_state_ttl_TO_REFRESH, //int  Exp_state_ttl,
-                Broadcast_state_TO_REFRESH, //int  Broadcast_state,
-                I2C_port_DEFAULT, //int I2C_port,
-                I2C_driver_Adafruit_PWMServoDriver //int I2C_driver
-                );
+                
+                  Slave_Ports_Status_add_port(
+                                Slave_Ports_Status_A ,
+                                Slave_Ports_Status_add_port_count_A,
+                                1,  // int  Port_ID,
+                                Active_ControllerID ,  //int  _Slave_ID,
+                                PortTypes_P2M_EXP_I2C , //int  PortTypes,
+                                0x00 ,  //int  Address,
+                                1 , //int  LocalPort,
+                                Exp_state_OFF, //int  Exp_state,
+                                Exp_state_ttl_TO_REFRESH, //int  Exp_state_ttl,
+                                Broadcast_state_TO_REFRESH, //int  Broadcast_state,
+                                I2C_port_DEFAULT, //int I2C_port,
+                                I2C_driver_Adafruit_PWMServoDriver //int I2C_driver
+                                );
 
 }
-
-
-/*
-typedef struct  {
-  const char * const _Protocol;
-  int _Slave_ID;
-  int PortTypes;  //0xFF  =  1111 1111 
-                                          {
-                                      bit 1 - PWM port
-                                      bit 2 - on I2C managed port
-                                      bit 3 - expanded port with LocalPort address
-                                      bit 4 - not allocated
-                                      bit 2 - not allocated
-                                      bit 5 - not allocated
-                                      bit 6 - not allocated
-                                      bit 7 - not allocated
-                                      bit 8 - not allocated
-                                    } 
-                                        
- // byte has_Address;
-  int Address ;
- // byte has_Local_Port;
-  int LocalPort;
-  int Exp_state;                  0xFF  =  1111 1111
-                                    0x00  =  0000 0000  = OFF = 0V
-                                    0x01  =  0000 0001  = ON = PWM max
-                                    {
-                                      bit 1 - OFF = 0V
-                                      bit 2 - ON = PWM max
-                                      bit 3 - not allocated
-                                      bit 4 - not allocated
-                                      bit 2 - not allocated
-                                      bit 5 - not allocated
-                                      bit 6 - not allocated
-                                      bit 7 - not allocated
-                                      bit 8 - not allocated
-                                    }
-  int Exp_state_ttl;  // 0x00 = odswiezyc
-} _Slave_Port;
-
-*/

+ 0 - 84
SE/stuff/P5_Automation_can-dev-res/_Slave_Ports_Protocol.h

@@ -1,60 +1,4 @@
 
-typedef int _Slave_ID_BROADCAST_T  ;
-typedef int _SENDER_T  ;
-
-
-//#define _Slave_ID_BROADCAST_T  _Slave_ID_BROADCAST  0xFF ; 
-
- #if ! defined(Active_ControllerID)
-    #error "#9 not defined Active_ControllerID"
- 
- #endif 
-
- struct _Slave_Ports_Protocol_CAN_broadcast_S {
-  const   _Slave_ID_BROADCAST_T  _Slave_ID_BROADCAST = 0xFF ;   // 1remote id - use FF for broadcast
-  const _SENDER_T _SENDER = Active_ControllerID ; //2 sender //Device which orginated port 
-  int  Port_ID ; //3 global id for device //const char * const _Protocol;
-  int  PortTypes;  //4 0xFF  =  1111 1111 s
-  //int  Address ; //
-  //int  LocalPort; //
-  int  Exp_state;    //5
-  int  Exp_state_ttl;  //6
-  int  Broadcast_state;  //7
-  const int _CAN_8 = 0x07 ; //8 - nbot used
-} ;
-
-typedef struct _Slave_Ports_Protocol_CAN_broadcast_S _Slave_Ports_Protocol_CAN_broadcast_T;
-
-
-
-typedef int _CAN_SEND_1_T  ; //1 byte = 0
-typedef int _CAN_SEND_2_T  ; //2 byte = 8 
-
- struct _Slave_Ports_Protocol_CAN_SEND_S {
-     const _SENDER_T _SENDER = Active_ControllerID ;
-     const  _CAN_SEND_1_T  _CAN_SEND_1 = 0 ;
-     const  _CAN_SEND_2_T  _CAN_SEND_2 = 8 ;
-     _Slave_Ports_Protocol_CAN_broadcast_T _Slave_Ports_Protocol_CAN_broadcast_A ;
-} ;
-
-//typedef  byte _Slave_Ports_Protocol_CAN_broadcast_AS[8] ;
-
-/*
-
- struct _Slave_Ports_Protocol_CAN_broadcast_AS {
-  const byte  _Slave_ID_BROADCAST = 0xFF ;   // 1remote id - use FF for broadcast
-  const byte _SENDER = Active_ControllerID ; //2 sender //Device which orginated port 
-  byte  Port_ID ; //3 global id for device //const char * const _Protocol;
-  byte  PortTypes;  //4 0xFF  =  1111 1111 s
-  //int  Address ; //
-  //int  LocalPort; //
-  byte  Exp_state;    //5
-  byte  Exp_state_ttl;  //6
-  byte  Broadcast_state;  //7
-  const byte _CAN_8 = 0x07 ; //8 - nbot used
-} ;
-*/
-typedef  byte _Slave_Ports_Protocol_CAN_broadcast_AS[8]  ;
 
 void _Slave_Ports_Protocol_CAN_broadcast_AF(_Slave_Ports_Protocol_CAN_broadcast_T _Slave_Ports_Protocol_CAN_broadcast_A, byte* _Slave_Ports_Protocol_CAN_broadcast_B ) {
    //byte dataa = {10, 12, 13, 4, 5, 6, 7, 8}; 
@@ -72,31 +16,3 @@ void _Slave_Ports_Protocol_CAN_broadcast_AF(_Slave_Ports_Protocol_CAN_broadcast_
 }
 
 
-/*
- _Slave_Ports_Protocol_CAN_broadcast_AS  _Slave_Ports_Protocol_CAN_broadcast_F( _Slave_Ports_Protocol_CAN_broadcast_T _Slave_Ports_Protocol_CAN_broadcast_A ) {
-       byte data[8] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07}; 
-       return data;
-}
-*/
-/*byte data[8] = {
-                int  _Slave_ID --1 sender addr
-                 int 0x04, -2 task type
-                 int  Port_ID ; -3 //global id for device //const char * const _Protocol;
-                 _Slave_Ports[i].PortTypes, -4
-                   _Slave_Ports[i].Exp_state, -5
-                    _Slave_Ports[i].Exp_state_ttl, -6 
-                     Broadcast_state}; -7
-                     0x07 -8 not used
-
-byte data[8] = {_Slave_Ports[i].Address,  1
-            0x04, 2
-            _Slave_Ports[i].LocalPort, 3
-            _Slave_Ports[i].PortTypes,4
-             _Slave_Ports[i].LocalPort, 5
-             _Slave_Ports[i].Exp_state,6
-              _Slave_Ports[i].Exp_state_ttl,7
-               0x07};8
-
-                     
-byte sndStat = CAN0.sendMsgBuf(_Slave_Ports[i]._Slave_ID, 0, 8, data);
-*/

+ 140 - 0
SE/stuff/P5_Automation_can-dev-res/_Slave_Ports_Struct.h

@@ -0,0 +1,140 @@
+
+
+
+
+typedef struct  {
+  const char * const _Protocol;
+  int _Slave_ID; //remote id - use FF for broadcast
+  int PortTypes;  //0xFF  =  1111 1111 s
+                                          /*
+                                          {
+                                      bit 1 - PWM port
+                                      bit 2 - on I2C managed port
+                                      bit 3 - expanded port with LocalPort address
+                                      bit 4 - not allocated
+                                      bit 2 - not allocated
+                                      bit 5 - not allocated
+                                      bit 6 - not allocated
+                                      bit 7 - not allocated
+                                      bit 8 - not allocated
+                                    } 
+                                           */
+ // byte has_Address;
+  int Address ;
+ // byte has_Local_Port;
+  int LocalPort;
+  int Exp_state;                  /*0xFF  =  1111 1111
+                                    0x00  =  0000 0000  = OFF = 0V
+                                    0x01  =  0000 0001  = ON = PWM max
+                                    {
+                                      bit 1 - OFF = 0V
+                                      bit 2 - ON = PWM max
+                                      bit 3 - not allocated
+                                      bit 4 - not allocated
+                                      bit 2 - not allocated
+                                      bit 5 - not allocated
+                                      bit 6 - not allocated
+                                      bit 7 - not allocated
+                                      bit 8 - not allocated
+                                    }*/
+  int Exp_state_ttl;  // 0x00 = odswiezyc
+  //int Broadcast_state; //0x00 - not broadcast; 0x01
+} _Slave_Port;
+
+
+
+
+
+
+
+
+
+
+
+
+
+ struct _Slave_Ports_queue_tasksS {
+  int queueID;
+  int _Slave_Ports_queue_task_type ; /*
+              { 0x01 _Slave_Ports_ttl_decrement, 
+                 0x02  request_confirm_Exp_state ,
+                 0x03  request_set_new_Exp_state,
+                 0x04 
+                  }
+  */
+  int _Slave_Port_link; //todo link
+ long time_seq_id;
+ long time_min_run;
+} ;
+
+typedef struct _Slave_Ports_queue_tasksS _Slave_Ports_queue_tasksT;
+
+
+
+
+
+
+
+typedef int _Slave_ID_BROADCAST_T  ;
+typedef int _SENDER_T  ;
+
+
+//#define _Slave_ID_BROADCAST_T  _Slave_ID_BROADCAST  0xFF ; 
+
+ #if ! defined(Active_ControllerID)
+    #error "#9 not defined Active_ControllerID"
+ 
+ #endif 
+
+ struct _Slave_Ports_Protocol_CAN_broadcast_S {
+  const   _Slave_ID_BROADCAST_T  _Slave_ID_BROADCAST = 0xFF ;   // 1remote id - use FF for broadcast
+  const _SENDER_T _SENDER = Active_ControllerID ; //2 sender //Device which orginated port 
+  int  Port_ID ; //3 global id for device //const char * const _Protocol;
+  int  PortTypes;  //4 0xFF  =  1111 1111 s
+  //int  Address ; //
+  //int  LocalPort; //
+  int  Exp_state;    //5
+  int  Exp_state_ttl;  //6
+  int  Broadcast_state;  //7
+  const int _CAN_8 = 0x07 ; //8 - nbot used
+} ;
+
+typedef struct _Slave_Ports_Protocol_CAN_broadcast_S _Slave_Ports_Protocol_CAN_broadcast_T;
+
+
+
+typedef int _CAN_SEND_1_T  ; //1 byte = 0
+typedef int _CAN_SEND_2_T  ; //2 byte = 8 
+
+ struct _Slave_Ports_Protocol_CAN_SEND_S {
+     const _SENDER_T _SENDER = Active_ControllerID ;
+     const  _CAN_SEND_1_T  _CAN_SEND_1 = 0 ;
+     const  _CAN_SEND_2_T  _CAN_SEND_2 = 8 ;
+     _Slave_Ports_Protocol_CAN_broadcast_T _Slave_Ports_Protocol_CAN_broadcast_A ;
+} ;
+
+//typedef  byte _Slave_Ports_Protocol_CAN_broadcast_AS[8] ;
+
+/*
+
+ struct _Slave_Ports_Protocol_CAN_broadcast_AS {
+  const byte  _Slave_ID_BROADCAST = 0xFF ;   // 1remote id - use FF for broadcast
+  const byte _SENDER = Active_ControllerID ; //2 sender //Device which orginated port 
+  byte  Port_ID ; //3 global id for device //const char * const _Protocol;
+  byte  PortTypes;  //4 0xFF  =  1111 1111 s
+  //int  Address ; //
+  //int  LocalPort; //
+  byte  Exp_state;    //5
+  byte  Exp_state_ttl;  //6
+  byte  Broadcast_state;  //7
+  const byte _CAN_8 = 0x07 ; //8 - nbot used
+} ;
+*/
+
+
+typedef  byte _Slave_Ports_Protocol_CAN_broadcast_AS[8]  ;
+
+
+
+
+

+ 6 - 0
SE/stuff/P5_Automation_can-dev-res/TFT_ILI9163C.h → SE/stuff/P5_Automation_can-dev-res/_TFT_ILI9163C.h

@@ -1,4 +1,10 @@
   //#define TFT_ILI9163C_CSpin __CSpin // 53 // 10 //  chip select
+
+
+  #include <SPI.h>
+  #include <Adafruit_GFX.h>
+  #include <TFT_ILI9163C.h>
+
   #define TFT_ILI9163C_CSpin 7 // __CSpin // 53 // 10 //  chip select
 
   #define TFT_ILI9163C_DCpin 8 // A0   data/command pin.   sometimes called DC, RS, ...

+ 6 - 0
SE/stuff/P5_Automation_can-dev-res/config_Active_ControllerID.h

@@ -0,0 +1,6 @@
+#define Active_ControllerID _ControllerID 
+
+
+#define HAS_TFT_ILI9163C 
+// #define HAS_LCD1602 
+#define HAS_ROTTARY_SW

+ 2 - 58
SE/stuff/P5_Automation_can-dev/_Slave_Ports_Protocol.h

@@ -1,60 +1,4 @@
 
-typedef int _Slave_ID_BROADCAST_T  ;
-typedef int _SENDER_T  ;
-
-
-//#define _Slave_ID_BROADCAST_T  _Slave_ID_BROADCAST  0xFF ; 
-
- #if ! defined(Active_ControllerID)
-    #error "#9 not defined Active_ControllerID"
- 
- #endif 
-
- struct _Slave_Ports_Protocol_CAN_broadcast_S {
-  const   _Slave_ID_BROADCAST_T  _Slave_ID_BROADCAST = 0xFF ;   // 1remote id - use FF for broadcast
-  const _SENDER_T _SENDER = Active_ControllerID ; //2 sender //Device which orginated port 
-  int  Port_ID ; //3 global id for device //const char * const _Protocol;
-  int  PortTypes;  //4 0xFF  =  1111 1111 s
-  //int  Address ; //
-  //int  LocalPort; //
-  int  Exp_state;    //5
-  int  Exp_state_ttl;  //6
-  int  Broadcast_state;  //7
-  const int _CAN_8 = 0x07 ; //8 - nbot used
-} ;
-
-typedef struct _Slave_Ports_Protocol_CAN_broadcast_S _Slave_Ports_Protocol_CAN_broadcast_T;
-
-
-
-typedef int _CAN_SEND_1_T  ; //1 byte = 0
-typedef int _CAN_SEND_2_T  ; //2 byte = 8 
-
- struct _Slave_Ports_Protocol_CAN_SEND_S {
-     const _SENDER_T _SENDER = Active_ControllerID ;
-     const  _CAN_SEND_1_T  _CAN_SEND_1 = 0 ;
-     const  _CAN_SEND_2_T  _CAN_SEND_2 = 8 ;
-     _Slave_Ports_Protocol_CAN_broadcast_T _Slave_Ports_Protocol_CAN_broadcast_A ;
-} ;
-
-//typedef  byte _Slave_Ports_Protocol_CAN_broadcast_AS[8] ;
-
-/*
-
- struct _Slave_Ports_Protocol_CAN_broadcast_AS {
-  const byte  _Slave_ID_BROADCAST = 0xFF ;   // 1remote id - use FF for broadcast
-  const byte _SENDER = Active_ControllerID ; //2 sender //Device which orginated port 
-  byte  Port_ID ; //3 global id for device //const char * const _Protocol;
-  byte  PortTypes;  //4 0xFF  =  1111 1111 s
-  //int  Address ; //
-  //int  LocalPort; //
-  byte  Exp_state;    //5
-  byte  Exp_state_ttl;  //6
-  byte  Broadcast_state;  //7
-  const byte _CAN_8 = 0x07 ; //8 - nbot used
-} ;
-*/
-typedef  byte _Slave_Ports_Protocol_CAN_broadcast_AS[8]  ;
 
 void _Slave_Ports_Protocol_CAN_broadcast_AF(_Slave_Ports_Protocol_CAN_broadcast_T _Slave_Ports_Protocol_CAN_broadcast_A, byte* _Slave_Ports_Protocol_CAN_broadcast_B ) {
    //byte dataa = {10, 12, 13, 4, 5, 6, 7, 8}; 
@@ -63,8 +7,8 @@ void _Slave_Ports_Protocol_CAN_broadcast_AF(_Slave_Ports_Protocol_CAN_broadcast_
      _Slave_Ports_Protocol_CAN_broadcast_B[2] = _Slave_Ports_Protocol_CAN_broadcast_A._SENDER ;
      _Slave_Ports_Protocol_CAN_broadcast_B[3] = _Slave_Ports_Protocol_CAN_broadcast_A.Port_ID ;
      _Slave_Ports_Protocol_CAN_broadcast_B[4] = _Slave_Ports_Protocol_CAN_broadcast_A.PortTypes ;
-     _Slave_Ports_Protocol_CAN_broadcast_B[5] =  _Slave_Ports_Protocol_CAN_broadcast_A.Exp_state ;
-     _Slave_Ports_Protocol_CAN_broadcast_B[6] =  _Slave_Ports_Protocol_CAN_broadcast_A.Exp_state_ttl ;
+     _Slave_Ports_Protocol_CAN_broadcast_B[5] = _Slave_Ports_Protocol_CAN_broadcast_A.Exp_state ;
+     _Slave_Ports_Protocol_CAN_broadcast_B[6] = _Slave_Ports_Protocol_CAN_broadcast_A.Exp_state_ttl ;
      _Slave_Ports_Protocol_CAN_broadcast_B[7] = _Slave_Ports_Protocol_CAN_broadcast_A.Broadcast_state ;
      _Slave_Ports_Protocol_CAN_broadcast_B[8] = _Slave_Ports_Protocol_CAN_broadcast_A._CAN_8 ;