Files
ZC_ESTANDAR_ALIMENTACION/PLC/Bloques de programa/2000_Dispositivos/DB2010_V.s7dcl
T

266 lines
10 KiB
Plaintext

{
S7_Author := "ABH";
S7_BlockComment := "MLC_54w";
S7_BlockNumber := "2010";
S7_BlockTitle := "MLC_Ux";
S7_Family := "ZeusControl";
S7_Optimized := "TRUE";
S7_StandardRetain := "TRUE";
S7_Version := "1.0"
}
DATA_BLOCK DB2010_V
VAR RETAIN
{
S7_MLC := "MLC_36T";
S7_Setpoint := "False"
}
V : Array[0.._.N_MAX_DISP_V] of _.UDT_ZC_DISP_V;
END_VAR
VAR
{ S7_Setpoint := "False" }
Agrup : Array[0.._.N_MAX_DISP_AGRUP] of _.UDT_ZC_DISP_AGRUP;
NumDispositivos : Int;
END_VAR
V[0].Hmi_Estado := 0;
V[0].Estado_AutoMan := FALSE;
V[0].Estado_Activado := FALSE;
V[0].Estado_Enclavado := FALSE;
V[0].Estado_SeguridadOk := TRUE;
V[0].Estado_EntradaRetornoReposo := FALSE;
V[0].Estado_EntradaRetornoTrabajo := FALSE;
V[0].Estado_Salida := FALSE;
V[0].Alarmas_Reposo := FALSE;
V[0].Alarmas_Trabajo := FALSE;
V[0].Alarmas_Mantenimiento := FALSE;
V[0].Alarmas_Doble := FALSE;
V[0].Alarmas_General := FALSE;
V[0].Orden_ActivarManual := FALSE;
V[0].Orden_ActivarAuto := TRUE;
V[0].Orden_ResetCiclos := FALSE;
V[0].Config_Habilitar := FALSE;
V[0].Config_HabilitarRetornoReposo := TRUE;
V[0].Config_HabilitarInvertirReposo := FALSE;
V[0].Config_HabilitarRetornoTrabajo := TRUE;
V[0].Config_HabilitarInvertirTrabajo := FALSE;
V[0].Config_HabilitarMantenimiento := FALSE;
V[0].Aux_oldActivado := FALSE;
V[0].Aux_oldAlarma := FALSE;
V[0].Aux_oldAutoMan := FALSE;
V[0].Config_TipoAcceso := 0;
V[0].Config_GrupoAlarma := 0;
V[0].Config_DireccionSalidaByte := 0;
V[0].Config_DireccionSalidaBit := 0;
V[0].Config_DireccionRetReposoByte := 0;
V[0].Config_DireccionRetReposoBit := 0;
V[0].Config_DireccionRetTrabajoByte := 0;
V[0].Config_DireccionRetTrabajoBit := 0;
V[0].Tiempos_SetPointTiempoAlarma := 10;
V[0].Tiempos_Alarma := 0;
V[0].Tiempos_SetPointCiclos := 1000;
V[0].Tiempos_Ciclos := 0;
{ S7_MLC := "MLC_k3" }
V[0] := ();
V[1].Hmi_Estado := 3;
V[1].Estado_AutoMan := TRUE;
V[1].Estado_Activado := FALSE;
V[1].Estado_Enclavado := FALSE;
V[1].Estado_SeguridadOk := TRUE;
V[1].Estado_EntradaRetornoReposo := TRUE;
V[1].Estado_EntradaRetornoTrabajo := FALSE;
V[1].Estado_Salida := FALSE;
V[1].Alarmas_Reposo := FALSE;
V[1].Alarmas_Trabajo := FALSE;
V[1].Alarmas_Mantenimiento := FALSE;
V[1].Alarmas_Doble := FALSE;
V[1].Alarmas_General := FALSE;
V[1].Orden_ActivarManual := FALSE;
V[1].Orden_ActivarAuto := FALSE;
V[1].Orden_ResetCiclos := FALSE;
V[1].Config_Habilitar := TRUE;
V[1].Config_HabilitarRetornoReposo := TRUE;
V[1].Config_HabilitarInvertirReposo := FALSE;
V[1].Config_HabilitarRetornoTrabajo := TRUE;
V[1].Config_HabilitarInvertirTrabajo := FALSE;
V[1].Config_HabilitarMantenimiento := FALSE;
V[1].Aux_oldActivado := FALSE;
V[1].Aux_oldAlarma := FALSE;
V[1].Aux_oldAutoMan := TRUE;
V[1].Config_TipoAcceso := 0;
V[1].Config_GrupoAlarma := 0;
V[1].Config_DireccionSalidaByte := 12000;
V[1].Config_DireccionSalidaBit := 1;
V[1].Config_DireccionRetReposoByte := 12000;
V[1].Config_DireccionRetReposoBit := 0;
V[1].Config_DireccionRetTrabajoByte := 12000;
V[1].Config_DireccionRetTrabajoBit := 1;
V[1].Tiempos_SetPointTiempoAlarma := 10;
V[1].Tiempos_Alarma := 0;
V[1].Tiempos_SetPointCiclos := 1000;
V[1].Tiempos_Ciclos := 6;
{ S7_MLC := "MLC_3HV" }
V[1] := ();
V[2].Hmi_Estado := 1;
V[2].Estado_AutoMan := FALSE;
V[2].Estado_Activado := FALSE;
V[2].Estado_Enclavado := FALSE;
V[2].Estado_SeguridadOk := TRUE;
V[2].Estado_EntradaRetornoReposo := TRUE;
V[2].Estado_EntradaRetornoTrabajo := FALSE;
V[2].Estado_Salida := FALSE;
V[2].Alarmas_Reposo := FALSE;
V[2].Alarmas_Trabajo := FALSE;
V[2].Alarmas_Mantenimiento := FALSE;
V[2].Alarmas_Doble := FALSE;
V[2].Alarmas_General := FALSE;
V[2].Orden_ActivarManual := FALSE;
V[2].Orden_ActivarAuto := FALSE;
V[2].Orden_ResetCiclos := FALSE;
V[2].Config_Habilitar := TRUE;
V[2].Config_HabilitarRetornoReposo := TRUE;
V[2].Config_HabilitarInvertirReposo := FALSE;
V[2].Config_HabilitarRetornoTrabajo := TRUE;
V[2].Config_HabilitarInvertirTrabajo := FALSE;
V[2].Config_HabilitarMantenimiento := FALSE;
V[2].Aux_oldActivado := FALSE;
V[2].Aux_oldAlarma := FALSE;
V[2].Aux_oldAutoMan := FALSE;
V[2].Config_TipoAcceso := 0;
V[2].Config_GrupoAlarma := 0;
V[2].Config_DireccionSalidaByte := 12001;
V[2].Config_DireccionSalidaBit := 5;
V[2].Config_DireccionRetReposoByte := 12001;
V[2].Config_DireccionRetReposoBit := 4;
V[2].Config_DireccionRetTrabajoByte := 12001;
V[2].Config_DireccionRetTrabajoBit := 5;
V[2].Tiempos_SetPointTiempoAlarma := 10;
V[2].Tiempos_Alarma := 0;
V[2].Tiempos_SetPointCiclos := 1000;
V[2].Tiempos_Ciclos := 6;
{ S7_MLC := "MLC_3FJ" }
V[2] := ();
V[3].Hmi_Estado := 11;
V[3].Estado_AutoMan := TRUE;
V[3].Estado_Activado := TRUE;
V[3].Estado_Enclavado := FALSE;
V[3].Estado_SeguridadOk := TRUE;
V[3].Estado_EntradaRetornoReposo := FALSE;
V[3].Estado_EntradaRetornoTrabajo := TRUE;
V[3].Estado_Salida := TRUE;
V[3].Alarmas_Reposo := FALSE;
V[3].Alarmas_Trabajo := FALSE;
V[3].Alarmas_Mantenimiento := FALSE;
V[3].Alarmas_Doble := FALSE;
V[3].Alarmas_General := FALSE;
V[3].Orden_ActivarManual := TRUE;
V[3].Orden_ActivarAuto := FALSE;
V[3].Orden_ResetCiclos := FALSE;
V[3].Config_Habilitar := TRUE;
V[3].Config_HabilitarRetornoReposo := TRUE;
V[3].Config_HabilitarInvertirReposo := FALSE;
V[3].Config_HabilitarRetornoTrabajo := TRUE;
V[3].Config_HabilitarInvertirTrabajo := FALSE;
V[3].Config_HabilitarMantenimiento := FALSE;
V[3].Aux_oldActivado := TRUE;
V[3].Aux_oldAlarma := FALSE;
V[3].Aux_oldAutoMan := TRUE;
V[3].Config_TipoAcceso := 0;
V[3].Config_GrupoAlarma := 0;
V[3].Config_DireccionSalidaByte := 12001;
V[3].Config_DireccionSalidaBit := 1;
V[3].Config_DireccionRetReposoByte := 12001;
V[3].Config_DireccionRetReposoBit := 0;
V[3].Config_DireccionRetTrabajoByte := 12001;
V[3].Config_DireccionRetTrabajoBit := 1;
V[3].Tiempos_SetPointTiempoAlarma := 10;
V[3].Tiempos_Alarma := 0;
V[3].Tiempos_SetPointCiclos := 1000;
V[3].Tiempos_Ciclos := 3;
{ S7_MLC := "MLC_33k" }
V[3] := ();
V[4].Hmi_Estado := 3;
V[4].Estado_AutoMan := TRUE;
V[4].Estado_Activado := FALSE;
V[4].Estado_Enclavado := FALSE;
V[4].Estado_SeguridadOk := TRUE;
V[4].Estado_EntradaRetornoReposo := TRUE;
V[4].Estado_EntradaRetornoTrabajo := FALSE;
V[4].Estado_Salida := FALSE;
V[4].Alarmas_Reposo := FALSE;
V[4].Alarmas_Trabajo := FALSE;
V[4].Alarmas_Mantenimiento := FALSE;
V[4].Alarmas_Doble := FALSE;
V[4].Alarmas_General := FALSE;
V[4].Orden_ActivarManual := FALSE;
V[4].Orden_ActivarAuto := FALSE;
V[4].Orden_ResetCiclos := FALSE;
V[4].Config_Habilitar := TRUE;
V[4].Config_HabilitarRetornoReposo := TRUE;
V[4].Config_HabilitarInvertirReposo := FALSE;
V[4].Config_HabilitarRetornoTrabajo := TRUE;
V[4].Config_HabilitarInvertirTrabajo := FALSE;
V[4].Config_HabilitarMantenimiento := FALSE;
V[4].Aux_oldActivado := FALSE;
V[4].Aux_oldAlarma := FALSE;
V[4].Aux_oldAutoMan := TRUE;
V[4].Config_TipoAcceso := 0;
V[4].Config_GrupoAlarma := 0;
V[4].Config_DireccionSalidaByte := 12002;
V[4].Config_DireccionSalidaBit := 5;
V[4].Config_DireccionRetReposoByte := 12002;
V[4].Config_DireccionRetReposoBit := 4;
V[4].Config_DireccionRetTrabajoByte := 12002;
V[4].Config_DireccionRetTrabajoBit := 5;
V[4].Tiempos_SetPointTiempoAlarma := 10;
V[4].Tiempos_Alarma := 0;
V[4].Tiempos_SetPointCiclos := 1000;
V[4].Tiempos_Ciclos := 4;
{ S7_MLC := "MLC_3Jq" }
V[4] := ();
V[5].Hmi_Estado := 257;
V[5].Estado_AutoMan := FALSE;
V[5].Estado_Activado := FALSE;
V[5].Estado_Enclavado := FALSE;
V[5].Estado_SeguridadOk := TRUE;
V[5].Estado_EntradaRetornoReposo := FALSE;
V[5].Estado_EntradaRetornoTrabajo := FALSE;
V[5].Estado_Salida := FALSE;
V[5].Alarmas_Reposo := TRUE;
V[5].Alarmas_Trabajo := FALSE;
V[5].Alarmas_Mantenimiento := FALSE;
V[5].Alarmas_Doble := TRUE;
V[5].Alarmas_General := TRUE;
V[5].Orden_ActivarManual := FALSE;
V[5].Orden_ActivarAuto := FALSE;
V[5].Orden_ResetCiclos := FALSE;
V[5].Config_Habilitar := TRUE;
V[5].Config_HabilitarRetornoReposo := TRUE;
V[5].Config_HabilitarInvertirReposo := FALSE;
V[5].Config_HabilitarRetornoTrabajo := TRUE;
V[5].Config_HabilitarInvertirTrabajo := FALSE;
V[5].Config_HabilitarMantenimiento := FALSE;
V[5].Aux_oldActivado := FALSE;
V[5].Aux_oldAlarma := TRUE;
V[5].Aux_oldAutoMan := FALSE;
V[5].Config_TipoAcceso := 0;
V[5].Config_GrupoAlarma := 0;
V[5].Config_DireccionSalidaByte := 12002;
V[5].Config_DireccionSalidaBit := 1;
V[5].Config_DireccionRetReposoByte := 12002;
V[5].Config_DireccionRetReposoBit := 0;
V[5].Config_DireccionRetTrabajoByte := 12002;
V[5].Config_DireccionRetTrabajoBit := 1;
V[5].Tiempos_SetPointTiempoAlarma := 10;
V[5].Tiempos_Alarma := 0;
V[5].Tiempos_SetPointCiclos := 1000;
V[5].Tiempos_Ciclos := 0;
{ S7_MLC := "MLC_4aj" }
V[5] := ();
Agrup[0].AlgunaEnManual := TRUE;
Agrup[0].AlgunaAlarma := TRUE;
Agrup[0].NuevaAlarma := FALSE;
NumDispositivos := 40;
END_DATA_BLOCK