(*********************************************
Import-Export
Version := RSLogix 5000 v20.01
Owner := nscc, nscc
Exported := Tue Nov 29 15:32:41 2016
Note: File encoded in UTF-8. Only edit file in a program
which supports UTF-8 (like Notepad, not Wordpad).
**********************************************)
IE_VER := 2.11;
CONTROLLER Compare (ProcessorType := "1769-L32E",
Major := 20,
TimeSlice := 10,
ShareUnusedTimeSlice := 1,
RedundancyEnabled := 0,
KeepTestEditsOnSwitchOver := 0,
DataTablePadPercentage := 0,
SecurityCode := 0,
ChangesToDetect := 16#ffff_ffff_ffff_ffff,
SFCExecutionControl := "CurrentActive",
SFCRestartPosition := "MostRecent",
SFCLastScan := "DontScan",
SerialNumber := 16#605d_52ab,
MatchProjectToController := No,
CanUseRPIFromProducer := No,
InhibitAutomaticFirmwareUpdate := 0)
MODULE Controller (Parent := "Controller",
ParentModPortId := 1,
CatalogNumber := "1769-L32E",
Vendor := 1,
ProductType := 14,
ProductCode := 77,
Major := 20,
Minor := 12,
PortLabel := "RxBACKPLANE",
ChassisSize := 4,
Slot := 0,
Mode := 2#0000_0000_0000_0001,
CompatibleModule := 0,
KeyMask := 2#0000_0000_0001_1111)
END_MODULE
MODULE LocalENB (Parent := "Controller",
ParentModPortId := 1,
CatalogNumber := "1769-L32E Ethernet Port",
Vendor := 1,
ProductType := 12,
ProductCode := 158,
Major := 20,
Minor := 11,
PortLabel := "RxBACKPLANE",
Slot := 1,
Mode := 2#0000_0000_0000_0000,
CompatibleModule := 1,
KeyMask := 2#0000_0000_0001_1111)
END_MODULE
MODULE Local (Parent := "Controller",
ParentModPortId := 1,
CatalogNumber := "CompactBus",
Vendor := 1,
ProductType := 12,
ProductCode := 71,
Major := 20,
Minor := 11,
PortLabel := "RxBACKPLANE",
ChassisSize := 17,
Slot := 3,
CommMethod := 805306369,
Mode := 2#0000_0000_0000_0001,
CompatibleModule := 0,
KeyMask := 2#0000_0000_0001_1111)
ExtendedProp := [[[___901___]]]
END_MODULE
MODULE input (Parent := "Local",
ParentModPortId := 1,
CatalogNumber := "1769-IQ16/A",
Vendor := 1,
ProductType := 7,
ProductCode := 67,
Major := 1,
Minor := 1,
PortLabel := "RxBACKPLANE",
Slot := 1,
CommMethod := 536870913,
Mode := 2#0000_0000_0000_0001,
CompatibleModule := 1,
KeyMask := 2#0000_0000_0001_1111)
ExtendedProp := [[[___250___]]]
ConfigData := [8,102,1];
CONNECTION Input (Rate := 2000,
EventID := 0)
InputData := [0,128];
InputForceData := [0,0,0,0,-128,0,104,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
END_CONNECTION
END_MODULE
MODULE output (Parent := "Local",
ParentModPortId := 1,
CatalogNumber := "1769-OB16/B",
Vendor := 1,
ProductType := 7,
ProductCode := 71,
Major := 2,
Minor := 1,
PortLabel := "RxBACKPLANE",
Slot := 2,
CommMethod := 536870913,
Mode := 2#0000_0000_0000_0001,
CompatibleModule := 1,
KeyMask := 2#0000_0000_0001_1111)
ExtendedProp := [[[___150___]]]
ConfigData := [18,102,1,0,0,0,0,0];
CONNECTION Output (Rate := 2000,
EventID := 0)
InputData := [0,104];
InputForceData := [0,0,0,0,104,0,-128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
OutputData := [104];
OutputForceData := [0,0,0,0,0,0,0,0,0,0,0,0];
END_CONNECTION
END_MODULE
MODULE Analog (Parent := "Local",
ParentModPortId := 1,
CatalogNumber := "1769-IF4XOF2/A",
Vendor := 1,
ProductType := 10,
ProductCode := 33,
Major := 1,
Minor := 1,
PortLabel := "RxBACKPLANE",
Slot := 3,
CommMethod := 536870913,
Mode := 2#0000_0000_0000_0001,
CompatibleModule := 1,
KeyMask := 2#0000_0000_0001_1111)
ExtendedProp := [[[___350___]]]
ConfigData := [24,102,1,0,0,0,0,0,0,0,0];
CONNECTION Output (Rate := 80000,
EventID := 0)
InputData := [0,0,0,0,0,0,0,0,0];
InputForceData := [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
OutputData := [0,0];
OutputForceData := [0,0,0,0,0,0,0,0,0,0,0,0];
END_CONNECTION
END_MODULE
TAG
comp_var1 : DINT (RADIX := Decimal) := 5500;
comp_var2 : DINT (RADIX := Decimal) := 10000;
comp_var3 : DINT (RADIX := Decimal) := 10500;
comp_var4 : DINT (RADIX := Decimal) := 10000;
Counter_1 : COUNTER := [0,10,0];
enable : BOOL (RADIX := Decimal) := 0;
Internal_1 : BOOL (RADIX := Binary) := 0;
Internal_2 : BOOL (RADIX := Binary) := 0;
LIM_Tag1 : BOOL (RADIX := Decimal) := 0;
LIM_Tag2 : BOOL (RADIX := Decimal) := 1;
setpoint : DINT (RADIX := Decimal) := 1500;
tag1 : DINT (RADIX := Binary) := 543;
tag10 : DINT (RADIX := Decimal) := 4;
tag100 : DINT (RADIX := Decimal) := 0;
tag11 : DINT (RADIX := Decimal) := 0;
tag2 : DINT (RADIX := Binary) := 6;
tag20 : DINT (RADIX := Decimal) := 0;
tag200 : BOOL (RADIX := Decimal) := 1;
tag3 : DINT (RADIX := Binary) := 23;
tag5 : DINT (RADIX := Decimal) := 10;
tag6 : DINT (RADIX := Decimal) := 20;
tag7 : DINT (RADIX := Decimal) := 1000;
test : BOOL (RADIX := Decimal) := 0;
test12 : BOOL (RADIX := Decimal) := 0;
Timer2 : TIMER := [1543092,19999,0];
Timer_1 : TIMER := [1543092,20000,0];
END_TAG
PROGRAM MainProgram (MAIN := "MainRoutine",
MODE := 0,
DisableFlag := 0)
TAG
Internal_Bit_0 : BOOL (RADIX := Decimal) := 0;
END_TAG
ROUTINE MainRoutine
RC: "$N"
"";
N: XIC(Local:1:I.Data.4)XIO(Timer2.DN)TON(Timer_1,?,?);
RC: "$N"
"";
N: XIC(Local:1:I.Data.4)XIC(Timer_1.DN)TON(Timer2,?,?);
N: XIC(Timer_1.EN)LES(Timer_1.ACC,comp_var1)OTE(Local:2:O.Data.0);
N: XIC(Timer2.EN)GRT(Timer2.ACC,comp_var2)OTE(Local:2:O.Data.1);
N: XIC(Timer_1.EN)LEQ(Timer2.ACC,comp_var3)GEQ(Timer_1.ACC,comp_var4)OTE(Local:2:O.Data.2);
N: CMP(Timer_1.ACC < setpoint)OTE(Local:2:O.Data.3);
N: CMP(setpoint <= Timer2.ACC)OTE(Local:2:O.Data.4);
N: CMP(Timer_1.ACC+Timer2.ACC < tag7)OTE(tag200);
N: XIC(tag200)OTL(Local:2:O.Data.5);
N: EQU(Timer2.ACC,4500)OTU(Local:2:O.Data.5);
N: MEQ(tag1,tag2,tag3)OTE(Local:2:O.Data.6);
N: XIC(Timer_1.EN)LIM(comp_var1,Timer_1.ACC,comp_var2)OTE(LIM_Tag1);
N: LIM(comp_var2,Timer2.ACC,comp_var1)OTE(LIM_Tag2);
N: EQU(Timer_1.ACC,comp_var4)OTL(Local:2:O.Data.7);
N: EQU(Timer_1.ACC,comp_var3)OTU(Local:2:O.Data.7);
END_ROUTINE
END_PROGRAM
TASK MainTask (Type := CONTINUOUS,
Rate := 10,
Priority := 10,
Watchdog := 500,
DisableUpdateOutputs := No,
InhibitTask := No)
MainProgram;
END_TASK
CONFIG ASCII(XONXOFFEnable := 0,
DeleteMode := 0,
EchoMode := 0,
TerminationChars := 65293,
AppendChars := 2573,
BufferSize := 82) END_CONFIG
CONFIG CST(SystemTimeMasterID := 0) END_CONFIG
CONFIG DF1(DuplicateDetection := 1,
ErrorDetection := BCC Error,
EmbeddedResponseEnable := 0,
DF1Mode := Pt to Pt,
ACKTimeout := 50,
NAKReceiveLimit := 3,
ENQTransmitLimit := 3,
TransmitRetries := 3,
StationAddress := 0,
ReplyMessageWait := 5,
PollingMode := 1,
MasterMessageTransmit := 0,
NormalPollNodeFile := "",
NormalPollGroupSize := 0,
PriorityPollNodeFile := "",
ActiveStationFile := "",
SlavePollTimeout := 3000,
EOTSuppression := 0,
MaxStationAddress := 31,
TokenHoldFactor := 1,
EnableStoreFwd := 0,
StoreFwdFile := "") END_CONFIG
CONFIG SerialPort(BaudRate := 19200,
Parity := No Parity,
DataBits := 8 Bits of Data,
StopBits := 1 Stop Bit,
ComDriverId := DF1,
PendingComDriverId := DF1,
RTSOffDelay := 0,
RTSSendDelay := 0,
ControlLine := No Handshake,
PendingControlLine := No Handshake,
RemoteModeChangeFlag := 0,
PendingRemoteModeChangeFlag := 0,
ModeChangeAttentionChar := 27,
PendingModeChangeAttentionChar := 27,
SystemModeCharacter := 83,
PendingSystemModeCharacter := 83,
UserModeCharacter := 85,
PendingUserModeCharacter := 85,
DCDWaitDelay := 0) END_CONFIG
CONFIG TimeSynchronize(Priority1 := 128,
Priority2 := 128,
PTPEnable := 0) END_CONFIG
CONFIG WallClockTime(LocalTimeAdjustment := 0,
TimeZone := 0) END_CONFIG
END_CONTROLLER