SOFTWARE RE MANUAL AL VISI I LOGIC - GETTING NG STARTED ED V230-21-G23 Rev: 3:00
The information in this document reflects products at the date of printing. Unitronics reserves the right, subject to all applicable laws, at any time, at its sole discretion, and without notice, to discontinue or change the features, designs, materials and other specifications of its products, and to either permanently or temporarily withdraw any of the forgoing from the market.
Table of Contents VisiLogic Overview ..................................................................................... 5 Minimizing EMI: System Design Guidelines .................................................... 8 Devices Emitting high EMF ................................................................................... 8 Wiring Separation ............................................................................................... 8 Enclosing and Earthing ........................................
Utilities ................................................................................................... 70 Utilities: an Overview ........................................................................................ 70 Tools ...................................................................................................... 76 Creating Project files (.dvi, .vdf, .urc, .ura) .......................................................... 76 Project Properties ..........................................
VisiLogic Overview VisiLogic: Getting Started VisiLogic: Getting Started VisiLogic: Getting Started 3
VisiLogic Overview If you are new to VisiLogic, please start with this manual. Here, you can learn the basics of the VisiLogic software environment. These concepts are important even if you have experience programming other controllers. The subjects introduced here are covered in depth in the VisiLogic Software Manual Series.
VisiLogic Overview VisiLogic Overview VisiLogic is the software tool you use to create control projects for Vision controllers. After you plan the control task, use VisiLogic to write, debug, and download the PLC control and HMI applications into the controller. The PLC application is your control, or automation application. You write the PLC application using the Ladder Editor. The HMI application configures the operating panel's function.
VisiLogic Overview Operand View and Watch Folders VisiLogic allows you to view operands and their contents according to type and whether or not they are in use. You can also group related operands according to functions in Watch Folders. Vision Controller Divisions There are two major Vision divisions, Standard and Enhanced. Each division supports different HMI features and Ladder functions. For more information, refer to Appendix B: Vision Controller Divisions.
VisiLogic Overview Live Update from the Web Live Update is available from the Help menu. To start Update, select a subject and follow the on-screen instructions. Note • • After downloading FBs, you must close and then restart VisiLogic. The new FBs will appear on the FBs menu. Check the topic FB Library for more information. After downloading a new Operating System to your PC, you must install it in the controller.
Devices Emitting high EMF Minimizing EMI: System Design Guidelines Minimizing EMI: System Design Guidelines Before you design your control system, please read the following guidelines: Unitronics products are designed to operate in a typical industrial environment. These guidelines show you how to design your system for optimal performance in noisy environments. After installation, check your system periodically, in particular after installing new machinery close to the system.
Minimizing EMI: System Design Guidelines I/O Wiring: General Guidelines I/O Wiring: General Guidelines 1. Route each I/O signal / signal-group along with a dedicated common wire (e.g. 0V). This serves as a signal return path and increases interference immunity. Connect common wires at the respective common pins of the module where the specified I/O port is located. Please refer to the module installation guide for details. 2. For all types of analog and high-speed I/Os: 3.
Wiring Power for I/O Expansion Modules Minimizing EMI: System Design Guidelines Wiring Power for I/O Expansion Modules The examples below are based on the EX-A1. 1. If the power-supply is closer to the PLC than it is to the module’s power supply (EX-A1): - Create 0V and 24V junctions at the PLC respective terminals (see the following figure) and directly connect the PLC main supply lines to the EXA1. - Continue daisy-chaining the supply lines to the expansion I/O units.
Minimizing EMI: System Design Guidelines Power-line Filtering Power-line Filtering Some environments may induce greater EMI than the typical industrial environment. Extra power and/or signal line filtering may improve the system’s immunity to EMI. If power-line filtering is required, please use the following guidelines in addition to the guidelines provided by the filter manufacturer: 1. Use of power-line filters that comprise an earthing terminal is recommended.
Connect the EX-A1 Communication Cable Minimizing EMI: System Design Guidelines 1. If the power-supply is closer to the EX-A1 than it is to the PLC: - Install and connect the power-line filter as close as possible to the EXA1. The maximum wire length is 10 cm. Please refer to the filter manufacturer documentation for installation information. - Create 0V and 24V junctions at the EX-A1 respective terminals (see the following figure) and directly connect the EX-A1 main supply lines to the PLC.
Minimizing EMI: System Design Guidelines Connect the EX-A1 Communication Cable terminal and metal as this may cause poor conduction. DO NOT extend the wire.
Hardware Configuration Getting Started Getting Started Hardware Configuration Hardware Configuration opens automatically when you first create a new project. In order to open Hardware Configuration in an existing project, either select Hardware Configuration from the View menu or click the the toolbar. button on Click on the appropriate icon to select the model Vision, the Snap-in I/O module, and any I/O Expansion modules required by your application.
Getting Started Ladder Editor In a Ladder diagram, the contacts represent input conditions. They lead power from the left Ladder rail to the right rail. This is why the first element in a net must always touch the left rail. Coils represent output instructions. In order for output coils to be activated, the logical state of the contacts must allow the power to flow through the net to the coil. This is why the elements in a net must be connected. Each net must contain only one rung.
HMI Display Editor Getting Started HMI Display Editor Use the HMI Display Editor to create the Displays that the controller shows on its screen after the program is downloaded. When you click on HMI in the Project Explorer tree, a Display replica opens. The replica reflects the type of Vision controller you have selected in your project's Hardware Configuration. Displays tell your operators what to do.
Getting Started About the HMI Display and Keypad Color and Enhanced Vision When, in Hardware Configuration, you select an Enhanced or Color Vision, the HMI editor changes accordingly and shows additional options such as Frame and Button. About the HMI Display and Keypad All Vision controllers offer an integrated HMI operating panel that includes an LCD screen and a keypad. The screen size, type and keypad vary. Exact specifications regarding Vision operating panels are included in the user's manuals.
Variables Getting Started Note that to enter Information Mode, you touch the touchscreen in an area that is not occupied by a Keypad Entry variable or other screen object that has been assigned a Touch Property. Color Touchscreen LCD+ virtual keypad only Maximum number of displays: 1024 Maximum number of variables per display: 255 The virtual keypad functions in the same way as in monochrome models.
Getting Started Variables example, touch-screen models enable you to assign Touch Properties to onscreen objects. The next image shows a binary variable used in a V120 project. The next image shows numeric variable options for touch-screen color models. These enable you to assign Touch Properties to on-screen objects, and offer options for depth and color.
Variables Hide Disable Marking View Keypad OK Getting Started • • • • • • • • Causes the object/text to disappear from view Suspends any touch properties 'Greys' a button object Suspends any touch properties Changes the color of the button to dark blue background, white inverse text Does not affect touch properties Turns ON when Keypad Entry value is within legal limits Turns OFF when Keypad Entry value exceeds legal limits After you have inserted Variables into a display, they are shown with that disp
Getting Started Quick Navigation Quick Navigation VisiLogic offers different tools for program navigation. Program Tree Note • • Within the program tree, elements are presented alphabetically. This does not affect the order in which the program runs. Ladder Modules and subroutines can be moved via drag-and-drop, as can HMI Modules and Displays. Again, moving elements does not affect the order in which they run.
Downloading/Uploading a Project Getting Started Go To Label Use labels as bookmarks to mark program sections, and then locate them using the Go To Label + and List of Labels + utility. Forward-Backward Use the arrows to scroll through the program areas you have visited during the session. The Find utility also enables you to easily locate, directly open, and edit most program elements. In addition, you can right-click many program elements to open a shortcut menu.
Getting Started Downloading/Uploading a Project 2. Click Download on the Standard toolbar, or select an option from the Connection>Download menu. 3. The downloading process begins. Note that Build> Build All should be done before download, in order to locate project errors. Note • Use Remote Access to establish a communication line via modem or network.
Downloading/Uploading a Project Getting Started Standard Vision: Download (Ctrl + D) Enhanced Vision: Download All & Burn (Alt + Ctrl + A) Creating an Upload application file If the PLC contains an upload file, you can upload and edit it using VisiLogic.
Getting Started Downloading/Uploading a Project Create Download file To upload a project from a controller: 1. Connect the controller to the PC. 2. Select Upload icon from the Connection menu; the Vision Communication PC Settings window opens. 3. Select the connection type and click Exit; the uploading process begins. Upload copies the complete project from the controller into the PC. Via Project Properties, you can apply upload and download options: Assign a project password.
On-Line Test Mode (Debug) Getting Started On-Line Test Mode (Debug) To test a project, first establish PC-PLC communications by connecting the controller to the PC with the MJ10-22-CS25 programming (communication) cable. Note that the V1040 supports download via a USB (Type A to mini-B) cable. COM port 1 function is suspended when the USB port is physically connected to a PC. Note • You can also use Remote Access to establish a communication line via modem or network.
Getting Started On-Line Test Mode (Debug) Open Remote Access to debug remote controllers via network or modem connections. In Online Test mode, you can view the power flow, and view and force operand values and element status. You can also select a controller that is directly connected to the PC, or a PLC's network ID # if the PC is linked to a CANbus or RS485 network.
Information Mode Getting Started Force I/0, by right-clicking the operand and setting the desired state Note • The controller can send and receive SMS messages when the controller is in Test mode. Information Mode Information Mode is a utility that is embedded in the operating system of the controller. Via Information Mode, you can view data on the LCD screen, use the controller’s keyboard to directly edit data, and perform certain actions such as resetting the controller.
Getting Started Information Mode 5. Press the key ey to exit a category, and to exit Information mation mode. The controller er will block entry into Information nformation mode until the correct rrect password has been entered. ntered. This is why you must ust record any password you ou set for your controller. The data in Information Informati Mode is arranged anged in Categories. Each Category contains several veral Subjects. You navigate te Information Mode by using ing the keyboard buttons.
Information Mode Getting Started The categories of available information depend on the controller model. The table below shows the basic categories of information. Category Subject Possible Actions Data Types Memory Bits • View bit status System Bits • Change bit status (Set/Reset) Memory Integers • View integer/long integer/double word value. System Integers • Change values Memory Longs • Toggle Base: view the value in decimal or hexadecimal form. Inputs • • View input status.
Getting Started Information Mode • • Time & Date • • Unit ID Serial Port 1 Serial Port 2 mode. Reset the controller. This restarts your program; restoring power-up values to all data types except for those protected by the battery backup. The battery protects Real Time Clock (RTC), all operand, and Data Table values. Initialize the controller. This restarts your program and initializes all values, restoring 0 values to all data types. View the Real Time Clock (RTC) settings.
COM Ports and Data Communications Block Getting Started future use • Hardware Configuration • Check if I/O Expansion Modules are installed. Note that I/O Expansion Modules are represented by letters. Identical module types are represented by identical letters as shown below. Shows if an I/O module is short-circuited. COM Ports and Data Communications Information regarding the communications features of specific Vision models is available from your local Unitronics distributor, or export@unitronics.
Getting Started About Modems Data Communications include all of the options shown below: CANbus Modems, Landline and GSM/GPRS GPRS Ethernet DF1 Slave (Allen-Bradley) RS232 RS485 Options Communication FBs SMS messaging GPRS MODBUS (serial) MODBUS IP (Ethernet) Communications Protocol FB PC-Vision communications PC-Modem Configuration Remote Access: Accessing a PLC via PC Accessing a Networked PLC via PC SD Card Remote Access SD Card Explorer About Modems Unitronics' controllers can be hooked up to PSTN
About Modems Getting Started Run Online test mode. Download an OS to the controller via modem. Use OnLine test and Information Mode to troubleshoot problems in remote controllers and applications. Read and write data to/from controllers via Remote Access or Unitronics' communication .dll utilities. Receive and send SMS messages via SMS options.
Getting Started About Modems PLC-side modems Via modem, a Vision controller can communicate data using: MODBUS (serial) commands. VisiLogic's Communication Protocol FB, which enables Vision controllers to communicate data with most external serial devices, such as bar-code readers and frequency converters, via their proprietary protocols. SMS messages. The SMS FB enables text messages, including variable data, to be sent and received via GSM modems. e-mail via GPRS (Enhanced Vision only).
About Modems • 36 Getting Started When working with V570 and V290 (color): Set the baud rate in both Modem Services and in COM Init to 57600. In addition, run the Prepare PLC Modem procedure with the baud rate set to 57600. Com Init: - Select Ignore Break - Time Out Reply: set to a minimum of 6 seconds. Known compatibility issue: Sony Ericsson Modems.
I/O Expansion Modules Hardware Configuration Hardware Configuration Hardware Configuration opens automatically when you first create a new project. In order to open Hardware Configuration in an existing project, either select Hardware Configuration from the View menu or click the the toolbar. button on Click on the appropriate icon to select the model Vision, the Snap-in I/O module, and any I/O Expansion modules required by your application.
I/O Expansion Modules Hardware Configuration connected to the I/O Expansion port. Remotely, via an EX-RC1 connected to the controller's CANbus port. Directly to the controller's I/O Expansion port, using an EX90-DI8-RO8 stand-alone I/O Expansion module. Note that only a single EX90-DI8-RO8 can be connected to the controller. Check with your distributor for additional details.
Hardware Configuration I/O Expansion Modules The formula that is used to calculate the number of the I/O is: 32 + x • 16 + y, where X is the number representing the location of the module’s location (0-7) and Y is the number of the input or output on that specific module (0-15). Examples Input #3, located on module #2, will be addressed as I 67 67 = 32 + 2 • 16 + 3 Output #4, located on module #3, will be addressed as O 84 84 = 32 + 3 • 16 + 4.
I/O Expansion Modules Hardware Configuration If, however, your system includes analog modules, you must upload the VisiLogic application from the EX-RC1 and define the Hardware Configuration. The EX-RC1 network ID number is determined by DIP switch settings, and cannot be changed by the software application. The switch setting represents the ID number as a binary value as shown in the following figures.
Hardware Configuration I/O Expansion Modules High-Speed Counters: I/O Expansion Modules Certain digital inputs on certain I/O Expansion Modules are high-speed inputs that can be used as a 16-bit high-speed counter of the following types: High-Speed CounterUses the high-speed counter input alone, without reset. High-Speed Counter with ResetUses the High-Speed counter input and the next-to-last digital input as the counter's reset. Note that Reset occurs during Active High.
Snap-in I/O Expansion Modules Hardware Configuration Snap-in I/O Expansion Modules Configuring Snap-in I/O Modules High-Speed Counters: Snap-in I/O Modules Certain digital inputs on Snap-in I/O Modules are high-speed inputs that can be used as a 32-bit high-speed counter of the following types: High-Speed CounterUses the high-speed counter input alone, without reset. High-Speed Counter with ReloadUses the High-Speed counter input and an additional digital input as the counter's reset.
Hardware Configuration Snap-in I/O Expansion Modules Configuring a High-Speed Counter The linked operand contains the counter value which is current at the last program scan. To measure frequency, click the second input field and select the sample rate.
Snap-in I/O Expansion Modules Hardware Configuration High-Speed Counter: Reload Reload enables you to immediately load 0 into a high-speed counter when the counter value reaches a target value. Note that you cannot set the Reload input to Frequency Measurement. Stepper via High-speed Output (V570/V1040 only) If you are using a V570 or V1040 with any model Snap-in I/O module, VisiLogic 7.00 or higher and the OS released with that version, you can use specific high-speed outputs to control stepper motors.
Hardware Configuration Snap-in I/O Expansion Modules Parameter Type Function Frequency MI, ML, DW Note that F=1/T, where T is the duration time of a complete cycle. Frequency settings differ from npn to pnp output type. • npn: You can use a value of 0, or a value from 8-50000Hz ( 50kHz). • pnp: You can use a value of 0, or a value from 8-2000HZ. Other frequency values are not supported. Duty Cycle MI, ML, DW The ratio of the "on" period of a cycle to the total cycle period.
Configuring a High-Speed Counter Hardware Configuration Acceleration and Deceleration If your application requires acceleration/decelerat ion as is shown in the accompanying figure, you can control the speed of movement via the Ladder application. To see how, check the sample application Stepper Control.
Hardware Configuration Configuring a High-speed Output (PWM) If, for example, the constant 750 is stored into the Duty Cycle operand, the duty cycle is equal to 75.0% This means that the pulse will hold a positive state during 75.0% of the total cycle. • Frequency (F) Note that F=1/T, where T is the duration time of a complete cycle. Frequency settings differ from npn to pnp output type. npn: You can use a value of 0, or a value from 8-50000Hz ( 50kHz).
Configuring a High-speed Output (PWM) Note • 48 Hardware Configuration V120: The same MI sets Frequency for both outputs.
Hardware Configuration Configuring an Analog Input Configuring an Analog Input Before you can use an analog input in your program, you must link it to an operand. An analog input value can be contained in an MI, ML, or DW. Analog Filters, PLC Analog filter options, defined in Hardware Configuration, are available in Vision120, V200-18-E3B, and certain I/O expansion models that offer analog inputs, such as the IO-ATC8. Note that 10-bit inputs do not offer filters.
Analog Filters, PLC Notes • • Hardware Configuration Details regarding an I/O's specific resolution, conversion methods, and rates are given in the technical specifications supplied with Unitronics' controllers and I/O modules. When you configure an analog input for use with the PID function, ensure best results by using the highest strength filter.
Hardware Configuration Configuring an Analog Output Configuring an Analog Output Analog I/O Ranges Note that devices used in conjunction with the controller must be calibrated according to the available range. Below, Range refers to the value contained by the register that is linked to the I/O in Hardware Configuration.
Analog I/O Ranges Hardware Configuration ranges appear in the following table IO-AI4-AO2 Input Output 0-4095, 4096 units (except at 4-20mA) 819 to 4095, 3277 units (at 4-20mA) 12 bit (0-10V, 0-20mA, 4-20mA) 12 bit +sign ( ±10V, 0-20mA, 4-20mA) Model number Type Input ranges Analog Value V120-12-UN2 M90-19-UN2 M91-19-TC2 mV -5 -500 IO-PT4 52 0-+4095(except at420mA) 819 to 4095, 3277 units (at 4-20mA) to 56mV to 5600 TC type B 200 to 1820° C (300 to 3276° F) 2000 to 18200 (3000 to 32760)
Hardware Configuration Working with Analog I/O Values Working with Analog I/O Values Analog values can be converted to physical values, for example Engineering Units (EU) such as degrees Celsius, by using the Linearization FB. Note • Analog I/O values are contained in the register that you link to the I/O in Hardware Configuration.
Working with Analog I/O Values Hardware Configuration Linearizing an Analog Output Value Working within the 4-20mA range Available ranges, according to controller and I/O module, are shown in the topic Analog I/O ranges. Note that devices used in conjunction with the controller must be calibrated accordingly. In the examples below, the analog device is a pressure transducer; values are therefore translated to millibars.
Hardware Configuration Configuring Digital Inputs 12-bit Analog Output, IO-A14-AO2 14-bit Analog Input, V120-12-UN2 Configuring Digital Inputs Note • PNP/NPN must be set within the hardware, as explained in the technical specifications supplied with the I/O module. The program settings do not influence the actual hardware input setting.
Configuring Digital Outputs Hardware Configuration You can also assign a single description to a several lines. Configuring Digital Outputs Digital Outputs may be Relay or Transistor type. Note • 56 PNP/NPN must be set within the hardware, as explained in the technical specifications supplied with the I/O module. The program settings do not influence the actual hardware input setting.
Hardware Configuration Assign a Description to Multiple Operands You can also assign a single description to a several lines. Assign a Description to Multiple Operands To assign a Description to multiple operands, select a range of operands by dragging your cursor across them, then type a description and click OK. You can also copy and paste text to and from other Windows applications.
Vision Communication PC Settings Controller Settings Controller Settings Vision Communication PC Settings This defines the connection VisiLogic will use when downloading a program or carrying out other communication tasks. To display the current communication settings, select Communication & OS from the Connection menu. Note that you can cause the Unit ID# to be permanently assigned to the project via Project Properties.
Controller Settings Communication and OS-Controller Menu Communication and OS-Controller Menu Via this menu, you can Set PC communication parameters (non-modem) to enable PC-PLC communication. Reset and initialize a PLC, enter Stop and Run modes, get RTC values as well as reset the RTC. Get COM Parameters and PLC status.
Get COM Parameters and PLC status Controller Settings Get COM Parameters and PLC status Select Get to view communication parameters and PLC status in the controller you are currently communicating with. This is the controller selected in Communicate with OPLC. Downloading an OS In many cases, you must update the controller's Operating System, or OS, before you can take advantage of newly released Vision and VisiLogic features. You can download an OS, via a direct PC-PLC connection, or via modem.
Controller Settings Downloading an OS the PLC as shown below. 4. To install the OS, click Download; OS installation begins. 5. If you are connected to a Vision Color Series model such as the V570, a wizard opens and guides you through the steps. Note that the Advanced button enables you to download separate OS sections; this feature is intended for use by advanced users only. Note • • • • By default, OS version shows the most recent OS version released with your version of VisiLogic.
Check CANbus Network Status Controller Settings This error can generally be resolved by downloading a new VisiLogic project updating the current project to the most recent version of VisiLogic. You can also update the project currently in the PLC by uploading it, updating it, and then downloading it to the PLC. Known Issue, Vision 120 Known issue: A power failure during OS download causes V120 models, installed with bootstrap (firmware)1.30 and lower, to enter bootstrap mode.
Controller Settings VisiLogic: Getting Started Check CANbus Network Status 63
Remote Access: Accessing a PLC via PC Remote Access Remote Access Remote Access: Accessing a PLC via PC Use VisiLogic to activate access a remote Vision controller and: Download and upload projects Remotely operate the controller's HMI through your PC Run On-Line Test mode on the remote controller Run Information Mode. You can access: Stand-alone controllers that are directly connected to the PC via a cable.
Remote Access Remote Access: Accessing a PLC via PC Accessing a Networked Controller 1. Connect your PC to any controller in the network using the programming cable supplied with the controller kit. Note • Different PCs can access a network at the same time, using different controller units as bridges. However, 2 different PCs cannot simultaneously access the same controller unit. 2.
Remote Access: Accessing a PLC via PC Remote Access Accessing a Controller via Modem 1. Prepare and connect your PLC-side modem as described in the topic PLCside Modems, in the section 'How to enable a controller to communicate via landline, GSM/GPRS modem'. 2. Prepare the PC-side modem as described in the topic PC-Side Modems (Modem Services), in the section 'How to Configure a PC-side Modem'. 3. Via Connection>Modem Services, dial the remote PLC's controller to establish the data link. 4.
Remote Access Remote Access: Accessing a PLC via PC 7. Remotely operate the controller's HMI by using: - Your PC keyboard, pressing arrow, alphanumeric, and function keys to ). Note that the Vision key is the key on the PC keyboard - Your mouse to click keypad keys on the Remote Access image on the PC screen. In the case of touch-screen models, you can also click on-screen objects.
Remote Access: Accessing a PLC via PC Remote Access Remote Access options Use the options to set display options and refresh rate. Note • The Zoom option can be activated only if you select Hide Keys. Zoom cannot be used with or V280 controllers. Improving Remote Access run times: Cache files enable Displays to load more quickly. These files enable Remote access to refer to HMI elements stored in the PC, instead of taking them from the PLC.
Remote Access Remote Access: Accessing a PLC via PC Color Vision only The static HMI files are in .urc format. Such files can be created in Remote Access by selecting the option Create Fonts and Images (*.urc) from PLC shown in the following figure. The .urc file may include either fonts, images, or both. However, note that if the .urc file does not include graphics, Remote Access will not display images. Note • When Remote Access creates a .
Utilities: an Overview Utilities Utilities Utilities: an Overview Vision controllers offer a broad range of utilities. Some utilities are internal to VisiLogic, some are provided by external software tools that may be freely downloaded from the Unitronics website. This section describes general functionality. For complete information, refer to the manual VisiLogic Utilities. VisiLogic Utilities SD Cards Enhanced Vision controllers support SD cards.
Utilities Utilities: an Overview Data Tables You can store data into the Data Table memory section of your controller, then access the data in accordance with program requirements. They are useful in implementing Program Recipes, a collection of ingredients or values that are used to prepare a batch of product or to perform a specific task. Data Tables can be used to contain parameters for pre-programmed recipes.
Utilities: an Overview Utilities String Library Use String Library to store text strings within the controller's FLASH memory, and then display them on the controller's LCD. You can, for example, organize text into different String Libraries—for example, separate libraries for Spanish, English and Italian—pull strings into HMI objects, and then switch libraries to change the display language.
Utilities Utilities: an Overview Alarms An Alarm is an event that is reported to the machine operator via a set of built-in displays. The event is a change in the Alarm’s Trigger condition, which may be linked to either a Boolean or a numeric value.
Utilities: an Overview Note • Utilities This feature is not available in Standard Vision controllers. Web Server Enhanced Vision controllers can host web pages. The controller must comprise a TCP/IP port, and must be connected to an Ethernet network. If the controller contains web pages, a remote user can enter the IP address of the controller into a web browser and view the pages. You can also host complex Web pages using the program in the .zip file located at:http://www.unitronics.
Utilities Utilities: an Overview SD Card Explorer Use a PC to access, read and write files on an SD Card that is installed in a Vision controller SD Card Manager Import SD files: Trends, Logs, Alarms, and Data Tables, view them, and export them to Excel or .csv files. Data Tables Editor View, export, and edit Data Table files. DataXport DataXport creates logs of run-time or stored data from Data Tables and operand regions within Unitronics PLCs. DataXport saves the data logs in .ulp format.
Creating Project files (.dvi, .vdf, .urc, .ura) Tools Tools Creating Project files (.dvi, .vdf, .urc, .ura) Project files contain application data in compressed format. There are several kinds of files. Clone Files: These can contain complete applications in compressed format, including Ladder and HMI applications and OS. Clone files are very convenient for OEMs, or for those wanting to 'Clone' a PLC and its application.
Tools Creating Project files (.dvi, .vdf, .urc, .ura) Notes • .cxx Files PLC Unique ID Each PLC has a unique ID number, which is shown in SDW9. Use this number to restrict a program to a particular PLC. Password: This is assigned to the SD Card via the Set SD Card Password function. • • Both the controller you use to make the download file (source), and the controller that is installed with the file (target) should be installed with the same OS Version.
Project Properties Tools 5. Navigate to the .dvi file and download it into the controller. 6. Reopen the original Ladder project used to create the .dvi file. 7. Select Verify from the Controller menu; the Verify process will compare the project in your PC with the .dvi application installed in the controller. If the Verify process is successful, the .dvi file is valid.
Tools Project Properties Note • Password security restriction: if a PLC operator enters a wrong password 9 times, the PLC automatically disables program upload for that program. Resetting the PLC will enable you to try another 9 times. The limit set on password entry is intended to provide an additional layer of security. For example, this can prevent a hacking script from entering a networked PLC, since the number of attempts is limited and such a script would not reset the PLC.
Project Properties Tools Parameters Function Disable Project upload If you select this, no user will be able to upload the project from the PLC, even with a password. Rebuild, then Download Select this if the project was originally created in another VisiLogic version.
Tools Project Properties Ladder Parameters Function Auto-extend Adds 5 grid points to each net, following the bottom edge of the lowest Ladder element. Mouse wheel, Scroll Bar Resolution Customizes resolution of Page Up / Page Down. Auto Horizontal, Auto Vertical Placing Defines the number of grid points that activate auto-snap. Auto-snap causes an element that is placed in the Ladder to snap to the output of the previous element in the rung.
Digital Signatures Tools Color You can assign any color to show power flow during Test mode. Digital Signatures View Digital Signatures by clicking the View menu and selecting Show Signature Log. This project security feature can enable Vision PLCs to meet standards in niche industries such as pharmaceuticals. The log: Records changes made in a project.
Tools Operand View Tracks the last projects downloaded to a PLC. Enables you to save the signature log within a VisiLogic project. Compares the signature of the project to the signature of the last project that was downloaded to the PLC. Operand View Use the Operands tab in the Output Window to see if operands and I/Os are used in a program, assign power-up and preset values, view current values when you run Test mode, change formats, assign descriptions (symbols), and view and edit Watch Folders.
Hotkeys: Quick Editing Tools Hotkeys: Quick Editing VisiLogic offers keyboard shortcuts for a number of tasks, including Ladder editing. You can also assign certain tasks to keys F3 and F4 via Program Properties. Note • Selected Ladder elements can be moved within a net via the keyboard arrows. Task Ladder Pressing the appropriate key attaches the element to the cursor; click to drop it into the net.
Tools Watch Folders Connection HMI HMI Variables Online Test Download + Upload + Verify + < Y> Remote Access (During Online Test) + Show Grid + Zoom + Approve a Variable (when required links are filled) + + Watch Folders Watch Folders enable you to: Arrange related groups of operands in folders. Name the folders. View these operands in the tabbed Output Window at the bottom of the screen.
Memory Tab Tools To add all of the operands within a net to a Watch folder, right-click the left-hand rail of the desired net. Memory Tab Memory enables you to view a vector according to the length you set and in ASCII, HEX, Binary, or Decimal format. 1. Click on the 'Memory' tab in the Output Window at the bottom of the VisiLogic screen. 2. Right-click in the window to add rows.
Tools Find (& Replace) 3. Click in the Operand column to link operands. 4. Click in the Length column to assign a vector. 5. Click in the Size column to select 8, 16, 32 bits. 6. Click in the Format column to select ASCII, Binary, Hex, Decimal. 7. Enter Online Test Mode. When ASCII is the selected format, you can click a line and force a string to the vector. Note that to force the value, you must click the 'eyeglass' symbol in the On-line window.
Find (& Replace) Tools You can also right-click an element or subroutine to display the Find icon on the rightclick menu. Notes • Labels: Clicking on a found 'Label' will list the Jump to Label linked to that label in the Output Window. Find Element The Find Element utility enables you quickly locate any element that is used in a project. 1. Select Find Element from the Edit menu; the utility opens. 2. Click the desired element type in the left pane, then select the element from the right and click OK.
Tools Find (& Replace) Find FB Find FB enables you to locate the FBs in your project. Find Font This enables you to find fonts used in HMI Displays.
Find (& Replace) Tools Finding a Load Display Target 90 VisiLogic: Getting Started
Tools Find (& Replace) Finding a Call Subroutine Target Go To Label To find Labels, use Go To Label + and List of Labels + utility. • Find Constant Value To find Constant values, either: Click on the Constant, then press + ; the results appear in the Output window.
Search: Symbolic Name Tools Start Find, select the Constant tab and enter the value, then press OK ; the results appear in the Output window. Search: Symbolic Name Use Search: Symbolic Name to find operands by description. Within the Select Operand box, this is activated via + < L> .
Tools Deleted Unreferenced Operands Deleted Unreferenced Operands To help manage your project, you can delete unreferenced operands. Print Project Print Project is located on the Project menu. Via the Print dialog box, you can print various aspects of your project. Print Preview is also offered.
System Images Tools System Images You can customize your application by replacing system images, such as the Unitronics' Splash Screen, and the Unitronics' icon that appears in Information mode, with you own custom images. 1. On the Project menu, click System images. 2. Click on the desired image, click on Replace Image, and navigate to your custom image..
Tools Converting Projects Notes • • You can restore default System Images by clicking on the appropriate button You can replace the virtual keypad images; however note that the touch locations for the keys will not be changed from the default. Converting Projects If you open a project based on a Vision with a monochrome LCD screen, VisiLogic provides the following utilities on the Project menu: Convert to V130 Use to convert a project based on the V120 to V130.
Import/Export Subroutines Tools Exporting all of the Subroutines in a Module 1. Right-click the desired module and select Export All Subroutines. 2. Save the .vlx file to the desired folder. Note that when you import this .vlx file, all of the Subroutines it contains will be imported. Import 1. Right-click a module name and select Import Subroutine, -orSelect Import Subroutine from the Project menu; the Open box appears. 2. Select the desired subroutine, then save it to the desired folder.
Tools Import/Export Subroutines Import/Export is subject to the limitations below. If the source project contains Call Subroutine or Load HMI operations, note that the referenced elements will be marked as missing, even if the target project contains elements of the same name. Note that you can reassign the references. If the selection contains an FB operation related to an FB Configuration, and is imported into an application containing an FB Configuration of the same name, the links will be retained.
Verify Project Tools In this way, VisiLogic maintains the integrity of the links between Jumps and their corresponding Labels. Note that the following symbols cannot be used in subroutine names: / \ | * : ! " < > . In addition, please note that a name may not include a period followed by a space (for example My. Subroutine). When importing/exporting from older VisiLogic programs containing such symbols, they will be automatically replaced by underscore characters.
Tools Compile Compile To test your project, compile it. 1. Select Compile from the Build menu. 2. After compiling the project, VisiLogic displays errors in the Output Window. Clicking the Compile tab displays the last compiled results. Compilation Error Message #37 Message # 37 is displayed when a V120-12-xx is selected in the project's Hardware Configuration, and the project contains a function that is not supported by that model.
Log Tools Log To view a log of events, click the Log tab at the bottom of the Output Window. Show STL You can view STL code for a particular Subroutine, whether off-line or in Online Test mode. To view STL online test values after downloading a project to a controller, open STL View, then press F9 to enter online test mode.
V230/260 V280 + + + Move all DIP switches to V350/290/530/ 570/V1040 (touchscreen) V120/130 Move all DIP switches to 1 Turn the PLC off. Enter Bootstrap mode by touching the screen and maintaining contact while turning the power on. Enter Stop mode by pressing the screen once. Note • Visions embedded EX-RC1 As above, but all Info mode actions are supported. Exit Stop Mode by entering Information Turn the PLC off.
Memory Allocation Tools Memory Allocation You can check the flash memory requirements of a project via Projected Memory Allocation, which is located on the Build menu. You can also view the current allocated flash memory of a controller via PLC Flash Memory Allocation, which is located on the Connection menu. Note • 102 Vision uses dynamic memory allocation.
Tools Memory Allocation Ladder Code Capacity The table below shows how much memory is allocated for the Ladder code; note that an additional sector comprising double that amount is allocated for compiled Ladder code. Controller Model Ladder Code Compiled Ladder Code Total V230, V260, V280 64K 128K 320K V120 32K 64K 192K During download, Ladder code is compiled into machine code. The compiled code may exceed the memory that is allocated for compiled Ladder code.
Detecting Short-circuited End Devices Appendix A: Troubleshooting Appendix A: Troubleshooting Detecting Short-circuited End Devices The controller can detect short circuits in end devices (loads) that are connected to transistor outputs located on snap-in or expansion I/O modules. If a short circuit is detected on either an expansion or snap-in I/O module, SB 5 turns ON. If the short circuit is located on an: I/O expansion module, the location is indicated in SDW 5.
Appendix A: Troubleshooting Positive Transition Contact ( Rise ) At the end of a scan, the Positive Transition Contact is reset to ON (logic 1). The Positive Transition Contact is re-activated when the linked signal turns from OFF to ON. Note • Execution time for Positive and Negative Transition contacts is considerably greater than the execution time for direct and indirect contacts. However, you can decrease the amount of transitional contacts in your program.
Positive Transition Contact ( Rise ) Appendix A: Troubleshooting V350 – 1024 ( 0…1023) V130 – 512 ( 0…511) V2xx – 256 ( 0…255) If a program exceeds this number, Error 1017 results. However, in certain cases, the actual compiled number of Rise/Fall elements is greater than the total that is shown in the Summary. Examples are shown below.
Appendix A: Troubleshooting VisiLogic: Getting Started Positive Transition Contact ( Rise ) 107
I/O Expansion Module Errors Appendix A: Troubleshooting I/O Expansion Module Errors An interruption in communication between an I/O expansion module and controller can cause the controller to enter Stop Mode, and an ‘Expansion Error’ message to be displayed on the controller’s LCD. This error results when: 1. The module was connected at power-up. 2. The communication between module and controller was interrupted for more than 200 milliseconds.
Appendix A: Troubleshooting Compile Vision models V120-12-R1, V120-12-R2C, V200-18-E1, V200-18-E1B and V200-18E2B Analog value: from 0 to 1023 (10 bit). If the analog input is: Below 0V/0mA, then the analog value will be 0. Above 10V/20mA (about 2% above the full scale), then the analog value will be 1024. V120-12-UN2, V120-12-UA2 Analog value: from 0 to 16383 (14 bit). If the analog input is: Slightly below 0V/0mA (about 0.5% below 0V/0mA), then the analog value will be -1.
Compatibility: HW, OS, SW Appendix A: Troubleshooting Compatibility: HW, OS, SW Both the OS that runs the PLC and your current software version must support the hardware, such as I/O Expansion Modules, that you use in your applications. Note that there is a list of OS changes in the Downloads Section of the Unitronics web site: http://www.unitronics.com/Content.aspx?page=Downloads Hardware Supported by OS Version Supported by VisiLogic Version V200-18E4XB 4.00 Build 25 4.06 V120-2-R34 V4.50 B06 4.
Appendix A: Troubleshooting Compatibility: HW, OS, SW Strings: Mac address to ASCII, Time to ASCII, ASCII to Num, Logic, RLO to Bit, Set/Reset Bit (SI, SL, SDW) More: Immediate: Write to Physical Analog Output, Debug: Interval HMI Previous Variable, Clear rectangle HMI Features Clock variable-UTC Enter ASCII String via Keypad Shape Graphs Draw Static Axis Moving image General features Interrupt: High speed counter, Interrupt 2.
Updating Project Versions Appendix A: Troubleshooting Updating Project Versions Opening a project created in a previous version of VisiLogic enables you to update the project. Please note the following: If you open the project with the new version, but do not save it before closing it, no changes are made to your project. VisiLogic automatically creates a backup file of the project you are updating. This file is located in the project directory. This backup file does not have the .
Appendix A: Troubleshooting Updating Project Versions V120-12 continues to support the older PID function, continues to support up to 18 PID loops, but does not support the PID FB. Set PLC Name function Set PLC Name was not required in Set PLC Name is required in TCP/IP TCP/IP applications. applications. Version 4.00, Build 10 Read \ Write Column Data Tables function The function was not FIFO-based. The function is now FIFO-based.
Updating Project Versions correct display. Version 4.50, Build 02 Touch-screen PLCs: Display buzzer The buzzer would sound whenever any part of the screen was touched. Version 4.50, Build 06 Display jumps, SB 250 (V290 only) SB 250 could not be used to trigger Display jumps. FB Communication Protocol When messages were received, and data errors were discovered, the datacheck process stopped prematurely. Previous to Version Version 4.7.
Appendix A: Troubleshooting 243 244 245 Why does the Controller display the 'Restart' message? 223 224 225 Why does the Controller display the 'Restart' message? The most common reason for this event is a peak in electromagnetic (EMF) 'noise'. This may result from contactors, power relays, solenoid valves, etc. switching on and off, as well as from power transformers and motor speed drivers.
HMI Element Resizing/Rotating Limitations • • 116 Appendix A: Troubleshooting Fit to Original Size does not affect geometric shapes that are drawn on the Display. 'Original size' cannot be used to resize Variable elements if the elements have different original sizes.
Appendix A: Troubleshooting Notes • • • Blank Corner in HMI Display Although an imported image can be resized, resizing may result in some degree of distortion. To avoid this, use images that are created to match the required size. Resizing text elements changes the size of the text field, but does not affect font size. Shapes that are imported are resized in proportion to their original size.
Insufficient Flash Memory Appendix A: Troubleshooting If you select a smaller panel, some of the elements in your Displays may be too large. In this case, any variable, graphic, or text elements that extend beyond the edge of the screen will be deleted from your project, and may not be retrieved. In addition, note that all calendar variables will be deleted. Also, note that if you change from a touch panel to a non-touch panel, any 'touch' properties linked to on-screen objects will be deleted.
Replacing or Removing the Battery Appendix B: Vision Controller Divisions Appendix B: Vision Controller Divisions There are two major Vision divisions, Standard and Enhanced. HMI - Physical differences Division Series Standard Vision Enhanced Vision V120 V230, V260 V280, V530, V290-BW V130 V350 V570, V560, V290-C V1040 Display Keypad On-board I/Os Built-in Via Snap-in I/O Modules Via Snap-in I/O Modules Monochrome Monochrome Built-in Built-in Monochrome touchscreen Virtual Monochrome Color 5.
Replacing or Removing the Battery HMI Features Division Appendix B: Vision Controller Divisions Displays Standard Vision 255 Enhanced Vision 1024 HMI Objects Call Subroutine from Display Does not support You can link 1 Trends HMI object subroutine to a Display. Does not support: You can link three Moving Images subroutines to a Display: on load, Global during display, on Variables unload.
Appendix B: Vision Controller Divisions Replacing or Removing the Battery Project Conversion Projects may be converted from the: V120 to the V130 From monochrome to color Project>Convert Project to Color. Keypad Entry The following table shows differences between keypad entry variables.
Replacing or Removing the Battery Password Entry via HMI Entering a legal keypad entry value Entering an illegal keypad entry value Active Keypad Entry Variables (SIs) Keypad Vars Locked Enter ASCII value 122 Correct password turns SB250 ON Wrong Password turns SB251 ON SB 250 Keypad entry Within Limits turns ON for 1 scan SB 251 Keypad Entry Exceeds Limits turns ON for 1 scan Appendix B: Vision Controller Divisions become active.
Appendix B: Vision Controller Divisions Replacing or Removing the Battery The V120 and V130 Both the V120 and V130 are highly compact controllers with built-in on-board I/O configurations, and may be used in similar applications. However, applications written for the V120 may not be 'plug-and-play' for the other, and may have to be adapted.
Replacing or Removing the Battery Appendix B: Vision Controller Divisions Ladder Feature Call Subroutine V120 A single net can include 2 Call Subroutine functions Load HMI Display A single net can include 2 Load HMI Display functions V130 A single net can include only 1 Call Subroutine function A single net can include only 1 Load HMI Display function HMI Feature Load Subroutine Unload Subroutine What is current Display? 124 V120 SB 33 Load Display with linked Call Subroutine turns ON for 1 scan S
Appendix B: Vision Controller Divisions Active Keypad Entry (SBs) Keypad Entry: Focus Password Entry via HMI Entering a legal keypad entry value Entering an illegal keypad entry value Active Keypad Entry Variables (SIs) Keypad Vars Locked Enter Display with locked Keypad Entry Variables Enter ASCII value VisiLogic: Getting Started Vision only) SI 249 Last Active Keypad Entry Var (V120, V230, V260, V280, V290 BW only) SI 250 Currently active keypad entry (read/write) (Standard Vision only) SDW 10 Keypad
Replacing or Removing the Battery Index Index 126 VisiLogic: Getting Started
Replacing or Removing the Battery . D .dvi .............................................. 77 Data, entry via keypad .................... 19 .ura .............................................. 77 Debug ................................... 27, 107 .urc .............................................. 77 Delete ........................................... 38 .vdf .............................................. 77 Descriptions ................................... 57 A Digital I/Os ........................
Replacing or Removing the Battery Subroutine.................................. 89 MI 22 Duty Cycle Value ................... 46 Float functions ............................. 121 MI-Memory Integers ....................... 49 Folders ......................................... 87 MJ10-22-CS25 ............................... 23 Force I/O ............................... 27, 107 ML-Memory Long Integers ............... 49 Force Input ............................ 27, 107 Modem .............................
Index Pulse .......................................40, 46 U PWM-Pulse Width Modulation 15, 42, 46 Unidownloader ............................... 77 R Upload .......................................... 23 Rails ............................................. 15 utility .................................... 96, 101 Range enter .................................. 46 V Relay ............................................ 56 V120-12 ...................................... 115 Reload .........................
Replacing or Removing the Battery 130 VisiLogic: Getting Started