Click here to learn the biblical way to get to heaven! (The most important page on this site)
You can have your very own virtual server though VPSLink! Using REFERRAL code MJDCDJ you will receive a 10% discount on
your new account, and I will get a service credit on my account. My personal preference is the Link 2 package running XEN for starting out (You can upgrade any time). You can choose from a variety of Linux distributions such as CENTOS, Fedora, Debian, and Ubuntu. This is a great package for learning Linux,
and setting up your own web page, or email server.
Pushbutton Objects
With a display screen in focus (where the title bar is highlighted), you will be able to click “Objects” on the menu bar of Panelbuilder32. You will notice that you have four selections for the types of pushbuttons: Momentary, Maintained, Latched, and Multistate. Let's talk about each one of these selections:
Momentary: Writes a value of 1 or 0 to the processor when it is pressed, then writes the opposite value when it is released.
Maintained: Writes a value of 1 or 0 to the processor when it is pressed, then writes the opposite value the next time it is pressed.
Latched: Writes a value of 1 or 0 each time it is pressed – Other conditions (such as ladder logic) are required to change the state of the bit.
Multistate: Is capable of reflecting the state of multiple numeric values in the processor (other than simply 0 or 1)

For this first Example, we will add a Maintained Pushbutton. Click Objects | Push Buttons | Maintained to get the object, then let's draw the object on your screen just above the F1 key as shown.

Next, we need to get to the configuration for this button. Double click the object you just drew on your screen to get to the configuration menu. We will be writing a SINGLE BIT with the initial state of 0. Since we have a keypad terminal only, we must tie this pushbutton to a function key. Since we drew the object above F1, we will be sure F1 is selected.

Let's talk about the write tag, and the indicator tags. The write tag will reflect the memory location we want to change when the operator presses the button. The indicator tag is the memory location we look at to reflect the state of the button. Think about a lighted pushbutton you might have in your plant. The pushbutton contacts themselves might be wired to an input on the PLC, but the light on the pushbutton may be wired to the actual output that indicates that a process has been started. That is why we have two different tags for our pushbutton objects.
Click the “Edit Tag” button so we can configure our tag to write to the PLC.

Let's name this tag, “MyFirstPushButton”. It will be a BIT tag with the initial value of 0. Use the Pull-Down tab to select “MyPLC” from your list of available PLC's we can associate with this tag. Let's use I:1.1/0 as the address we will be writing to. We will save word 0 for block transfers if we need them later on. Press the OK button.

For now, let's set up the indicator tag to be the same as the write tag as shown:

Next, let's configure the indicator states for our pushbutton. This will tell the operator when the bit is high, or when it is low. At the top of your pushbutton configuration dialog screen, click “states”.

When our value is 0, we will display the text “Off [F1]” When our Value is 1, we will display the text “On [F1]. We want to be sure to include the [F1] text, so the operator knows which function key is associated with the object. This is not an issue with touch pad only Panelview terminals, because the operator just touches the object itself. Configure any other properties you wish to display on each state at this time.

When you are finished, download your project and verify the data table in the PLC corresponds to the state of the pushbutton you just added.
