PLC 16 in / 8 rev / an in-out / CAN

Dependencies:   PCAL955x mbed mbed-rtos AT45

Revision:
2:439534d6bb89
Parent:
0:d05a7158dbad
diff -r 3768b56b12e7 -r 439534d6bb89 src/f/set_vars.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/f/set_vars.h	Fri Feb 12 10:55:27 2021 +0000
@@ -0,0 +1,251 @@
+  
+ /*******   inp-out PLC  ************************************/
+  
+int x01=0;		int mx01=0; 
+int x02=0;		int mx02=0; 
+int x03=0;		int mx03=0; 
+int x04=0;		int mx04=0; 
+int x05=0;		int mx05=0; 
+int x06=0;		int mx06=0; 
+int x07=0;		int mx07=0; 
+int x08=0;		int mx08=0; 
+int x09=0;		int mx09=0; 
+int x10=0;		int mx10=0; 
+int x11=0;		int mx11=0; 
+int x12=0;		int mx12=0; 
+int x13=0;		int mx13=0; 
+int x14=0;		int mx14=0; 
+int x15=0;		int mx15=0; 
+int x16=0;		int mx16=0; 
+
+
+int y01=0;		int my01=0; 
+int y02=0;		int my02=0; 
+int y03=0;		int my03=0; 
+int y04=0;		int my04=0; 
+int y05=0;		int my05=0; 
+int y06=0;		int my06=0; 
+int y07=0;		int my07=0; 
+int y08=0;		int my08=0; 
+
+
+float 	Vin_1=0.0; 
+float 	Vin_2=0.0; 
+float 	Vin_3=0.0;
+float 	Vin_4=0.0;  
+
+float 	Vout_1=0.0; 
+float 	Vout_2=0.0; 
+
+
+int  r_mess_id[10];		int  	w_mess_id[10];
+char r_mess_data[40];	char 	w_mess_data[40];
+
+int  r_id=0 ;			int  w_id=0 ;
+char r_b1=0 ;			char w_b1=0 ;
+char r_b2=0 ;			char w_b2=0 ;
+char r_b3=0 ;			char w_b3=0 ;
+char r_b4=0 ;			char w_b4=0 ;
+						int  w_alr=0 ; 
+
+
+
+/******************  DM0806  moduls *********************************/
+
+// ----- adr 1 ---------
+char dm1_outs=0;
+char mdm1_outs=0;
+
+int x101=0;		int mx101=0; 
+int x102=0;		int mx102=0; 
+int x103=0;		int mx103=0; 
+int x104=0;		int mx104=0; 
+int x105=0;		int mx105=0; 
+int x106=0;		int mx106=0; 
+int x107=0;		int mx107=0; 
+int x108=0;		int mx108=0; 
+
+int y101=0;		int my101=0; 
+int y102=0;		int my102=0; 
+int y103=0;		int my103=0; 
+int y104=0;		int my104=0; 
+int y105=0;		int my105=0; 
+int y106=0;		int my106=0; 
+
+
+// ----- adr 2 ---------
+char dm2_outs=0;
+char mdm2_outs=0;
+
+int x201=0;		int mx201=0; 
+int x202=0;		int mx202=0; 
+int x203=0;		int mx203=0; 
+int x204=0;		int mx204=0; 
+int x205=0;		int mx205=0; 
+int x206=0;		int mx206=0; 
+int x207=0;		int mx207=0; 
+int x208=0;		int mx208=0; 
+
+int y201=0;		int my201=0; 
+int y202=0;		int my202=0; 
+int y203=0;		int my203=0; 
+int y204=0;		int my204=0; 
+int y205=0;		int my205=0; 
+int y206=0;		int my206=0; 
+
+// ----- adr 3 ---------
+char dm3_outs=0;
+char mdm3_outs=0;
+
+int x301=0;		int mx301=0; 
+int x302=0;		int mx302=0; 
+int x303=0;		int mx303=0; 
+int x304=0;		int mx304=0; 
+int x305=0;		int mx305=0; 
+int x306=0;		int mx306=0; 
+int x307=0;		int mx307=0; 
+int x308=0;		int mx308=0; 
+
+int y301=0;		int my301=0; 
+int y302=0;		int my302=0; 
+int y303=0;		int my303=0; 
+int y304=0;		int my304=0; 
+int y305=0;		int my305=0; 
+int y306=0;		int my306=0; 
+
+// ----- adr 4 ---------
+char dm4_outs=0;
+char mdm4_outs=0;
+
+int x401=0;		int mx401=0; 
+int x402=0;		int mx402=0; 
+int x403=0;		int mx403=0; 
+int x404=0;		int mx404=0; 
+int x405=0;		int mx405=0; 
+int x406=0;		int mx406=0; 
+int x407=0;		int mx407=0; 
+int x408=0;		int mx408=0; 
+
+int y401=0;		int my401=0; 
+int y402=0;		int my402=0; 
+int y403=0;		int my403=0; 
+int y404=0;		int my404=0; 
+int y405=0;		int my405=0; 
+int y406=0;		int my406=0; 
+
+
+/******************** for  SM01  moduls *****************************/
+int	 sm_position=0;
+char sm_outs =0;
+
+int	 msm_position=0;
+char msm_outs =0;
+
+ // ----- adr 1  ---------
+int sm1_pos=0;
+int sm1_mov=0;
+int sm1_alr=0;
+
+int a101=0;		int ma101=0;
+int a102=0;		int ma102=0;
+int a103=0;		int ma103=0;
+int a104=0;		int ma104=0;
+
+int b101=0;		int mb101=0;
+int b102=0;		int mb102=0;
+
+
+// ----- adr 2  ---------
+int sm2_pos=0;
+int sm2_mov=0;
+int sm2_alr=0;
+
+int a201=0;		int ma201=0;
+int a202=0;		int ma202=0;
+int a203=0;		int ma203=0;
+int a204=0;		int ma204=0;
+
+int b201=0;		int mb201=0;
+int b202=0;		int mb202=0;
+ 
+ 
+ // ----- adr 3  ---------
+int sm3_pos=0;
+int sm3_mov=0;
+int sm3_alr=0;
+
+int a301=0;		int ma301=0;
+int a302=0;		int ma302=0;
+int a303=0;		int ma303=0;
+int a304=0;		int ma304=0;
+
+int b301=0;		int mb301=0;
+int b302=0;		int mb302=0;
+  
+  
+ // ----- adr 4  ---------
+int sm4_pos=0;
+int sm4_mov=0;
+int sm4_alr=0;
+
+int a401=0;		int ma401=0;
+int a402=0;		int ma402=0;
+int a403=0;		int ma403=0;
+int a404=0;		int ma404=0;
+
+int b401=0;		int mb401=0;
+int b402=0;		int mb402=0;
+
+
+
+/***************  for user *******************************************/
+
+// ------------------------
+int t01=0;		int t101=0;
+int t02=0;		int t102=0;
+int t03=0;		int t103=0;
+int t04=0;		int t104=0;
+int t05=0;		int t105=0;
+int t06=0;		int t106=0;
+int t07=0;		int t107=0;
+int t08=0;		int t108=0;
+int t09=0;		int t109=0;
+int t10=0;		int t110=0;
+
+
+// ---------------------------
+int vr000 = 0 ; 
+int vr001 = 2 ; 
+int vr002 = 0 ; 
+int vr003 = 0 ; 
+int vr004 = 0 ; 
+int vr005 = 0 ; 
+int vr007 = 0 ; 
+int vr008 = 0 ; 
+int vr009 = 0 ; 
+int vr010 = 0 ; 
+int vr011 = 0 ; 
+int vr012 = 0 ; 
+int vr013 = 0 ; 
+
+int pr001 = 0 ; 
+int pr002 = 0 ; 
+
+int al001 = 0 ;
+int al002 = 1 ;
+int al003 = 1 ;
+int al004 = 0 ;
+int al005 = 0 ;
+int al006 = 0 ;
+int al007 = 0 ;
+int al008 = 0 ;
+int al009 = 0 ;
+int al010 = 0 ;
+int al011 = 0 ;
+int al012 = 0 ;
+int al013 = 0 ;
+int al014 = 0 ;
+
+
+
+