You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
2.6 KiB
102 lines
2.6 KiB
#ifndef _BSP_RELAY_H
|
|
#define _BSP_RELAY_H
|
|
|
|
|
|
#include "c_type51.h"
|
|
#include "bsp_config.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define D_motor1_BI_rev(); D_P25_REV();
|
|
|
|
#define D_motor1_BI_ON(); D_P25_ON();
|
|
#define D_motor1_FI_ON(); D_P24_ON();
|
|
#define D_motor2_BI_ON(); D_P23_ON();
|
|
#define D_motor2_FI_ON(); D_P22_ON();
|
|
#define D_motor3_BI_ON(); D_P21_ON();
|
|
#define D_motor3_FI_ON(); D_P42_ON();
|
|
#define D_motor4_BI_ON(); D_P20_ON();
|
|
#define D_motor4_FI_ON(); D_P73_ON();
|
|
#define D_motor5_BI_ON(); D_P72_ON();
|
|
#define D_motor5_FI_ON(); D_P71_ON();
|
|
#define D_motor6_BI_ON(); D_P70_ON();
|
|
#define D_motor6_FI_ON(); D_P41_ON();
|
|
#define D_motor7_BI_ON(); D_P37_ON();
|
|
#define D_motor7_FI_ON(); D_P36_ON();
|
|
#define D_motor8_BI_ON(); D_P35_ON();
|
|
#define D_motor8_FI_ON(); D_P34_ON();
|
|
#define D_motor9_BI_ON(); D_P66_ON();
|
|
#define D_motor9_FI_ON(); D_P65_ON();
|
|
#define D_motor10_BI_ON(); D_P64_ON();
|
|
#define D_motor10_FI_ON(); D_P40_ON();
|
|
|
|
|
|
|
|
#define D_motor1_FI_rev(); D_P24_REV();
|
|
|
|
#define D_motor1_BI_OFF(); D_P25_OFF();
|
|
#define D_motor1_FI_OFF(); D_P24_OFF();
|
|
#define D_motor2_BI_OFF(); D_P23_OFF();
|
|
#define D_motor2_FI_OFF(); D_P22_OFF();
|
|
#define D_motor3_BI_OFF(); D_P21_OFF();
|
|
#define D_motor3_FI_OFF(); D_P42_OFF();
|
|
#define D_motor4_BI_OFF(); D_P20_OFF();
|
|
#define D_motor4_FI_OFF(); D_P73_OFF();
|
|
#define D_motor5_BI_OFF(); D_P72_OFF();
|
|
#define D_motor5_FI_OFF(); D_P71_OFF();
|
|
#define D_motor6_BI_OFF(); D_P70_OFF();
|
|
#define D_motor6_FI_OFF(); D_P41_OFF();
|
|
#define D_motor7_BI_OFF(); D_P37_OFF();
|
|
#define D_motor7_FI_OFF(); D_P36_OFF();
|
|
#define D_motor8_BI_OFF(); D_P35_OFF();
|
|
#define D_motor8_FI_OFF(); D_P34_OFF();
|
|
#define D_motor9_BI_OFF(); D_P66_OFF();
|
|
#define D_motor9_FI_OFF(); D_P65_OFF();
|
|
#define D_motor10_BI_OFF(); D_P64_OFF();
|
|
#define D_motor10_FI_OFF(); D_P40_OFF();
|
|
|
|
#define D_motor_ch_1 0
|
|
#define D_motor_ch_2 1
|
|
#define D_motor_ch_3 2
|
|
#define D_motor_ch_4 3
|
|
#define D_motor_ch_5 4
|
|
#define D_motor_ch_6 5
|
|
|
|
#define D_motor_ch_7 6
|
|
#define D_motor_ch_8 7
|
|
#define D_motor_ch_9 8
|
|
#define D_motor_ch_10 9
|
|
|
|
void L1_motor_00(vtype ch);
|
|
|
|
void L1_motor_10(vtype ch);
|
|
|
|
void L1_motor_01(vtype ch);
|
|
|
|
void L1_motor_11(vtype ch);
|
|
|
|
|
|
|
|
#if 0
|
|
#define In_A1 Relay_01;
|
|
#define In_B1 Relay_02;
|
|
|
|
#define Out_A1 Relay_03;
|
|
#define Out_B1 Relay_04;
|
|
#define Pressure_Relief_A1 Relay_05;
|
|
#define Pressure_Relief_B1 Relay_06;
|
|
#define None 0x99;
|
|
#define In_A2 Relay_07;
|
|
#define In_B2 Relay_08;
|
|
|
|
#define Out_A2 Relay_09;
|
|
#define Out_B2 Relay_10;
|
|
#define Pressure_Relief_A2 Relay_11;
|
|
#define Pressure_Relief_B2 Relay_12;
|
|
#endif
|
|
|
|
|