Hardy HI 2080 EASY 8 Quick Start & Programming Guide Section 1: Section 2: Section 3: Wiring Guide Function Block Description Using Function Blocks ___________________________________________________________________________________ 9440 Carroll Park Dr. · Suite 150 · San Diego, CA 92121-5201· 858/278-2710· 800/821-5831 Fax 858/278-6700 · Web www.hardysolutions.
Section 1: 1 2 3 4 5 6 Wiring Guide Excitation + Sense + Signal + Signal Sense Excitation - 7 8 9 10 11 12 No Connect No Connect Floating Ground Floating Ground Floating Ground Floating Ground EXCITATION VOLTAGE: 5 VDC 4-WIRE SENSOR Important: 4-wire sensor jump pins 1 & 2 and 5 & 6 ATTENTION: Do not insert or remove module while the PLC is powered. “Hot-Swapping” may result in damage to the PLC and/or the module.
Section 2: Function Block Description NAME Read_Wt_status Zero Tare Cal_Low Cal_High Set_Config Read_Configuration Save Set_Sensitivity_Filter Set_defaults Get_Cmd_Status Get_Version FUNCTION Provides weight and status reading from Plug In Module (PIM) Sets Gross weight reading to zero Sets Net weight reading to zero Sets low calibration point Sets high calibration point Writes configuration parameters to PIM Read configuration parameters from PIM Saves configuration parameters to non-volatile memory Set
scale, this motion status will prevent the unit from doing a zero command, tare command, cal low command or a cal high command. Cal Low Weight - the reference for the amount of live load weight you have on the scale at the time of the Cal Low Command being run; Cal High Weight - the reference for the amount of live load weight you have on the scale at the time of the Cal High Command being run.
3. After double clicking your controller, a new project will open in the Project Organizer window. 4. Right click on the Micro830 and select to import an exchange file. 5. Select IMPORT EXCHANGE FILE and navigate to the EASY 8 FUNCTION BLOCK file. (download: http://www.hardyinst.com/process_weighing/plc+plug-in+modules/easy+8%99+series+weigh+scale+module) Select ALL or just the function blocks required for your project. In the example below, Weight and Zero function blocks were selected.
. After you have imported the function blocks, they will show up in the Project Organizer window as shown. 7. To create a ladder program using the function blocks, right click on “Programs” and add a new LD: Ladder Diagram.
8. Right click on the UntitledLD program and select “Rename”. In this example the new program has been called EASY8. cc 9. Double click on the program to open the ladder window. The first rung of the new program will be shown with a list of instructions to the right.
For this example, the following selections are used: Block – Enables use of a function block in the logic. Direct Contact – Enables verfication of bit status (on or off). Reset Coil – Enables change of a bit status from on to off. Rung – Adds another rung to the logic.
10. Click and drag a “block” to the rung and drop it. This will then bring up the Block selection box. 11. From the list by name, scroll down and select the function block to be inserted. In this example WEIGHT function block is used. Click Ok to insert it into the ladder diagram. 12. The WEIGHT function block has five outputs. A variable must be assigned to each output.
Assign a variable to each output by double clicking on the output box to open the Variable Selector window. 13. Click on the tab for the type of variable this will be, either Global or Local. In this example GLOBAL variable was selected. In the “Name” field, enter the name for this variable. In this example, the name of this output is Gross_Wt. In the “Type” field, select the type of register this will be. In this example, the Gross weight will be a DINT (Double Integer) type. Click OK to accept.
14. Repeat above to define the remaining outputs: 15. The WEIGHT function block also has an input for the slot number. The slot number is used to define the slot in the chassis to send the command to. Single left click the slot output box to open the Variable Selector and define the slot variable. In this example, the module is in slot 1 and will be defined as a constant. All the inputs and outputs for the Weight function block have now been defined.
In this example, the weight readings will be continuously updated, no further conditions will be placed on this rung. 16. Enter another rung by double-clicking on the “Rung” instruction in the toolbox list. This will add another rung in the diagram after the last rung. 17. Click and drag a “Block” instruction to this second rung and select the Zero function block from the list, click Ok to insert it into the ladder diagram. v The Zero function block will allow zeroing of the gross weigh when run.
Add a Direct Contact from the toolbox by dragging and dropping onto the rung before (to the left of the function block). In the Variable Selector box, make the Direct Contact command a Global variable, name it Do_zero and define it as a Boolean type variable. 19. To run the Do_Zero command to only once, the Do_zero bit will need to be turned off after the function block is run. This is accomplished by using a Reset Coil command from the toolbox.
20. Once the ladder rungs are completed, the project will need to be complied to check for any errors and prepare it to be uploaded into the PLC. Right click on the Micro830 and select “Build”. Once the project has gone through the build process, the results will be displayed in the Output window. Here is an example with Output window showing the build was successful.
After the build process, the project must be transferred to the PLC. Double click on the Micro830 in the project organizer window to bring up the Micro830 configuration window. Click on the Connect Button and select the communications path to the processor. In this example the USB port connection was used, click OK.
21. Once a connection has been established, download the program to the PLC by clicking on the Download button as shown. NOTE: Depending on the position of the “RUN-REM-PROG” switch on the PLC, it may necessary move the switch to either the program or the remote position to complete the download. 22. Once the download is completed, activate the run mode by either switching the selector switch on the processor, or if the switch in the “rem” position, click on the Run selection.
23. To monitor the process, run Debugging: a. by pressing F5 key b. by clicking on Debug and clicking on “Start Debugging” c. clicking on the green arrow icon shown below. 24. In the debug mode, on the program diagram window, right click on any of the variables and to view and change the values or conditions of the variables.
NOTE: If a rung is red then it is in a True state, if it is blue then it is a False state. In the example below the first rung, which is running continuously is red and the second rung, which is conditioned with a trigger bit before it can run is blue. 25. In the example below, 5lbs have been placed on the scale.
26. In the Variable Monitoring window, click on the box for Do_zero logical value to change it from low to high. The result of turning on the Do_zero bit will cause the gross weight to be zero’d. Notice in the example below that the gross weight reading has gone to zero. Ongoing Product Support Our Hardy Service Center is customer-focused and provides solutions that are valued by our customers. We offer a unique blend of support options that gives you the ability to maintain your facility your way.