CANopen HMI Communication Driver for JMobile

Similar documents
Profibus DP Driver for JMobile

ABB Modbus RTU Driver for JMobile

Panasonic FP Serial Driver for JMobile

Mitsubishi FX Ethernet Driver for JMobile

Control Techniques Unidrive - Modbus CMP Ethernet Driver for JMobile

ROC Plus Communication Driver for JMobile

Modbus TCP Server Driver for JMobile

Omron FINS Ethernet Driver for JMobile

CODESYS V3 Ethernet Driver for JMobile

CODESYS V2.3 Ethernet Driver for JMobile

Mitsubishi FX Driver for JMobile

Modbus TCP Driver for JMobile

Connecting UniOP to Moeller Easy800

KNX TP/IP Communication Driver for JMobile

Simatic S7 Ethernet driver for JMobile

Connecting UniOP to CoDeSys Controllers via Ethernet

Connecting UniOP to Unidrive SP with Modbus CMP Protocol

Connecting UniOP as a Modbus Slave

Connecting UniOP Using Generic Modbus RTU

Connecting UniOP to Beckhoff ADS Ethernet

Connecting UniOP to Fatek Controllers with Facon Protocol

NMEA 0183 driver for JMobile

APPLICATION NOTES. Advanced Graphical Interface - AGI Internal PLC (CODESYS V3) SHENDONG

Internal PLC (CODESYS) User Manual

JMobile V2.6 SP1 Release Notes

DomiOP ebis504. Tech-note. Highlights

JMobile V2.0 HF1 Release Notes

Updating Systems Components in UniOP Series 400 Products

JMobile Suite. User Manual 2.00

UniOP Command Summary

The UniDataExchanger is a tool that allows an easier handling of the file transfer to and from UniOP operator panels. Contents

Connecting UniOP as Modbus/TCP Server

Quick Start Guide PN/CAN-Gateway. Version. 1 en. from FW

CoDeSys Library Extension for EASY242 Applications. FBE - Library. Reference Guide for use with EASY242

Getting started with JMobile Suite

POWERLINK. For CODESYS. POWERLINK For CODESYS. Integration package of the standard Industrial Ethernet protocol POWERLINK into CODESYS.

FBE - Library. Reference Guide for use with EASY242 & EASY2606

Using the WAGO AS-i Module with the SMLC. 9/13/2007 Using the WAGO AS-i Module with the SMLC 1

JetWeb JX6-INT1 Function Description

AP-COBD Manual V /03

deltadue DY-5030 Protocol Converter CANopen/Modbus Master User Manual M.U. DY /09.05 Cod. J ADY E

CANopen. Network configuration. Operating instructions Software. Integration of Bürkert devices in CANopen networks

DomiOP ebis400 Series A new generation of Building HMI s. embedded building information system

PLC2 Board Communication Manual CANopen Slave

D0 DCM Module Setup Direct

CANopen User manual Website: Technical Support: Skype: Phone: QQ: Technical forum:

Getting started with UniOP and CoDeSys integrated controller

Connecting UniOP to Simatic S7 Profibus

Control with UniOP. Tech-note PN# tn137-2.doc - 29/07/ Ver Contents

DIGITAL TRANSMITTER CANopen Interface OPT-563B-71 Instruction Manual

M-Bus Master Manual. M-Bus Master. Manual. Version 2.0 1/10

Please refer to application note AN00129 for further details on HCP2 configuration in ABB motion control products.

Motors Automation Energy Transmission & Distribution Coatings. Software WSCAN. User's Manual

The RS-485 user manual for B800 series communication

Configuration Guideline for CANopen Networks

DirectNET Host. Communications Programs. In This Chapter...

Kinco PLC Training. Kinco Automation

Connecting UniOP to Datalogic Barcode Readers

Contents. Additional Instructions P-3X CANopen

CANopen Getting Started User's Manual

17 Configuring a BM85 In this chapter

I CANopen Master Module

Redes de Comunicação em Ambientes Industriais Aula 12

Application Note. Connecting a S S7A Driver V

JMobile. The X Platform Software

Connecting UniOP to Galil/Yaskawa controllers

Lean Automation Solutions Lean Connectivity & Lean Controllers

efesotomasyon.com - Klockner Moeller - inverter User Manual CAN-Monitor

CANopen Slave. X-gateway Interface Addendum. Doc: HMSI , Rev: Connecting Devices TM

TECHNICAL NOTE TNOI30

MVI46-103M. User Manual. SLC Platform. IEC Master Communication Module

Motors I Automation I Energy I Transmission & Distribution I Coatings. CANopen CFW500. User s Manual

Connection User Manual

Control Characters used in DirectNET

Operating Manual. Inferface. CANopen. English

Manual. CAN 300 PRO CANopen Slave. CAN Communication Modules for S7-300 as CANopen Slave. Edition 3 /

CODESYS v. 2.3, Ethernet driver for AGI 3xx Use the CODESYS Ethernet driver in the AGI Creator Set up the CODESYS for use with the AGI Creator

Connecting UniOP to Profibus DP TI

DTM for Hilscher CANopen Master Devices

SIMATIC NET. S7 CPs for Industrial Ethernet CP Version 3 or later (Firmware version V2.2) for SIMATIC S LED displays.

Motors I Automation I Energy I Transmission & Distribution I Coatings. SymbiNet CFW-11. User s Manual

PISO-CPM100U-D/T PCM-CPM100-D CANopen Master PCI/ PCI-104 Card

JMobile V2.0 Exor_template_v1.01

High Precision Drive Synchronisation with CANopen

VIPA SPEED7 Library. OPL_SP7-LIB SW90HS0MA V Manual. HB00 OPL_SP7-LIB SW90HS0MA V en Block library - EtherCAT Communication

FACTORY AUTOMATION. MANUAL R CANopen Protocol

CANopen CFW100. User s Manual. Phone: Fax: Web: -

IFD9503. CANopen Slave Communication Module Application Manual

TxA-SC CoDeSys V3 TxA SoftControl

CAN 300 PRO, Communication Module

Operation Manual First Edition

Maxiflex Single Harwell NIM M1588 User Manual

Chapter 5: Communications 5 1 SR55 Communications Overview 5 2

*** If you have a Quick Designer project skip this section ***

Compact HMI devices with 9 function keys, numerical keypad and 20 characters display.

I-8123W CANopen Master Module

CANopen IO X4 Fact sheet

Application Note FC1100/FC1121 (EtherCAT Slave Card)

PACSystems* RX3i CANopen Master Module

dyne Motion Control Hydraulic Pneumatic Electrical Mechanical (80 ex700 Series The Revolutionary IIoT Controller

Transcription:

CANopen HMI Communication Driver for JMobile This Technical Note contains the information needed to connect the HMI to control devices using the CANopen protocol with HMI profile. Exor International S.p.A. ptn0427 Ver. 1.02

Copyright 2013 International Exor S.p.A. Verona, Italy Subject to change without notice The information contained in this document is provided for informational purposes only. While efforts were made to verify the accuracy of the information contained in this documentation, it is provided as is without warranty of any kind. Third-party brands and names are the property of their respective owners. www.uniop.com CANopen HMI Communication Driver for JMobile 2

Contents CANopen HMI Driver... 4 CANopen HMI Profile... 4 Profile Details... 4 Request Format: HMI to Controller (Transmit PDO)... 5 Response Format: Controller to Panel (Receive PDO)... 6 Protocol Editor Settings... 6 Connecting the HMI to CODESYS V2 Controllers... 8 PLC Library Call... 8 CODESYS V2 4PDO... 10 Communication Status... 10 CANopen HMI Communication Driver for JMobile 3

CANopen HMI Driver The CANopen HMI communication driver has been designed to connect HMI products to a CANopen network. A new device communication profile has been developed for the HMI. This profile takes advantage from the advanced user interface features of the products, while retaining the simple networking concept supported by the CANopen network. The basic idea is create a client/server communication structure where the HMI is the client and the CANopen controller is the server. Connection to CANopen network requires the optional CANopen communication module. Verify the suitable version for your HMI model. Please note that changes in the controller protocol or hardware, which may interfere with the functionality of this driver, may have occurred since this documentation was created. Therefore, always test and verify the functionality of the application. To accommodate developments in the controller protocol and hardware, drivers are continuously updated. Please ensure that the latest driver is used in the application. Document code ptn0427 Version 1.02 CANopen HMI Profile In this communication model the HMI initiates the communication sessions, acting as a source of messages. The basic messages are PDO messages with the standard size of 8 bytes. The COB-ID of the messages is defined in a way that makes clear, from the well-known CANopen rules, what is the target of the PDO message. The format of the PDO message has been defined according to a custom application layer protocol. This application layer protocol defines a device-independent communication profile optimized for HMI applications. When the CANopen master controller receives the PDO message, it will interpret its contents and produce a PDO message with the response addressed to the HMI device. The definition of this client/server relationship is independent of the CANopen Master in the sense that it can easily be supported in any particular CANopen master system. The resulting solution is easily portable to any CANopen master. The software IDE offers a user interface that adapts itself to show the typical addressing model of CANopen master controller where the panel is going to be connected. Adapting to different masters is possible using a profile customization file that may contain data definitions for different controller types. Profile Details This chapter provides the specification of the HMI profile and describes the subset of the request/response formats used by this implementation of the protocol. The communication driver in the HMI generates PDO messages initiating communication request sessions as soon as the HMI runtime requires data from the protocol. The panel is using the first transmit PDO identified by the COB-ID 0x180 combined with the Node Number assigned to the panel. CANopen HMI Communication Driver for JMobile 4

The communication profile uses only one transmit PDO and one receive PDO; the limited number of bytes available in standard PDO message maybe limiting, in some cases, the driver capabilities especially in terms of performance. Request Format: HMI to Controller (Transmit PDO) The PDO message transmitted by the HMI is formatted according to Table 1. Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Data Operation Offset Offset Length Type and Low High Data 0 Data 1 Data 2 Data 3 and Job Controller Number ID Table 1 The request frame includes the following elements: Offset Low Offset High Data 0 Data 3 Data Length and Job Number Operation Type and Controller ID Low byte of the offset (16 bits address) for the requested block of data High byte of the offset (16 bits address) for the requested block of data Data for Write Operations; not used in Read Operations Contains: - number of requested bytes - job Number indicator; Table 2 shows the details of the bit assignment Contains: - type of operation requested - the Controller ID that identifies the target of the message; Table 3 shows the details of the bit assignment Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Job Job Job Job Job Job Data Data Number Number Number Number Number Number Length [1] Length [0] [5] [4] [3] [2] [1] [0] Table 2 The Data Length parameter is coded in 2 bits and takes values between 1 and 4 according to the following rules: 00 1 bytes 01 2 bytes 10 3 bytes 11 4 bytes Note that the elementary size of each data item depends on the Controller memory organization. The Job Number occupies 6 bits and can have values between 0 and 63; the Job number parameter is placed as last element in the PDO to ensure data consistency; the PLC program running the controller should constantly monitor the value of the Job Number parameter and consider the received message as valid only when detecting a change in the value of the Job Number field. Job Number is automatically increased at each new communication session (new request frame). Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Operation Controller Controller Controller Controller Controller Controller Controller Type ID [6] ID [5] ID [4] ID [3] ID [2] ID [1] ID [0] Table 3 CANopen HMI Communication Driver for JMobile 5

The Operation Type uses one bit with the following definition: 0 Read data is transferred from controller 1 Write data is transferred to controller The Controller ID uses 6 bits; it represents the Node Number in the CANopen network of the master controller addressed by the current request. This parameter is required in case the CAN network has more than one master controller; the CANopen standard defines in fact the COB-ID of the messages in a way that all the partners of the bus known the originator. In case more than one master device is present in the same network, the Controller ID field will specify the target of each individual request message. Only the master controller that recognizes in this field its own Node ID will consider the message and process the PDO contents. Response Format: Controller to Panel (Receive PDO) The PDO message returned by the controller must be formatted as defined in Table 4. Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Status Data Operation Flag / Dummy Length Type and Error Always 0 Data 0 Data 1 Data 2 Data 3 and Job Controller Code Number ID Table 4 The request frame consists of the following elements: Status Flag / Error Code Data 0 Data 3 Data Length and Job Number Operation Type and Controller ID Contains the information related to the execution of the operation type of the request; Table 5 shows the coding information Contain the data information returned to the panel in response to a Read request It is the copy of the corresponding field of the request frame It is the copy of the corresponding field of the request frame Status Flag / Error Code Operation Type in the Request Frame No Errors Error Read 0x01 0x81 Write 0x02 0x82 Table 5 Protocol Editor Settings Add (+) a driver in the Protocol editor and select the protocol called CANopen HMI from the list of available protocols. The driver configuration dialog is shown in figure. CANopen HMI Communication Driver for JMobile 6

Figure 1 Panel ID Controller ID Baud Rate ( kbps) Timeout (s) Enable Update Rate Update Rate (ms) PLC Models PLC Network CANopen node ID assigned to the HMI CANopen Node ID assigned to the CAN controller device Speed of the CANopen network Maximum allowed time the driver will wait for a response from the PLC before reporting a communication error Use this option to enable a wait time between two communication requests Minimum interval time between two requests; it can be useful when the bus load needs to be properly controller and limited The list allows selecting the controller model you are going to connect to. The selection will influence the data range offset per each data type according to the specific controller memory resources The protocol allows the connection of multiple controllers to one operator panel. To set-up multiple connections, check PLC network checkbox and enter the node ID per each slave you need to access. CANopen HMI Communication Driver for JMobile 7

Figure 2 Connecting the HMI to CODESYS V2 Controllers This chapter describes all the steps you have to follow in order to establish a successful connection between the HMI and CODESYS CANopen master controller. The PLC support program has been developed with CODESYS programming software version 2. PLC Library Call The server function running in the PLC program has been designed in the form of Library called HMI_Canh, written using the ST programming language. Proper working example is available on demand. The Function Block parameters are the following: MasterID MinBound MaxBound CANopen Master Node number; Lower limit of the PLC memory addressable (visible) by the HMI Upper limit of the PLC memory addressable (visible) by the HMI CANopen HMI Communication Driver for JMobile 8

HHIr HMIt MemPt Status Offset in the PLC memory where the PDO message received from the panel is mapped Offset in the PLC memory where the PDO message to be sent to the panel is mapped Offset in the PLC memory where the data is received Status The PLC Function block support the use of more than one panel simply repeating the call of the same function for all the additional units specifying before each call the proper calling parameters. Figure 3 Figure 4 CANopen HMI Communication Driver for JMobile 9

CODESYS V2 4PDO Tech-note In some cases it is useful to choose the model CODESYS 4 PDO where 4 PDO objects are used for transmission and 4 for reception. This solution may provide higher communication speed between the two devices. To operate with 4 PDO the correct model should be set in HMI project and the PDOs for receive and transmit slots. Figure 5 Note: CANopen Master PLC Configuration must be configured properly. In case of CODESYS 4 PDO. Communication Status The current communication status can be displayed using the dedicated system variables. Please refer to the User Manual for further information about available system variables and their use. The codes supported for this communication driver are: Error NAK Timeout Line Error Invalid response CAN port not found CAN port in use General error Notes Controller replies with a not acknowledge. Request is not replied within the specified timeout period; ensure the controller is connected and properly configured for network access Returned when an error on the communication parameter setup is detected (baud rate); ensure the communication parameter settings of the controller is compatible with panel communication setup The panel did receive from the controller a response, but its format or its contents or its length is not as expected; ensure the data programmed in the project are consistent with the controller resources. Make sure option module is correctly plugged Make sure option module is not already in use Error cannot be identified; should never be reported; contact technical support CANopen HMI Communication Driver for JMobile 10