New member here. I need help understanding some code from a Siemens program. Every proc. in our facility is of the AB SLC/5 variety. I have a firm grasp of ladder logic and can understand some STL. Any help will be appreciated, but be gentle, I am not a programmer by trade. You may have to dumb it down a bit. This code is controlling a gas burner. M 181.7 determines whether the burner is on or off. Too make it worse for me, it's in German. I'll translate where I can.
FB 22
Network 1 0000 Bath Temp Control
Name :BADREGEL (Bath-something??)
0005 :A DB 10 Datablock Bathtemp
0006 :
0007 :L DW 1
0008 :L KF +815
000A :>=F Start Sintern SB bei
000B :S M 181.4
000C :O(
000D :UN M 22.1 -M 22.1 01
000E :UN M 22.2 -M 22.2 01
000F : ) 01
0010 :ON M 2.1 -M 2.1
0011 :O M 152.4 -M 152.4
0012 :R M 181.4 -M 181.4
0013 :
0014 :L DW 1 ABFRAGE Bathtemp
0015 :L +650 >650 GRAD
0017 :>F
0018 := M 181.5 -M 181.5 Bathtemp > 650 GRAD
0019 :
001A :SPA FB 230 2-PUNKT-REGLER BAD
001B NAME UNKT-2
001C IST : DW 1 ACTUAL VALUE (TEMP)
001D SOLL : DW 0 SETPOINT
001E HYS : KF +3 HYSTERESE
001F : M 181.7 -M 181.7 CONTROL SIGNAL
0020 :
0021 :BE
Befor line 001A my only problem is the UN. Not familiar with that one and can't find any thing on it. The unconditional jump at line 001A is where I start having the real trouble. I'll show you FB 230 now.
FB 230
Network 1 0000 2-PUNKREGLER MIT HYSTERESE
NAME : PUNKT-2
BEZ : IST E/A/D/B/T/Z: E BI/BY/W/D: W
BEZ : SOLL E/A/D/B/T/Z: E BI/BY/W/D:
BEZ : HYS E/A/D/B/T/Z: D KM/KH/KY/KC/KT/KZ/KG: KF
BEZ : MERK E/A/D/B/T/Z: A BI/BY/W/D: BI
0011 :L =SOLL
0012 :LW =HYS
0013 :-F
0014 :L =IST
0015 :>F
0016 :S =MERK
0017 :
0018 :L =SOLL
0019 :LW =HYS
001A :+F
001B :L =IST
001C :<F
001D :RB =MERK
001E :
001F :BE
FB 22
Network 1 0000 Bath Temp Control
Name :BADREGEL (Bath-something??)
0005 :A DB 10 Datablock Bathtemp
0006 :
0007 :L DW 1
0008 :L KF +815
000A :>=F Start Sintern SB bei
000B :S M 181.4
000C :O(
000D :UN M 22.1 -M 22.1 01
000E :UN M 22.2 -M 22.2 01
000F : ) 01
0010 :ON M 2.1 -M 2.1
0011 :O M 152.4 -M 152.4
0012 :R M 181.4 -M 181.4
0013 :
0014 :L DW 1 ABFRAGE Bathtemp
0015 :L +650 >650 GRAD
0017 :>F
0018 := M 181.5 -M 181.5 Bathtemp > 650 GRAD
0019 :
001A :SPA FB 230 2-PUNKT-REGLER BAD
001B NAME UNKT-2
001C IST : DW 1 ACTUAL VALUE (TEMP)
001D SOLL : DW 0 SETPOINT
001E HYS : KF +3 HYSTERESE
001F : M 181.7 -M 181.7 CONTROL SIGNAL
0020 :
0021 :BE
Befor line 001A my only problem is the UN. Not familiar with that one and can't find any thing on it. The unconditional jump at line 001A is where I start having the real trouble. I'll show you FB 230 now.
FB 230
Network 1 0000 2-PUNKREGLER MIT HYSTERESE
NAME : PUNKT-2
BEZ : IST E/A/D/B/T/Z: E BI/BY/W/D: W
BEZ : SOLL E/A/D/B/T/Z: E BI/BY/W/D:
BEZ : HYS E/A/D/B/T/Z: D KM/KH/KY/KC/KT/KZ/KG: KF
BEZ : MERK E/A/D/B/T/Z: A BI/BY/W/D: BI
0011 :L =SOLL
0012 :LW =HYS
0013 :-F
0014 :L =IST
0015 :>F
0016 :S =MERK
0017 :
0018 :L =SOLL
0019 :LW =HYS
001A :+F
001B :L =IST
001C :<F
001D :RB =MERK
001E :
001F :BE