TPD/VPD Series - Getting Started v.1.0.5
Page 21
Copyright@ 2012 ICP DAS CO., LTD. All Rights Reserved. E-mail: [email protected]
h.
Similarly, double-click on the neighborhood of the input parameter “in” as below
figure to select variable “count”.
i.
Finally, the first rung is done.
j.
The first rung does the followings:
if
( beep_tag ==
1 )
//that is, when the BitButton is pressed.
{
Beep();
//make a beep sound
count = count + 1;
//increment the count
}
Step 8: Use the Ladder Designer to program the logic – the second rung.
a.
Similar to Step 7. Move the cursor to an empty position and then press the F6 button
to add a new rung with a function block.
b.
Move the cursor to the previously-created function block and then press the F7
button to create a new function block to the right of the first one.
c.
Double-click on the first function block to set its function to “GE” (greater than or
equal to) of the category, “default”.
d.
Double-click on the second function block to set its function to “Assign” of the
category, “default”.
i.
h.