92
8 SFC PROGRAM
8.2 Structure
Detailed expression of transitions
Create detailed expression of transitions in the Zoom editor. The condition can be created in following programming
languages.
• The detailed expression of the same transition can be used for multiple transitions.
• The created detailed expression can be confirmed in the Zoom list. (GX Works3 Operating Manual)
■Usable instructions
The following table lists the instructions that can be used in transition programs.
Type Description
Ladder
diagram
Detailed expression Used to create a transition program consisting of a contact circuit and the TRAN instruction (Creating a dummy
transition condition) in a single circuit block. The transition becomes TRUE when the TRAN instruction is
executed.
■Restrictions
• Inline ST cannot be used.
• Only a TRAN instruction can be input to the coil.
Structured text language Used to create the following transition program.
■Method of writing a TRAN function (Creating a dummy transition condition) call statement
TRAN(bLabel1 & bLabel2);
//The transition becomes TRUE when the Boolean expression of the input argument is true.
■Method of writing an assignment statement of Boolean expression for reserved word "TRAN"
TRAN := bLabel1 & bLabel2;
//The transition becomes TRUE when the Boolean expression of the right-hand side is true.
■Method of writing an assignment statement of Boolean expression for the transition name
Transition1 := bLabel1 & bLabel2;
//Transition1 indicates the transition name input on the SFC editor. The transition becomes TRUE when the
Boolean expression of the right-hand side is true.
FBD/LD language Used to create a transition program ending with the TRAN instruction (Creating a dummy transition condition) in
a single FBD network block.
■Restrictions
• Only one TRAN instruction can be used.
• A program to be assigned to the device/label cannot be created.
• Coil, function block, function (except some), jump, jump label, and return program elements cannot be used.
For usable instructions other than the TRAN instruction, refer to the following.
Page 92 Usable instructions
Classification Instruction symbol
Contact instruction LD, LDI, AND, ANI, OR, ORI
LDP, LDF, ANDP, ANDF, ORP, ORF
LDPI, LDFI, ANDPI, ANDFI, ORPI, ORFI
Association instruction ANB, ORB
INV
MEP, MEF
Comparison operation instruction LD, LD_U, AND, AND_U, OR, OR_U
LDD, LDD_U, ANDD, ANDD_U, ORD, ORD_U
Real number instruction LDE, ANDE, ORE
Character string processing instruction LD$, AND$, OR$
Creating a dummy transition condition TRAN
bLAbel1
TRAN
bLabel2
bLAbel1
1
bLAbel2
2
IN1
IN2
AND
3
S
TRAN
4