数据交换的问题,挺复杂的!

已锁定

Siemens TIA

  • 帖子

    489
  • 精华

    4
  • 被关注

    39

论坛等级:侠圣

注册时间:2011-11-01

普通 普通 如何晋级?

数据交换的问题,挺复杂的!

989

4

2013-08-09 18:53:38

;==============================================================================
;= Marking data structure des cription file OA163092 Shenyang Brilliance-M128 =
;==============================================================================
;E9066 serial port set: 9600 baud, 8 Data Bits, no parity, 1 Stop Bit
;
;Allowable non-ASCII characters: from ASCII (00) to (FF) hex., i.e. "(01)"
;Variables parameters: from %P00% to %P99%
;TX message definition: start definition= %T%, end definition= %R% or %E%
;RX message definition (optionally): start definition= %R%, end definition= %E%
;TX/RX messages sequence execution: %E%
;RX/TX timeout definition: %D% (range= 00000 to 99999 msec/0-> no timeout)
;Open new/Close previous Row Message definition: %Wn% (n: range= 1 to 3)
;Close last Row Message definition: %WE%
;After ";" char. can be inserted a comment and also can be splitted a TX/RX
;block definition over more than one row.
;******************************************************************************
;* Videojet 170i Excel Machine Control Settings *
;******************************************************************************
;******
%T%(1B)(01)(08); -Disable XON/XOFF Transmission
%R%(07)(08); Expected Answer
%D%5000%E%; Timeout 5 sec - Execute Block
;******
%T%(1B)(01)(00); -Reinitialize RS-232 Serial Interface
%R%(07)(08)(07)(01); Expected Answer
%D%5000%E%; Timeout 5 sec - Execute Block
;******
%T%(1B)(01)(01); -Request Clear Ext. and Int. Buffers
%R%(07)(08)(07)(07); Expected Answer
%D%5000%E%; Timeout 5 sec - Execute Block
;******
%T%(1B)(01)(04); -Enable Status Report
%R%(07)(08); Expected Answer
%D%5000%E%; Timeout 5 sec - Execute Block
;******
%T%(1B)(01)(06)(00); -Configure Status Reports Mask (00)
%R%(07)(08)(07)(09); Expected Answer
%D%5000%E%; Timeout 5 sec - Execute Block
;******
%T%(1B)(01)(09); -Enable Print Mode
%R%(07)(08)(07)(06); Expected Answer
%D%5000%E%; Timeout 5 sec - Execute Block
;******
%T%(1B)(01)(10)(05); -Adjust Message Width Factor (10 cpi)
%R%(07)(08)(07)(09); Expected Answer
%D%5000%E%; Timeout 5 sec - Execute Block
;******
%T%(1B)(01)(11)(00)(19); -Set the Line Speed (27 m/min)
%R%(07)(08)(07)(09); Expected Answer
%D%5000%E%; Timeout 5 sec - Execute Block
;******
%T%(1B)(01)(18)(00)(1A); -Load Print Delay (0 strokes)
%R%(07)(08)(07)(09); Expected Answer
%D%5000%E%; Timeout 5 sec - Execute Block
;******
%T%(1B)(01)(1B); -Activate Print Delay
%R%(07)(08); Expected Answer
%D%5000%E%; Timeout 5 sec - Execute Block
;******************************************************************************
;* Videojet 170i Excel Global Message Control Settings *
;******************************************************************************
;******
%T%(1B)(03)(01); -Set Reverse Message Attribute Off
%R%(07)(08); Expected Answer
%D%5000%E%; Timeout 5 sec - Execute Block
;******
%T%(1B)(03)(03); -Set Reverse All Char's Attribute Off
%R%(07)(08); Expected Answer
%D%5000%E%; Timeout 5 sec - Execute Block
;******
%T%(1B)(03)(05); -Set Invert Message Attribute Off
%R%(07)(08); Expected Answer
%D%5000%E%; Timeout 5 sec - Execute Block
;******
%T%(1B)(03)(09); -Set Multi-Stroke Message Factor To 2
%R%(07)(08); Expected Answer
%D%5000%E%; Timeout 5 sec - Execute Block
;******
%T%(1B)(04)(02); -Select 5x7 Single-Line Matrix
%R%(07)(08); Expected Answer
%D%5000%E%; Timeout 5 sec - Execute Block
;******************************************************************************
;* Videojet 170i Excel In-Line Message Control *
;* Variable list set by Flow Control: *
;* - P00 = Product Serial Nr (es. B1 = part type 1.8L) *
;* - P01 = Data (YYMMDD format) *
;* - P02 = Shift(from A to C) *
;* - P03 = Part serial Nr (from 0001 to 9999) *
;* - P04 = Big End Meas. Class (from 01 to 04) *
;******************************************************************************
;******
%T%; -Start message Block definition
;%ROW1%; Open row 1 for Writing
761885201%P01%; Variables set by Flow Control
;%ROW2%; Open row 2 for Writing
;%ENDROWS%; Close rows Writing
(CR); Message terminator
%R%(07)(21); Expected Answer
%D%5000%E%; Timeout 5 sec - Execute Block
;******************************************************************************
;* Videojet 170i Excel In-Line Message Control (es. for test) *
;******************************************************************************
;******
;46=%T%; -Start message Block definition
;47=%ROW1%; Open row 1 for Writing
;48=B$CI0$ ; "B "
;49=$PDyymmdd$ ; "yymmdd " date (format yymmdd)
;50=A ; "X " working shift code - 1 Ascii
;51=0001 ; "nnnn " part serial number - 4 digit
;52=$M17C00$; "cc" big end bore class - 2 digit
;53=%ROW2%; Open row 2 for Writing
;54=%ENDROWS%; Close rows Writing
;55=(CR); Message terminator
;56=%R%(07)(21); Expected Answer
;57=%D%5000%E%; Timeout 5 sec - Execute Block
数据交换的问题,挺复杂的! 已锁定
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC S7-300/400

共有54625条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

快扫描右侧二维码晒一晒吧!

再发帖或跟帖交流2条,就能晋升VIP啦!开启更多专属权限!

  • 分享

  • 只看
    楼主

top
您收到0封站内信:
×
×
信息提示
很抱歉!您所访问的页面不存在,或网址发生了变化,请稍后再试。