风机偏航控制ABB-PLC程序

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

LANZHOU UNIVERSITY OF TECHNOLOGY

毕业设计

题目大型风力发电机组偏航控制系统设计—程序部分

学生姓名XXXXXXX

学号XXXXXXXX

专业班级电气六班

指导教师XXXXXXXX

学院电信学院

答辩日期XXXX年X月

ABB--PLC程序PROGRAM PLC_PRG

VAR

START AT%MX0.4.2:BOOL;

STOP AT%MX0.4.3:BOOL;

Auto AT%MX0.4.4:BOOL;

Hand AT%MX0.4.5:BOOL;

Hand_Left AT%MX0.4.0:BOOL;

Hand_Right AT%MX0.4.1:BOOL;

Wind_Speed AT%IW2:INT;

Wind_Dire AT%IW3:INT;

Speed_Alarm AT%MX0.4.7:BOOL;

Tempture AT%MW0.112:INT;

Niulan AT%MD0.115:REAL;

Tempture_Alarm AT%MX0.5.1:BOOL;

Niulan_Alarm AT%MX0.5.2:BOOL;

Start_Hl AT%MX0.5.3:BOOL;

Stop_Hl AT%MX0.5.4:BOOL;

Hand_Hl AT%MX0.5.6:BOOL;

Auto_Hl AT%MX0.5.5:BOOL;

L1_OUT AT%MD0.100:REAL;

L2_OUT AT%MD0.109:REAL;

L3_OUT AT%MD0.107:REAL;

pjds AT%MW0.125:INT;

L4_OUT:REAL;

L5_OUT:REAL;

SPEED:INT;

DIRE:INT;

SPEED1:REAL;

Tempture_IN:INT;

Niulan_IN:INT;

phjd:REAL;

PID1:PID;

Tempture_Hl:BOOL;

Niulan_Hl:BOOL;

Speed_Hl:BOOL; PBLINK:BLINK; PBLINK1:BLINK; TIMEE:BOOL;

TEMP1:INT;

TP2:TP;

TP1:TP;

Timer1_EN:BOOL;

Timer2_EN:BOOL;

Bool1:BOOL;

Bool2:BOOL;

Bool3:BOOL;

Bool4:BOOL;

Bool5:BOOL;

Bool6:BOOL;

Bool7:BOOL;

Bool8:BOOL;

Bool9:BOOL;

Bool10:BOOL;

Bool11:BOOL;

Bool12:BOOL;

bool13:BOOL;

R_TRIG1:R_TRIG;

R_TRIG2:R_TRIG;

R_TRIG3:R_TRIG;

TON1:TON;

TON2:TON;

LIN_TRAFO3:LIN_TRAFO; LIN_TRAFO1:LIN_TRAFO; LIN_TRAFO2:LIN_TRAFO; LIN_TRAFO4:LIN_TRAFO; LIN_TRAFO5:LIN_TRAFO; Var1:TIME;

Var2:TIME;

TEMP2:INT;

Driver_Speed:BOOL;

Driver2_Left:BOOL;

Driver2_Right:BOOL;

Driver1_EN:BOOL;

Driver2_EN:BOOL;

ONB_IO_CNT01:ONB_IO_CNT; ONB_IO_CNT1:ONB_IO_CNT; v1:DWORD;

v2:DWORD;

v7:DINT;

v8AT%MD0.102:REAL;

v4:DWORD;

v3:DWORD;

v5:DWORD;

v6:DWORD;

a:BOOL;

b:BOOL;

c:BOOL;

d:BOOL;

e:BOOL;

f:BOOL;

g:BOOL;

h:BOOL;

J:BOOL;

k:BOOL;

L:BOOL;

m:BOOL;

n:BOOL;

x:BOOL;

y:BOOL;

z:BOOL;

v01:DWORD;

v02:DWORD;

v03:DWORD;

v04:DWORD;

v05:DWORD;

v06:DWORD;

v07:DINT;

v08:REAL;

END_VAR

VAR_GLOBAL

(*Modbus通信协议*)

VVVFMCW:ARRAY[0..9]OF VVVFMCWSTRUCT;

VVVFMSW:ARRAY[0..9]OF VVVFMSWSTRUCT;

TempDword:DWORD;

RecvOrSend:BOOL;

MotorAddrIndex:ARRAY[0..3]OF BYTE:=1,2;(*变频器Modbus地址序列*) MotorMaxNum:INT:=2;(*变频器最大数目-有几台就是几*) MotorCycleNo:INT;(*变频器当前巡检号*)

ComStaNum:UINT;(*发送次数总计*)

MotorComErr:ARRAY[0..9]OF INT;(*通讯错误计数*)

VVVFCOM:COM_MOD_MAST:=(COM:=1,TIMEOUT:=500);(*Modbus配置*) ComModData:ARRAY[0..9]OFWORD;(*发送接收的数据*)

DRIVERAUTO AT%MX0.6.5:BOOL;

DRIVER1_xOnlineOK AT%MX0.6.0:BOOL;(*在线*)

DRIVER1_DI_START AT%MX0.6.1:BOOL;

DRIVER1_DI_RESET AT%MX0.6.2:BOOL;

DRIVER1_DO_TRIPPED AT%MX0.6.3:BOOL;(*故障*)

DRIVER1_DI_STOP AT%MX0.6.4:BOOL;

DRIVER2_xOnlineOK AT%MX0.7.0:BOOL;

DRIVER2_DI_START AT%MX0.7.1:BOOL;

DRIVER2_DI_RESET AT%MX0.7.2:BOOL;

DRIVER2_DO_TRIPPED AT%MX0.7.3:BOOL;

DRIVER2_DI_STOP AT%MX0.7.4:BOOL;

DRIVER1_SETSPEED AT%MD0.101:REAL;(*设定转速*)

DRIVER1_ACTSPEED AT%MD0.102:REAL;(*实际转速*)

DRIVER2_SETSPEED AT%MD0.103:REAL;(*设定转速*)

DRIVER2_ACTSPEED AT%MD0.104:REAL;(*实际转速*)

相关文档
最新文档