Divebiss VCG-E-C-G User Manual

Versagateway series programmable communications gateway based on p-series plc on a chip

Advertisement

Quick Links

Based on P-Series PLC on a Chip
VersaGateway
Covered Models:
USER'S MANUAL
VCG-E-C-G
VCG-W-C-G
VCG-E-C-X
VCG-W-C-X
VCG-E-X-G
VCG-W-X-G
VCG-E-X-X
VCG-W-X-X
Divelbiss Corporation
9778 Mt. Gilead Road,
Fredericktown, Ohio 43019
Revision: 1
Toll Free: 1-800-245-2327
Web: http://www.divelbiss.com
E-mail: sales@divelbiss.com
2015006.1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VCG-E-C-G and is the answer not in the manual?

Questions and answers

Summary of Contents for Divebiss VCG-E-C-G

  • Page 1 USER’S MANUAL Revision: 1 Based on P-Series PLC on a Chip VersaGateway VCG-E-C-G VCG-W-C-G Covered Models: VCG-E-C-X VCG-W-C-X VCG-E-X-G VCG-W-X-G VCG-E-X-X VCG-W-X-X Divelbiss Corporation Toll Free: 1-800-245-2327 9778 Mt. Gilead Road, Web: http://www.divelbiss.com Fredericktown, Ohio 43019 E-mail: sales@divelbiss.com 2015006.1...
  • Page 2: Table Of Contents

    Table of Contents Manual Contents Getting Started How to Use this Manual ............... 3 The VersaGateway Overview ..............4 VersaGateway Models ................4 Configuring the VersaGateway Target in EZ LADDER Toolkit ....4 Loading the VersaGateway Kernel ............6 Getting to Know the VersaGateway Device .......... 8 VersaGateway Mounting ..............
  • Page 3: Getting Started

    Getting Started The VersaGateway is a ladder diagram, function block and structured text programmable device that can act as an intermediate com- munication device between multiple sources alone (communication buses) or between multiple sources (communication buses) and the VERSACLOUD M2M Cloud. The VersaGateway can communicate to/from other devices using Ethernet (Modbus TCP), WI-FI (Mod- bus TCP), Serial RS232/RS485 (Modbus Master/Slave or custom driver with Structured Text) and CAN devices (SAE J1939 / NMEA 2000 / OptiCAN) to/from the cloud (VERSACLOUD M2M cloud) using Ethernet, WI-FI and cellular data.
  • Page 4: How To Use This Manual

    Getting Started This section explains how to read this manual and understand the symbols and information that it contains. To begin using your VersaGateway Device, you will need to follow these steps: • Install EZ LADDER Toolkit if not already installed (ordered separately, contact Divelbiss). •...
  • Page 5: The Versagateway Overview

    Refer to the individual feature sections in this manual for details. VersaGateway Models The following models are available for the VersaGateway device. Ordering Information: Model Description VCG-E-C-G VersaGateway with Ethernet Port, Cellular Data Modem and GPS VCG-E-C-X VersaGateway with Ethernet Port and Cellular Data Modem...
  • Page 6 Getting Started 1. In P-Series EZ LADDER Toolkit, from the File Menu at the top, click PROJECT then SETTINGS. This will open the Project Set- tings Window. Select VersaGateway as the target from the choices. Refer to Figure 1-1. Verify the correct computer COM Port for communication to the VersaGateway target is selected.
  • Page 7: Loading The Versagateway Kernel

    Getting Started Loading the VersaGateway Kernel THE VersaGateway WILL NOT FUNCTION UNLESS THIS STEP (KERNEL LOADING) IS COMPLETED. The kernel is the firmware for the device and to provide greater flexibility and reliability, VersaGateway device shipments are fac- tory shipped without a kernel installed.
  • Page 8 Getting Started Figure 1-3 - Browse to Kernel Figure 1-4 - Bootloader - Update Target VersaGateway User’s Manual Document #: 2015006.1.pdf PAGE 7 of 44 Divelbiss Corporation • 9778 Mt. Gilead Road • Fredericktown, Ohio 43019 • 1-800-245-2327 • www.divelbiss.com...
  • Page 9: Getting To Know The Versagateway Device

    Getting Started Getting to Know the VersaGateway Device The VersaGateway device is designed to provide powerful programmable features in an easy to mount, versatile package. The Ver- saGateway device’s power, ports and features are accessible using on-board terminal blocks, connectors and configuration jumpers. Figure 1-5 illustrates the VersaGateway device and it’s standard features (shown with cover removed).
  • Page 10: Versagateway Mounting

    Getting Started VersaGateway Mounting The VersaGateway devices are designed to be subplate / panel mounted using screws. Refer to Figure 1-6 for mounting dimensions. 6.75 3.50 1.25 All dimensions are in inches. Figure 1-6 - VersaGateway Mounting Dimensions Configuration Jumpers & Switches Some features of the VersaGateway have configurable options such as the CAN ports and serial ports.
  • Page 11 Getting Started CONFIGURATION JUMPERS SUMMARY Shunts installed Pin 1-3 & 2-4 COM2 Configured for RS232* Shunts installed Pin 3-5 & 4-6 COM2 Configured for RS485* Shunts installed Pin 1-3 & 2-4 COM3 Configured for RS232* Shunts installed Pin 3-5 & 4-6 COM3 Configured for RS485* Shunt installed Pin 1-3 COM2 Configured for RS232*...
  • Page 12: Device Features

    Device Features This sections explains the VersaGateway Device features and functions and provides hints and important information for configuring and using the VersaGateway.
  • Page 13: Input Power

    Device Features 0.138 (TYP) Input Power 1.00 0.039 3.0 0.118 3.0 0.118 (3 PLCS) The VersaGateway main power is supplied by the pluggable PWR IN terminal block. Refer to Figure 1-5 for location of the PWR IN 0.185 terminal block (Item 1). Input current can vary greatly based on model and mode of operation. 10.7 0.421 PWR / Power Input -Output Pin-Out...
  • Page 14: Status Led Indicators

    Device Features Status LED Indicators The VersaGateway Device provides two pre-defined on-board LED indicators. Refer to Figure 1-5 for general locations of the LED indicators. The two indicators are: PWR and STS. PRE-DEFINED LED INDICATORS LED NAME DESCRIPTION Power OK (green). On when proper input power is detected. Status/Watchdog (green).
  • Page 15 Device Features CAN PORT 0 CONNECTIONS CAN port 0 is connected using the terminal block labeled CAN0 (Item 7). Refer to Figure 2-3 for an example CAN bus connected to CAN 0 and termination locations. CAN 0 Port Terminal Block Pin-Out PIN ID CONNECTION CAN Port 0 HI connection...
  • Page 16 Device Features Only the ENDS of the CAN bus (first and last devices) are to have the terminators (terminating resistors) enabled. Failure to enable the terminators, the correct terminators or enabling an incorrect number of terminators may result in CAN bus communication errors or loss of communication at all.
  • Page 17: Can Port 1 - Nmea Compliant

    Device Features CAN Port 1 - NMEA COMPLIANT The VersaGateway Device provides an NMEA Compliant CAN port (CAN Port 1) (See Figure 1-5, Item 8) for communications to / from external devices. As a NMEA Compliant Port, it can be connected directly to an NMEA 2000 bus or it may be used as any stan- dard CAN port.
  • Page 18 Device Features ENABLE ENABLE TERMINATOR TERMINATOR NMEA VersaGateway DEVICE DEVICE DEVICE DEVICE +EXT VDC -EXT VDC Figure 2-6- CAN Connections & Bus Terminating CAN PORT 1 JUMPER CONFIGURATIONS CAN port 1 can be configured with multiple options including the choice of on-board power (standard) or external power (NMEA Compliant) as well as the choice of external supply voltage (if configured for external power).
  • Page 19 Device Features INSTALLING CAN PORT 1 IN EZ LADDER TOOLKIT CAN Port 1 must be installed in the ladder diagram program using EZ LADDER Toolkit before it may be used in the ladder diagram program. To install the CAN1 port, it must be configured in the program’s target settings using the EZ LADDER Toolkit’s Project Set- tings Menu.
  • Page 20: Ethernet Port

    Device Features Ethernet Port The VersaGateway (model dependent) supports Ethernet communications using an on-board Ethernet port (standard RJ-45). This port (when enabled) provides Modbus TCP (master or slave) communications. The Ethernet port will operate whether the con- nected cable is wired as a patch cable or a cross-over cable. Refer to Figure 1-5 for the location of the Ethernet port (Item 5). Refer to the VersaGateway Models section for which models support Ethernet.
  • Page 21 Device Features 9. To enable the Ethernet, click the Ethernet Enabled check box. 10. Enter a Host Name for this VersaGateway device in the Host Name box. This name is used to identify this device on an Ethernet network. 11. It is recommended that the DHCP Enabled and IP v4 auto Config check boxes be left in their default condition (checked).
  • Page 22: Modbus Tcp

    Device Features The Ethernet is now configured in the Project Settings. It is ready to be used in the ladder diagram program as Modbus TCP or for VersaCloud M2M Connectivity. To configure Modbus TCP (Master or Slave) for use over Ethernet or Wi-Fi, see the Modbus TCP Section of this manual. To configure VersaCloud M2M Connectivity over Wi-Fi, see the VersaCloud M2M Connectivity Section of this manual.
  • Page 23: Wi-Fi Option

    Device Features Figure 2-13 - Modbus Properties Figure 2-14 - Add Interface WI-FI Option For VersaGateway models that support Wi-Fi (VCG-W-X-X), a Wi-Fi connection is available for using Modbus TCP, Programming Port or VersaCloud M2M Connectivity. WI-FI ANTENNA For Wi-Fi supporting models of VersaGateway, the unit ships with a loose - packed antenna that must be installed before the Wi-Fi will be able to function.
  • Page 24: Serial Ports- Com 2 / Com 3

    Device Features INSTALLING WI-FI IN EZ LADDER TOOLKIT For Wi-Fi supporting models of VersaGateway, EZ LADDER Toolkit (PLC on a Chip) utilize the Wi-Fi connection as an Ethernet con- nection. To use Wi-Fi, the Ethernet option must be configured in the Bootloader and EZ LADDER Toolkit (Project Settings). Refer to the Ethernet Port Section of this manual.
  • Page 25 Device Features PIN 1 PIN 2 PIN 6 PIN 5 PIN 6 PIN 5 PIN 6 PIN 5 PIN 1 PIN 1 PIN 2 PIN 2 Figure 2-16 - Serial Port Jumper Pin-outs SERIAL PORT PIN-OUTS With the jumpers configured for the type of serial port, the pin-out can be identified. Choose from RS232 or RS485. Except for the actual terminal block, the labeling and pin functions are identical between COM2 and COM3.
  • Page 26 Device Features PROJECT then SETTINGS. This will open the Project Settings Window. 1. In EZ LADDER, from the File Menu at the top, click Select VersaGateway as the target from the choices. 2. Click the PROPERTIES button to the right side of the window. The VersaGateway Properties Window will open. Make sure the proper model is selected in the drop-down menu.
  • Page 27: Modbus Master / Slave (Com Port)

    Device Features Modbus Master / Slave (COM Port) Modbus Master or Slave may be utilized with the Serial Ports (UARTs / COM ports). To use Modbus Master or Slave over Serial Ports, Modbus Master/Slave must be installed and configured in the ladder diagram project. Serial Port(s) (COM port / UART must be installed prior to installing or configuring the Modbus Master / Slave using Serial.
  • Page 28: Serial Print Option (Com Port)

    Device Features Figure 2-21 - Add UART Interface - Slave Figure 2-22 - Add UART Interface - Master Serial Print Option (COM Port) The Serial Ports (COM Port / UART) may be utilized to send ASCII data serially to an external device. To use the serial ports for this type of communications, the Serial Printing option must be installed in ladder diagram project before it may be used.
  • Page 29: Sd Card Features

    Device Features Click the number of times required to save the settings of the Serial Printing and return to the EDIT workspace. Remember to Save your ladder diagram using the menu FILE SAVE SAVE AS. The Serial Print is now installed and configured to use in the ladder diagram program on the VersaGateway Device. Serial Printing uses the SERIAL_PRINT function block.
  • Page 30 Device Features 5. Click the (Monitor) button to change from the ‘Edit’ to ‘Monitor’ Mode. 6. Click the (Connect) button to connect to the target. A dialog will appear automatically when no kernel is loaded. If this dialog does not appear, click PROJECT then BOOTLOADER.
  • Page 31: Eeprom Memory (On-Chip)

    Device Features EEPROM Memory (ON-CHIP) The VersaGateway Devices support two types of on-board non-volatile memory: EEPROM and FRAM. The EEPROM memory is on- chip (on-board the PLC on a Chip) while the FRAM is an independent device. EEPROM memory is often useful for storing setpoint values into memory that will hold its value in the event of a loss of power. EEPROM memory is a relatively slow writing device (in terms of milliseconds) and has limitations.
  • Page 32: Fram (Retentive) Memory

    Device Features The on-chip EEPROM will now be installed and return to the VersaGateway Properties window. 6. The PLCHIP_Pxx_eeprom is now shown in the Devices pane (under the Internal heading). Click to close the VersaGateway’s Properties. Figure 2-29 - PLCHIP Pxx_eeprom Properties 7.
  • Page 33 Device Features CONFIGURING RETENTIVE MEMORY IN EZ LADDER TOOLKIT The retentive memory is installed automatically when the VersaGateway device is selected in the Project Settings. To adjust the amount of retentive memory, it must be configured in the program’s target settings using the EZ LADDER Toolkit’s Project Settings Menu.
  • Page 34: Real Time Clock

    Device Features Real Time Clock VersaGateway Devices include a Real Time Clock. The real time clock (after being set) provides the Month, Day, Day of the Week, Year, Hour, Minute and Second. The real time clock maintains time when power is off as long as the on-board lithium battery is good.
  • Page 35 Device Features CONFIGURING SAEJ1939 / NMEA 2000 IN EZ LADDER TOOLKIT PROJECT then SETTINGS. This will open the Project Settings Window. 1. In EZ LADDER, from the File Menu at the top, click Select VersaGateway as the target from the choices. 2.
  • Page 36: Optican Networking

    Device Features Figure 2-32 - CAN / J1939 Properties OptiCAN Networking VersaGateway Devices support the Divelbiss proprietary OptiCAN (CAN Network) protocol. OptiCAN is a register based CAN network that provides a communications method between OptiCAN enabled controllers and devices (PLC on a Chip based) for transmitting / receiving variables (integer, boolean, real and timer).
  • Page 37 Device Features PROPERTIES 2. Click the button to the right side of the window. The VersaGateway Properties Window will open. Make sure the proper model is selected in the drop-down menu. button. The PLCHIP-PXX Devices window will open. Locate the 3.
  • Page 38: Gps Option

    Device Features Figure 2-34 - OptiCAN Properties 7. Click to as needed to close each of the open windows including the VersaGateway Properties window. 8. Save your ladder diagram using the menu FILE SAVE SAVE AS to save the current settings in your program. OptiCAN communications is now configured and can be used in the ladder diagram project.
  • Page 39 Device Features Mounted in Metal Enclosure - External Mounted Antenna Use ISOLATED BULKHEAD ANTENNA CONNECTION Free Mounted - Directly Mounted Antenna VersaGateway VersaGateway VersaCloud M2M Solutions CORPORATION VersaCloud M2M Solutions CORPORATION SYSTEM CARD CARD SYSTEM COM 2/3 Terminals WIFI ANT COM 2/3 R/B : RS232 RX Terminals...
  • Page 40: Cellular Data Option

    Device Features 5. Click to as needed to close each of the open windows including the VersaGateway Properties window. 6. Save your ladder diagram using the menu FILE SAVE SAVE AS to save the current settings in your program. The GPS option is now installed and ready to used in the ladder diagram program / structured text. To use the GPS option to identify location and other information, it must be accessed via Structured Text.
  • Page 41 Device Features Mounted in Metal Enclosure - External Mounted Antenna Use ISOLATED BULKHEAD ANTENNA CONNECTION Free Mounted - Directly Mounted Antenna VersaGateway VersaGateway VersaCloud M2M Solutions CORPORATION VersaCloud M2M Solutions CORPORATION SYSTEM CARD SYSTEM CARD COM 2/3 Terminals WIFI ANT COM 2/3 R/B : RS232 RX Terminals...
  • Page 42: Versacloud M2M Connectivity

    Device Features VersaCloud M2M Connectivity VersaCloud M2M is a complete, end to end solution for remote monitoring, configuration and control. Using the VersaGateway (or other VersaCloud enabled devices), equipment may be monitored for current status and alarms as well as controlled including con- figuration changes and remote control of the process.
  • Page 43 Device Features 4. Click OK. The VersaCloud Properties Window will open. Refer to Figure 2-40. This window is used to select the interface (communications method) between the VersaGateway and the VersaCloud M2M Portal (Cloud server). The Available Inter faces Pane and the Selected Interfaces Pane are used for the selection. The Available Interfaces Pane lists all the current available communication methods that are available to communicate to the VersaCloud M2M Portal.
  • Page 44: Battery Backed Up S-Ram Memory

    Device Features VersaCloud M2M Connectivity is utilized in the ladder diagram program by the VCLOUD Function block. This block is added to the ladder diagram as needed and includes a Properties window when it is placed that determines the Send and Receive variables (data).
  • Page 45: Specifications

    Device Features S-RAM SPI Interface Information Function Description Bus / I/O Address SPI Port SPI Port used for S-RAM SPI1 U2 CS S-RAM U2, Chip Select GPIO12 U3 CS S-RAM U3, Chip Select GPIO11 U4 CS S-RAM U4, Chip Select GPIO13 U5 CS S-RAM U5, Chip Select...

Table of Contents