Command Dictionary CUSTOM

Similar documents
Previous on Computer Networks Class 18. ICMP: Internet Control Message Protocol IP Protocol Actually a IP packet

ICP Enablon User Manual Factory ICP Enablon 用户手册 工厂 Version th Jul 2012 版本 年 7 月 16 日. Content 内容

如何查看 Cache Engine 缓存中有哪些网站 /URL

PCU50 的整盘备份. 本文只针对操作系统为 Windows XP 版本的 PCU50 PCU50 启动硬件自检完后, 出现下面文字时, 按向下光标键 光标条停在 SINUMERIK 下方的空白处, 如下图, 按回车键 PCU50 会进入到服务画面, 如下图

计算机组成原理第二讲 第二章 : 运算方法和运算器 数据与文字的表示方法 (1) 整数的表示方法. 授课老师 : 王浩宇

OTAD Application Note

Understanding IO patterns of SSDs

Logitech G302 Daedalus Prime Setup Guide 设置指南

nbns-list netbios-type network next-server option reset dhcp server conflict 1-34

实验三十三 DEIGRP 的配置 一 实验目的 二 应用环境 三 实验设备 四 实验拓扑 五 实验要求 六 实验步骤 1. 掌握 DEIGRP 的配置方法 2. 理解 DEIGRP 协议的工作过程

AvalonMiner Raspberry Pi Configuration Guide. AvalonMiner 树莓派配置教程 AvalonMiner Raspberry Pi Configuration Guide

组播路由 - MSDP 和 PIM 通过走

三 依赖注入 (dependency injection) 的学习

Chapter 11 SHANDONG UNIVERSITY 1

<properties> <jdk.version>1.8</jdk.version> <project.build.sourceencoding>utf-8</project.build.sourceencoding> </properties>

<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <configuration> <!--- global properties --> <property>

Apache Kafka 源码编译 Spark 大数据博客 -

第二小题 : 逻辑隔离 (10 分 ) OpenFlow Switch1 (PC-A/Netfpga) OpenFlow Switch2 (PC-B/Netfpga) ServerB PC-2. Switching Hub

The Design of Everyday Things

Multiprotocol Label Switching The future of IP Backbone Technology

display portal server display portal user display portal user count display portal web-server

学习沉淀成长分享 EIGRP. 红茶三杯 ( 朱 SIR) 微博 : Latest update:

Microsoft RemoteFX: USB 和设备重定向 姓名 : 张天民 职务 : 高级讲师 公司 : 东方瑞通 ( 北京 ) 咨询服务有限公司

Chapter 1 (Part 2) Introduction to Operating System

XML allows your content to be created in one workflow, at one cost, to reach all your readers XML 的优势 : 只需一次加工和投入, 到达所有读者的手中

Chapter 7: Deadlocks. Operating System Concepts 9 th Edition

TW5.0 如何使用 SSL 认证. 先使用 openssl 工具 1 生成 CA 私钥和自签名根证书 (1) 生成 CA 私钥 openssl genrsa -out ca-key.pem 1024

Wireless Presentation Pod

Color LaserJet Pro MFP M477 入门指南

U-CONTROL UMX610/UMX490/UMX250. The Ultimate Studio in a Box: 61/49/25-Key USB/MIDI Controller Keyboard with Separate USB/Audio Interface

NetScreen 概念与范例. ScreenOS 参考指南 第 7 卷 : 虚拟系统. ScreenOS 编号 SC 修订本 E

Triangle - Delaunay Triangulator

Ganglia 是 UC Berkeley 发起的一个开源集群监视项目, 主要是用来监控系统性能, 如 :cpu mem 硬盘利用率, I/O 负载 网络流量情况等, 通过曲线很容易见到每个节点的工作状态, 对合理调整 分配系统资源, 提高系统整体性能起到重要作用

TBarCode OCX Microsoft ActiveX compliant Barcode Control

Air Speaker. Getting started with Logitech UE Air Speaker. 快速入门罗技 UE Air Speaker. Wireless speaker with AirPlay. 无线音箱 (AirPlay 技术 )

Stratix V 器件中的收发器配置. Stratix V 器件含有一个专用的收发器物理编码子层 (PCS) 和物理介质附加子层 (PMA) 电路 要实现一个协议, 请使用表 4-1 中所列出的 PHY IP

#MDCC Swift 链式语法应 用 陈乘

NyearBluetoothPrint SDK. Development Document--Android

上汽通用汽车供应商门户网站项目 (SGMSP) User Guide 用户手册 上汽通用汽车有限公司 2014 上汽通用汽车有限公司未经授权, 不得以任何形式使用本文档所包括的任何部分

Technology: Anti-social Networking 科技 : 反社交网络

Supplementary Materials on Semaphores

Spark Standalone 模式应用程序开发 Spark 大数据博客 -

朱晔和你聊 Spring 系列 S1E2: SpringBoot 并不神秘

Command Dictionary -- DAMSTAB

public static InetAddress getbyname(string host) public static InetAddress getlocalhost() public static InetAddress[] getallbyname(string host)

PTZ PRO 2. Setup Guide 设置指南

1. DWR 1.1 DWR 基础 概念 使用使用 DWR 的步骤. 1 什么是 DWR? Direct Web Remote, 直接 Web 远程 是一个 Ajax 的框架

S 1.6V 3.3V. S Windows 2000 Windows XP Windows Vista S USB S RGB LED (PORT1 PORT2 PORT3) S I 2 C. + 表示无铅 (Pb) 并符合 RoHS 标准 JU10 JU14, JU24, JU25

Declaration of Conformity STANDARD 100 by OEKO TEX

SNMP Web Manager. User s Manual

T19264B -1 SPECIFICATION FOR APPROVAL 产品说明书 T19264B-1( 带中文字库 ) APPOVED SIGNATURES Blue Moon Customer

TDS - 3. Battery Compartment. LCD Screen. Power Button. Hold Button. Body. Sensor. HM Digital, Inc.

CA Application Performance Management

测试 SFTP 的 问题在归档配置页的 MediaSense

静态路由 : ip route ; 命令格式 router(config)#ip route ; 静态路由举例 router(config)#ip route

Packaging 10Apr2012 Rev V Specification MBXL HSG 1. PURPOSE 目的 2. APPLICABLE PRODUCT 适用范围

Safe Memory-Leak Fixing for C Programs

H3C CAS 虚拟机支持的操作系统列表. Copyright 2016 杭州华三通信技术有限公司版权所有, 保留一切权利 非经本公司书面许可, 任何单位和个人不得擅自摘抄 复制本文档内容的部分或全部, 并不得以任何形式传播 本文档中的信息可能变动, 恕不另行通知

Micro SD card Serial Mp3 Module CY-T16 V1.0

MateCam X1 User Manual

CloudStack 4.3 API 开发指南!

Build a Key Value Flash Disk Based Storage System. Flash Memory Summit 2017 Santa Clara, CA 1

DVS-8501E/DVS-8501E-H 单通道 H.264 数字视频编码器

¼'' TS 法律声明 10. MUSIC Tribe

Windows Batch VS Linux Shell. Jason Zhu

OpenCascade 的曲面.

DEV Office 客户端开发增强

New Media Data Analytics and Application. Lecture 7: Information Acquisition An Integration Ting Wang

mod_callcenter callcenter.conf.xml 范例 odbc-dsn

Lecture 3 for pipelining

Specifications 产品规格书 USB-D M X 控制器. DESCRIPTION: USB-D M X Control 产品名称 : MODEL NO: USB-DMX512-CONTROL 产品型号 :

Computer Networks. Wenzhong Li. Nanjing University

Congestion Control Mechanisms for Ad-hoc Social Networks 自组织社会网络中的拥塞控制机制

Cisco IP Phone 8800 系列和 Cisco IP Conference Phone 8832 多平台 电话设置指南

Skill-building Courses Business Analysis Lesson 3 Problem Solving

1. Features. 2,Block diagram. 3. Outline dimension V power supply. 3. Assembled with 20 x 4 character displays

测试基础架构 演进之路. 茹炳晟 (Robin Ru) ebay 中国研发中心

Bi-monthly report. Tianyi Luo

Oriented Scene Text Detection Revisited. Xiang Bai Huazhong University of Science and Technology

Presentation Title. By Author The MathWorks, Inc. 1

Operating Systems. Chapter 4 Threads. Lei Duan

FLIGHT INSTRUMENT PANEL

漂亮的测试. By Alberto Savoia 代码之美 第七章 史际帆

RPG IV 新特性概览. 钟嘉田 DB2 for i Performance, IBM 中国系统与科技研发中心

VAS 5054A FAQ ( 所有 5054A 整合, 中英对照 )

Logitech ConferenceCam CC3000e Camera 罗技 ConferenceCam CC3000e Camera Setup Guide 设置指南

Software Engineering. Zheng Li( 李征 ) Jing Wan( 万静 )

EBD EBD. end

ZWO 相机固件升级参考手册. ZWO Camera Firmware Upgrade reference manual. 版权所有 c 苏州市振旺光电有限公司 保留一切权利 非经本公司许可, 任何组织和个人不得擅自摘抄 复制本文档内容的部分或者全部, 并

2. Introduction to Digital Media Format

Grandstream Networks, Inc.

Autodesk Backburner 2011 安装手册

Chapter2 Instruction Sets

Sun XVR-300 图形加速器用户指南

密级 : 博士学位论文. 论文题目基于 ScratchPad Memory 的嵌入式系统优化研究

Mini Bluetooth Keyboard 迷你蓝牙键盘. instructions 使用指南 (KP BTL)

SHANDONG UNIVERSITY 1

BXL SDK for UPOS Compliant Android

最短路径算法 Dijkstra 一 图的邻接表存储结构及实现 ( 回顾 ) 1. 头文件 graph.h. // Graph.h: interface for the Graph class. #if!defined(afx_graph_h C891E2F0_794B_4ADD_8772_55BA3

Transcription:

命令模式 CUSTOM [(filename)] [parameters] Executes a "custom-designed" command which has been provided by special programming using the GHS Programming Interface. 通过 GHS 程序接口, 执行一个 用户设计 的命令, 该命令由其他特殊程序提供 参数说明 filename The file name of the program containing the implementation of the custom-designed command. This is normally a Dynamic Link Library file with default extension ".DLL". 程序文件名包含了用户设计的命令的执行过程 这通常是一个动态链接库文件, 其拓展名一般为 ".DLL" parameters Information to be passed to the custom command. The format and interpretation of this information depends on the design of each particular custom command. 传递到用户命令中的信息 由于每个用户命令各异, 所传递信息的格式与注释也不相同 Operation 操作 This command attempts to load and execute a program file which is assumed to be compatible with the GHS system. When the execution of that program is successful and complete, control returns to the GHS command interpreter and the dialog area of the screen is cleared. 这个命令尝试去载入和执行一个可以和 GHS 系统兼容的程序文件 当该程序成功执行完毕, 控制将回到 GHS 命令输入区, 并且屏幕对话框会清除 As an example, the command "ADD2" is built in to the standard GHS/BHS and is accessed through the CUSTOM command. This presents an interactive screen for entering two-point nonuniform distributed weights. (Since it is built-in, an external ADD2 file is not required.) 例如, 命令 ADD2 已在标准的 GHS/BHS 中, 并且通过 CUSTOM 命令导入 这将呈现一个可操作窗口用来输入两个点的非均布的分布重量 ( 因为这是内置的, 所以不需要外部 ADD2 文件 ) Custom formats for the Sensor Interface (SI) module 传感器接口 (SI) 模块的用户格式 The optional SI module uses CUSTOM (GHSERIAL) command formats to communicate with real-time gauging systems by means of supported pre-programmed protocols: 可选模块 SI 使用 CUSTOM (GHSERIAL) 命令格式, 通过所支持的预先设定的协议, 实现与实时测深系统通讯 : 19 March 2014 (10 CUSTOM) Rev. G Page: 1/

CUSTOM (GHSERIAL) START [configfile] [/Log Dump[:logfile]] Starts serial communication between GHS and external real-time systems. Communication is configured according to the specified configfile (or GHSERIAL.DAT by default). If the /LOG or /DUMP parameter is present, then each received serial message is logged to logfile (default GHSERIAL.LOG; formatted for /LOG or dumped raw for /DUMP). GHS 与外部实时系统之间开始进行串行通信 通信根据指定的配置文件 configfile 设定 ( 默认为 GHSERIAL.DAT) 如果出现参数 /LOG 或 /DUMP, 则每个接收信息都被录入到文件 logfile ( 默认是 GHSERIAL.LOG;/LOG 为格式编排后的数据,/DUMP 为原始数据 ) The configuration file is composed of serial parameter lines beginning with the "$" character, followed by an indexed list of data items from the serial stream. Serial parameter formats are: 配置文件由一系列参数组成, 以字符 "$" 开头, 其后为串行数据流的索引 系列参数格式如下 : $TYPE protocol - the name of a supported serial protocol type (required); $TYPE protocol - 支持的串行协议类型名称 ( 必须 ); $PORT name - serial port name (default=com1; others may vary by $TYPE); $PORT name 串行端口名称 (default=com1; 其他会因为 $TYPE 而不同 ); $BAUD rate - baud rate in bits per second; $BAUD rate 波特率, 单位 : 位 / 秒 ; $PARITY method - parity (0=none, 1=odd, 2=even); $PARITY method 奇偶校验 (0= 空, 1= 奇, 2= 偶 ); $DATABITS bits - number of data bits per byte; $DATABITS bits 每字节数据位数 ; $STOPBITS bits - number of stop bits (1, 1.5, or 2); $STOPBITS bits 结束位数 (1, 1.5, or 2); $IDFIELD field - ID field position index in each record (default=1); $IDFIELD field 每次记录的位置 ID 索引 ( 默认 =1); $IDLEN chars - ID field character length; $IDLEN chars 编码字符长度 ; $DEFFIELD field - default data field position index (default=2); $DEFFIELD field 默认数据区位置索引 ( 默认 =2); $SCALEn factor - scale factor for nth field data (default=none); $SCALEn factor 第 n 项数据比例因子 ( 默认 = 无 ); 19 March 2014 (10 CUSTOM) Rev. G Page: 2/

$SLAVE address - responding slave (def 0=broadcast; <0=-master's slave); $SLAVE address 反应装置 ( 默认 0= 传播 ;<0=- 主控装置 ); $INRANGE first,last - record IDs queried every timeout (def=all);; $INRANGE first,last 在每个时间段中, 记录 ID( 默认 = 全部 ) $READPLUSn offset - record ID offset for nth extra READ variable (def=0); $READPLUSn offset 记录第 n 个额外 READ 变量的 ID 变址 ( 默认 =0); $WRITEPLUS offset - record ID offset for WRITE variable (default=0); $WRITEPLUS offset 记录 WRITE 变量的 ID 变址 ; $PLUSFIELDn field - field position for nth extra READ (or WRITE if n=0); $PLUSFIELDn field 第 n 次额外读取 (n=0 时为写入 ) 位置 ; $PREFIX str - prefix applied to record IDs from data items (default=none); $PREFIX str 给记录数据 ID 加前缀 ( 默认无 ); $SUFFIX str - suffix applied to record IDs from data items (default=none); $SUFFIX str - 给记录数据 ID 加后缀 ( 默认无 ); $STARTCHAR value - start of packet character ASCII value; $STARTCHAR value 开始数据包的字符的 ASCII 值 ; $SEPCHARS value,... - list of field separator ASCII values; $SEPCHARS value,... 列出区域分离符的 ASCII 值 ; $MAXGAP seconds - maximum interval gap between characters in a packet; $MAXGAP seconds 数据包中字符间的最大间隔时间 ; $MAXIDLE seconds - maximum idle time before clearing unfinished packet; $MAXIDLE seconds 清除未完成包之前的最大停歇时间 ; $TIMEOUT seconds - timeout for reading or sending packets. $TIMEOUT seconds 读取或发送的超时设定 Each line in the indexed list of data items is composed of a record ID string (which may be surrounded by quotes), optionally followed by a data field position index (default set by $DEFFIELD). For example, a line containing "TANK6P 3" indicates data from the 3rd field of the record marked with ID="TANK6P". If the ID string is empty (e.g. ", 3"), then the indexed field is taken from any common or system data not associated with particular records. 数据项目的每一行索引都由一个记录字符串 ID 组成 ( 可由引号引出 ), 其后还能可选加上一个数据区域位置索引 ( 默认设置为 $DEFFIELD) 例如,"TANK6P 3" 表示来自的第三数据区域,ID 19 March 2014 (10 CUSTOM) Rev. G Page: 3/

为 "TANK6P" 的记录 如果 ID 为空 ( 即 :", 3"), 那么索引区域将取自任何非特殊记录的普通或系统数据 Configuring "$TYPE TEXTFILE" uses the text file specified by $PORT instead of a serial port for communications. Fields on each record line are Comma-Separated Values (CSV) unless $SEPCHARS are specified. Consecutive separators are treated as a single separator unless repeated in the $SEPCHARS list. Spaces or tabs are trimmed around fields without acting as separators if listed after any others in $SEPCHARS. Surrounding quotes are removed around fields, and internal quotes should be doubled. The text file is checked every 10 seconds or as specified by $TIMEOUT. 设定 "$TYPE TEXTFILE" 时将使用 $PORT 所指定的文本文件, 替代了串行端口 在没有定义 $SEPCHARS 的情况下, 每行记录区域都是逗号分隔 (CSV) 除非分隔符在 $SEPCHARS 列表里重复, 连续分隔符和一个分隔符功能相同 如果列在 $SEPCHARS 中其他字符之后, 空格和跳格不会有分隔功能 区域外围的引号将会被删除, 内部若有引号需重复打引号 如果没在 $TIMEOUT 里另外定义, 文本文档将每 10 秒检查一次 CUSTOM (GHSERIAL) READ listindex varname [extra1]... Reads the current value of the indexed item from the configured data list into the named variable. For example, "CUSTOM (GHSERIAL) READ 5 X" sets the existing X variable equal to the data item indicated by the 5th data line listed in GHSERIAL.DAT. If listindex is zero, then varname is loaded with the number of seconds since last valid data was received (positive if any changed data received since READ 0 was last done, negative if not, or zero if no valid data received since communication started). If extra variable names are present, each extran variable is read from the item configured for the indexed record ID added to the corresponding $READPLUSn offset. 将当前配置数据中指定位置 listindex 的数据, 赋值给指定变量 varname 例如,"CUSTOM (GHSERIAL) READ 5 X" 设定变量 X 的值为 GHSERIAL.DAT 中第五行所指数据 如果 listindex 为 0, 那么 varname 将记入上次接收有效数据所用的秒数 ( 如果最后执行 READ 0 后接收到了更改数据, 则为正值, 反之为负 ; 如果连通开始后没有接收任何有效数据, 则为 0) 如果出现额外的变量名, 每个额外变量都是配置数据中 ID 的变址, 用于添加到 $READPLUSn 中 CUSTOM (GHSERIAL) WRITE listindex value Writes the specified value to the indexed item from the configured data list, marked for later transmission when using protocols that support bidirectional communication. The indexed record ID is added to any $WRITEPLUS offset to determine the ID to write and transmit. For Modbus protocol type, the default $WRITEPLUS is -10000 to convert holding register IDs (relative to address 40001) to input register IDs (relative to address 30001). 将指定数据 value 写入到配置数据的指定位置 listindex 中, 供支持双向通信协议之后传送 ID 的变址可写入 $WRITEPLUS 中, 以确定用来写入和传输的 ID 对于 Modbus 形式, 默认 $WRITEPLUS 是 -10000 来转换从保存寄存器 ( 对应地址为 40001) 到输入寄存器的 ID( 对应地址为 30001) CUSTOM (GHSERIAL) CLEAR Clears the current values of all data items. 19 March 2014 (10 CUSTOM) Rev. G Page: 4/

清除所有数据项目的当前值 CUSTOM (GHSERIAL) STOP [/Keep] Stops serial communication. If /KEEP is present, subsequent CUSTOM (GHSERIAL) READ commands can still be used to fetch the final values of data items when communication terminated. 停止串行通信 如果出现 /KEEP, 之后的命令 CUSTOM (GHSERIAL) READ 在传输终止后仍然能够获得最终数据 CUSTOM (GHSERIAL) TEST [testfile] Loads test data from the specified testfile (or GHSERIAL.TST by default), simulated as if received via serial communication. 从指定的文件 testfile 载入文字数据 ( 默认为 GHSERIAL.TST), 可以模拟似从串行通信中接收到的数据 Output 输出 Any output would be from the custom-designed program. 所有输出都能来自用户设计程序 Examples 样例 Executing a custom command implemented in the file NEWSTAT.DLL and passing to it the parameter string "PROFILE RA": 执行在文档 NEWSTAT.DLL 中的用户命令, 并且传送参数 "PROFILE RA": CUSTOM (NEWSTAT) PROFILE RA Accessing the built-in command for entering weight items: 访问内部指令从而输入重量信息 : CUSTOM (ADD2) Fetching the value of the second configured data item after ending serial communication: 终止串行通信后, 获取第二位配置的数据值 : CUSTOM (GHSERIAL) START WAIT 10 CUSTOM (GHSERIAL) STOP /KEEP VARIABLE TANKLEVEL CUSTOM (GHSERIAL) READ 2 TANKLEVEL 19 March 2014 (10 CUSTOM) Rev. G Page: 5/