VisiLogic - Getting - Started PDF
VisiLogic - Getting - Started PDF
RE
MANUAL
AL
VISI
I LOGIC - GETTING
NG
STARTED
ED
V230-21-G23 Rev: 3:00
Table of Contents
VisiLogic Overview ..................................................................................... 5
Minimizing EMI: System Design Guidelines .................................................... 8
Devices Emitting high EMF ................................................................................... 8
Wiring Separation ............................................................................................... 8
Enclosing and Earthing ........................................................................................ 8
I/O Wiring: General Guidelines ............................................................................. 9
Signal (Communication, I/O) Line Filtering ............................................................ 9
Wiring Power for I/O Expansion Modules ............................................................. 10
Power-line Filtering ........................................................................................... 11
Connect the EX-A1 Communication Cable ............................................................ 12
Utilities ................................................................................................... 70
Utilities: an Overview ........................................................................................ 70
Tools ...................................................................................................... 76
Creating Project files (.dvi, .vdf, .urc, .ura) .......................................................... 76
Project Properties ............................................................................................. 78
Digital Signatures ............................................................................................. 82
Operand View .................................................................................................. 83
Hotkeys: Quick Editing ...................................................................................... 84
Watch Folders .................................................................................................. 85
Memory Tab .................................................................................................... 86
Find (& Replace)............................................................................................... 87
Search: Symbolic Name .................................................................................... 92
Deleted Unreferenced Operands ......................................................................... 93
Print Project..................................................................................................... 93
System Images ................................................................................................ 94
Converting Projects .......................................................................................... 95
Import/Export Subroutines ................................................................................ 95
Verify Project ................................................................................................... 98
Compile .......................................................................................................... 99
Project Optimizer.............................................................................................. 99
Log ............................................................................................................... 100
Show STL ...................................................................................................... 100
Power-up Modes: Trouble-shooting ................................................................... 100
Memory Allocation .......................................................................................... 102
104
104
108
108
109
110
112
115
115
117
117
117
118
118
118
VisiLogic Overview
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.
The Series includes the following manuals in pdf format:
VisiLogic: Getting Started
This provides a general overview of the VisiLogic environment, Hardware
Configuration, Controller Settings, Remote Access, Utilities, and Tools, as
well appendices on Troubleshooting and Vision Controller Divisions
VisiLogic: Ladder Application Programming
Includes a section on Getting Started with Ladder, as well as separate
sections on program calls and Ladder functions.
VisiLogic: HMI Application Programming
VisiLogic: Communications
VisiLogic: Utilities
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. You use the HMI
Editor to create the Displays that are shown on the controller's screen.
Displays tell your operators what to do. You can have your operators log in
with a password, enter setpoints and other data, and instruct the operator
what to do in case of a system problem or alarm. A Display can contain both
text and images. Text and images can be both fixed and/or variable.
Variables are inserted into a Display to:
Show run-time values as integers
Represent run-time values with either text, images, or bar graphs
Show text messages that vary according to runtime conditions
Enable an operator to enter data using the Vision's alphanumeric keypad
Editors
You use different editors to create your control project:
Hardware Configuration
Ladder
HMI Display
Variable
Each editor is operated through a different window. You switch between the
editors via the Toolbar buttons or by clicking elements in the Project Explorer.
Language Interface
VisiLogic supports a number of interface languages. You can change the
interface language by selecting Languages from the VisiLogic View menu.
Hardware Configuration
VisiLogic offers an integral Hardware Configuration module. The foundation of
a Vision control system is the controller. The Snap-in I/O Module provides an
on-board I/O configuration. You add I/Os by integrating I/O Expansion
Modules.
After you select the Snap-in or Expansion I/O modules connected to the
controller, you can configure inputs: analog, digital, and high-speed
counter/shaft-encoder/frequency measurers and PT100; and outputs: analog,
digital, and PWM high-speed outputs.
Ladder Modules and Subroutines
VisiLogic is a modular program that you build using Modules and Subroutines.
5
VisiLogic Overview
VisiLogic Overview
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. Connect the controller to your
PC, then open Communication and OS from the Connection
menu. The new Operating system will appear in the Install
Operating System tab. Select Download to begin the installation
process.
Wiring Separation
Use separate wiring ducts for each of the following groups:
1. Digital inputs, digital outputs, 24VDC (power supply for the PLC and I/O
Expansion Modules), communications, analog inputs, and analog outputs.
2. Lines that are connected to the power grid, 230/115, 24VAC, all AC lines
such as motor driver outputs, noisy DC lines such as DC servo drives and
motors.
Separate these groups by at least 10cm (4"). If this is not possible, cross
the ducts at a 90J angle.
10
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 systems
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. Ground the filter earth terminal as explained in the section
Enclosing and Earthing.
2. Place the filter as close as possible to the target device(s). The maximum
wire length is 10 cm.
3. When using the EX-A1 expansion adapter:
4. Place one filter for both the PLC and the EX-A1 as instructed below.
Please note that you must use a single line filter for both the PLC and
EX-A1.
5. If the power-supply is closer to the PLC than it is to the EX-A1:
- Install and connect the power-line filter as close as possible to the PLC.
The maximum wire length is 10 cm. Please refer to the filter manufacturer
documentation for installation information.
- 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.
Please ensure that the wire segment which carries the 0V between
the EX-A1 and the PLC does not branch.
When the power-supply is near the PLC, connect the PLC first as shown in
the next figure.
11
12
13
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.
After you select the Snap-in or Expansion I/O modules connected to the
controller, you can configure inputs: analog, digital, and high-speed
counter/shaft-encoder/frequency measurers and PT100; and outputs: analog,
digital, and PWM high-speed outputs.
Note
You must select the correct Vision model and Snap-in I/O modules
before downloading your project.
To avoid exceeding the I/O capacity of your controller, check the I/O
report at the bottom of the Hardware Configuration window.
Ladder Editor
Use the VisiLogic Ladder Editor to create the Ladder diagram that comprises
your control application. Ladder diagrams are composed of contacts, coils, and
function block elements arranged in nets.
14
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.
Use the Ladder Editor to:
Place and connect Ladder Elements.
Apply Compare, Math, Logic, Clock, Store, and Vector functions.
Insert Function Blocks (FBs) into your program.
Build program Modules and Subroutines, and use internal Subroutine
Jumps and Labels.
Place Comments on Ladder nets.
Ladder elements and functions may be dragged and dropped between nets.
Hotkeys are also available for easy programming.
To start the Ladder Editor
Click the Ladder button
on the toolbar.
For complete information, please refer to the .pdf manual:
VisiLogic: Ladder Application Programming
15
Getting Started
16
Getting Started
In these models, the virtual keypad opens whenever the user touches a
keypad entry variable that is currently displayed on the screen.
17
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
Variables
Variables enable you to show run-time values, text, images, and bar graphs
on the controller's screen in response to run-time conditions. Bit, or binary text
variables, for example, display text messages on the controller's LCD screen
according to the status of a bit operand.
The maximum number of variables per display depends on the Vision
controller division.
Standard Vision: supports up to 24 variables
Enhanced Vision: supports up to 255 variable
You can also use Keypad Entry Variables to enable an operator to enter a
password, or data such as setpoints from the controller's keyboard.
Variable Editor
When you insert a variable into a display, the Variable Editor opens, showing
you the options that are relevant for that Variable.
Note that for some types of variables, the type of controller selected in
Hardware Configuration may determine some of the variable's properties. For
18
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.
19
Variables
Hide
Disable
Marking
View
Keypad OK
Getting Started
After you have inserted Variables into a display, they are shown with that
display in the Project tree.
20
Getting Started
Quick Navigation
Quick Navigation
VisiLogic offers different tools for program navigation.
Program Tree
Note
21
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 <Alt> + <Right/Left arrow> and List of Labels <Ctrl> + <L>
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.
Downloading/Uploading a Project
The Download process transfers your project from the PC to the controller.
You can download a project via a direct PC-PLC connection, or via modem.
Enhanced Vision controllers also support download via Ethernet and CANbus
bridge.
1. Connect 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.
22
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
Download options
Vision controllers contain two types of memory:
RAM (Random Access Memory)
The controller uses RAM memory to run the application, make
calculations, and manipulate data.
RAM memory is volatile. This means that it requires power in order to
maintain stored data.
Data stored in RAM:
The application, operand values, variable values, and Data Table sections
that are not marked Part of Project.
This data, as well as the RTC, is backed up by the battery.
FLASH (Flash Erasable Programmable Read-Only Memory)
The controller uses FLASH memory for data storage. and to store backup
applications.
FLASH memory is 'non-volatile'. It does not require power in order to
maintain stored data.
Data stored in FLASH:
Data Table sections that are marked Part of Project and Back-up
applications, including applications that can be uploaded.
Backing up your application
In order to make sure that your PLC can recover its application in
the even of total power loss--including battery failure--you must
back up your complete application in the FLASH memory. To do
this, use one of the following options from the
Connection>Download menu, which differ according to the Vision
Division you controller belongs to:
VisiLogic: Getting Started
23
Downloading/Uploading a Project
Getting Started
Option
Comment
Keystroke
Download
Ctrl + D
24
Stop-DownloadRun (Standard
only)
Alt + Ctrl + D
Stop-DownloadReset
Alt + Ctrl + R
Alt + Ctrl + A
Burn 'Upload
Project'
(Enhanced only)
Alt + Ctrl + B
Download and
none
Getting Started
Downloading/Uploading a Project
Create Download
file
Project upload may have been disabled. In this case, the controller
displays the following message at upload: "This project cannot be
uploaded because:
- the option 'Burn Upload Project' was not selected when the project was
downloaded,
or
- due to incomplete data in the PLC", and upload fails.
You are not entering the correct Upload password set in the Project
Properties of this project.
Are USB port adapters available?
If your PC contains only USB ports, and your OPLC does not offer a USB port,
you can connect a Unitronics OPLC via a compatible, external USB-to-serial
converter.
Unitronics offers a USB-to-serial converter that has been tested for compatibility
with OPLC controllers. This converter can be ordered from local Unitronics
distributor, using part number MJ10-22-CS35.
25
Getting Started
Once you have established communications, download the project and click the
On-Line Test button. The Online Test toolbar opens, enabling you to:
Switch between Run and Stop modes.
Use Single Scan to run a single cycle of the ladder program for debugging
purposes.
You can stop the scan cycle at any point by placing OnLine Test Points,
located on the More menu, in the Ladder.
When the scan reaches an OnLine test point that is active (receives RLO),
Online Test freezes, enabling you to check element status and values,
including Timer values, at that point during Ladder execution. Note that if
more than one OnLine test point is activated, SB 35 turns ON.
Measure the time interval between 2 points in the Ladder application, by
placing Start and End Interval elements, located on the More menu,
anywhere in the application. The time interval, units of 10 micro-seconds,
is stored in the DW linked to the End Interval element. Note that Interval
elements should not be placed in Interrupt routines.
26
Getting Started
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.
27
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 controllers keyboard to directly edit data, and perform certain actions such
as resetting the controller. You can enter Information Mode at any time
without regard to what is currently displayed on the LCD screen.
Viewing data does not affect
the controllers program.
Performing actions, such as
initializing the controller, can
influence the program.
Note that when you use
Information Mode, the
keyboard is dedicated to that
purpose. The keys return to
normal application functions
when you exit Information
Mode.
Entering Information Mode
1. To enter Information mode:
-Non-touchscreen models: press the <i> key on the Visions keyboard.
-Touchscreen models: touch the screen in an area that is not occupied
by a Keypad Entry variable or other screen object that has been assigned
a Touch Property. Maintain contact for several seconds
2. The controller enters Information Mode and requests a password.
3. Enter your password. The default password is 1111. Note that at every
power-up, this password is restored. To maintain a different password
after power-up, use SB 2-Power-up as a condition to store the desired
password value into SI 253.
To change the password, access the controller via VisiLogic, then run Online Test mode and changing the value. This value will be erased at
power-up.
4. The controller enters Information Mode, showing the first category, Data
Types. Use the <Enter> key to enter a category.
28
Getting Started
Information Mode
SB 36
SI 50
SI 253
Description Turned
ed ON
Turned Off
Comments
INFO mode
Turns ON when
Info Mode
ode is
Turns OFF when
Delay time to enter Info Mode is 4
entered
d by OS, user exits Info
seconds, may be modified
odified via SI 50
Remote
e Access, Mode
or program
gram
Description
Value
Comments
Units: seconds.
Legal values: 0, 3 to 20.
If you force or store '0' into equal
qual Zero INFO is
disabled.
For V290 Touching the <i\>
> key on the touch
screen starts Info Mode Touching
uching a legal
Ladder application variable clears
ears the INFO time.
INFO Mode:
Entry Delay
Time
Defaultt by O/S
(every power
up) = 4
seconds
ds
Password:
Info Mode
Note that
hat at every power-up,
power
the default password to Info Mode, 1111, is
restored.
ed. To maintain a different password after power
er-up, use SB 2Power--up as a condition to store the desired password
d value into SI 253.
The password
assword may also be modified by accessing the controller via
VisiLogic,
gic, then running On
On-line Test mode and changing
ng the value. This
value will be erased at power-up.
power
29
Information Mode
Getting Started
Subject
Possible Actions
Data Types
Memory Bits
System Bits
Memory Integers
System Integers
Change values
Memory Longs
Inputs
Outputs
System Longs
Memory Double
Words
System Double
Words
Timers
TCP/IP (Standard
Vision, Visible
when Ethernet
card is installed)
System
Working Mode
30
Getting Started
Information Mode
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. Note
that the RTC settings control all time-based
functions.
Change the RTC settings via the controllers
keyboard.
Ethernet
(Enhanced Vision,
if an Ethernet card
is installed)
Monitor
Communications
(Enhanced only)
CANbus
Touchscreen
(Touchscreen
models only)
SD Card
(Enhanced
Division)
Removable
memory storage
Function
Reserved for
31
Block
Getting Started
future use
Hardware
Configuration
CANbus
Ethernet
Note
Getting Started
About Modems
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 (landline), or GSM/GPRS
modems via the RS232 COM port. Unitronics provides kits that comprise
modems that have been tested by Unitronics and are supported for use with
Vision, Jazz, and M90/91 PLCs.
Before you can use modems in your application, you must use
Modem Services to initialize both the PC and PLC-side modems.
This process is referred to as 'Prepare Modem'.
Modem services
33
About Modems
Getting Started
34
Getting Started
About Modems
PLC-side modems
35
About Modems
36
Getting Started
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.
After you select the Snap-in or Expansion I/O modules connected to the
controller, you can configure inputs: analog, digital, and high-speed
counter/shaft-encoder/frequency measurers and PT100; and outputs: analog,
digital, and PWM high-speed outputs.
Note
You must select the correct Vision model and Snap-in I/O modules
before downloading your project.
To avoid exceeding the I/O capacity of your controller, check the I/O
report at the bottom of the Hardware Configuration window.
37
Hardware Configuration
Inputs and outputs located on I/O expansion modules are assigned addresses
that comprise a letter and a number. The letter indicates whether the I/O is
an input (I) or an output (O). The number indicates the actual physical
location of the I/O. This number relates to both the position of the expansion
module in the system, and to the position of the I/O on that module.
Expansion modules are numbered from 0-7 as shown in the figure below.
38
Hardware Configuration
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 modules 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.
Remote I/Os
The EX-RC1 enables you to distribute I/O Expansion Modules throughout your
system. The adapter is connected to a master PLC by UniCAN, Unitronics
proprietary CANbus protocol, and functions as a slave device within that
network. Each adapter may be connected to up to 8 I/O expansion modules.
The network may include up to 60 devices.
39
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.
Unit ID
55
15
Settings
40
Hardware Configuration
The linked operand contains the counter value which is current at the last
program scan. Use this operand in your program like any other.
41
Hardware Configuration
42
Hardware Configuration
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.
43
Hardware Configuration
1. Click the Output line and select High Speed Outputs (Step Control).
2. The Select Operand and Address dialog box appears five successive times,
allowing you to link operands for Frequency, Duty Cycle, Run, Current Position,
and Target Position.
44
Hardware Configuration
Parameter
Type
Function
Frequency
MI,
ML,
DW
Duty Cycle
MI,
ML,
DW
The ratio of the "on" period of a cycle to the total cycle period. This
value may be from 0-1000, and is expressed as a percentage.
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.
In the figure below, MI 22 Duty Cycle Value is equal to 250. This
results in the duty cycle being 25% of the total cycle time.
If values out of range enter the Duty Cycle and Frequency operands,
the output turns OFF and remains OFF until the values re-enter the
range.
Run
MB
Changes the operating mode of the output from normal output mode to
HSO mode:
0 (SET)=Normal Mode, 1 (RESET): HSO Mode.
Current
Position
DW
Target
DW
45
Hardware Configuration
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.
When you select High-Speed Counter with Reset, the controller uses
an additional input for reset; shaft encoders also require the use of
two inputs.
High-speed counters are built into the hardware, you define them as part of
the controller's hardware configuration by first selecting the counter type and
then linking it to an operand that contains the counter value.
Compare Functions and Counter Values
The high-speed counter value is read once during every program scan. For this
reason, do not use the Equal (=) function together with high-speed counter
values. If the counter does not reach the value required by the Equal function
during the actual program scan, the function cannot register that the value has
been reached. Use functions Greater Than Or Equal To ( G) and Lesser Than
Or Equal To ( H).
46
Hardware Configuration
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).
pnp: You can use a value of 0, or a value from 8-2000HZ.
Other frequency values are not supported.
Run
Changes the operating mode of the output from normal output mode to
HSO mode:
0 (SET)=Normal Mode, 1 (RESET): HSO Mode.
In the figure below, MI 22 Duty Cycle Value is equal to 250. This results in
the duty cycle being 25% of the total cycle time.
Note
If values out of range enter the Duty Cycle and Frequency operands,
the output turns OFF and remains OFF until the values re-enter the
range.
47
Note
48
Hardware Configuration
Hardware Configuration
49
Notes
Hardware Configuration
Filter
Types
50
Low
Medium
Takes the last 4 readings, eliminates the lowest and highest values, then calculates
the average of the 2 remaining values.
High
Takes the last 8 readings, eliminates the two lowest and the tow highest values, then
calculates the average of the 4 remaining values.
Hardware Configuration
Resolution
Range
V120-12-UN2
M90-19-UN2
M91-19-TC2
Temperature
51
Hardware Configuration
ranges appear in
the following
table
IO-AI4-AO2
Input
Output
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
-0
F)
-0
-0
F)
-0
-200
-50 to 460C
-500 to 4600C
Hardware Configuration
Analog I/O values are contained in the register that you link to the
I/O in Hardware Configuration.
53
Hardware Configuration
54
Hardware Configuration
55
Hardware Configuration
56
Hardware Configuration
57
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.
58
Select
Connection
Type
If your Vision contains an Ethernet port, you can select the TCP/IP
options.
Serial is the default communication mode; note that if you select TCP/IP
and close the project, the setting reverts to Serial.
PC COM
Parameters
Communicate
with OPLC
Vision OPLC
Information
Controller Settings
Set RTC
These are the values of your PC's clock. Click Set RTC to import these
values into the RTC of the controller.
Get Vision
RTC Current
Values
Run
Stop
Reset
Click to reset the PLC, and reinstall any values preset in the program, such
as Timers.
Reset &
Initialize
Click to reset, reinstall any preset values, and initialize all memory
operands
59
Controller Settings
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.
Enhanced Vision controllers also support download via Ethernet and CANbus
bridge.
Note
2. Open Connection>Communication & OS, and then click the fourth tab to
open Install Operating System.
3. Click Check to enable VisiLogic to establish communications with the PLC
and check the version of the OS currently installed in the PLC; after the
check is complete, VisiLogic displays the OS version currently installed in
60
Controller Settings
Downloading an OS
You can check to see if new OS versions have been released using Live
Update, via Help>Check for Updates>Operating System.
Application Version Mismatch (Err - Old Topic)
After OS download, the PLC may display one of these messages. This message
appears when base versions of the OS and of VisiLogic do not match, for
example, OS version 3.5x / VisiLogic version 3.6x, or from OS 4.5x to VisiLogic
4.0x. This means there is an incompatibility between the VisiLogic version of
the project in the controller and the OS.
VisiLogic: Getting Started
61
Controller Settings
Controller Settings
63
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.
Controllers within a CANbus or TCP/IP network
Either stand-alone or networked controllers via GSM or landline modem.
Note
64
Remote Access
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.
65
Remote Access
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. Select a connection type using the drop-down selection box on the
toolbar.
5. Click the On-line Test mode button or press <F9> to enter On-Line Test
mode; the left Ladder rail turns red and real-time values are displayed in
the Output window.
6. Click the Remote Access button on the On-line Test toolbar to display the
remote controller on your PC screen. You can toggle the controller image
on and off using <Shift>+<F9>.
66
Remote Access
67
Remote Access
Note
The Zoom option can be activated only if you select Hide Keys. Zoom
cannot be used with or V280 controllers.
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. If you have been provided with a static HMI file, select it to improve
Remote Access run times.
Monochrome Vision only
To use a temporary memory cache during a session, select Project>
Cache from the Build menu.
The HMI cache files are in .ura format. To create a .ura file containing
static displays, select Export Displays to
68
Remote Access
Note
When Remote Access creates a .urc file, the Vision enters 'System
Mode'; the PLC continues running while displaying a system image.
The HMI application is not visible.
In addition, note that an interruption in communications may leave
the PLC inaccessible. In this case, the PLC may require reset, which
requires an operator to be physically present near the PLC.
69
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. The V570 supports standardsized SD cards; V130, V350 and V1070 support micro SD cards. In the V570
series, the slot is located at the top of the controller; in V130, V350 and V1070
the slot is located on the right side.
What can I do with an SD card?
"Clone" a complete PLC, via Information mode or via SD Clone Ladder
elements.
SD Ladder Functions enable you to read/write data between an SD Card
and PLC memory operands, including blocks of file data, Data Tables, and
Trend data.
Store Alarms History on SD.
Use Information Mode or SD Clone Ladder elements to upload/download
OS firmware and compressed VisiLogic Applications, Data Tables, and
operand values to/from an SD card, and to backup and even completely
'clone' a PLC.
Use Unitronics' SD Card Explorer, included in the SD Card Suite, to
transfer SD files from PLC to PC--or, if the PLC comprises an Ethernet
card, send files via email attachment.
View and execute files on the PLC display via the HMI element SD
Browser.
Host complex Web pages using the program in the .zip file located at:
http://www.unitronics.com/data/uploads/communication/WebServer.zip.
Use the tools in SD Card Suite to:
- Format the SD Card.
- Convert, view, and read/write the data to/from PC.
- Export that data to Excel or as an .csv file.
- Remotely view, open, copy, or delete SD card files via serial, CANbus, or
Ethernet.
This standalone software is available from:
http://www.unitronics.com/Content.aspx?page=Downloads.
70
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.Vision controllers can contain up to 120K of Data Tables (RAM); Data
Tables (that are marked Part of Project) can take up to 192K (Flash) in
V230/260/280/290.
You create tables in VisiLogic, define their structure, then download them to
the controller. Data within the tables can be copied and pasted to and from
third-party tools such as Excel.
You can also store Data Tables or log lines from them onto SD Cards.
Note
71
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 Librariesfor example, separate libraries for Spanish,
English and Italianpull strings into HMI objects, and then switch libraries to
change the display language.
These strings can be displayed in the following HMI elements:
Frame
Button
Fixed Text
String Libraries also provide the text for Alarms, and can be used in Trend
Curve Properties.
There are:
16 String Libraries containing up to 1024 strings each. You can change the
library default names.
Via String Library> File, you can opt to use only 4 or 8 libraries; in this
case the total number per library is 2,046 strings.
Note that each library contains sections in the 3,000 range, that are
greyed'; these are reserved for system use.
Each string can contain up to 128 characters.
The total memory capacity for all String Libraries is 64K.
This feature is not available in Standard Vision controllers.
How String Library works
Only one library is active at a time. This means that at any given time, all
elements that pull text from a library are using the same library.
However, each HMI element may be linked to a different line ID # within that
String Library.
In the following figure, the buttons are linked to different text lines. Each time
a different String Library is called, the button text changes.
72
Utilities
Utilities: an Overview
Alarms
Number of Alarms
128
64
16
73
Utilities: an Overview
Note
Utilities
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.com/data/uploads/communication/WebServer.zip
Unitronics' Software Utilities
These utilities can be freely downloaded from
http://unitronics.co.il/Content.aspx?page=Downloads.
Remote Operator
Remote Operator enables you to use a PC to view and work with a remote
controller's HMI panel.
You can define any number of controllers, then open multiple sessions to view
them simultaneously, while docking or cascading windows according to your
preferences.
During a session, the remote controller is displayed, on-line, on your PC
screen. You can press keypad keys and touch-screen objects of:
Stand-alone controllers that are directly connected to the PC via a cable.
Controllers within a network.
Devices with IP addresses, via Ethernet.
This utility can be used with Vision, M90/91, and Jazz controllers
Remote Access: Stand alone Utility:
The stand-alone utility Remote Access runs independently of all other software,
and can access Vision, M90/91, and Jazz controllers. In addition to using any
supported communication channel to remotely access the controller and its
HMI display, the Remote Access package includes additional utilities:
UniDownloader Designer
Operand Access
Data Tables
SD Suite
The SD Card Suite contains several applications that you need to work with SD
cards:
Tools
Includes the Card Formatter (note that a card must be formatted
before use), the HTML Compiler for webpages served from the SD, and
the Fill Time Calculator which enables you to determine how long your
application will take to fill up the SD Card.
74
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.
You can open these data logs using DataXport's companion application, DataXls,
and then export the data to Excel files..
Via DataXport, you can:
Log data according to a date/time-based schedule.
Simultaneously log data from one or more Unitronics PLCs.
Access PLCs and log data via a direct, network, or modem connection.
UniOPC Server
UniOPC Server (Unitronics OPC Server) enables you to read and write data
between Unitronics PLCs and applications that support OPC, such as SCADA
programs. UniOPC Server is compliant with the OPC Foundation's Data Access
Custom Interface Standards through to Version 3.00.
UniOPC Server runs independently of other Unitronics software.
UniDDE
UniDDE (Unitronics Dynamic Data Exchange) enables you to read and write data
between Unitronics PLCs and applications that support DDE, such as Excel.
Although it is installed as part of the VisiLogic Setup, UniDDE runs independently
of other Unitronics software.
UniVision Licensing
You can create a PLC license number and burn it into a secured, hidden sector in
the PLC.
You can then use this license in your Ladder to control how your program
functions.
75
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. These files
can be created in VisiLogic as well as via SD Clone Ladder functions or in
Information mode.
Project Files: UniDownloader Designer
These files include both the Ladder and HMI applications, Data Tables, and
an Upload file.
-Standard Vision: .dvi files
-Enhanced Vision: .vdf
Note that the DownLoader files you create here are compatible with
UniDownloader 4.0.0 and later; provide your users with the correct
UniDownloader version.
Cache files: Remote Access and Remote Operator
These are compressed HMI Displays. They improve Remote Access
reaction times, and must be used to display graphic images when using
Remote Operator.
- Monochrome Vision (.ura files)
A .ura cache file enables Remote Operator to load Displays more quickly.
Note that V130, which loads displays quickly, does not use .ura files.)
- Color Vision (.urc files).
If a .urc is not used, images are not displayed and fonts may be
distorted.
A cache file includes fonts, and can include images.
If the file does not include images, a red 'X' displays in place of
graphics.
To create Project files:
1. Click on the Project menu and select Create Project files.
2. Select the appropriate tab and follow the on-screen directions.
76
Tools
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.
To avoid errors in the file, the creation process must run smoothly,
without being aborted or affected by PC faults.
Although you do not need to have Remote Access installed on your PC in order
to create .dvi files, you need to install it in order to check .dvi files.
1. After you have created the .dvi file, save the project from which it
was downloaded.
2. Open a new, empty project and download it to the controller.
3. Start Remote Access and select the appropriate Vision model.
4. Click on the Project Downloader which is located on the Remote
Access Tools menu.
VisiLogic: Getting Started
77
Project Properties
Tools
Project Properties
This is located on the Project menu. Click on the tabs to view and edit the
various properties.
General (includes Project Password)
78
Tools
Project Properties
Note
Download
79
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.
Warn about
Vision 120
Snap-in
conflicts
Compiled
Ladder
Allocation
If your application requires, you can select this option and enter a different
amount.
Back up and
Restore PLC
RAM Data
Backup a project together with all of the current values in Data Tables and all
memory operand values.
If this option is selected:
At project upload, the PC will upload all of the current values in Data
Tables and all operands--except for system operands. To back up
system operand values, store them to memory operands.
At project download, the PC will download the complete project,
including all of the current values in Data Tables and all memory
operands.
Note that this option is not part of the project. It affects all the projects
downloaded from the PC.
Save Unit ID in
Project
When you select the Save Unit ID option, the ID number of the controller
selected in Connection>Communication & OS>Vision-PC Communication
Settings is saved together with the project.
You will not be able to download the project to another controller until the
number is changed.
Display OnLine
Tools
Keeps the Test Tool bar from being displayed during Test Mode
.
Check Digital
Signature
80
Select this to check the digital signature of the project in a PLC every time PCPLC connection is established.
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
Auto
Horizontal,
Auto Vertical
Placing
Hot keys
81
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.
82
Tools
Operand View
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. You can also view Project Optimizer results.
83
Tools
Task
Ladder
<F5>
Insert Indirect
<F6>
N.C.) Contact
<F7>
<F8>
<Shift> + <F5>
<Shift> + <F6>
<Shift> + <F7>
<Shift> + <F8>
<Ctrl> + <N>
Symbolic Search
<Ctrl> + <H>
Next Label
Previous Label
Help
Open Help
<F1>
Project
New Project
<Ctrl> + <N>
Open Project
<Ctrl> + <O>
Print Project
<Ctrl> + <P>
Exit Project
Select All
<Ctrl> + <A>
Find
<Ctrl> + <F>
<Ctrl> + <R>
Show/Hide Ladder
<Ctrl> + <W>
Show/Hide Comments
<Alt> + <C>
Go to Label
Edit
View Toggles
84
Hotkeys
Tools
Watch Folders
Connection
HMI
HMI Variables
Online Test
<F9>
Download
<Ctrl> + <D>
Upload
<Ctrl> + <U>
Verify
<Shift> + <F9>
Show Grid
<Ctrl> + <G>
Zoom
<Ctrl> + <I>
<Ctrl> + <Enter>
<Enter>
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.
If you are connected to a PLC, you can enter On-line Test Mode to see
real-time operand values.
To view a Watch folder, click the Watches tab at the bottom of the screen,
then select the desired folder. Edit the folder by right-clicking a line, then
selecting the appropriate function.
85
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.
86
Tools
87
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.
You can select more than one element by holding the CTRL key down and
clicking the desired elements.
88
Tools
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.
89
Tools
90
Tools
Go To Label
To find Labels, use Go To Label <Alt> + <Right/Left arrow> and List of
Labels <Ctrl> + <L> utility.
91
Tools
Start Find, select the Constant tab and enter the value, then press OK
; the results appear in the Output window.
92
Tools
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.
93
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..
94
Tools
Converting Projects
Notes
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.
Monochrome to Color
Use to any project based on a monochrome LCD to color, such as V290 to
V570.
Import/Export Subroutines
You can export Subroutines and save them as .vlx files, then import them into
other projects. You can import/export single Subroutines, or all of the
subroutines in a Module. Note that you cannot export Subroutines from the
Main Module.
Exporting a single Subroutine
1. Right-click the desired Subroutine and select Export Subroutine,
-orselect Export Subroutine from the Project menu; the Select Subroutine
box opens.
2. Select the desired subroutine, then save it to the desired folder.
95
Import/Export Subroutines
Tools
96
Tools
Import/Export Subroutines
If the selection contains Jumps and Labels with the same name as those
in the target project, the Jump, Label and link between them will be
automatically recreated by VisiLogic when they are pasted.
VisiLogic: Getting Started
97
Verify Project
Tools
In this way, VisiLogic maintains the integrity of the links between Jumps
and their corresponding Labels.
Verify Project
The Verify utility shows the differences between the project open in your PC
and the program currently installed in the controller.
To use Verify:
1. Connect your PC it to the controller using a program download cable
2. Select Verify from the Connection menu.
Verify marks different sections with an
98
, as shown below.
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.
Project Optimizer
Run the Optimizer to view a list possible improvements that you can make in
your project. In the results window, double click a line to jump to the
appropriate location in the project.
99
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.
100
V230/260
V280
<I> +
<ESC>
<I> +
<Right Arrow>
<I> +
<Right Arrow>
<I>
<I>
V350/290/530/
570/V1040
(touchscreen)
V120/130
EX-RC1
Possible Actions
-Via Vision Communication
PC Settings, you can:
Check which OS is
currently installed in the
controller.
Stop (O/S)
<I>
Features
The controller's LCD is on.
PC-PLC communications
are enabled, but PC must
b
t d t COM 1.
Bootstrap
Mode
Bootstrap,
default LCD contrast
<I> +
<ESC> +
<+/->
<I> +
<Right Arrow> +
<+/ >
Stop (O/S,
default LCD contrast
<I> +
<+/->
<I> +
<+/->
Tools
Power-up Modes: Trouble-shooting
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
Tools
Memory Allocation
Ladder
Code
Compiled Ladder
Code
Total
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. If the
allocated memory is exceeded, the message below will appear at download.
Note
103
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.
Snap-in I/O module, the LSB in SDW 6 turns ON.
SDW 5 provides a bitmap. Each I/O expansion module included in your
controller's hardware configuration is assigned a number, 0-7, according to its
place in that configuration. In the bitmap, bits 0-7 correspond to these place
numbers.
In the bitmap below, short circuits have been detected in devices that are
connected to expansion modules 1 and 3.
SDW 5
Please note that although an SW is 32 bits long, only 16 bits are shown below.
Appendix A: Troubleshooting
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
105
Appendix A: Troubleshooting
Example 2
106
Appendix A: Troubleshooting
107
Appendix A: Troubleshooting
When a controller enters stop mode, the program stops running and
all outputs within the system are initialized. This includes on-board
outputs, outputs located on Snap-in I/O modules, and outputs located
I/O expansion modules.
What to do
Check that the cables are connected and in proper order.
Remedy signal interference. Such an error may also result from a
hardware malfunction.
If the RUN LED on the expansion module blinks, check the documentation
supplied with the expansion module to see if a hardware error is indicated.
To exit Stop Mode, reset the controller either by turning it off and on, or
by entering Information Mode, and then selecting System>Working
Mode> Reset.
108
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.
Slightly above 10V/20mA (about 0.5% above the full scale), then the
analog value will be 16384.
Greatly below or above of the analog input range, but still in the range of
the absolute maximum rating, then the analog value will be 32767.
Note that the absolute maximum rating of the analog inputs for all the units is
+/- 15V.
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.
109
Appendix A: Troubleshooting
Supported by OS
Version
V200-18E4XB
4.00 Build 25
4.06
V120-2-R34
V4.50 B06
4.54
FB features
110
Trends
Draw Axis
Accelerate
Remote PLC DataCom
GPRS
BAS
Protocol:
floating values
MODBUS:
Read/write mixed data commands, Read/write tables
Communications
UNICAN DataCom
Ladder Functions
Data Tables:
Find Row Extended, Read/write Column, Copy Row
and Copy column, Clear Row and Clear Column
Vector:
Struct, Swap bytes, Sort, Copy memory (MF)
Math:
Formula
Vector:
Linearization
Store:
BCD to Num, Num to BCD
VisiLogic: Getting Started
Appendix A: Troubleshooting
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.5mSec
Does not support a baud rate of115200 bps
COM Port 2
SBs
SIs
111
Appendix A: Troubleshooting
If you open the project with the new version, but do not save it before
closing it, no changes are made to your project.
After Version
PID function
VisiLogic versions older than 4.00 contained a PID function. This function has
been replaced by the PID FB, which offers Auto-tune plus other advanced
operations.
If you open a project which implemented PID using the older PID, you will
receive the following error message:
"This project contains X number of outdated PID loops. Using
outdated PID limits you to 4 PID loops. For more information,
please click on the Help button below."
Although older projects will function, it is recommended that you update
these projects, replacing the PID function with the PID FB. Please note that
112
Appendix A: Troubleshooting
113
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.4, Build 06
Support for V120-12-xxx
Appendix A: Troubleshooting
Appendix A: Troubleshooting
243
244
245
223
224
225
Note
115
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
Float Errors
When an Float function error occurs, SB 10 Float Error turns on. This SB is
reset by the user.
The error code is stored in SI 440 General Error. The codes are shown below.
Value
Message
Result
Integer
Overflow
Floating
Overflow
Floating
Underflow
Divide by
Zero
Undefined
Float
10
Conversion
Error
0 (integer result)
11
Floating point
Stack
Overflow
12
Floating point
Stack
Underflow
117
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.
118
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.7" Color
Touchscreen
Built-in
Virtual
Virtual
Built-in
Built-in
Via Snap-in
I/O Modules
10.4" Color
Touchscreen
Virtual
Via Snap-in
I/O Modules
Communications
MODBUS is fully supported by both divisions. However, slave
addressing schemes differ. Refer to the MODBUS Help topic Slave
Addressing.
Modems
Enhanced
Vision
119
Download/Upload
A downloaded project:
is burned to PLC
FLASH
contains a Upload
file
Select Download options
to:
burn project to PLC
FLASH
burn an Upload file
Alarms,
String
Library
Not supported
Operands
Fully
supported
More operands.
Fast Operands:
Fully supported
Fast Operands:
Not supported
HMI Features
Division
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.
Color Vision
Color Vision controllers belong to the Enhanced Division, and offer some
additional HMI object properties.
Division
Additional HMI
Shapes
Standard Vision
Color Enhanced
Vision
Note
Trends
Graphs
LEDs, Thermometer
Font Handler: Color Vision models, such as V570, use default system
fonts. These fonts (which are highlighted in grey) contain a limited
character set, and cannot be modified.
To add a font that contains additional / multilingual characters, click
on the Add New Font button..
Ladder Functions
Functions
Call Subroutine
Load HMI Display
Standard
A single net can include 2
Call Subroutine functions
A single net can include 2
Load HMI Display
functions
Enhanced
A single net can include only 1
Call Subroutine function
A single net can include only 1
Load HMI Display function
Special Issues
Virtual Keypads: Enhanced Touchscreen Models
When you create a variable that requires the operator to enter data, you can
select one of the three keypad types shown in the following table type. The
type is reflected in SI 49.
lue: SI 490
120
257
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.
Feature
Keypad Entry
Variables
Standard
SB 250 HMI key entry
within limits (Standard
Vision only)
SB 251 Keypad entry
exceeds limits (Standard
Vision only)
SI 249 Last Active Keypad
Entry Var (Standard Vision
only)
SI 250 Currently active
keypad entry (read/write)
(Standard Vision only)
SDW 10 Keypad entry
variable value
Active
Keypad Entry
(SBs)
Keypad Entry:
Focus
Enhanced
SB 92 Keypad Entry in Progress
(ON during entry) (Enhanced
Vision)
SB 93 Keypad Entry Var
Activates (ON for 1 scan)
(Enhanced Vision)
SB 94 Keypad Entry Var
Complete (ON for 1 scan)
(Enhanced Vision)
SI 45 Numeric Key Entry Out of
Limit - Counter of Attempts
(Enhanced Vision) (Counts the
number of failed attempts to
enter a value)
If a Legal Entry bit is defined,
SB 94 does not turn ON if the
entered value is out of range.
The keypad stays on screen
until a legal value is entered.
You can use SI 45 in
conjunction with a Compare
function to exit the variable.
SB 92 HMI Keypad Entry in
Progress (Enhanced Vision)
rises during keypad entry
If SB 76 is OFF after Keypad
Entry, the user must use the
arrow keys to move to the next
variable.
Turning SB 76 on causes the
next variable set in Variable
Tab Order to automatically
121
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
become active.
Legal Entry bit in Password
Variable turns ON only when
correct password is entered.
The keypad stays on screen
until a legal password is
entered.
To limit the number of wrong
entries, you can use SI 45 in
conjunction with a Compare
function to exit the variable.
SB 94 Keypad Entry Var
Complete + Keypad entry
property: Legal Entry MB
Turns ON when entered
value is within legal limits
Does not turn ON when
entered value exceeds
legal limits
SI 250 Last Active Keypad
Variable and SI 251 Currently
Active Keypad Entry contains
the number of the relevant
DLU.
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. This is because these controllers belong to different
Vision Controller Divisions; V120 is a Standard Vision, whereas V130 is a
member of the Enhanced Vision division.
Certain system operands that are relevant for the V120 may not function or
may function differently. These differences are explained in the following
sections.
In addition, please note that the method of data entry (using the keypad to
enter data into Keypad Entry Variables) is different.
Converting an existing V120 application to V130
Feature
Up/Down keys
Keypad entry
'logic'
Entry to Display
with keypad
entry variables
Time Variables,
Day of
Week/Month
Moving between
variables
ASCII keypad
entry:
upper/lower case
F1 and F2 keys
V120
Up arrow: linked to SB 41,
down arrow to SB 46
V130
Up arrow: linked to SB 55, down
arrow to SB 56
123
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
SB 34 UnLoad Display
with linked Call
Subroutine turns ON for 1
scan
What was
Previous HMI
Display?
Moving Images
According to SI 252
Current HMI Display
Number
According to SI 251
Previous HMI Display
Number
Supported
Variables
Day of
Week/Month
Hide/Invert
Variable
Global Variables
Keypad Entry
Variables
SB 92 Keypad Entry in
Progress (ON during
entry) (Enhanced
Vision)..
SB 93 Keypad Entry Var
Activates (ON for 1 scan)
(Enhanced Vision)..
SB 94 Keypad Entry Var
Complete (ON for 1 scan)
(Enhanced Vision)..
SB 250 HMI key entry
within limits (Standard
Vision only)
SB 251 Keypad entry
exceeds limits (Standard
V130
Each Display is linked to 3
subroutines:
The first runs when the
Display begins to load
The second runs while
the Display is shown
The third runs when the
Display begins to unload
Use Ladder function HMI>HMI
Display Loaded (SI 252 not
relevant)
Use Ladder function HMI>Is
Last HMI Display Loaded (SI
252 not relevant)
Not supported. Are removed
when the project is converted
When converting an
application from V120 to
V130, you must manually
resize these variables
Use the Hide or Inverse /view
bit in the Variable's properties
Not supported; each Global
Variable is replaced with a
separate variable when the
project is converted
SB 92 Keypad Entry in
Progress (ON during entry)
(Enhanced Vision)
SB 93 Keypad Entry Var
Activates (ON for 1 scan)
(Enhanced Vision)
SB 94 Keypad Entry Var
Complete (ON for 1 scan)
(Enhanced Vision)
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
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 entry
variable value
SB 32 HMI Keypad Entry
in Progress (Standard
Vision) rises during
keypad entry
After Keypad Entry, the
next variable set in
Variable Tab Order
automatically becomes
active.
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
125
Index
Index
126
.dvi .............................................. 77
.ura .............................................. 77
.urc .............................................. 77
Delete ........................................... 38
.vdf .............................................. 77
Descriptions ................................... 57
127
Hardware Configuration...........15, 53
OS ............................................. 61
Project........................................ 23
Baud ............................................ 59
dvi ................................................ 77
Download ................................... 61
DW ............................................... 49
EMF ............................................... 9
EMI................................................ 9
password .................................... 19
Comment ...................................... 85
Filter ............................................. 49
Find .............................................. 89
Modem ..................................34, 60
Constant ..................................... 89
Element ...................................... 89
FB .............................................. 89
Font ........................................... 89
Label .......................................... 89
Load Display................................ 89
Operand ..................................... 89
VisiLogic: Getting Started
Subroutine.................................. 89
Folders ......................................... 87
MJ10-22-CS25 ............................... 23
Modem .......................................... 34
Modules ........................................ 15
Navigation ..................................... 22
Nets........................................ 15, 87
Graphics ....................................... 96
Graphs ......................................... 19
Operating System........................... 61
HMI .........................................17, 18
hotkeys ........................................ 85
128
PC ................................................ 59
Import/Export ............................... 97
PLC ............................................... 60
Input .......................................38, 42
keyboard ...................................... 85
Keypad ......................................... 18
Keypad Entry............................18, 19
Labels........................................... 85
Project Conversion.......................... 97
PT100 ........................................... 40
PT4 ............................................... 40
VisiLogic: Getting Started
Index
Pulse .......................................40, 46
Unidownloader ............................... 77
Upload .......................................... 23
Rails ............................................. 15
Relay ............................................ 56
Reload .......................................... 42
V290............................................. 29
Remote I/Os.............................37, 39
Rename
Watch Folder............................... 87
Reset..................................... 60, 113
Run .............................................. 60
Rung ............................................ 15
S
Scan...................................... 27, 107
Search .......................................... 89
Symbolic Name ........................... 94
security ........................................ 83
Shaft Encoder ..................... 15, 42, 45
Shortcut keys ................................ 85
Single scan ............................ 27, 107
Snap-in I/O Module ............. 15, 42, 45
Stepper ........................................ 44
Stop Mode................................... 113
Subroutines ..............................15, 97
Symbols ....................................... 57
T
Test mode ........................ 27, 84, 107
Total cycle period ........................... 46
Touch-screen............................18, 29
Transistor ..................................... 56
Triggering signal .......................... 109
Troubleshooting9, 23, 27, 102, 107, 113, 115, 121, 122
VisiLogic: Getting Started
129
130