It may be that the LD toolbar is displayed (Figure 2-7).
Should this be the case, click on the "Display FBD toolbar" icon so that the function blocks
toolbar is displayed (result Figure 2-8).
Note that clicking on the "Display LD toolbar" icon will display the LD toolbar again.
3.4.2. Selecting the OR function in the program editor window
Click on the arrow, as indicated in Figure 2-8, in order to obtain the functions list.
Select the "/" function by scrolling through the list with your mouse.
Place the cursor on the blank page (Figure 2-9) and click the mouse to place the "/"
function.
The "/" function block should be completed with 2 parameters:
- an input variable (to the left of the block),
- an internal bit (to the left of the block),
- an output variable (to the right of the block).
A complete description of the function block is available by double-clicking the block and then
clicking on the "Info" followed by the "Note" buttons.
3.4.3. Inserting variables
Select the "Insert variable" icon (Figure 2-10) in the program editor window. Then place
the cursor to the left of the function block, making sure that enough space is left so that the
input variable does not overlap the function block, and click on the mouse.
Select the "I62.00 - IN1 - Switch" variable in the variable list
Validate with "OK". The variable appears with its name.
Comment: If the "Cannot overlap graphic symbols" message appears instead of the
variable then restart the manipulation leaving enough space to the left of the block for the
variable insertion
Use the same procedure to insert the internal bit to the left of the function block and below of
the input variable and select the "M00.00 - TEST" internal bit.
Use the same procedure to insert the output variable to the right of the function block and
select the "O62.00 - OUT1 - Lamp" variable.
3.4.4. Links between the variables and the function block:
Select the "Draw connection line" icon in the program editor window (Figure 2-11) and
draw a line, without releasing the mouse button, between the "IN1" variable and the block.
The link between the "TEST" internal bit and the block is drawn in the same manner.
The link between the "OUT1" variable and the block is drawn in the same manner.
The programming phase is finished once the links are established. You may now save,
compile and send the program to the PLC.
3.5. Saving
Click on the "Save" icon in the program editor window to save your program.
3.6. Compilation
Compiling corresponds to a program verification and translation into a PLC understandable
language.
Click the "Verify program" icon in the program editor window.
Click the "Verify" button, wait for the message "0 error detected" (Figure 2-12) then click on
the "Build" button.
Once the "Project ready for download" message has appeared (Figure 2-13), click on "Exit"
to exit and return to the DEMO:MAIN program editor window.