TheCaptain2000
Lifetime Supporting Member
I have just recently been exposed to Siemens S5 programming language on some machinery that we are installing. Granted, some of it translates into ladder fairly easily, but some statements still stump me. Most of my experience has been with AB.
Someone please help me translate the following code:
AN F 30.7
= F 30.7
CD C 20
AN C 20
= F 33.0
A F 30.6
R F 30.6
AN F 33.0
BEC
A F 30.7
L KC 003
S C 20
AN C 20
BEC
A C20
S F 30.6
A F 32.7
S F 32.0
L FY 32
SLW 1
T FY 32
BE
When it comes to S5, I know the basics...
A = AND
AN = AND NOT
O = OR
ON = OR NOT
S = Set
R = Reset
F = Flag (Bit)
L = Load
C = Counter
CD = Count Down
...but there are several things that I cannot figure out. I have been through the old S5 manuals, but is there a Instruction and/or Operand index that will help me understand other parts of STL.
Again, I am most familiar with ladder so I need some help with STL.
Thanks a bunch in advance.
Someone please help me translate the following code:
AN F 30.7
= F 30.7
CD C 20
AN C 20
= F 33.0
A F 30.6
R F 30.6
AN F 33.0
BEC
A F 30.7
L KC 003
S C 20
AN C 20
BEC
A C20
S F 30.6
A F 32.7
S F 32.0
L FY 32
SLW 1
T FY 32
BE
When it comes to S5, I know the basics...
A = AND
AN = AND NOT
O = OR
ON = OR NOT
S = Set
R = Reset
F = Flag (Bit)
L = Load
C = Counter
CD = Count Down
...but there are several things that I cannot figure out. I have been through the old S5 manuals, but is there a Instruction and/or Operand index that will help me understand other parts of STL.
Again, I am most familiar with ladder so I need some help with STL.
Thanks a bunch in advance.