Mitsubishi Electronics FX3G User Manual

Page of 964
785
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.2 Step Ladder
31
FNC277
-F
NC2
79
Da
ta
 
Trans
fer 3
32
FNC28
0-F
NC
289
H
igh-Speed 
Process
ing 2
33
FNC2
90-
FNC299
Ex
tensi
on Fi
le
 
Register C
ontrol
34
FN
C300-
FNC30
5
FX
3U
-C
F-
AD
P
35
SFC
•STL
Programming
36
Interrupt 
Function
37
Sp
ec
ia
l D
evi
ce
38
E
rror Code
A
Ve
rsi
on U
Inform
ati
on
B
Ex
ecuti
on
 T
imes
35.2
Step Ladder
35.2.1 Outline
In programs using step ladder instructions, a state relay State S is assigned to each process based on machine
operations, and sequences of input condition and output control are programmed as circuits connected to contacts
(STL contacts) of state relays in the same way as SFC programs.
The concept of program creation and the types and operations of state relays are the same as for SFC programs.
However, because the contents can be expressed in the ladder format, step ladder programs can be handled as
familiar relay ladder charts even though the actual contents are the same as those of SFC programs.
In step ladder programs, the list format is also available.
SFC programs and step ladder programs can be converted inter changeably if they are programmed according to the
same rules.
This section explains the expressions and cautions of step ladder programs in comparison with SFC programs, and
the input order in the list format.
35.2.2 Explanation of function and operation
In a step ladder program, a state relay State S is regarded as one control process, and a sequence of input conditions
and output controls are programmed in a state relay.
Because the preceding process is stopped when the program execution proceeds to the next process, a machine can
be controlled using simple sequences for each process.
Operation of step ladder instructions
In a step ladder program, each process performed by the machine is expressed by a state relay.
A state relay consists of a drive coil and contact (STL contact) in the same way as other relays.
Use SET or OUT instructions to drive a coil, and use STL instructions for a contact.
Operations of internal circuits connected to state relays are classified into three types, execution in the
contact ON status, execution in the contact OFF status (for one operation cycle) and non-execution.
• Execution in the contact ON status:
When a state relay turns ON, a connected circuit (internal circuit) is activated with a STL contact.
• Execution in the contact OFF status (for one operation cycle):
When a condition (transfer condition) provided between state relays is satisfied, the next state relay turns ON, and 
the state relay which has been ON before hand turns OFF (transfer operation). In the state relay ON status transfer 
process, both state relays are ON only momentarily (for one operation cycle). In the next operation cycle after the 
ON status is transferred to the next state relay, the former state relay is reset to OFF. A drive instruction connected 
to the bus line of the reset state relay is executed in the contact OFF status in one operation cycle regardless of the 
actual contact status before the drive instruction. When the transfer state relay S is used in a contact instruction, 
however, the contact image is executed in the OFF status immediately after the transfer condition is satisfied.
• Non-execution:
An instruction is not executed in the contact OFF status after the operation cycle where the instruction was 
executed in the contact OFF status (jump status).
• The figure below shows the timing chart of the state relay (internal circuit) activation status.
• One state relay number can only be used once.
Execution in the contact OFF status
in one operation cycle
Execution in the 
contact ON status
Non-execution
(jump status)
Execution