You are on page 1of 75

VISILOGIC

TRAINING MANUAL
Contents
Hardware Installation Guide .............................................................................................................................. 1
Software Installation Guide................................................................................................................................ 6
Minimum System Requirements .................................................................................................................... 6
Disabling UAC ................................................................................................................................................ 6
Install the Software........................................................................................................................................ 7
Hardware Configuration .................................................................................................................................... 8
Software Overview ............................................................................................................................................ 9
HMI Display Editor ......................................................................................................................................... 9
Ladder Editor ............................................................................................................................................... 10
Lab 1: Basic Ladder and HMI ............................................................................................................................ 11
Lab 2: Download / Upload Application ............................................................................................................. 16
Lab 3: Multiple Display / Screen....................................................................................................................... 20
Lab 4: Numeric Display .................................................................................................................................... 25
Lab 5: Timer..................................................................................................................................................... 26
Lab 6: Analog Input.......................................................................................................................................... 31
Data Table ....................................................................................................................................................... 33
Lab 7: Data Table (Recipe)................................................................................................................................ 33
Lab 8: Data Table (Data Logging)...................................................................................................................... 39
Lab 9: Data Logging to SD Card (via udt file) ..................................................................................................... 44
Lab 10: Data Logging to SD Card (via Excel file) ................................................................................................ 46
Lab 11: Trend................................................................................................................................................... 50
Lab 12: Alarm .................................................................................................................................................. 53
SD Card............................................................................................................................................................ 61
Modbus Serial.................................................................................................................................................. 62
Modbus TCP/IP................................................................................................................................................ 63
Protocol FB ...................................................................................................................................................... 64
Protocol FB, IP ................................................................................................................................................. 66
SMS ................................................................................................................................................................. 66
CANbus Networking......................................................................................................................................... 68
CANbus UniCAN........................................................................................................................................... 68
CANopen ..................................................................................................................................................... 69
CANbus, Layer 2........................................................................................................................................... 69
I/O Expansion Modules.................................................................................................................................... 71
Using Remote I/O – EX-RC1.......................................................................................................................... 71
Using EXF-RC15............................................................................................................................................ 72
YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Overview
Hardware Installation Guide
Communications:
Built-in Serial Port: RS232/RS485
Jumper Setting / Dip switch setting are required for RS23 or RS485 communication.

Option 1: Jumper Setting


The figure to the right shows the jumper factory default
settings, RS232, RS485 termination ON.

Note that in order:


 To change the communication setting on RS485, both
communication standard jumpers must be moved
 To change the RS485 termination, both termination
jumpers must be moved.

Option 2: Dip Switch Setting


The ports are set to RS232 by factory default.

To change the settings, first remove the Snap-in I/O Module, if one
is installed, and then set the switches according to the following
table.

The settings below are for each COM port.

Pinouts:

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 1 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

I/O Options:
 On-board I/O Configuration - model- dependent
 I/O Expansion Modules - Local (via expansion port) or Remote I/O (via CANbus port)

Example on On-board I/O:


You need to check on the jumper settings based on your requirement for your I/O.
Here is an example on the Input and Output Jumper Settings. To access the I/O jumpers, you must open the
controller follow the instruction below.

NOTE: Incompatible jumper settings and wiring connections may seriously damage the controller.

NOTE: Incompatible jumper settings and wiring connections may seriously damage the controller.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 2 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Instruction to open controller:


1. Opening the Controller
 Before performing these actions, touch a grounded object to discharge any electrostatic charge.
 Avoid touching the PCB board directly. Hold the PCB board by its connectors.

I. Turn off the power supply, disconnect, and dismount the controller.
II. The back cover of the controller comprises 4 screws, located in the corners. Remove the screws, and
pull off the back cover.

2. Changing I/O Settings


The I/O board of the controller is now exposed, enabling you to change I/O settings according to the
jumpers shown on the manual.

Example on I/O Expansion Module:


You need to check on the jumper setting for some of the I/O Expansion Module. Here is an example on the
Jumper Settings. To access the I/O jumpers, you must open the I/O Module.

 Before opening the device, touch a grounded object to discharge any electrostatic charge.
 Avoid touching the PCB board directly.
 Turn power off and disconnect all leads before opening the device.

1. Open the first side of the device by inserting the blade between the 2 plastic moldings as shown below,
then gently pushing up.

2. Taking care not to damage the cable, open the other side of the device by inserting the blade where shown
below, then gently pushing up.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 3 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

3. Gently remove the top of the device as shown.

4. The jumpers are shown as below. Change the jumper settings as required, in accordance with the tables
shown.

*Default Factory Setting

NOTE: Incompatible jumper settings and wiring connections may seriously damage the controller.

Wiring Procedure:
Use crimp terminals for wiring; use 26-12 AWG wire (0.13mm2 – 3.31mm2)
1. Strip the wire to a length of 7±0.5mm (0.25 – 0.30 inches).
2. Unscrew the terminal to its widest position before inserting a wire
3. Insert the wire completely into the terminal to ensure a proper connection.
4. Tighten enough to keep the wire from pulling free.

Note:
 Input or Output cables should not be run through the same multi-core cable or share the same wire.
 Allow for voltage drop and noise interference with input lines used over an extended distance. Use wire
that is properly sized for the load.
 The controller and I/O signals must be connected to the same 0V signal.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 4 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Power Supply:
A non-isolated power supply can be used if a 0V signal is connected to the chassis.
 Install an external circuit breaker. Guard against short-circuiting in external wiring.
 Double-check all wiring before turning on power supply
 Do not connect either the ‘Neutral’ or ‘Line’ signal of the 110/220VAC to device’s 0V pin.
 In the event of voltage fluctuations or non-conformity to voltage power supply specifications, connect the
device to a regulated power supply.

Earthing the Power Supply


To maximize system performance, avoid electromagnetic interference by:
 Mounting the controller on a metal panel.
 Earthing the controller’s power supply: connect one end of a 14 AWG wire to the chassis signal; connect
the other end to the panel.
Note:
If possible, the wire used to earth the power supply should not exceed 10cm in length. However, it is
recommended to earth the controller in all cases.

Information Mode:
To enter Info Mode, you can touch and hold on screen for 5sec (for touch screen version) or press on ‘i’ button
for 5sec (for non-touch screen version). Then enter ‘1111’ as password to go in.

This mode enables you to:


 View & Edit operand values, COM port settings, RTC and screen contrast/brightness settings
 Calibrate the touchscreen
 Stop, Initialize, and Reset the PLC

Removable Memory Storage


Micro SD card:
 store Data Logs, Alarms, Trends, Data Tables
 Export to Excel
 Backup Ladder, HMI & OS and use this data to ‘clone’ PLCs

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 5 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Software Installation Guide


Recommended to turn OFF windows UAC (User Account Control). Then reboot your PC, Log-in as administrator.
If you have already installed VisiLogic, you may need to uninstall and reinstall it again.

Minimum System Requirements


For compatible and stable systems please follow the system requirements in the table below.

Disabling UAC
1. Type UAC into the Start Menu or Control Panel search box.

2. Drag the slider bar completely down to “Never notify” to disable it entirely, and then click Ok.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 6 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Install the Software


1. Save the setup file on your desktop and make sure that the installation file is not blocked (right click on the
file  Properties). If yes, just click on the unblock button.

2. Now you can double click and Install VisiLogic software. Press Next all the way to the end until Finish.
3. Installation done, you should see the shortcut icon in your desktop or go to Start Menu. Go to the
properties of the software’ shortcut and under compatibility ticked verify the Privilege Level “Run this
program as an administrator”.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 7 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

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
button on the toolbar.

Click on the appropriate icon to select the Model (Vision / Samba), 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
and Outputs: Digital, Analog, HSC (High-speed counter) / shaft-encoder, PT100, PWM High Speed Outputs and
etc.

Note:
You must select the correct Vision / Samba Model and Snap-in I/O modules before downloading your project.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 8 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Software Overview
HMI Display Editor
Use the HMI Display Editor to create the Displays 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.

Here are the description for HMI Toolbar Icons.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 9 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

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.

Ladder elements and functions may be dragged and dropped between nets.

Here are the description for Ladder Editor Toolbar.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 10 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Lab
Lab 1: Basic Ladder and HMI
Objective: Create a light and button on screen. While the button is pushed, the light will be on.

Step 1:
1. Start a new project by clicking Project  New.
2. The Hardware Configuration window will auto opens, as shown below.
3. Choose the controller you will be working with from the menu on the left.
In this example, chosen a V350. Next, under snap-in, choose the specific controller model V350-35-TRA22.
4. Click OK.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 11 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 2:
Switch to Ladder Editor by click on the Ladder Tab. Insert comment and type in the comment.

Note:
You can add or insert net by using the Insert New Net Icon. Click on the Icon, and click on the space on ladder
where you want to add / insert net.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 12 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 3:
Add a Direct Contact as a Momentary Button, assign an address.
Description is optional to fill in. The advantage to fill in Description is you can easily search back this tag in the
later part.

Step 4:
Add a Direct Coil.

Once you complete, you should see your ladder program as shown below.

Step 5:
1. Switch to HMI Editor by click on HMI tab.
2. Add a Button
3. Key in ‘Momentary Button’ in Text Column.
4. Assign a Touch property as MB1. (this is the tag you create in the ladder in previous step.)

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 13 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 6:

1. Select Binary Image icon from the HMI toolbar. Then click, hold, and drag a rectangle on your screen, as
shown below.
This space (the white square box) will be designated for a light. It can be modified later if necessary. Once
the rectangle is placed, Variable: Binary Image window appears on screen.

2. Assign a link property by assign MB0. (this is the lamp tag which you create in your ladder editor at the
previous step.

3. Click on Left Browse button, a select Image Window will appear.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 14 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

4. Click Go to VisiLogic Library boxed.

5. Select Light  UniLight 1  Gray.

6. Choose a Gray Light by double clicking / click Open.

7. Repeat Step 3 to 6, for Right Browse Button, and this time select a Green Light.
Once completed, this is what you should see.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 15 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Lab 2: Download / Upload Application


Objective: Download Application to PLC, Online Monitoring and Troubleshooting.

Step 1:
Before Download, you need to define the connection.
1. Go to Connection  Communication & OS. Communication – PC Settings window will pop up.
2. Select Connection Type: Serial
3. PC Port: COM x (this com port is based on the com port of your PC.)

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 16 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

To check your PC com port, go to USB Installation Tab. Click on Open Device Manager.

You can check your PC Port Number here. (the name of the device maybe vary, based on USB cable used.)

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 17 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 2:
Click on Get OPLC Information.
If communication successful, it will show you OPLC Information. Then you can proceed to Step 3.

If communication fail, it will show you Communication Driver Error. And you need to check the communication
again.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 18 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 3:
Go to Connection  Download  Download. Once click on Download, the download process will begin. Once
the download is complete, a Visilogic will send RUN command to the OPLC message will appear. Click OK.
Note: There are 4 different types of download, for details will explain in the class.

Step 4:
Click on Online Test, you can monitor PLC status.

Step 5:
Click on Remote Access, you are allow to monitor or control HMI Display.

Step 6:
Once finish use, you can click Online Test again, to go offline.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 19 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Lab 3: Multiple Display / Screen


Objective: Create multiple HMI display, and how to trigger screen change.

Step 1:
Right click on Start-Up Display  Add New Display.

Step 2:
Rename as Page 1.

Step 3:
Repeat Step 1 to 2, to add two more pages as Page 2 and Page 3.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 20 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 4:
Go to Page 1, put a text: Page 1.
Repeat for Page 2 and Page 3.

Step 5:
In Start-Up Display, Create a Button.
Text: Page 1
Touch: MB11

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 21 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 6:
Repeat Step 4 to create to more Button.
Button 2:
Text: Page 2
Touch: MB12

Button 3:
Text: Page 3
Touch: MB13

Once complete, your display will show as below:

Step 7:
Above the HMI Display, click Links & Jumps. This allows for commands to navigate screens.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 22 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 8:
1. In row 1, double click under jump condition and link MB11. Double click on under Display and link Page 1.
2. Repeat for row 2 with jump condition and link as MB12, Display and link as Page 2.
3. Repeat for row 3 with jump condition and link as MB13, Display and link as Page 3.

Step 9:
Now switch to Ladder Editor. You can also write command in Ladder to change screen.
For example, we now need an ESC button to exit from any page back to Start-up Display.

1. Use a Positive Transition Contact.

2. Click on Controller View and select ESC button. And Click OK.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 23 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

3. Go to Utils  HMI  Load HMI Display.

4. Select Start-Up Display and click OK.

Once done, this is how the ladder look like.

Step 10:
Download the application to the controller.

Once Done, attempt to change screens using buttons.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 24 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Lab 4: Numeric Display


Objective: Create a simple counter, count to 100 and reset for recount. The counting value will display on HMI.

Step 1:
1. Drag a Positive Transition Contact put in Ladder, and assign address SB 3 (1 second pulse).
2. Select Math  Increment, connect just right beside Positive Transition Contact.
3. Assign MI 0 to the INC FB.

This Ladder will increase MI0 by 1 every second.

Step 2:
1. Select Compare  Greater Equal, fill in MI 0 for parameter A, and D#100 (constant 100) for parameter B.
2. Connect RESET Numeric behind the FB and assign MI 0.
(This will reset MI 0 to Zero, whenever it reach 100 or more.)

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 25 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 3:
To display numeric value - MI 0 on HMI, switch to HMI Editor.
Click on Numeric  Number, hold and draw a square on HMI.
When Variable: Numeric window pop-up, assign MI0 to the link.

Lab 5: Timer
Objective: In this lab, create a TD Timer (Timer on Delay) to turn on a Light. Press and hold for 2second to turn
on the Light.

There are 3 types of timers. Each timer type has 3 variables:


 Timer Bit Value:
A timer is scanned as a bit data type (scan for OFF or ON). The result of the scan is dependent on the timer
type.
 Timer Preset Value:
A running timer always decrements (count down) from the Preset Value. The Preset Values are loaded for
all timers at power up. The Preset Value is also loaded into the Current Value when the timer is reset.
 Timer Current Value:
The current value of the timer is dependent on the timer type.

There are 3 types of Timers:


 TD Timer – On Delay
 TA Timer - Accumulated
 TE Timer – Extended Pulse

Notes:
 A Timer value can be displayed in a Display as either a current of elapsed value.
 The maximum amount of time that you can set a timer for is 99 hours, 59 minutes, and 59.99 seconds.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 26 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 1:
Go to Ladder Editor. Add a Direct Contact as a Hold Button, assign an address.

Step 2:
Add a Timer Coil as TD Timer, assign address and Preset timer as 2second.

Step 3:
Add a Direct Contact as TD0 (this is the Timer Bit), when TD timer count to 0, this bit will ON.
And add a SET coil as MB3. When TD0 bit is on, it will set MB3 to ON.

Step 4:
Add a Direct Contact as MB4 to RESET (OFF) MB3.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 27 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 5:
Go to HMI Editor  Page 1.
Add a Button:
Text: Hold to ON
Touch: MB2

Add a Binary Image:


Link: MB3
Image 0: Grey Light
Image 1: Green Light

Step 6:
Add a Button:
Text: Turn OFF
Touch: MB4

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 28 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 7:
Add 3 Text on Screen as shown below:
Text 1: Preset Timer
Text 2: Remaining Time
Text 3: Elapsed Time
Note: Style can set to Transparent.

Step 8:
Add in 3 timer display and link with different properties.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 29 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Preset Timer
Type: Preset
Format: HH:MM:SS
Link: TD0

Keypad Entry is optional, if


you want to edit the preset
time, you can tick on it to
allow edit.

Remaining Time

Elapsed Time

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 30 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Lab 6: Analog Input


Objective: To configure an Analog Input, to read the raw value and convert to actual value.

Example: Having a Pressure Sensor which is 4-20mA with the range of 0 – 25bar.

Step 1:
Go to Hardware Configuration to add in Analog Input Module – IO-AI8.
1. Go to I/O Expansions Tab
2. Look for IO-ATC8/AI8. (This mean can use for IO-ATC8 or IO-AI8)
3. Drag and drop in to the din-rail.
4. Click on first analog channel, Channel 0.
 Type: 4-20mA
 Mode: Normal
 Operand: MI 1
 Description: Raw Analog Value (optional)

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 31 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 2:
Check on IO-AI8 Manual.
We can see for IO-AI8, Normal mode analog Raw value range from 3277 to 16383.
Which mean:
4mA = raw value of 3277 = 0bar
20mA = raw value of 16383 = 25bar

Step 3:
Go to Ladder Editor.
1. Go look for Linearization Function Block at Math  Linearizatio.
2. Place Linearization FB in the Ladder
3. Fill the parameter for X1, X2, Y1, Y2, X and Y.
 X1: 3277
 Y1: 0
 X2: 16383
 Y2: 25
 X: MI 1 (address which configure in Hardware Configuration for Analog Raw Value)
 Y: MI 2 (can assign any MI to store the actual sensor value)

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 32 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Data Table
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 of
values that are used to prepare a batch of product or to perform a specific task. Data Table also useful for Data
Logging, which you can log and keep important information to the controller for future view back.

Vision controllers can contain up to 120kb of Data Tables (RAM).

Lab 7: Data Table (Recipe)


Objective: Create a Recipe Table, Read and Edit the Recipe.

Step 1:
Open Data Table Editor. By clicking on the Data Tables icon on the toolbar, or by selecting it from the left panel
menu.

Step 2:
Create a Recipe Table by create on Add Table.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 33 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 3:
Create a Recipe Table with 3 different Recipe with 4 parameters.
 Table: Recipe
 Columns: 5
 Row: 3

Step 4:
Define Name and Data Type for each Column.

Refer for the setting below for each column


Column1: Column2: Column3: Column4: Column5:
Column: Name Column: Sugar Column: Flour Column: Water Column: Egg
Type: String Type: Integer Type: Integer Type: Integer Type: Integer
String length: 10

Step 5:
Now you can fill in your parameter as you require. Below is one of the sample data to fill in. Save and Exit.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 34 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 6:
Go to Ladder Editor. Use Data Table Read Row FB to read Recipe parameter out.
Add a Position Transition Contact as MB 5, follow by Data Tables Read Row FB from Data Tables.

Step 7:
Fill in the information for Data Tables Read Row FB.
 Table: Recipe
 Row Number: MI3
 Destination (Name): MI21
 Destination (Sugar): MI31
 Destination (Flour): MI32
 Destination (Water): MI33
 Destination (Egg): MI34

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 35 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 8:
Go to HMI Editor  Page 2. To show the Recipe Parameter on Screen.
1. Add a Text: Parameter to Read
2. Add a Numeric:
 Link: MI3
 Keypad Entry: Tick (optional to limit user to key in value between 0 to 2)

3. Add on Text for Recipe Name, Sugar, Flour, Water and Egg.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 36 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

4. Now add in ASCII String for Recipe Name Display and Numeric for others parameter like sugar, flour, water,
egg. The address for each parameter, you can refer to Step 7 which set earlier.

 Add a ASCII String by fill in the parameter as shown below:

 Add in Numeric for the other 4 parameters as shown below.


Sugar: MI31
Flour: MI32
Water: MI33
Egg: MI34
(fill in this address for each parameter, inside Numeric under Link)

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 37 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 9:
Add a button and link to MB5.

Step 10:
Now you can download the application into PLC controller. After download application, you need to download
data in Data Table to the Controller as well.

1. Open Data Table Editor, Click on Read\Write Tables icon.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 38 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

2. Select Recipe Table and click on Write Table

Now you can test your application, by enter Parameter number like 0, 1 or 2 on HMI. Then press on Read
button, and you should see the Parameter are able to call out and show on Screen.

Lab 8: Data Table (Data Logging)


Objective: Create a Data Table for Data Logging. In this lab, will have data logging for Lamp Status from Lab 5
and Analog Value from Lab 6.

Step 1:
Same as Lab 7, open Data Table Editor and Create a Table.
Table: Data Logging
Columns: 4
Rows: 10

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 39 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 2:
Rename each column and set Data Type as below.
Column1: Column2: Column3: Column4:
Column: Date Column: Time Column: Lamp Status Column: Pressure
Type: String Type: String Type: Bit Type: Integer
String length: 8 String length: 10

Once done, this is how the table look like.

Step 3:
Go to Ladder Editor. Create RTC Data and Time.
1. Go to Strings  RTC to ASCII.

2. Select Date Format as shown below.


Note:
This Date Format require 5 MIs to store the Date. Mean if the starting address is MI51, then we need to
reserve MI51 to MI55 to store for Date.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 40 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

3. Assign address as MI51 (this address can assign any unused address).
Note: we need 5 MIs for Date.
Click on ‘Set Features for a group of operands’ Icons.

4. Assign Number of Operands as 5 and Text as Date. And Click ok.

Now RTC Date is ready and store in MI51 to MI55.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 41 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 4:
Repeat Step 3 again to prepare RTC Time and store in MI56 to MI60.

Once done, this is how it look like.

Step 5:
Put in the condition when to do logging. When Lamp Status (MB 3) is turn ON or OFF. We also do a logging.
Put a Positive Transition Pulse and a Negative Transition Pulse for MB 3 in the ladder in parallel.
Note: You can find Negative Transition Pulse at Boolean  Contacts.

Lastly, remember to use Connect Elements to connect both MB3 in parallel.

Step 6:
Connect Data Table Write Row to the condition.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 42 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Fill up the parameter for Data Table Write Row as below and Click OK.
Table: Data Logging
Row Number: MI 4 (is a pointer to indicate which row should the data log into Data Table)
Source - Date: MI51 (RTC Date which prepare in previous step)
Source - Time: MI56 (RTC Time which prepare in previous step)
Source – Lamp: MB3 (Lamp Status from Lab 5)
Source – Pressure: MI2 (Pressure value getting in Lab 6)

Step 7:
After every logging, need to increase the row pointer. To point to next row for the next logging.
Get Math  Increment Element and connect to Data Table Write Row FB.

Step 8:
Data Logging create in previous step only contain 10 rows (row 0 to 9). Once hit to the last row of the table,
need to reset pointer back to first row. Hence, we need to check MI4, when reach row 9, need to reset.

Once Done, you can download Application to PLC and test out.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 43 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Lab 9: Data Logging to SD Card (via udt file)


Objective: Store Data Logging Table in Lab 8 into SD Card.

Once the Data Table is Full, push the whole table into SD Card.

Step 1:
Continue from Lab 8, when Table is full, Set MB 6 on.

Step 2:
Follow the steps below to create ladder to push Data Logging into SD Card. Once done, this is how it look like.

1. Add a Direct Contact = MB6

2. Add an Inverted Contact = MB341 (to make sure write to SD card is not in progress)

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 44 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

3. Next add Write Data Table to SD file FB. This FB get from SD  SD Data Table Utilities.

And fill up the parameter as below.


Data Table to copy: Data Logging
Status: MI 5 and MB 7 (this can be assign any address)
Select SD Folder: DT1 (100) (this can select any folder as well)
.udt File Name: DataLog (can be any name, maximum 8 characters)
You can Overwrite the existing file, or keep append to the same file.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 45 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

4. Lastly, once done, remember to reset MB6.

Lab 10: Data Logging to SD Card (via Excel file)


Objective: Direct Log Data into SD Card as Excel File format.

Step 1:
Use Create Excel Delimited Line FB to prepare data for logging.
Go to SD  SD Excel Utilities  Create Excel Delimited Line.

1. Assign MI101 for SD: Start of Vector. (can assign any unused address.)

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 46 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

2. SD: Max Vector Length, set as 100. (this is to decide how many byte per record to be log)

3. Follow by assign MI 6 and MI 7 for the outputs. (these can be any unused address)

Step 2:
Fill in Data into FB.
Data to log and data source address as below:
Date: MI51
Time: MI56
Pressure: MI2

1. Select Indirect Text, and put in the link as MI51. (this is for RTC Date)

2. Click on Insert Field Icon. To add in next field.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 47 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Add in RTC Time, by select Indirect Text again, and assign link as MI56.

3. Insert Field again, this time add Numeric for Pressure and assign Link as MI2.

After finish, this is how it look like. Click OK.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 48 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 3:
1. Assign the logging condition as in Lab 8.
2. Use Write Delimited Line FB to write Data into Excel file in SD Card.

3. Assign parameter for Write Delimited Line FB as below.


Start of Vector: MI101 (this address is the one which set step 1)
Status: MI8 and MB8 (this can assign any address)
Select SD Folder: EXCEL1 (can select any folder)
File Name: EXCELLOG (can be any name, maximum 8 characters)
File Extension: CSV (select the file extension you want)

Once done Click OK.

Your application file is ready to be download to PLC to test.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 49 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Lab 11: Trend


Objective: Plot Counter value and Pressure value for Trend.
(Note: Counter Value = MI0 from Lab 4; Pressure Value = MI2 from Lab 6)

Step 1:
Define a Trend, by Right-click the desired Trend to open and Set Trend Properties.
Parameter Setting Description
Name: TrendLog Assign a unique name to the Trend
Sampling Interval: 00:00:01.0 (hh:mm:ss.s) define how often the Trend draws curves
History Samples: 1000 total number of samples that may be stored in History
Run/Stop MB: MB9 0 = Trend Stop, 1 = Trend Run
Trend Description: MI9 This parameter is intended for future use. It has no influence on the Trend graph

Step 2:
Define a Curve, by right-click the desired Curve to open and set Curve Properties.
Parameter Setting Description
Name: Counter Assign a unique name to the Curve
Date Operand MI0 This is the value represented by the Curve
Y Min, Y Max 0, 100 These define the axis range for that curve.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 50 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 3:
Repeat Step 2 to create one more curve for Pressure.
Parameter Setting Description
Name: Pressure Assign a unique name to the Curve
Date Operand MI2 This is the value represented by the Curve
Y Min, Y Max 0, 100 These define the axis range for that curve.

Step 4:
Place a Trend Graph in an HMI Display
1. Click the Trend icon on the HMI toolbar, and then drag the cursor across the screen to draw the Trend.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 51 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

2. Release the mouse button, and define the Trend Variable properties.

Step 5:
Add a Start / Stop Button to Toggle the Trend to Run or Stop. Click on Binary Text/Switch icon and add to HMI.

Now you are ready to download application to PLC to test.


VISILOGIC TRAINING – INSTRUCTION MANUAL Page 52 of 74
YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Lab 12: Alarm


Objective: Create 2 Button to simulate Alarms. And configure for Alarms.

Use the Alarm Configuration utility to create Alarms and Set their feature. The Ladder application determines
when the Alarms are displayed on the controller’s screen.

Step 1:
Create 2 toggle button on HMI  Start-Up display.

Toggle Button 1:
Text for OFF: Alarm 1 OFF
Text for ON: Alarm 1 ON
Link: MB21
Style: 3D (Unpressed)

Repeat for
Toggle Button 2:
Text for OFF: Alarm 2 OFF
Text for ON: Alarm 3 ON
Link: MB22
Style: 3D (Unpressed)

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 53 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 2:
Now configure for Alarms. Open Alarm Configuration Utility by clicking Alarm icon, or by selecting it from the
left panel menu.

Step 3:
Once Alarm Configuration Utility opens, the global operand window will pop-up. The Utility leads you through
linking Global Operands. Remember to assign address (any unused address) to every MI and MB to those
Global Operands.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 54 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Once you have finished assigning the addresses, it will show as below.

The explanation for each global operand is as shown below. You can make use of these optional operands to
show desired statuses on the HMI screen.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 55 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 4:
Click the Add Template icon, and make the desired selections.

Step 5:
Add the first Alarm.
1. Click on Add Alarm icon.
2. In Alarm Properties  Description, click on the Browse Button.
3. Key in Alarm message and click Choose.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 56 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

4. When Trigger is: ON (this mean when the alarm happens)


5. Alarm Trigger: MB21 (this is the Alarm bit)
6. Select Alarm Template: Alarm
7. Click Save

Step 6:
Repeat Step 5 for Second Alarm.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 57 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Once done, you will see two alarms listed there. And click OK.

Step 7:
Create 2 button in HMI. One for Alarm. One for History Alarm
Alarm Button:
Text: Alarm
Touch: MB17

History Alarm Button:


Text: History Alarm
Touch: MB18

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 58 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Step 8:
Now need to decide when to show alarm. Go to Ladder Editor.

Show Live Alarm:


1. Go to Utils  Alarms  Show Groups.

2. Select Group ID, select Const and All. Then click OK.

3. Assign any unused address and click OK.

After done, this is how it should look.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 59 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Show History Alarm:


1. Go to Utils  Alarms  Show Alarms.

2. Select Alarm History

3. For another 2 parameters, you can assign any unused address.

After done, this is how it should look.

Now you can download the application to PLC to test.


VISILOGIC TRAINING – INSTRUCTION MANUAL Page 60 of 74
YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Additional Information
SD Card
Before use SD Card, SD card need to format with SD Card Suit  Tools .

Note: Vision PLC will only be able to recognize the SD card, after format by using this tool.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 61 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Example for Advance Function Block


Modbus Serial
Modbus enables you to establish master-slave communications between Unitronics PLCs and any connected
device that supports the MODBUS protocol. Any controller in the network may function as either master or
slave using any of the controller’s COM Ports.

1. A MODBUS Configuration FB must be included in both master and slave Ladder applications as shown
below.

2. The Ladder application below enables the controller act as a MODBUS master and read coils in a slave PLC.
The Scan_EX operation shown below enables the controller to also act as a slave.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 62 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Modbus TCP/IP
If your controller comprises an Ethernet card, you can use MODBUS IP commands with any connected device
that supports the MODBUS protocol.

1. A Modbus Configuration FB must be included in both master and slave ladder application as shown below.
Modbus IP Operations are located on the FBs menu.

2. The Ladder application below enables the controller act as a MODBUS master and read coils in a slave PLC.
The same PLC can also act as a slave, if a Scan_Ex operation is included in the application.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 63 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Protocol FB
Use the Communication Protocol operations to enable your controller to exchange data with external devices,
such as frequency converters, bar-code readers, and printers via a Vision COM port. Protocol operations are
located on the FBs menu.

Protocol Ladder Requirements


To enable a Vision controller to request and receive data from a device, the controller’s Ladder application
must contain:
 A COM Init FB to initialize the serial port that will be linked to the device.
 A Protocol Configuration FB set to use the serial port
 A Protocol Send FB, which enables the controller to send data request messages to the device
 A Protocol Scan FB, which enables the controller to receive data response messages from the device.

1. COM Init and Configuration


Since COM Port 2 is connected to the device, the application initialize and configures COM 2 at Power-up.

2. Send: Data Request


The application requests data via the Protocol Send FB. The Send FB enables you to structure messages
that conform to any protocol’s requirements. Below, the Vision sends a data request to Unit 01. The
request is Command 03, Read Register, and the register is Register 25.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 64 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

3. Scan: Receiving Messages


A Protocol Scan FB contains messages. Activating the Scan causes the Vision to check if it has received any
of the messages contained within the Scan FB. Note that the controller can only receive messages that are
defined in the Scan FB.

Below, the application enables the Vision to receive a response to Command 03. Note that Buffer reset
follows the Scan.

Note that the Scan message contains a Data Response field that is long enough to contain the contents of a
register.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 65 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Protocol FB, IP
Use the Communication Protocol TCP/IP operations located on the FBs menu to enable your controller to
exchange data with TCP/IP-enables devices, such as frequency converters, bar-code readers, and printers. The
controller must comprise an Ethernet card. Communication Protocol TCP/IP operations are located on the FBs
menu.

Example: TCP/IP Master


The nets below show the elements that are required by a master PLC. Note that the master application
requires Socket Init and a TCP/IP Connect function, and that when you wish to terminate a session, you must
include a Close Socket function.

Example: TCP/IP Slave


The nets below show the basic conditions enabling a TCP/IP slave to receive messages.

SMS
To enable a controller to use SMS messaging, connect it to a modem that supports connection to a cellular
network with SMS messaging service. SMS messaging operations are located on the FBs menu.

To use SMS feature, you just need to use 4 FBs as shown below.
1. Initialize a COM Port. The initialization status of each port is indicated in Modem Initialization Status SBs.
These SBs can be used to activate an SMS configuration.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 66 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

2. Select SMS Configuration from the FBs menu and place the function in your application.

3. To receive messages, place a Scan FB in your application.

4. To send messages, place a Send FB in your application.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 67 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

CANbus Networking
If your model controller includes a CANbus port, you can implement the following methods of data exchange:
PLC to PLC
 UniCAN DataCOM
This enables a PLC in the CANbus network to exchange data with up to 60 other networked PLCs.

 CANbus ISC (Inter-Slave Connection)


Data is broadcast over the CANbus network via system operands, where each unit can read information
from up to 8 other PLCs in the network

PLC to Remote Device


 CANopen
Supports data communication with remote devices according to the CANopen standard.

 CANbus, Layer 2
Enables Vision controllers to send and receive data with remote devices that support CANbus protocol.

Simultaneous Modes
You can run the following modes simultaneously if you select the relevant option in the COM Init Function.
 CANopen + UniCAN
 CANopen + CANbus, Layer 2
 CANopen + J1939

CANbus UniCAN
UniCAN enables fast data communications. Via UniCAN, a Unitronics’ PLC can exchange data with up to 60
other networked PLCs. A UniCAN application can send up to 32 messages, each containing 16 integer values,
totaling 512 MI register values during a single program scan.

When PLCs are connected to the CANbus network and their CANbus ports initialized to UniCAN, you can use
the UniCAN functions, located on the Communications menu, to transfer data between units or check a unit’s
status.

Before using UniCAN functions, assign each networked controller a unique Unit ID number and initialize the
CANbus port to UniCAN.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 68 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

CANopen
Vision controllers support data communication with remote devices such as frequency converters according to
the CANopen standard, compliant with CiA DS 301.

A Vision acts as a CANopen master, supporting the following functions:


 Send PDO / Send PDO RTR
 Send NMT / Send NMT RTR
 Send SYNC
 SDO Download STR / Upload STR

At power-up:
1. Assign each networked controller a unique Unit ID number.
2. Initialize the CANbus port to CANopen via a COM Init function.
3. Activate the CANopen configuration.

NOTE: You can use UniEDS to open CANopen EDS files. UniEDS is located on the Tools menu.

CANbus, Layer 2
Vision Controllers support data communication with remote devices such as frequency converters according to
the CANbus V2.0 standard. A Vision can both send and receive standard messages with 11-bit identifiers, as
well as extended messages with 29-bit identifiers.

Using CANbus Layer 2


At power-up:
1. Assign each networked controller a unique Unit ID number.
2. Intialize the CANbus port to CANbus Layer2 via a COM Init function.
3. Activate the configuration.

Send
The Send function determines the data that is sent to a specified remote device.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 69 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Scan
The Scan function enables a PLC to receive data from a specified remote device and write it to a vector of
registers.

Scan_Ex
This function enables the controller to receive any messages that arrive via CANbus. In order to run Scan_Ex,
you must initialize the port to Scan_Ex.
Note: Scan_Ex is active, you cannot access the PLC via network bridge. If your application requires
communication via bridge, you must re-initialize the port using another COM Init function as shown below.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 70 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

I/O Expansion Modules


Vision controller are compatible with I/O Expansion modules.

There are two ways to integrate them into the system:


 Locally
Via an Ex-A2x adapter connected to the controller’s I/O Expansion port.
A Vision controller can support up to 8 local I/O Expansion Modules connected to the I/O Expansion port.

 Remotely
Via an Ex-RC1 connected to the controller’s CANbus port

Remote I/Os
There are two types of Remote I/O:
 Ex-RC1
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.

 Remote High-speed Module EXF-RC15


The EXF-RC15 is a stand-alone high-speed Remote I/O Module. It offers digital inputs and outputs,
including inputs that you can wire to function as high-speed counters, and outputs that you can wire to
function as hig-spedd PWM/PTO outputs. For more information on wiring, refer to the module’s technical
specifications and installation guides in the Technical Library on the Unitronics website.

Using Remote I/O – EX-RC1


The EXF-RC1 functions as a node in a Vision UniCAN network. It connects to the Vision Controller via CANbus;
note that you download programs via USB port.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 71 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

Note:
This application supports any combination of digital I/Os. If your system includes only digital I/O Expansion
Modules, simply upload this application and modify the Hardware Configuration to match the one in your
project. If your application is based on analog modules, Unitronics offers sample application supporting analog
I/O modules as well.

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.

Using EXF-RC15
The EXF-RC15 functions as a node in a Vision UniCAN network. It connects to the Vision Controller via CANbus;
note that you download programs via USB port.
1. Select the EXF-RC15 in Hardware Configuration. Note: since it is a stand-alone module, it cannot be
connected to other I/O modules.

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 72 of 74


YT AUTOMATION SINGAPORE PTE. LTD
Tel: 65-6684 0702 Fax: 65-6684 0703
E-MAIL: support@ytautomation.com

2. Click on the EXF-RC15 button to open and configure the I/Os.

3. Configure communications: in the Main Routine of your application, as a Power-up task, place a COM Init
function set to UniCAN and assign a PLC ID number as shown in the following image.

You can find sample applications for PTO and PWM in the Examples folder \Unitronics\Unitronics
VisiLogic_C\Examples\Version 900\Project examples\EXF-RC15.

NOTE:
Others sample applications may be found in VisiLogic Examples folder, located on the VisiLogic Help Menu.

We hope that you found this manual helpful. If you have any questions or need further information, please
contact us at support@ytautomation.com

VISILOGIC TRAINING – INSTRUCTION MANUAL Page 73 of 74

You might also like