PLC 16 in / 8 rev / an in-out / CAN
Dependencies: PCAL955x mbed mbed-rtos AT45
src/ext_vars.h@2:439534d6bb89, 2021-02-12 (annotated)
- Committer:
- Oleg_B
- Date:
- Fri Feb 12 10:55:27 2021 +0000
- Revision:
- 2:439534d6bb89
- Parent:
- 0:d05a7158dbad
files move to f
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Oleg_B | 0:d05a7158dbad | 1 | |
Oleg_B | 0:d05a7158dbad | 2 | /***************** входа выхода контроллера *******************/ |
Oleg_B | 0:d05a7158dbad | 3 | |
Oleg_B | 0:d05a7158dbad | 4 | // ---- входа контроллера -------- |
Oleg_B | 0:d05a7158dbad | 5 | extern int x01; // |
Oleg_B | 0:d05a7158dbad | 6 | extern int x02; // |
Oleg_B | 0:d05a7158dbad | 7 | extern int x03; // |
Oleg_B | 0:d05a7158dbad | 8 | extern int x04; // |
Oleg_B | 0:d05a7158dbad | 9 | extern int x05; // |
Oleg_B | 0:d05a7158dbad | 10 | extern int x06; // |
Oleg_B | 0:d05a7158dbad | 11 | extern int x07; // |
Oleg_B | 0:d05a7158dbad | 12 | extern int x08; // |
Oleg_B | 0:d05a7158dbad | 13 | extern int x09; // |
Oleg_B | 0:d05a7158dbad | 14 | extern int x10; // |
Oleg_B | 0:d05a7158dbad | 15 | extern int x11; // |
Oleg_B | 0:d05a7158dbad | 16 | extern int x12; // |
Oleg_B | 0:d05a7158dbad | 17 | extern int x13; // |
Oleg_B | 0:d05a7158dbad | 18 | extern int x14; // |
Oleg_B | 0:d05a7158dbad | 19 | extern int x15; // |
Oleg_B | 0:d05a7158dbad | 20 | extern int x16; // |
Oleg_B | 0:d05a7158dbad | 21 | |
Oleg_B | 0:d05a7158dbad | 22 | extern int mx01; |
Oleg_B | 0:d05a7158dbad | 23 | extern int mx02; |
Oleg_B | 0:d05a7158dbad | 24 | extern int mx03; |
Oleg_B | 0:d05a7158dbad | 25 | extern int mx04; |
Oleg_B | 0:d05a7158dbad | 26 | extern int mx05; |
Oleg_B | 0:d05a7158dbad | 27 | extern int mx06; |
Oleg_B | 0:d05a7158dbad | 28 | extern int mx07; |
Oleg_B | 0:d05a7158dbad | 29 | extern int mx08; |
Oleg_B | 0:d05a7158dbad | 30 | extern int mx09; |
Oleg_B | 0:d05a7158dbad | 31 | extern int mx10; |
Oleg_B | 0:d05a7158dbad | 32 | extern int mx11; |
Oleg_B | 0:d05a7158dbad | 33 | extern int mx12; |
Oleg_B | 0:d05a7158dbad | 34 | extern int mx13; |
Oleg_B | 0:d05a7158dbad | 35 | extern int mx14; |
Oleg_B | 0:d05a7158dbad | 36 | extern int mx15; |
Oleg_B | 0:d05a7158dbad | 37 | extern int mx16; |
Oleg_B | 0:d05a7158dbad | 38 | |
Oleg_B | 0:d05a7158dbad | 39 | // ----- выхода контроллера -------- |
Oleg_B | 0:d05a7158dbad | 40 | extern int y01; // |
Oleg_B | 0:d05a7158dbad | 41 | extern int y02; // |
Oleg_B | 0:d05a7158dbad | 42 | extern int y03; // |
Oleg_B | 0:d05a7158dbad | 43 | extern int y04; // |
Oleg_B | 0:d05a7158dbad | 44 | extern int y05; // |
Oleg_B | 0:d05a7158dbad | 45 | extern int y06; // |
Oleg_B | 0:d05a7158dbad | 46 | extern int y07; // |
Oleg_B | 0:d05a7158dbad | 47 | extern int y08; // |
Oleg_B | 0:d05a7158dbad | 48 | |
Oleg_B | 0:d05a7158dbad | 49 | extern int my01; |
Oleg_B | 0:d05a7158dbad | 50 | extern int my02; |
Oleg_B | 0:d05a7158dbad | 51 | extern int my03; |
Oleg_B | 0:d05a7158dbad | 52 | extern int my04; |
Oleg_B | 0:d05a7158dbad | 53 | extern int my05; |
Oleg_B | 0:d05a7158dbad | 54 | extern int my06; |
Oleg_B | 0:d05a7158dbad | 55 | extern int my07; |
Oleg_B | 0:d05a7158dbad | 56 | extern int my08; |
Oleg_B | 0:d05a7158dbad | 57 | |
Oleg_B | 0:d05a7158dbad | 58 | // ----- аналогов. входа 0-10В ------- |
Oleg_B | 0:d05a7158dbad | 59 | extern float Vin_1; // |
Oleg_B | 0:d05a7158dbad | 60 | extern float Vin_2; // |
Oleg_B | 0:d05a7158dbad | 61 | extern float Vin_3; // |
Oleg_B | 0:d05a7158dbad | 62 | extern float Vin_4; // |
Oleg_B | 0:d05a7158dbad | 63 | |
Oleg_B | 0:d05a7158dbad | 64 | |
Oleg_B | 0:d05a7158dbad | 65 | // ----- аналогов. выхода 0-10В ------ |
Oleg_B | 0:d05a7158dbad | 66 | extern float Vout_1; // |
Oleg_B | 0:d05a7158dbad | 67 | extern float Vout_2; // |
Oleg_B | 0:d05a7158dbad | 68 | |
Oleg_B | 0:d05a7158dbad | 69 | // ---------- CAN date -------- |
Oleg_B | 0:d05a7158dbad | 70 | extern int r_mess_id[]; |
Oleg_B | 0:d05a7158dbad | 71 | extern char r_mess_data[]; |
Oleg_B | 0:d05a7158dbad | 72 | extern int w_mess_id[]; |
Oleg_B | 0:d05a7158dbad | 73 | extern char w_mess_data[]; |
Oleg_B | 0:d05a7158dbad | 74 | |
Oleg_B | 0:d05a7158dbad | 75 | extern int r_id ; |
Oleg_B | 0:d05a7158dbad | 76 | extern char r_b1 ; |
Oleg_B | 0:d05a7158dbad | 77 | extern char r_b2 ; |
Oleg_B | 0:d05a7158dbad | 78 | extern char r_b3 ; |
Oleg_B | 0:d05a7158dbad | 79 | extern char r_b4 ; |
Oleg_B | 0:d05a7158dbad | 80 | |
Oleg_B | 0:d05a7158dbad | 81 | extern int w_id ; |
Oleg_B | 0:d05a7158dbad | 82 | extern char w_b1 ; |
Oleg_B | 0:d05a7158dbad | 83 | extern char w_b2 ; |
Oleg_B | 0:d05a7158dbad | 84 | extern char w_b3 ; |
Oleg_B | 0:d05a7158dbad | 85 | extern char w_b4 ; |
Oleg_B | 0:d05a7158dbad | 86 | extern int w_alr ; |
Oleg_B | 0:d05a7158dbad | 87 | |
Oleg_B | 0:d05a7158dbad | 88 | |
Oleg_B | 0:d05a7158dbad | 89 | /********************** DM0806 moduls ********************************/ |
Oleg_B | 0:d05a7158dbad | 90 | |
Oleg_B | 0:d05a7158dbad | 91 | // ----- adr 1 --------- |
Oleg_B | 0:d05a7158dbad | 92 | extern char dm1_outs ; // упакованные выхода для DM adr 1 |
Oleg_B | 0:d05a7158dbad | 93 | extern char mdm1_outs ; |
Oleg_B | 0:d05a7158dbad | 94 | |
Oleg_B | 0:d05a7158dbad | 95 | extern int x101; // |
Oleg_B | 0:d05a7158dbad | 96 | extern int x102; // |
Oleg_B | 0:d05a7158dbad | 97 | extern int x103; // |
Oleg_B | 0:d05a7158dbad | 98 | extern int x104; // |
Oleg_B | 0:d05a7158dbad | 99 | extern int x105; // |
Oleg_B | 0:d05a7158dbad | 100 | extern int x106; // |
Oleg_B | 0:d05a7158dbad | 101 | extern int x107; // |
Oleg_B | 0:d05a7158dbad | 102 | extern int x108; // |
Oleg_B | 0:d05a7158dbad | 103 | |
Oleg_B | 0:d05a7158dbad | 104 | extern int y101; // |
Oleg_B | 0:d05a7158dbad | 105 | extern int y102; // |
Oleg_B | 0:d05a7158dbad | 106 | extern int y103; // |
Oleg_B | 0:d05a7158dbad | 107 | extern int y104; // |
Oleg_B | 0:d05a7158dbad | 108 | extern int y105; // |
Oleg_B | 0:d05a7158dbad | 109 | extern int y106; // |
Oleg_B | 0:d05a7158dbad | 110 | |
Oleg_B | 0:d05a7158dbad | 111 | extern int mx101; |
Oleg_B | 0:d05a7158dbad | 112 | extern int mx102; |
Oleg_B | 0:d05a7158dbad | 113 | extern int mx103; |
Oleg_B | 0:d05a7158dbad | 114 | extern int mx104; |
Oleg_B | 0:d05a7158dbad | 115 | extern int mx105; |
Oleg_B | 0:d05a7158dbad | 116 | extern int mx106; |
Oleg_B | 0:d05a7158dbad | 117 | extern int mx107; |
Oleg_B | 0:d05a7158dbad | 118 | extern int mx108; |
Oleg_B | 0:d05a7158dbad | 119 | |
Oleg_B | 0:d05a7158dbad | 120 | extern int my101; |
Oleg_B | 0:d05a7158dbad | 121 | extern int my102; |
Oleg_B | 0:d05a7158dbad | 122 | extern int my103; |
Oleg_B | 0:d05a7158dbad | 123 | extern int my104; |
Oleg_B | 0:d05a7158dbad | 124 | extern int my105; |
Oleg_B | 0:d05a7158dbad | 125 | extern int my106; |
Oleg_B | 0:d05a7158dbad | 126 | |
Oleg_B | 0:d05a7158dbad | 127 | |
Oleg_B | 0:d05a7158dbad | 128 | // ----- adr 2 --------- |
Oleg_B | 0:d05a7158dbad | 129 | extern char dm2_outs ; // упакованные выхода для DM adr 2 |
Oleg_B | 0:d05a7158dbad | 130 | extern char mdm2_outs ; |
Oleg_B | 0:d05a7158dbad | 131 | |
Oleg_B | 0:d05a7158dbad | 132 | extern int x201; // |
Oleg_B | 0:d05a7158dbad | 133 | extern int x202; // |
Oleg_B | 0:d05a7158dbad | 134 | extern int x203; // |
Oleg_B | 0:d05a7158dbad | 135 | extern int x204; // |
Oleg_B | 0:d05a7158dbad | 136 | extern int x205; // |
Oleg_B | 0:d05a7158dbad | 137 | extern int x206; // |
Oleg_B | 0:d05a7158dbad | 138 | extern int x207; // |
Oleg_B | 0:d05a7158dbad | 139 | extern int x208; // |
Oleg_B | 0:d05a7158dbad | 140 | |
Oleg_B | 0:d05a7158dbad | 141 | extern int y201; // |
Oleg_B | 0:d05a7158dbad | 142 | extern int y202; // |
Oleg_B | 0:d05a7158dbad | 143 | extern int y203; // |
Oleg_B | 0:d05a7158dbad | 144 | extern int y204; // |
Oleg_B | 0:d05a7158dbad | 145 | extern int y205; // |
Oleg_B | 0:d05a7158dbad | 146 | extern int y206; // |
Oleg_B | 0:d05a7158dbad | 147 | |
Oleg_B | 0:d05a7158dbad | 148 | extern int mx201; |
Oleg_B | 0:d05a7158dbad | 149 | extern int mx202; |
Oleg_B | 0:d05a7158dbad | 150 | extern int mx203; |
Oleg_B | 0:d05a7158dbad | 151 | extern int mx204; |
Oleg_B | 0:d05a7158dbad | 152 | extern int mx205; |
Oleg_B | 0:d05a7158dbad | 153 | extern int mx206; |
Oleg_B | 0:d05a7158dbad | 154 | extern int mx207; |
Oleg_B | 0:d05a7158dbad | 155 | extern int mx208; |
Oleg_B | 0:d05a7158dbad | 156 | |
Oleg_B | 0:d05a7158dbad | 157 | extern int my201; |
Oleg_B | 0:d05a7158dbad | 158 | extern int my202; |
Oleg_B | 0:d05a7158dbad | 159 | extern int my203; |
Oleg_B | 0:d05a7158dbad | 160 | extern int my204; |
Oleg_B | 0:d05a7158dbad | 161 | extern int my205; |
Oleg_B | 0:d05a7158dbad | 162 | extern int my206; |
Oleg_B | 0:d05a7158dbad | 163 | |
Oleg_B | 0:d05a7158dbad | 164 | |
Oleg_B | 0:d05a7158dbad | 165 | // ----- adr 3 --------- |
Oleg_B | 0:d05a7158dbad | 166 | extern char dm3_outs ; // упакованные выхода для DM adr 3 |
Oleg_B | 0:d05a7158dbad | 167 | extern char mdm3_outs ; |
Oleg_B | 0:d05a7158dbad | 168 | |
Oleg_B | 0:d05a7158dbad | 169 | extern int x301; // |
Oleg_B | 0:d05a7158dbad | 170 | extern int x302; // |
Oleg_B | 0:d05a7158dbad | 171 | extern int x303; // |
Oleg_B | 0:d05a7158dbad | 172 | extern int x304; // |
Oleg_B | 0:d05a7158dbad | 173 | extern int x305; // |
Oleg_B | 0:d05a7158dbad | 174 | extern int x306; // |
Oleg_B | 0:d05a7158dbad | 175 | extern int x307; // |
Oleg_B | 0:d05a7158dbad | 176 | extern int x308; // |
Oleg_B | 0:d05a7158dbad | 177 | |
Oleg_B | 0:d05a7158dbad | 178 | extern int y301; // |
Oleg_B | 0:d05a7158dbad | 179 | extern int y302; // |
Oleg_B | 0:d05a7158dbad | 180 | extern int y303; // |
Oleg_B | 0:d05a7158dbad | 181 | extern int y304; // |
Oleg_B | 0:d05a7158dbad | 182 | extern int y305; // |
Oleg_B | 0:d05a7158dbad | 183 | extern int y306; // |
Oleg_B | 0:d05a7158dbad | 184 | |
Oleg_B | 0:d05a7158dbad | 185 | extern int mx301; |
Oleg_B | 0:d05a7158dbad | 186 | extern int mx302; |
Oleg_B | 0:d05a7158dbad | 187 | extern int mx303; |
Oleg_B | 0:d05a7158dbad | 188 | extern int mx304; |
Oleg_B | 0:d05a7158dbad | 189 | extern int mx305; |
Oleg_B | 0:d05a7158dbad | 190 | extern int mx306; |
Oleg_B | 0:d05a7158dbad | 191 | extern int mx307; |
Oleg_B | 0:d05a7158dbad | 192 | extern int mx308; |
Oleg_B | 0:d05a7158dbad | 193 | |
Oleg_B | 0:d05a7158dbad | 194 | extern int my301; |
Oleg_B | 0:d05a7158dbad | 195 | extern int my302; |
Oleg_B | 0:d05a7158dbad | 196 | extern int my303; |
Oleg_B | 0:d05a7158dbad | 197 | extern int my304; |
Oleg_B | 0:d05a7158dbad | 198 | extern int my305; |
Oleg_B | 0:d05a7158dbad | 199 | extern int my306; |
Oleg_B | 0:d05a7158dbad | 200 | |
Oleg_B | 0:d05a7158dbad | 201 | |
Oleg_B | 0:d05a7158dbad | 202 | // ----- adr 4 --------- |
Oleg_B | 0:d05a7158dbad | 203 | extern char dm4_outs ; // упакованные выхода для DM adr 4 |
Oleg_B | 0:d05a7158dbad | 204 | extern char mdm4_outs ; |
Oleg_B | 0:d05a7158dbad | 205 | |
Oleg_B | 0:d05a7158dbad | 206 | extern int x401; // |
Oleg_B | 0:d05a7158dbad | 207 | extern int x402; // |
Oleg_B | 0:d05a7158dbad | 208 | extern int x403; // |
Oleg_B | 0:d05a7158dbad | 209 | extern int x404; // |
Oleg_B | 0:d05a7158dbad | 210 | extern int x405; // |
Oleg_B | 0:d05a7158dbad | 211 | extern int x406; // |
Oleg_B | 0:d05a7158dbad | 212 | extern int x407; // |
Oleg_B | 0:d05a7158dbad | 213 | extern int x408; // |
Oleg_B | 0:d05a7158dbad | 214 | |
Oleg_B | 0:d05a7158dbad | 215 | extern int y401; // |
Oleg_B | 0:d05a7158dbad | 216 | extern int y402; // |
Oleg_B | 0:d05a7158dbad | 217 | extern int y403; // |
Oleg_B | 0:d05a7158dbad | 218 | extern int y404; // |
Oleg_B | 0:d05a7158dbad | 219 | extern int y405; // |
Oleg_B | 0:d05a7158dbad | 220 | extern int y406; // |
Oleg_B | 0:d05a7158dbad | 221 | |
Oleg_B | 0:d05a7158dbad | 222 | extern int mx401; |
Oleg_B | 0:d05a7158dbad | 223 | extern int mx402; |
Oleg_B | 0:d05a7158dbad | 224 | extern int mx403; |
Oleg_B | 0:d05a7158dbad | 225 | extern int mx404; |
Oleg_B | 0:d05a7158dbad | 226 | extern int mx405; |
Oleg_B | 0:d05a7158dbad | 227 | extern int mx406; |
Oleg_B | 0:d05a7158dbad | 228 | extern int mx407; |
Oleg_B | 0:d05a7158dbad | 229 | extern int mx408; |
Oleg_B | 0:d05a7158dbad | 230 | |
Oleg_B | 0:d05a7158dbad | 231 | extern int my401; |
Oleg_B | 0:d05a7158dbad | 232 | extern int my402; |
Oleg_B | 0:d05a7158dbad | 233 | extern int my403; |
Oleg_B | 0:d05a7158dbad | 234 | extern int my404; |
Oleg_B | 0:d05a7158dbad | 235 | extern int my405; |
Oleg_B | 0:d05a7158dbad | 236 | extern int my406; |
Oleg_B | 0:d05a7158dbad | 237 | |
Oleg_B | 0:d05a7158dbad | 238 | |
Oleg_B | 0:d05a7158dbad | 239 | |
Oleg_B | 0:d05a7158dbad | 240 | |
Oleg_B | 0:d05a7158dbad | 241 | |
Oleg_B | 0:d05a7158dbad | 242 | /******************** SM01 moduls *********************************/ |
Oleg_B | 0:d05a7158dbad | 243 | |
Oleg_B | 0:d05a7158dbad | 244 | extern int sm_position; // заданное положение для механизмов |
Oleg_B | 0:d05a7158dbad | 245 | extern char sm_outs ; // упакованные выхода для SM adr 1-4 |
Oleg_B | 0:d05a7158dbad | 246 | |
Oleg_B | 0:d05a7158dbad | 247 | extern int msm_position; |
Oleg_B | 0:d05a7158dbad | 248 | extern char msm_outs ; |
Oleg_B | 0:d05a7158dbad | 249 | |
Oleg_B | 0:d05a7158dbad | 250 | // ----- adr 1 --------- |
Oleg_B | 0:d05a7158dbad | 251 | extern int sm1_pos; // тек.положение механизма 1 |
Oleg_B | 0:d05a7158dbad | 252 | extern int sm1_mov; // moving механизма 1 |
Oleg_B | 0:d05a7158dbad | 253 | extern int sm1_alr; // alarm механизма 1 |
Oleg_B | 0:d05a7158dbad | 254 | extern int a101; // |
Oleg_B | 0:d05a7158dbad | 255 | extern int a102; // |
Oleg_B | 0:d05a7158dbad | 256 | extern int a103; // |
Oleg_B | 0:d05a7158dbad | 257 | extern int a104; // |
Oleg_B | 0:d05a7158dbad | 258 | extern int b101; // |
Oleg_B | 0:d05a7158dbad | 259 | extern int b102; // |
Oleg_B | 0:d05a7158dbad | 260 | |
Oleg_B | 0:d05a7158dbad | 261 | extern int ma101; |
Oleg_B | 0:d05a7158dbad | 262 | extern int ma102; |
Oleg_B | 0:d05a7158dbad | 263 | extern int ma103; |
Oleg_B | 0:d05a7158dbad | 264 | extern int ma104; |
Oleg_B | 0:d05a7158dbad | 265 | extern int mb101; |
Oleg_B | 0:d05a7158dbad | 266 | extern int mb102; |
Oleg_B | 0:d05a7158dbad | 267 | |
Oleg_B | 0:d05a7158dbad | 268 | // ----- adr 2 --------- |
Oleg_B | 0:d05a7158dbad | 269 | extern int sm2_pos; // тек.положение механизма 2 |
Oleg_B | 0:d05a7158dbad | 270 | extern int sm2_mov; // moving механизма 2 |
Oleg_B | 0:d05a7158dbad | 271 | extern int sm2_alr; // alarm механизма 2 |
Oleg_B | 0:d05a7158dbad | 272 | extern int a201; // |
Oleg_B | 0:d05a7158dbad | 273 | extern int a202; // |
Oleg_B | 0:d05a7158dbad | 274 | extern int a203; // |
Oleg_B | 0:d05a7158dbad | 275 | extern int a204; // |
Oleg_B | 0:d05a7158dbad | 276 | extern int b201; // |
Oleg_B | 0:d05a7158dbad | 277 | extern int b202; // |
Oleg_B | 0:d05a7158dbad | 278 | |
Oleg_B | 0:d05a7158dbad | 279 | extern int ma201; |
Oleg_B | 0:d05a7158dbad | 280 | extern int ma202; |
Oleg_B | 0:d05a7158dbad | 281 | extern int ma203; |
Oleg_B | 0:d05a7158dbad | 282 | extern int ma204; |
Oleg_B | 0:d05a7158dbad | 283 | extern int mb201; |
Oleg_B | 0:d05a7158dbad | 284 | extern int mb202; |
Oleg_B | 0:d05a7158dbad | 285 | |
Oleg_B | 0:d05a7158dbad | 286 | // ----- adr 3 --------- |
Oleg_B | 0:d05a7158dbad | 287 | extern int sm3_pos; // тек.положение механизма 3 |
Oleg_B | 0:d05a7158dbad | 288 | extern int sm3_mov; // moving механизма 3 |
Oleg_B | 0:d05a7158dbad | 289 | extern int sm3_alr; // alarm механизма 3 |
Oleg_B | 0:d05a7158dbad | 290 | extern int a301; // |
Oleg_B | 0:d05a7158dbad | 291 | extern int a302; // |
Oleg_B | 0:d05a7158dbad | 292 | extern int a303; // |
Oleg_B | 0:d05a7158dbad | 293 | extern int a304; // |
Oleg_B | 0:d05a7158dbad | 294 | extern int b301; // |
Oleg_B | 0:d05a7158dbad | 295 | extern int b302; // |
Oleg_B | 0:d05a7158dbad | 296 | |
Oleg_B | 0:d05a7158dbad | 297 | extern int ma301; |
Oleg_B | 0:d05a7158dbad | 298 | extern int ma302; |
Oleg_B | 0:d05a7158dbad | 299 | extern int ma303; |
Oleg_B | 0:d05a7158dbad | 300 | extern int ma304; |
Oleg_B | 0:d05a7158dbad | 301 | extern int mb301; |
Oleg_B | 0:d05a7158dbad | 302 | extern int mb302; |
Oleg_B | 0:d05a7158dbad | 303 | |
Oleg_B | 0:d05a7158dbad | 304 | // ----- adr 4 --------- |
Oleg_B | 0:d05a7158dbad | 305 | extern int sm4_pos; // тек.положение механизма 4 |
Oleg_B | 0:d05a7158dbad | 306 | extern int sm4_mov; // moving механизма 4 |
Oleg_B | 0:d05a7158dbad | 307 | extern int sm4_alr; // alarm механизма 4 |
Oleg_B | 0:d05a7158dbad | 308 | extern int a401; // |
Oleg_B | 0:d05a7158dbad | 309 | extern int a402; // |
Oleg_B | 0:d05a7158dbad | 310 | extern int a403; // |
Oleg_B | 0:d05a7158dbad | 311 | extern int a404; // |
Oleg_B | 0:d05a7158dbad | 312 | extern int b401; // |
Oleg_B | 0:d05a7158dbad | 313 | extern int b402; // |
Oleg_B | 0:d05a7158dbad | 314 | |
Oleg_B | 0:d05a7158dbad | 315 | extern int ma401; |
Oleg_B | 0:d05a7158dbad | 316 | extern int ma402; |
Oleg_B | 0:d05a7158dbad | 317 | extern int ma403; |
Oleg_B | 0:d05a7158dbad | 318 | extern int ma404; |
Oleg_B | 0:d05a7158dbad | 319 | extern int mb401; |
Oleg_B | 0:d05a7158dbad | 320 | extern int mb402; |
Oleg_B | 0:d05a7158dbad | 321 | |
Oleg_B | 0:d05a7158dbad | 322 | |
Oleg_B | 0:d05a7158dbad | 323 | |
Oleg_B | 0:d05a7158dbad | 324 | |
Oleg_B | 0:d05a7158dbad | 325 | /************** переменные пользователя ***************************/ |
Oleg_B | 0:d05a7158dbad | 326 | |
Oleg_B | 0:d05a7158dbad | 327 | |
Oleg_B | 0:d05a7158dbad | 328 | extern int vr000; // код текущего экрана скады 0-4 |
Oleg_B | 0:d05a7158dbad | 329 | extern int vr001; // режим работы 0-нет гот, 1-готов к работе, 2- авт.режим, 3-авария, 4-имитация |
Oleg_B | 0:d05a7158dbad | 330 | extern int vr002; // подрежим авт.раб. 1-один надрез, 2-много надрезов |
Oleg_B | 0:d05a7158dbad | 331 | extern int vr003; // текущая высота ножа в мм |
Oleg_B | 0:d05a7158dbad | 332 | extern int vr004; // задание для перемещения ножа вниз, мм |
Oleg_B | 0:d05a7158dbad | 333 | extern int vr005; // задание для перемещения ножа вверх, мм |
Oleg_B | 0:d05a7158dbad | 334 | extern int vr007; // сброс ошибки (1-сброс, 0-после сброса) |
Oleg_B | 0:d05a7158dbad | 335 | extern int vr008; // действия в ручн.реж. 1-один цикл, 2-повтор.циклов, 3-все в исходное, 0-стоп |
Oleg_B | 0:d05a7158dbad | 336 | extern int vr009; // состояние перемещения каретки 0-стоим,1-влево,2-вправо |
Oleg_B | 0:d05a7158dbad | 337 | extern int vr010; // состояние датчиков 0-все выкл, 1-В1, 2-В2, 3-В3, 4-В4 |
Oleg_B | 0:d05a7158dbad | 338 | extern int vr011; // состояние датчиков 0-все выкл, 1-В9, 2-В8 |
Oleg_B | 0:d05a7158dbad | 339 | extern int vr012; // состояние датчиков 0-все выкл, 1-В12, 2-В11 |
Oleg_B | 0:d05a7158dbad | 340 | extern int vr013; // состояние 0-все выкл, 1-В5, 2-вращение ножа |
Oleg_B | 0:d05a7158dbad | 341 | |
Oleg_B | 0:d05a7158dbad | 342 | |
Oleg_B | 0:d05a7158dbad | 343 | // ------ параметры ------------------------ |
Oleg_B | 0:d05a7158dbad | 344 | extern int pr001; // скорост вращения ножа 0-100% |
Oleg_B | 0:d05a7158dbad | 345 | extern int pr002; // задержка начала авт.цикла 0-9999 мсек |
Oleg_B | 0:d05a7158dbad | 346 | |
Oleg_B | 0:d05a7158dbad | 347 | |
Oleg_B | 0:d05a7158dbad | 348 | |
Oleg_B | 0:d05a7158dbad | 349 | // ------- аварии ------------------------ |
Oleg_B | 0:d05a7158dbad | 350 | extern int al001; // авар.стоп правая сторона |
Oleg_B | 0:d05a7158dbad | 351 | extern int al002; // авар. стоп левая сторона |
Oleg_B | 0:d05a7158dbad | 352 | extern int al003; // двери прав.сторона |
Oleg_B | 0:d05a7158dbad | 353 | extern int al004; // двери левая сторона |
Oleg_B | 0:d05a7158dbad | 354 | extern int al005; // привод каретки |
Oleg_B | 0:d05a7158dbad | 355 | extern int al006; // привод ножа |
Oleg_B | 0:d05a7158dbad | 356 | extern int al007; // нет давления воздуха |
Oleg_B | 0:d05a7158dbad | 357 | extern int al008; // перемещение ввер/низ ножа |
Oleg_B | 0:d05a7158dbad | 358 | extern int al009; // перемещение ввер/низ л.ванна |
Oleg_B | 0:d05a7158dbad | 359 | extern int al010; // перемещение ввер/низ п.ванна |
Oleg_B | 0:d05a7158dbad | 360 | extern int al011; // перемещение лев/прав каретки |
Oleg_B | 0:d05a7158dbad | 361 | extern int al012; // ошибка 12 |
Oleg_B | 0:d05a7158dbad | 362 | extern int al013; // ошибка 13 |
Oleg_B | 0:d05a7158dbad | 363 | extern int al014; // ошибка 14 |
Oleg_B | 0:d05a7158dbad | 364 | |
Oleg_B | 0:d05a7158dbad | 365 | |
Oleg_B | 0:d05a7158dbad | 366 | //-------- таймеры 10ms -------- |
Oleg_B | 0:d05a7158dbad | 367 | extern int t01 ; // |
Oleg_B | 0:d05a7158dbad | 368 | extern int t02 ; // |
Oleg_B | 0:d05a7158dbad | 369 | extern int t03 ; // |
Oleg_B | 0:d05a7158dbad | 370 | extern int t04 ; // |
Oleg_B | 0:d05a7158dbad | 371 | extern int t05 ; // |
Oleg_B | 0:d05a7158dbad | 372 | extern int t06 ; // |
Oleg_B | 0:d05a7158dbad | 373 | extern int t07 ; // |
Oleg_B | 0:d05a7158dbad | 374 | extern int t08 ; // |
Oleg_B | 0:d05a7158dbad | 375 | extern int t09 ; // |
Oleg_B | 0:d05a7158dbad | 376 | extern int t10 ; // |
Oleg_B | 0:d05a7158dbad | 377 | |
Oleg_B | 0:d05a7158dbad | 378 | |
Oleg_B | 0:d05a7158dbad | 379 | //-------- таймеры 1s -------- |
Oleg_B | 0:d05a7158dbad | 380 | extern int t101 ; // |
Oleg_B | 0:d05a7158dbad | 381 | extern int t102 ; // |
Oleg_B | 0:d05a7158dbad | 382 | extern int t103 ; // |
Oleg_B | 0:d05a7158dbad | 383 | extern int t104 ; // |
Oleg_B | 0:d05a7158dbad | 384 | extern int t105 ; // |
Oleg_B | 0:d05a7158dbad | 385 | extern int t106 ; // |
Oleg_B | 0:d05a7158dbad | 386 | extern int t107 ; // |
Oleg_B | 0:d05a7158dbad | 387 | extern int t108 ; // |
Oleg_B | 0:d05a7158dbad | 388 | extern int t109 ; // |
Oleg_B | 0:d05a7158dbad | 389 | extern int t110 ; // |
Oleg_B | 0:d05a7158dbad | 390 | |
Oleg_B | 0:d05a7158dbad | 391 |