3 - 14
3.2.6 Creating a program
3 CREATING PROGRAM IN STRUCTURED LADDER/FBD LANGUAGE
GX Works2
7. Click (Close contact) on the Structured
Ladder/FBD toolbar, and then move the cursor
to a desired position to display a close contact
there.
Click the close contact to connect it with a
function of the LDP and enable setting of a
variable.
Settings
• Variable: TS0
*1
*1: "TS0" indicates a contact of the timer T0.
8. Draw a grid line on the left figure (position 1)
using the procedure described in the step 3.
After drawing grid lines, click (Select Mode) on
the Structured Ladder/FBD toolbar to specify the
Select mode.
9. Click (Coil) on the Structured Ladder/FBD
toolbar, and then move the cursor to a desired
position to display a coil there.
Click the coil to connect it with the close contact
"TS0" and enable setting of a variable.
After drawing grid lines, click (Select Mode) on
the Structured Ladder/FBD toolbar to specify the
Select mode.
Settings
• Variable: Y10
10.Select "Function" "OUT_T" on the Function
Block Selection window, drag it, and drop it in a
desired position to position "OUT_T" there.
Click "?" of "TCoil
*1
" and "TValue
*2
", and set the
input variables.
Settings
• TCoil : TC0
*3
•TValue: 10
*1: Set a coil of the timer to "TCoil".
*2: Set the set value of the timer to "TValue".
*3: "TC0" indicates a coil of the timer T0.
1)
Input variables
TCoil and TValue
(To the next page)