DENSO RAC communication specifications. Version

Similar documents
DENSO b-cap Communication Specifications for RC8. Version 1.0.2

BAUMER AG VeriSens Provider. User s guide

[MS-OLEPS]: Object Linking and Embedding (OLE) Property Set Data Structures

[MS-OLEPS]: Object Linking and Embedding (OLE) Property Set Data Structures

ORiN2. Programming guide. Version

RobCom provider for Matrox-based vision systems. User's guide

EWHA provider. User's guide

Modbus. X provider. User s guide

No Trade Secrets. Microsoft does not claim any trade secret rights in this documentation.

DIO Provider. User s Guide

ActiveX Automation and Controls

[MS-WSP]: Windows Search Protocol. Intellectual Property Rights Notice for Open Specifications Documentation

11[ 文書のタイトルを入力 ] 1 OMRON. Vision Sensor. MODEL: FZ Series

MotoOPCServer Part Number: CD Revision: 0

Allen-Bradley ControlLogix Slave Ethernet Driver Help Kepware Technologies

Wonderware. FactorySuite Gateway User s Guide. Invensys Systems, Inc. Version A Last Revision: 6/21/04

Introduction. Tech Note 910 Using the MatrikonOPC Sniffer to Trace OPC Communication

800xA for DCI. Configuration. Power and productivity for a better world TM. System Version 5.1

MW100 Setting for Data Communications via Modbus Protocol. Connect to Ethernet. Enter Ethernet settings. Enter Server Settings

USER S MANUAL. Unified Data Browser. Browser. Unified Data. smar. First in Fieldbus MAY / 06. Unified Data Browser VERSION 8 FOUNDATION

Table of Contents. Appendix. Table of Figures. Document Change Log

Industrial IT. 800xA - System 800xA for DCI System Version 4.1. Configuration

Allen-Bradley Micro800 Ethernet Driver Help Kepware Technologies

System 800xA for DCI. Configuration. Power and productivity for a better world TM. System Version 6.0

AO-OPC OPC Server Software version 2.1. User s manual 42/24-23 EN Rev. 4

Memory Based Driver Help Kepware Technologies

Winwap Technologies Oy. MMS ActiveX SDK. MMS ActiveX SDK version: 1.0 WAP specification version: 2.0 Document dated: 15 December 2005

Simulator Driver PTC Inc. All Rights Reserved.

Tables and Indexes Adding a Column to a SQL Server Table Creating SQL Server Indexes Creating SQL Server Tables Dropping a SQL Server Index Dropping

Operation Manual First Edition

BIT Java Programming. Sem 1 Session 2011/12. Chapter 2 JAVA. basic

No Trade Secrets. Microsoft does not claim any trade secret rights in this documentation.

[MS-SSTP]: Secure Socket Tunneling Protocol (SSTP)

Lecture 2 Tao Wang 1

[MC-SMP]: Session Multiplex Protocol. Intellectual Property Rights Notice for Open Specifications Documentation

DAQBench. 32-bit ActiveX controls for Measurement and Automation. User Interface Controls Reference

ISAQ 100 Automation Interface Instruction

Memory Based Driver PTC Inc. All Rights Reserved.

SMC Provider. User s Guide

The LLRP RFID Protocol plugin PRINTED MANUAL

Technical Note No. 01/2015

variables programming statements

Using the OPC Automation Wrapper

University of New Hampshire InterOperability Laboratory Gigabit Ethernet Consortium

[MS-SSP]: Intellectual Property Rights Notice for Open Specifications Documentation

Midterm I of Computer Communication , Winter 2004 Electrical and Computer Engineering Department, University of Windsor

DICOM Conformance Statement Fuji Medical Dry Imager DRYPIX 2000 / DRYPIX LITE

USA North 811. Positive Response System Requirements

Types, Variables, and Constants

SECTION II: LANGUAGE BASICS

Java Primer 1: Types, Classes and Operators

Cyberlogic OPC Server Help OPC Server for MBX, DHX and OPC DA Server Devices

CSCI 2212: Intermediate Programming / C Review, Chapters 10 and 11

V+ Custom Socket I/O Driver

Part IV ECHONET Basic API Specification

Media-Level Redundancy Plug-In PTC Inc. All Rights Reserved.

MasterScope MISSION CRITICAL OPERATIONS OperationCmd Batch Registration of Action Definitions Operation Manual

[MS-RAINPS]: Remote Administrative Interface: Network Policy Server (NPS) Protocol

Basics of Java: Expressions & Statements. Nathaniel Osgood CMPT 858 February 15, 2011

UNH-IOL. FC-1 Conformance Test Suite Version 4.3. Technical Document. Last Updated: February 23, 2008

Appendix 7 HCA Objects

Crystal Reports. Overview. Contents. Getting Started with the Crystal Report Designer Component in Microsoft Visual C++

Objectives. Introduce the core C# language features class Main types variables basic input and output operators arrays control constructs comments

PROGRAMMING GUIDE. VIA Smart ETK SDK

Barco ICMP - Automation over IP Protocol. Table of Content

Lexical Structure (Chapter 3, JLS)

CS109A ML Notes for the Week of 1/16/96. Using ML. ML can be used as an interactive language. We. shall use a version running under UNIX, called

Multicast Dissemination Protocol (MDP) Developer's Guide

Appendix: Generic PbO programming language extension

PHPoC vs PHP > Overview. Overview

[MS-OCSPA-Diff]: Microsoft OCSP Administration Protocol. Intellectual Property Rights Notice for Open Specifications Documentation

Inspirel. YAMI4 Requirements. For YAMI4Industry, v page 1

PROGRAMMING GUIDE. VIA Smart ETK SDK

Programming Guide. VIA Smart ETK SDK

General Ethernet Driver

Interprocess Communication

Final Exam Solutions May 11, 2012 CS162 Operating Systems

IVI-6.1: IVI High-Speed LAN Instrument Protocol (HiSLIP)

[MS-RDPEMC]: Remote Desktop Protocol: Multiparty Virtual Channel Extension

Wide Area Network Device Presence Protocol (WAN DPP)

Communications API. TEAM A : Communications and Integration Group. April 15, 1995

The name of this type library is LabelManager2 with the TK Labeling Interface reference.

Problem with Scanning an Infix Expression

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6)

Java Programming Fundamentals. Visit for more.

Distributed Data Processing (DDP-PPC) OSI Interface C Language

Attacking Interoperability Hack In the Box (HITB) Malaysia, October 2009

See Types of Data Supported for information about the types of files that you can import into Datameer.

PRELIMINARY embit s.r.l.

Since ESE GATE PSUs ELECTRICAL ENGINEERING COMPUTER FUNDAMENTALS. Volume - 1 : Study Material with Classroom Practice Questions

GIVE W INGS TO YOUR IDEAS

ROC Plus Ethernet Driver

PHPoC. PHPoC vs PHP. Version 1.1. Sollae Systems Co., Ttd. PHPoC Forum: Homepage:

Number Systems, Scalar Types, and Input and Output

Transbase R PHP Module

Operating Omega ATS and Lynx ATS. QUOTE TRANSFER PROTOCOL (QTP) SPECIFICATION v 1.05

KMS Command Set Reference Manual. Firmware Version August 2014

Proficy* HMI/SCADA - ifix D RIVER S ERVER

Servo press kit YJKP - Host interface

Helper Classes. Arg Class, page 2 Arguments Class, page 12 CILRefArg Class (C++ Java and.net Only), page 29

Transcription:

DENSO RAC communication specifications - 1 - DENSO RAC communication specifications Version 1.1.12 February 9, 2012 Remarks

DENSO RAC communication specifications - 2 - Revision history Date Number of versions 2012-02-09 1.0.0 First edition Content

DENSO RAC communication specifications - 3 - Contents 1. Introduction... 4 2. RAC specification... 5 2.1. RAC character string... 5 2.1.1. Common specification... 5 2.1.2. Request character string... 5 2.1.3. Response character string... 5 2.2. Description method of data... 6 2.3. Return code... 7 3. Communication procedure... 9 3.1. Communication sequence... 9 3.2. Communication procedure of client... 10 4. RAC command... 11 4.1. GET command... 11 4.2. PUT command... 14

DENSO RAC communication specifications - 4-1. Introduction This book is a user's guide of DENSO RAC mounted on RC8. RAC(Robot Action ) is the one developed aiming at a united robot language to move the robot. The RAC message is transmitted to the robot by using the socket communication (TCP/IP) from the client application. In DENSO RAC, the RAC message is transmitted to RC8 by using the socket communication. RC8 analyze the RAC message that has been transmitted to, and acquires and sets the variable corresponding to the content of the message.

DENSO RAC communication specifications - 5-2. RAC specification RAC rules two types of character strings. "Request character string" is to issue a request from the client to the server. "Response character string" is to response to a request from the server to the client. This chapter explains the specification of these character strings. 2.1. RAC character string 2.1.1. Common specification RAC character string consists of the request character string and the response character string. The following shows the common specification of these strings. Data shall be a text One command (Terminator (CR) is included) shall be within 256 bytes. Space and the Tab character (indent etc.) that attaches to the head of line shall be disregarded. 2.1.2. Request character string The request character string of RAC is described as follows. Words written in square blankets is omittable. <top-level command> :[<part name>]:[<part number>]:[<subcommand>]:[<parameter>]<terminator> < top-level command > : DENSO RAC server supports PUT" and GET" only. PUT"command sets variables. GET" commands acquires variables. < part name > : Controller name (Fixed as RC8") < part number > : Variable index number < subcommand > : The following variable types can be specified. I", F", D", S", V", P", J", T", IO" < parameter > : Data Specify the value that is set to the variable when specifying PUT" command. This string is not used when GET" command is specified. Details are shown in 2.2 with regards to data discription. < terminator > : Terminator Fixed as CR(0x0D) 2.1.3. Response character string The response character string of RAC is described as follows.words written in square blankets is omittable. < processing result > [< response data >]< terminator > < processing result > : Show the execution result of the RAC command by the integral

DENSO RAC communication specifications - 6 - value of the HRESULT type. < response data > : Acquire the value of the variable specified by GET" command. This data is not used in PUT" command.. Details are shown in 2.2 with regards to data description < terminator > : Terminator Fixed as CR(0x0D) 2.2. Description method of data Both the parameter of the request character string and the response data of the response character string are followed the method of expressing the VARIANT type of ORiN2 by the character string. The format expresses the data type and the data string, delimited by commas as follows. < data type >,< data string > The integral value written by the VARTYPE type is shown in < data type >. Table 2-1 shows available data types and values. Table2-1 Available data types Data type Explanation VT_EMPTY 0 Empty data VT_NULL 1 NULL value VT_ERROR 10 Error code VT_UI1 17 Byte type VT_I2 2 Short integer VT_UI2 18 Unsigned short integer VT_I4 3 Length integer VT_UI4 19 Unsigned length integer VT_R4 4 Single-precision floating point VT_R8 5 Double-precision floating point VT_CY 6 Currency type VT_DATE 7 Date type VT_BOOL 11 Boolean type VT_BSTR 8 Character string type VT_VARIANT 12 Variant type The same one as the argument part enters data. Available only at VT_ARRAY. VT_ARRAY 0x2000 Array

DENSO RAC communication specifications - 7 - Specify bitwise OR with other data types. In the data string, write the data by the character string. To express the array data, use, (comma) to delimit. e.g. 1) 2,100 Type: VT_I2 : 100 e.g. 2) 8,Sample Type: VT_BSTR : Sample e.g. 3) 12,(8,Sample) Type: VT_VARIANT : Sample" (character string type) e.g. 4) 8194,100,200,300 Type: VT_I2 VTARRAY : 100,200,300 e.g. 5) 8200,Sample,Test Type: VT_BSTR VTARRAY : Sample", Test" e.g. 6) 8,Sample,Test Type: VT_BSTR : Sample,Test" e.g. 7) 8204,(8,Sample),(2,100) Type: VT_VARIANT VTARRAY : Sample",100 2.3. Return code The return code is assigned in b-cap as follows. Table2-2 Assignment of return code Return code 0x00000000~0x8000FFFF 0x80010000~0x800101FF 0x80070000~0x8007FFFF 0x80040200~0x8004FFFF Explanation Default return code, reservation area User definition error When creating return codes other than the following "default return code", an arbitrary code can be assigned within the range of the value of "User definition error". Table2-3 Default return code list Return code Error Explanation 0x00000000 S_OK Normal termination 0x80004001 E_NOTIMPL Unimplemented function 0x80004004 E_ABORT The function was aborted. 0x80004005 E_FAIL The function failed. 0x8000FFFF E_UNEXPECTED A fatal error occurred. 0x80010001 E_INVALIDRCVPACKET n packet that the robot controller received is invalid. When this error occurs, the robot

DENSO RAC communication specifications - 8 - controller automatically cuts the connection. Please confirm the packet transmitted to the robot controller. 0x80010002 E_INVALIDSNDPACKET The transmission packet is invalid. 0x80010003 E_INVALIDARGTYPE The argument type in the received packet is invalid. 0x80010004 E_ROBOTISBUSY A new operation instruction was received while the robot was working. It is not possible to operate. 0x80010005 E_INVALIDCOMMAND Invalid character string was received as a command. It is not possible to execute. 0x80010011 E_PACKETSIZEOVER The size of the received packet is invalid. (>16Mbytes) 0x80010012 E_ARGSIZEOVER The argument size of the reception packet is invalid. (>16Mbytes) 0x80070005 E_ACCESSDENIED It is not possible to access it. 0x80070006 E_HANDLE The handle is invalid. 0x8007000E E_OUTOFMEMORY The memory is insufficient. 0x80070057 E_INVALIDARG The argument is invalid.

DENSO RAC communication specifications - 9-3. Communication procedure 3.1. Communication sequence The sequence of RAC starts by transmitting the request packet from the client. The server side executes the function of the request packet, and returns the client the response packet. In one session, after the request message is transmitted, it is necessary to wait for the reception of the response message to synchronize. When two or more request messages are used, it is recommended to do by two or more sessions. On the server side, there is no particular latency-time regulation from the time of request packet reception to sending a response. Therefore, be aware that the time-out is occured on the client side when the processing time of the server side takes long time meanwhile the time-out detection time of the client is short. Figure3-1Communication sequence

DENSO RAC communication specifications - 10-3.2. Communication procedure of client The outline of the communication procedure of the client is shown as follows. Figure3-2Communication procedure of client The client connects to the #5006 port of the TCP of the server in order to establishe the session first.. After the connection, send the request message of the excuted function and wait for the execution result from the server. The client should process the time-out when there is no response from the server. However, when setting the time-out time, please keep in mind that the response time of the server is different depends on the content of proceeding.

DENSO RAC communication specifications - 11-4. RAC command 4.1. GET command Request character string GET:RC8:<Index number>:<>:<cr> Response character string <>,<Response data type>,<response data><cr> Communication sample 1 Acquire the value of I type variable (The index number: 10) GET:RC8:10:I:<CR> 0,3,123<CR> I Response data type VT_I4 Response data 123 Communication sample 2 Acquire the value of F type variable (The index number: 10). GET:RC8:10:F:<CR> 0,4,123.01<CR> F Response data type VT_R4

DENSO RAC communication specifications - 12 - Response data 123.01 Communication sample 3 Acquire the value of D type variable (The index number: 10). GET:RC8:10:D:<CR> D 0,5,123.01<CR> Response data type VT_R8 Response data 123.01 Communication sample 4 Acquire the value of S type variable (The index number: 10). GET:RC8:10:S: S 0,8,Test<CR> Response data type Response data VT_BSTR Test" Communication sample 5 Acquire the value of V type variable (The index number: 10). GET:RC8:10:V:<CR>

DENSO RAC communication specifications - 13 - V 0,8196,1,2,3<CR> Response data type VT_ARRAY VT_R4 Response data (1, 2, 3) Communication sample 6 Acquire the value of P type variable (The index number: 10). GET:RC8:10:P:<CR> 0,8196,1,2,3,4,5,6,-1<CR> P Response data type VT_ARRAY VT_R4 Response data (1, 2, 3, 4, 5, 6, -1) Communication sample 7 Acquire the value of J type variable (The index number: 10). GET:RC8:10:J:<CR> 0,8196,1,2,3,4,5,6,7,8<CR> J Response data type VT_ARRAY VT_R4

DENSO RAC communication specifications - 14 - Response data (1, 2, 3, 4, 5, 6, 7, 8) Communication sample 8 Acquire the value of T type variable (The index number: 10). GET:RC8:10:T:<CR> 0,8196,1,2,3,4,5,6,7,8,9,-1<CR> J Response data type VT_ARRAY VT_R4 Response data (1, 2, 3, 4, 5, 6, 7, 8, 9, -1) Communication sample 9 Acquire the value of the IO type variable (The index number: 10). GET:RC8:10:IO:<CR> 0,11,0<CR> J Response data type Response data VT_BOOL FALSE 4.2. PUT command Request character string PUT:RC8:<Index number>:<>:< data type>,< data><cr> Response character string

DENSO RAC communication specifications - 15 - < processing result >< CR > Communication sample 1 Set the value of I type variable (The index number: 10). PUT:RC8:10:I:3,123<CR> type data I VT_I4 data 123 0<CR> Communication sample 2 Set the value of F type variable (The index number: 10). PUT:RC8:10:F:4,123.01<CR> type data F VT_R4 data 123.01 0<CR> Communication sample 3 Set the value of D type variable (The index number: 10).

DENSO RAC communication specifications - 16 - PUT:RC8:10:D:5,123.01<CR> type data D VT_R8 data 123.01 0<CR> Communication sample 4 Set the value of S type variable (The index number: 10). PUT:RC8:10:S:8,Test<CR> type data 0<CR> data S VT_BSTR Test" Communication sample 5 Set the value of V type variable (The index number: 10). PUT:RC8:10:V: 8196,1,2,3<CR> V

DENSO RAC communication specifications - 17 - type data data (1, 2, 3) 0<CR> VT_ARRAY VT_R4 Communication sample 6 Set the value of P type variable (The index number: 10). PUT:RC8:10:P:8196,1,2,3,4,5,6,-1<CR> type data P VT_ARRAY VT_R4 data (1, 2, 3, 4, 5, 6, -1) 0<CR> Communication sample 7 Set the value of J type variable (The index number: 10). PUT:RC8:10:J:8196,1,2,3,4,5,6,7,8<CR> type data J VT_ARRAY VT_R4 data (1, 2, 3, 4, 5, 6, 7, 8) 0<CR>

DENSO RAC communication specifications - 18 - Communication sample 8 Set the value of T type variable (The index number: 10). PUT:RC8:10:T:8196,1,2,3,4,5,6,7,8,9,-1<CR> type data J VT_ARRAY VT_R4 data (1, 2, 3, 4, 5, 6, 7, 8, 9, -1) 0<CR> Communication sample 9 Set the value of the IO type variable (The index number: 10). PUT:RC8:10:IO:11,0<CR> type data 0<CR> data J VT_BOOL FALSE