资源描述
,Training TASC Driving Control Products,Driving the world,TASC /,George JIN,/,May 8, 2003,*,DEVICENET,参数通道说明,以上说明仅供参考,详细内容请参看,SEW,样本,Fieldbus Unit Pro Parameter List,1,参数通道说明,The M-files are divided into a request file (M0-file) and a response file (M1-file). The data transmission is shown in following Fig.,2,Request Telegram,:,3,4,Cmd/status Code,:,5,Class,:,Register object class (class 7),The SEW parameter data channel can be addressed using the services Get_Attribute_Single and Set_Attribute_Single. The following possibilities for addressing the parameter data channel derive from the way the register object is specified by DeviceNet so INPUT objects can only be read and OUTPUT objects can be read and written.,Parameter object class (class 15),The fieldbus parameters of the SEW inverter can be addressed directly via the instance with the parameter object. In order to comply with the DeviceNet specification, the data format for these instances deviates from the SEW fieldbus profile. However, it is also possible to address all parameters of the inverter via the parameter object. Instances 1 to 8 are reserved for this.,6,Instance,:,7,Response Telegram,:,The return codes are sent back in a different format in conjunction with DeviceNet.,The service code of an error message is always 94h (hex).,The general error code of an inverter-specific return code is always 1Fh = proprietary error.,The additional code is identical to the additional code low described in the manual for the fieldbus device profile.,The example shows the proprietary error 10h = Impermissible parameter index.,8,TXID,要自己定义;,CMD,:,1,为执行,,4,为删除;,Connection,固定为,0,;,SIZE,为报体的长度,单位是,byte,;,Service: E,h,为读,,10,h,为写;,MAC_ID,:,DFD11B,的拨码地址;,读或写,Parameter,,,Class,需设为,7,;,Instance,:,1,为读,,2,为写,/,读;,对应,DeviceNet, Attribute,固定为,4,;,Data1,为要读取的,Parameter,的,Index,值,.,报头,报体,N7,:,0,到,N7,:,8,存放发送的报文;,N7:0,N7:1,N7:2,N7:3,N7:4,N7:5,N7:6,Example,:,读参数,INDEX,为,8304(2070,hex,),的值,9,报头,报体,N7,:,10,到,N7,:,15,存放收到的报文;,N7:15,N7:10,N7:11,N7:12,N7:13,N7:14,10,读参数,:,11,
展开阅读全文