6 Step Ladder Instructions
6.3 RET
102
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
4. Caution
The following examples show how MELSEC-LD step ladders are expressed in the structured programs.
Reference: MELSEC-LD step ladder expression
Expressing step ladder in structured program
1) Structured ladder/FBD
1) When expressing step ladder (STL)
instructions in the coil format. (Same as that
for GX Developer)
2) When expressing step ladder (STL)
instructions in the contact format.
2) ST
SET(M8002, S0);
STL(TRUE, S0);
Y000:=TRUE;
SET(X000, S20);
STL(TRUE, S20);
S0:=X001;
RET(TRUE);
M8002
X000
X001
SET S0
STL S0
Y000
SET S20
STL S20
S0
RET
END
M8002
SET S0
Y000
SET S20
S0
RET
END
S0
STL
X000
S20
STL
X000
Y000
SET
EN ENO
d S0
M8002
S0
SET
EN ENO
d S20
X000
S0
S20
RET
EN ENO
X001
STL
EN ENO
s
STL
EN ENO
s