-- Version:		2025.7.31  14:52:27
Drop Table T_DRIVE_ALARM@

Create Table T_DRIVE_ALARM(
item		VARCHAR(100)		NOT NULL,
code		VARCHAR(100),
chinese		VARCHAR(100),
result_ind0		DECIMAL(10),
result_ind1		DECIMAL(10),
result_ind2		DECIMAL(10),
result_ind3		DECIMAL(10),
result_ind4		DECIMAL(10),
result_ind5		DECIMAL(10),
result_ind6		DECIMAL(10),
result_ind7		DECIMAL(10),
result_ind8		DECIMAL(10),
result_ind9		DECIMAL(10),
result_ind10		DECIMAL(10),
result_ind11		DECIMAL(10),
result_ind12		DECIMAL(10),
result_ind13		DECIMAL(10),
result_ind14		DECIMAL(10),
result_ind15		DECIMAL(10),
CONSTRAINT pk_T_DRIVE_ALARM PRIMARY KEY (item)
)
IN TB8KUSREMS INDEX IN TB8KIDXEMS@
Alter Table T_DRIVE_ALARM ALTER COLUMN result_ind0 SET WITH Default 0@
Alter Table T_DRIVE_ALARM ALTER COLUMN result_ind1 SET WITH Default 0@
Alter Table T_DRIVE_ALARM ALTER COLUMN result_ind2 SET WITH Default 0@
Alter Table T_DRIVE_ALARM ALTER COLUMN result_ind3 SET WITH Default 0@
Alter Table T_DRIVE_ALARM ALTER COLUMN result_ind4 SET WITH Default 0@
Alter Table T_DRIVE_ALARM ALTER COLUMN result_ind5 SET WITH Default 0@
Alter Table T_DRIVE_ALARM ALTER COLUMN result_ind6 SET WITH Default 0@
Alter Table T_DRIVE_ALARM ALTER COLUMN result_ind7 SET WITH Default 0@
Alter Table T_DRIVE_ALARM ALTER COLUMN result_ind8 SET WITH Default 0@
Alter Table T_DRIVE_ALARM ALTER COLUMN result_ind9 SET WITH Default 0@
Alter Table T_DRIVE_ALARM ALTER COLUMN result_ind10 SET WITH Default 0@
Alter Table T_DRIVE_ALARM ALTER COLUMN result_ind11 SET WITH Default 0@
Alter Table T_DRIVE_ALARM ALTER COLUMN result_ind12 SET WITH Default 0@
Alter Table T_DRIVE_ALARM ALTER COLUMN result_ind13 SET WITH Default 0@
Alter Table T_DRIVE_ALARM ALTER COLUMN result_ind14 SET WITH Default 0@
Alter Table T_DRIVE_ALARM ALTER COLUMN result_ind15 SET WITH Default 0@

COMMENT ON Table T_DRIVE_ALARM IS '设备信息'@

COMMENT ON T_DRIVE_ALARM (item IS '设备报警字段')@
COMMENT ON T_DRIVE_ALARM (code IS '设备编码')@
COMMENT ON T_DRIVE_ALARM (chinese IS '中文设备名称')@
COMMENT ON T_DRIVE_ALARM (result_ind0 IS '报警结果 Options 0 Power Loss 1 UnderVoltage 2 Motor OL 3 Load Loss 4 InPhaseLoss 5 OutPhaseLoss 6 Dec Inhibit 7 Shear Pin 1 8 Shear Pin 2 9 PriFdbkLoss 10 AltFdbkLoss 11 AuxFdbKLoss 12 PosFdbkLoss 13 Reserved 14 Gnd Warning 15 Reserved0')@
COMMENT ON T_DRIVE_ALARM (result_ind1 IS '报警结果 Options 0 Power Loss 1 UnderVoltage 2 Motor OL 3 Load Loss 4 InPhaseLoss 5 OutPhaseLoss 6 Dec Inhibit 7 Shear Pin 1 8 Shear Pin 2 9 PriFdbkLoss 10 AltFdbkLoss 11 AuxFdbKLoss 12 PosFdbkLoss 13 Reserved 14 Gnd Warning 15 Reserved1')@
COMMENT ON T_DRIVE_ALARM (result_ind2 IS '报警结果 Options 0 Power Loss 1 UnderVoltage 2 Motor OL 3 Load Loss 4 InPhaseLoss 5 OutPhaseLoss 6 Dec Inhibit 7 Shear Pin 1 8 Shear Pin 2 9 PriFdbkLoss 10 AltFdbkLoss 11 AuxFdbKLoss 12 PosFdbkLoss 13 Reserved 14 Gnd Warning 15 Reserved2')@
COMMENT ON T_DRIVE_ALARM (result_ind3 IS '报警结果 Options 0 Power Loss 1 UnderVoltage 2 Motor OL 3 Load Loss 4 InPhaseLoss 5 OutPhaseLoss 6 Dec Inhibit 7 Shear Pin 1 8 Shear Pin 2 9 PriFdbkLoss 10 AltFdbkLoss 11 AuxFdbKLoss 12 PosFdbkLoss 13 Reserved 14 Gnd Warning 15 Reserved3')@
COMMENT ON T_DRIVE_ALARM (result_ind4 IS '报警结果 Options 0 Power Loss 1 UnderVoltage 2 Motor OL 3 Load Loss 4 InPhaseLoss 5 OutPhaseLoss 6 Dec Inhibit 7 Shear Pin 1 8 Shear Pin 2 9 PriFdbkLoss 10 AltFdbkLoss 11 AuxFdbKLoss 12 PosFdbkLoss 13 Reserved 14 Gnd Warning 15 Reserved4')@
COMMENT ON T_DRIVE_ALARM (result_ind5 IS '报警结果 Options 0 Power Loss 1 UnderVoltage 2 Motor OL 3 Load Loss 4 InPhaseLoss 5 OutPhaseLoss 6 Dec Inhibit 7 Shear Pin 1 8 Shear Pin 2 9 PriFdbkLoss 10 AltFdbkLoss 11 AuxFdbKLoss 12 PosFdbkLoss 13 Reserved 14 Gnd Warning 15 Reserved5')@
COMMENT ON T_DRIVE_ALARM (result_ind6 IS '报警结果 Options 0 Power Loss 1 UnderVoltage 2 Motor OL 3 Load Loss 4 InPhaseLoss 5 OutPhaseLoss 6 Dec Inhibit 7 Shear Pin 1 8 Shear Pin 2 9 PriFdbkLoss 10 AltFdbkLoss 11 AuxFdbKLoss 12 PosFdbkLoss 13 Reserved 14 Gnd Warning 15 Reserved6')@
COMMENT ON T_DRIVE_ALARM (result_ind7 IS '报警结果 Options 0 Power Loss 1 UnderVoltage 2 Motor OL 3 Load Loss 4 InPhaseLoss 5 OutPhaseLoss 6 Dec Inhibit 7 Shear Pin 1 8 Shear Pin 2 9 PriFdbkLoss 10 AltFdbkLoss 11 AuxFdbKLoss 12 PosFdbkLoss 13 Reserved 14 Gnd Warning 15 Reserved7')@
COMMENT ON T_DRIVE_ALARM (result_ind8 IS '报警结果 Options 0 Power Loss 1 UnderVoltage 2 Motor OL 3 Load Loss 4 InPhaseLoss 5 OutPhaseLoss 6 Dec Inhibit 7 Shear Pin 1 8 Shear Pin 2 9 PriFdbkLoss 10 AltFdbkLoss 11 AuxFdbKLoss 12 PosFdbkLoss 13 Reserved 14 Gnd Warning 15 Reserved8')@
COMMENT ON T_DRIVE_ALARM (result_ind9 IS '报警结果 Options 0 Power Loss 1 UnderVoltage 2 Motor OL 3 Load Loss 4 InPhaseLoss 5 OutPhaseLoss 6 Dec Inhibit 7 Shear Pin 1 8 Shear Pin 2 9 PriFdbkLoss 10 AltFdbkLoss 11 AuxFdbKLoss 12 PosFdbkLoss 13 Reserved 14 Gnd Warning 15 Reserved9')@
COMMENT ON T_DRIVE_ALARM (result_ind10 IS '报警结果 Options 0 Power Loss 1 UnderVoltage 2 Motor OL 3 Load Loss 4 InPhaseLoss 5 OutPhaseLoss 6 Dec Inhibit 7 Shear Pin 1 8 Shear Pin 2 9 PriFdbkLoss 10 AltFdbkLoss 11 AuxFdbKLoss 12 PosFdbkLoss 13 Reserved 14 Gnd Warning 15 Reserved10')@
COMMENT ON T_DRIVE_ALARM (result_ind11 IS '报警结果 Options 0 Power Loss 1 UnderVoltage 2 Motor OL 3 Load Loss 4 InPhaseLoss 5 OutPhaseLoss 6 Dec Inhibit 7 Shear Pin 1 8 Shear Pin 2 9 PriFdbkLoss 10 AltFdbkLoss 11 AuxFdbKLoss 12 PosFdbkLoss 13 Reserved 14 Gnd Warning 15 Reserved11')@
COMMENT ON T_DRIVE_ALARM (result_ind12 IS '报警结果 Options 0 Power Loss 1 UnderVoltage 2 Motor OL 3 Load Loss 4 InPhaseLoss 5 OutPhaseLoss 6 Dec Inhibit 7 Shear Pin 1 8 Shear Pin 2 9 PriFdbkLoss 10 AltFdbkLoss 11 AuxFdbKLoss 12 PosFdbkLoss 13 Reserved 14 Gnd Warning 15 Reserved12')@
COMMENT ON T_DRIVE_ALARM (result_ind13 IS '报警结果 Options 0 Power Loss 1 UnderVoltage 2 Motor OL 3 Load Loss 4 InPhaseLoss 5 OutPhaseLoss 6 Dec Inhibit 7 Shear Pin 1 8 Shear Pin 2 9 PriFdbkLoss 10 AltFdbkLoss 11 AuxFdbKLoss 12 PosFdbkLoss 13 Reserved 14 Gnd Warning 15 Reserved13')@
COMMENT ON T_DRIVE_ALARM (result_ind14 IS '报警结果 Options 0 Power Loss 1 UnderVoltage 2 Motor OL 3 Load Loss 4 InPhaseLoss 5 OutPhaseLoss 6 Dec Inhibit 7 Shear Pin 1 8 Shear Pin 2 9 PriFdbkLoss 10 AltFdbkLoss 11 AuxFdbKLoss 12 PosFdbkLoss 13 Reserved 14 Gnd Warning 15 Reserved14')@
COMMENT ON T_DRIVE_ALARM (result_ind15 IS '报警结果 Options 0 Power Loss 1 UnderVoltage 2 Motor OL 3 Load Loss 4 InPhaseLoss 5 OutPhaseLoss 6 Dec Inhibit 7 Shear Pin 1 8 Shear Pin 2 9 PriFdbkLoss 10 AltFdbkLoss 11 AuxFdbKLoss 12 PosFdbkLoss 13 Reserved 14 Gnd Warning 15 Reserved15')@

