Converting STL to Lader

omarisaac

Member
Join Date
Mar 2024
Location
africa
Posts
1
Hello everyone, can anyone help me with covert the STL code to ladder.
Iam using plc s71200.

A %DB1.DBX33.7 // angel of vaccum
A "VACUM SENSOR 1"
A "DB10".Static_27 // active vaccum hmi
S "Tag_20"
A %DB1.DBX33.7 // angel of vaccum
FN "Tag_21"
JCN M001
L "Tag_22"
SLW 1
T "Tag_22"
M001: NOP 0
A(
A "Tag_23"
ON "DB10".Static_27 // active vaccum hmi
A "DB10".Static_41 // active nozzle 1
A "DB10".Static_21 // active filling hmi

A %DB1.DBX33.6 // angel of filling
)
O(
AN "Machine_running"
A "DB10".Static_47 //active DISCHARGE 1 hmi
)
O(
AN "Machine_running"
A "Tag_24"
A "DB10".Static_1
A "DB10".Static_41 // active nozzle 1
)
A "DB27".Static_15
O(
A "DB10".Static_47 //active DISCHARGE 1 hmi
A "DB10".Static_41 // active nozzle 1
AN "Machine_running"
)
O(
A "DB10".Static_1
A "DB10".Static_41 // active nozzle 1
AN "Machine_running"
)
= "Filler Valve 1"
A(
A "Tag_25"
ON "DB10".Static_27
A "DB10".Static_45
A "DB10".Static_21
A "bools".Filling_2nd_cycle
A %DB1.DBX33.6
)
O(
AN "Machine_running"
A "DB10".Static_49
)
O(
AN "Machine_running"
A "Tag_24"
A "DB10".Static_1
A "DB10".Static_45
)
A "DB27".Static_15
O(
A "DB10".Static_49
A "DB10".Static_45
AN "Machine_running"
)
O(
A "DB10".Static_1
A "DB10".Static_45
AN "Machine_running"
)
= "Filler Valve 3"

thanks in advance
 
A = AND, which you should read as Add an open contact in series
AN = AND NOT, which you should read as Add a closed contact in series
O = OR, which you should read as Add a parallel branch and add an open contact
ON = OR NOT, which you should read as Add a parallel branch and add a closed contact

O( starts a parallel branch without adding a contact. The parentheses indicate order of operations as in a math problem (this is a simplified explanation)

The equal sign in the code is the Assignment instruction (often referred to as the Coil): --( )--

FN is a falling edge detector

Example:
O(
A "DB10".Static_1
A "DB10".Static_45
AN "Machine_running"
)

Would start a new branch, then have three contacts in series; open, open, closed.


You can place the cursor on an instruction and press F1 to summon the help file. It is often useful for understanding instructions.
 

Similar Topics

Hello nice to meet you, im new in here, I'm currently trying to convert code written in STL for a S7-400 to SCL for an S7-1500, because when i run...
Replies
5
Views
320
Hi! I am working on a project were we will be replacing an 300 CPU with a 1500 CPU and we are working on migrating / converting code. There is a...
Replies
9
Views
1,079
Hello, I am working on a project to convert a program from Siemens S5 to Twincat. I have little trouble understanding how the parenthesis work...
Replies
10
Views
2,440
Hi i want to Convert this Block in Ladder Language.thanks AN M0.0 JC ntw2 CALL "BLKMOV" SRCBLK :=P#DB2.DBX0.0 BYTE...
Replies
0
Views
1,661
Hi Am I right in thinking that a conditional call to NOP 0 at the end of the network is skipping to the end of the network could anybody confirm...
Replies
7
Views
2,096
Back
Top Bottom