
EMBEDDED
PLC BL2500 User’s Manual
Running Sample Applications
OEM Technology Solutions
Page 26
6. Follow Steps 6 to 11 in Section 3.4.1 to create and populate the application’s Dictionary with SW1
and SW2 Boolean input variables (connected to Channel 1 and 2 of the bl25di I/O board
respectively); and LED1 Boolean output variable connected to Channel 1 of the bl25led I/O board.
7. On
the
B25TEST2 – Programs
window double-click on
LDtest1
program. The Quick Ladder
Diagram Editor contains an
editing grid,
a logical matrix where each cell of the matrix may contain
up to one LD symbol. Press
F2: Contact on the left
button
on the toolbar to insert a
new
rung
. A new rung with one contact and one coil is created.
8. Double click the
rung comment
(* *) cell to insert a comment such as (*Exclusive OR logic for
switching on LED*).
9. Double click the
contact
on the rung and select SW1 for an input.
10. With the SW1 contact selected, press
F3: Contact on the right
button
on the toolbar.
11. Double click the new contact and select SW2 variable. Click once on the
Coil/contact type
button
to negate this contact.
12. Select the
Select
button
on the toolbar. Select both contacts on the rung by clicking on one
contact and dragging the mouse over to the next contact before releasing the mouse button. Press
F4: Parallel contact
button
to create two new contacts in parallel with the selected contacts.
13. Repeat steps 9 and 11 except negate the SW1 contact with the
Coil/contact type
button this time
instead of the SW2 contact.
14. Double click on the
coil
on the rung and select LED1 for an output.
15. The
LDtest1 program
should now appear as follows:
16. Save the program by selecting
File
menu
→
Save
. Press
OK
button on the
Update diary
window.
Close the
LDtest1 – QuickLD Program
window.
17. Follow Steps 17 to 25 in Section 3.4.1 to compile the application and download it to the Target PLC.
18. Double-click on
LDtest1
program. The
LDTEST1 – Quick LD Programs
window is displayed with
the variables in BLUE or RED colour depending on its current state, FALSE or TRUE respectively.
Press the SW1 (short-circuit digital input IN00) and the LED1 will be turned ON as well as the state of
LED1 in the Programs window will change. The PLC program implements a Boolean XOR operation
on SW1 and SW2 with the result set on the LED1.