Convert Siemens STL file To LAD

jeff.argyle

Member
Join Date
Jan 2013
Location
UT
Posts
1
I am trying to convert this STL file to ladder and I am having a hard time figuring it out could someone please help me on converting it the problem I am having is figuring where the () embeded code starts and ends.
A(
ON "=CRIMPER+CB12-2K1"
ON "=CRIMPER+CB12-2K3"
O "M661.3"
O "M663.3"
O DB50.DBX 10.0
O(
A "Data Exchange MP277_PLC".FX_Auto_Functions.CrimperRolls_Positioning.StopPositioning_Request
= "Data Exchange MP277_PLC".FX_Auto_Functions.CrimperRolls_Positioning.Stop_Positioning_Touched
A "Data Exchange MP277_PLC".FX_Auto_Functions.CrimperRolls_Positioning.Stop_Positioning_Touched
A(
A "M660.1"
= "Data Exchange MP277_PLC".FX_Auto_Functions.CrimperRolls_Positioning.StopPositioning_Possible
A "Data Exchange MP277_PLC".FX_Auto_Functions.CrimperRolls_Positioning.StopPositioning_Possible
)
)
O(
A "Emergency_Release_Rolls"
FP M 667.0
)
O(
A "Emergency_Release_Rolls"
FN M 667.4
)
O(
A(
A "Emergency_Release_Rolls"
FN M 667.1
O(
A "Data Exchange MP277_PLC".FX_Auto_Functions.CrimperRolls_Positioning.Function_Request
FP M 667.2
AN #IN_POS
)
O(
A "Data Exchange MP277_PLC".Select_Lists_Unit.Near_Work_POS_FX
FP M 667.3
)
)
A "M2.1"
)
O
AN "Open_Fx_Manual"
AN "Close_Fx_Manual"
A "M2.0"
AN "M660.5"
A "M660.7"
AN "Emergency_Release_Rolls"
)
A "M_System_Ready"
= L 35.0
A L 35.0
BLD 102
S "M661.0"
A L 35.0
A(
O "Faults Messages".Fault_Messages_1.OP_SM1
O "Faults Messages".Fault_Messages_1.OP_SM2
)
S "M663.0"
 
welcome to the site.
one of the STL experts will reply soon.
But, often it can be far more complex to program in ladder.
in saying that I havent programmed in STL
 
well it's a little complicated since you have mixed A() and O() but try to understand it like this:

when you hit the A() then current RLO are saved, and everything in () is checked first. the result of that RLO is then AND'd with saved RLO and that become the new RLO

to know what's embedded together try with counting open and closed braces, i'll try to indent your code for better understanding:

A(
ON "=CRIMPER+CB12-2K1"
ON "=CRIMPER+CB12-2K3"
O "M661.3"
O "M663.3"
O DB50.DBX 10.0
O(
A "Data Exchange MP277_PLC".FX_Auto_Functions.CrimperRolls_Position ing.StopPositioning_Request
= "Data Exchange MP277_PLC".FX_Auto_Functions.CrimperRolls_Position ing.Stop_Positioning_Touched
A "Data Exchange MP277_PLC".FX_Auto_Functions.CrimperRolls_Position ing.Stop_Positioning_Touched
A(
A "M660.1"
= "Data Exchange MP277_PLC".FX_Auto_Functions.CrimperRolls_Position ing.StopPositioning_Possible
A "Data Exchange MP277_PLC".FX_Auto_Functions.CrimperRolls_Position ing.StopPositioning_Possible
)
)
O(
A "Emergency_Release_Rolls"
FP M 667.0
)
O(
A "Emergency_Release_Rolls"
FN M 667.4
)
O(
A(
A "Emergency_Release_Rolls"
FN M 667.1
O(
A "Data Exchange MP277_PLC".FX_Auto_Functions.CrimperRolls_Position ing.Function_Request
FP M 667.2
AN #IN_POS
)
O(
A "Data Exchange MP277_PLC".Select_Lists_Unit.Near_Work_POS_FX
FP M 667.3
)
)
A "M2.1"
)
O(
AN "Open_Fx_Manual"
AN "Close_Fx_Manual"
A "M2.0"
AN "M660.5"
A "M660.7"
AN "Emergency_Release_Rolls"
)
A "M_System_Ready"
= L 35.0
A L 35.0
BLD 102
S "M661.0"
A L 35.0
A(
O "Faults Messages".Fault_Messages_1.OP_SM1
O "Faults Messages".Fault_Messages_1.OP_SM2
)
S "M663.0"



if i done all right you either have one ) missing or one O without statement (i assumed it's last one)
also the bold BLD 102 is a instruction that is used only when view LAD program converted in STL.
 
Last edited:

Similar Topics

I need some assistance to any Siemens Gurus' who can help me convert the following from STL to Lad. I have tried all the old tricks I can...
Replies
4
Views
4,310
We have many blocks written in STL language. STL I don't understand well. Is there any way if I can convert STL to LAD. I am learning STL but I...
Replies
2
Views
5,071
Hey hi, I have written a logic in ladder in Siemens s7 300 plc and then converted it into STL . Now I m trying to convert it into ladder again...
Replies
1
Views
2,942
I need to convert some Siemens PLC logic using Siemens TIA V16 to Modicon M580 logic. Is there a tool out there that will get me started? How...
Replies
3
Views
2,695
Hello all, A group I am involved with is just completing converting a Siemens APACS control system over to an RSLogix PLC. The subject came up of...
Replies
1
Views
1,221
Back
Top Bottom