前言
E5CZ/AZ/EZ 支持串行通信,包括CompoWay/F, SYSWAY 和Modbus 。
本用户手册说明了E5CZ/AZ/EZ 的通信功能。在使用E5CZ/AZ/EZ 之前,请务必通读并理解本手册,以确保
正确的使用。
另外,阅读之后请妥善保管本手册,以便随时取阅。
© OMRON, 2008
保留所有权利。未经欧姆龙书面许可,不得以任何形式,或以机械、电子、影印、记录或其它任何
方式复制本手册的任何部分,或将其存储于检索系统中,或进行传播。
本手册中信息的使用不涉及专利责任。此外,欧姆龙始终致力于提高产品品质,本手册中的内容可
能随时更改,恕不另行通知。本手册在编制过程中已考虑到各注意事项。但对于错误和省略部分以
及任何由于使用本手册的信息而造成的损失,欧姆龙概不承担任何责任。
I
阅读并理解本手册
请在使用产品之前阅读并理解本手册。如有任何问题或建议,请联系您的欧姆龙代表
保证内容和责任限定
保证内容
欧姆龙的唯一保证是产品自售出起一年 (或其它指定时间)内在材料和工艺上没有缺点。
欧姆龙对产品的无侵权、可售性或特殊用途的适用性均无任何明示或暗示性担保。任何购买者或使用者须
承认单独的购买者或使用者决定了产品将适当地符合他们有意使用的需求。欧姆龙拒绝其它所有保证,无
论明确的或暗示的。
责任限定
欧姆龙将不为产品以任何方式造成的特殊、间接的或因此产生的损坏、利益损失或商业损失负责,无论此
主张是基于契约、保证、疏忽或严格赔偿责任。
欧姆龙对已宣称责任的产品的任何超越单价的行为概不负责。
欧姆龙对产品的授权,修理或其它主张决不负责,除非欧姆龙分析确认产品合理操作、储藏、安装和维护
且未遭受污染、滥用、误用或不当更改或修理。
应用注意事项
使用的适宜性
欧姆龙将不对所有应用于客户应用中的产品结合对各个标准、代码或规章的符合性负责。
在客户的需求中,欧姆龙将提供可用的第三方证明文件来确定产品使用的额定值和局限性。
该信息本身对于完全确定产品与其它产品、机器、系统或其它应用或使用的适宜性并不充分。
以下为一些必须特别注意的应用示例。这并不是详尽无遗地罗列了所有可能的产品用途的列表,也并不意
味着所列用途对产品适用:
z 户外使用、遭受潜在化学污染或电干扰处使用、或未在本手册中提及的条件或用途。
z 核能控制系统、燃烧系统、铁路系统、航空系统、医疗器材、娱乐机械、车辆、安全设备和服从分离
工业或政府规章的安装。
z 可能对生命或财产造成风险的系统、机器和设备。
请了解并遵守所有产品可用性的禁止条款。
切勿将本产品用于可能造成严重生命或财产风险且不能保证整个系统设计于从事风险的场合,欧姆龙产品
已为用在整个设备或系统里而适当地额定并已安装。
可编程产品
对于用户在可编程产品上编程,及其导致的任何结果,欧姆龙概不负责。
II
免责条款
规格的变更
产品规格和附件随时可能基于改进和其它原因而更改。
当已公布的额定值或特性改变,或作出重大结构改变时更改型号编号是我们惯例。但是,产品某些规格可
能作出更改而不予通知。如有疑问,可指派特殊型号编号以为您的请求固定或建立关键规格。请在任何时
候联系您的欧姆龙代表以确认所购产品的实际规格。
尺寸和重量
尺寸和重量仅为名义上的,并不能用作制造用途,即使已说明了公差。
性能数据
本手册所给出的性能数据是用作给用户作为确定适用性的向导,并不予以担保。其将可能表现出欧姆龙测
试条件下的结果,用户必须将其与实际应用需求相联系。实际性能服从欧姆龙的保证以及责任限定。
错误和疏忽
本手册中的信息已小心核对并认为正确;但是对记录、印刷或校对错误或疏忽并不指定责任。
III
注意信息的定义
本手册中使用以下记号,以提供确保产品安全使用所需的注意事项。
所提供的安全注意事项对安全特别重要。必须阅读并记住所有安全注意事项中提供的信息。
安全使用注意事项
符号
使用了以下记号:
注意
符号 含义
注意
禁止
强制注意
表示潜在危险,如不加以避免,可能导致轻度或中度人身伤害或
财产损失。
一般注意
不特定的一般的注意、警告、危险提醒标记。
触电注意
在特定的条件下,有触电可能性的提醒标记。。
一般禁止
不特定的一般的禁止提醒标记。
一般注意
不特定的一般的注意、警告、危险提醒标记。
IV
安全注意事项
通电时请不要触及端子。
否则会由于触电而引起轻度的伤害。
制品中请勿有金属或导线、加工的粉屑等进入;否则有触电、火灾、
故障的危险。
请勿在有易燃性、爆炸瓦斯的地方使用;否则可能引起爆炸。
请勿自行分解、修理、改造及触摸端子内部;否则有触电、火灾、故
障的危险。
注意-火灾和触电的危险
a) 本产品作为开放式过程控制设备通过 UL 认证,必须安装在不能向外喷火构
b) 在使用 1 个以上断路器的情况下,在修理点检前,请关闭所有开关,确保
c) 信号输入为 SELV 限制回路。 *1
d) 注意:为了降低火灾和触电的危险,请勿在内部连接异于2级回路的输出。
在超过寿命的状态下使用输出电容器,会有接点熔着及烧毁的情况发
生。
输出继电器的寿命会因开关容量、开关条件而有很大的不同,因此必
须考虑实际使用条件,请在额定负载、电气寿命次数内使用
造内使用。
产品处于不通电状态。
*2
注意
*1 SELV 回路是一种独立于电源的带有双重绝缘或强制绝缘的电路,不会超过30 V r.m.s. 和42.4 V 峰值
或60 VDC 。
*2 二级电源是一种通过UL 测试和认证的电源,其次级输出的电流和电压被限制在单位级别内。
V
注意
端子螺丝请依规定的扭矩(0.74~0.90N .m)锁紧。螺丝松动,可能会
产生起火。(参见备注)
温控器的各种设定值,请配合控制对象做正确的设定。在设定内容与控
制对象的内容相异的情况下,错误的动作是造成装置的破损与事故的
原因。
当温控器因故障而无法正常运行或影响报警输出时会损坏设备和机
器。为了安全请考量温控器可能的故障,并在系统中安装监视设备。
备注 E5CZ-U 的规定扭矩为 0.5 N·m。
VI
安全使用注意事项
请确保遵守以下注意事项以防止操作失败、故障及对产品的功能和性能产生不利影响。否则可能会导致
意想不到的后果。
1) 本产品专为室内使用而设计。请勿在室外或下列环境中使用。
z 会直接受到加热设备辐射热的地方
z 有水、油等飞溅的地方
z 阳光直射的地方
z 有粉尘、腐蚀性气体(尤其是硫化气体、氨气等)存在的地方
z 温度变化激烈的地方
z 会产生结冰、凝露的地方
z 振动或冲击很强烈的地方
2) 在各型号规定的温度和湿度范围内使用和储藏温控器。
当二个或多个温控器水平紧靠安装或垂直紧安装时,由于温控器的热辐射会导致内部温度上升而降
低使用寿命。这种情况下,需要采取风扇强制冷却或其它通风措施来降低温控器的温度
3) 为了不妨碍散热,温控器周边请勿封闭。温控器本身的通风孔也不要堵塞。
4) 请确认端子的极性,做正确的配线。
5) 配线用压接端子请使用指定尺寸( M3.5 、宽 7.2mm 以下)的端子。明线材料,请使用
2
AWG24~AWG14 的绞线或硬铜线(截面积 0.205~2.081mm
多可以插入两根相同类型和尺寸的配线或两个压接端子。
6) 不使用的端子,请勿连接。
7) 为了避免感应噪声,温控器的接线板的接线应远离高压线或大电流的电源电缆。同样不要让电源线
一起走线或平行于温控器连线,推荐使用单独的管道屏蔽线。
在可能产生噪声的外围设备上安装浪涌吸收器或噪声过滤器,例如电感应设备(如电机、变压器、
螺线管圈、磁性线圈等)。在电源上使用噪声过滤器时,除了确认其电压和电流值外,还应尽可能近
地安装在温控器附近。将温控器及其电源尽可能地远离产生强大的、高频波(如频焊接机、高频机
器等)的设备和产生浪涌的设备。
8) 请在额定负载及电源电压范围内使用本产品。
9) 为了使电源投入时在 2 秒内到达额定电压,请借助开关、继电器等进行瞬间加载。如果电源电压缓
)。(剥线长度 5~6mm 。)一个端口最
慢增加,温控器没有复位,可能会发生输出故障。
10) 电源接通后请确保至少有 30 分钟以上的预热时间,然后再开始实际的控制操作,以保证温度显示
的正确性。
VII
11) 使用自整定时,同时打开温度控制器和负载(如加热器),或在温控器打开前接通负载。如果在接通
负载前打开温控器电源,则不能再进行正确的自整定和实现最优控制。
12) 电源开关或断路器应该靠近单元。请设置作业人员能够马上关上电源的开关或断路器,并做适当的
表示。
13) 取出温控器之前需先关闭电源,请绝对不要用手触摸端子或电子元件,或者给予冲击。插回时,请
不要让电子元件与外壳接触。
14) 关于清洁:请勿使用油漆稀释剂,请用标准等级的酒精。
15) 电源启动后经约 2 秒钟输出才开启,在配置控制回路时请给予充分的考虑。
16) 切换到某些菜单时,输出可能会关闭,请考虑到这一点再进行操作。
17) EEPROM 的记入次数是有寿命的。通过通信等频繁记入数据的场合请使用 RAM 记入模式。
VIII
本手册的说明
手册构成
本手册中,按通信方式进行分别说明。
请结合所使用的系统阅读各章节。
概
概要
要
通信数据
Modbus
通
信
数
据
关于相关手册
本用户手册对 E5CZ/AZ/EZ 的通信功能进行说明。
关于控制器功能的详情,请参见各用户手册。
附
附录
录
IX
X
前言········································································ I
阅读并理解本手册 ················································· II
保证内容和责任限定·············································· II
应用注意事项 ························································ II
免责条款······························································· III
安全注意事项 ·······················································IV
安全使用注意事项 ···············································VII
本手册的说明 ·······················································IX
第1 章 通信方式············································ ········································································ 1-1
1.1 通信方式的概要 ··············································································································1-2
简介 ·····························································································································1-2
通信规格 ······················································································································1-3
传送顺序 ······················································································································1-3
接口 ·····························································································································1-4
布线 ·····························································································································1-4
通信参数 ······················································································································1-6
第2 章 CompoWay/F 通信方式··················· ········································································ 2-1
2.1 数据格式 ·························································································································2-2
命令帧··························································································································2-2
响应帧··························································································································2-3
通信数据 ······················································································································2-4
终止码示例···················································································································2-4
2.2 命令文本构成 ·················································································································· 2-6
PDU构成 ······················································································································2-6
区域定义 ······················································································································2-6
类别代码 (变量类别) ···································································································2-6
地址 ·····························································································································2-7
要素数··························································································································2-7
服务一览 ······················································································································2-7
2.3 服务详情 ·························································································································2-9
变量区域读取··············································································································· 2-9
变量区域写入·············································································································2-10
控制器固有属性读取 ··································································································2-12
控制器状态读取 ·········································································································2-13
回传测试 ····················································································································2-14
动作指令 ····················································································································2-15
2.4 响应代码一览················································································································ 2-20
第3 章 CompoWay/F 和 SYSWAY的通信数据 ··············································································· 3-1
3.1 变量区域 (设定范围 )一览 ·································································································3-2
3.2 状态 ······························································································································3-14
XI
第4 章 SYSWAY (E5□J 和 E5□X格式) 通信方式 ····························································· 4-1
4.1 数据格式 ·························································································································4-2
命令帧格式···················································································································4-2
响应帧··························································································································4-3
通信数据 ······················································································································4-3
SYSWAY命令一览 ·······································································································4-4
4.2 命令解说 ·························································································································4-5
当前值读取···················································································································4-5
设定值写入···················································································································4-6
设定值和操作量监控读取·····························································································4-7
通讯写入切换··············································································································· 4-9
第5 章 Modbus 通信方式 ···························· ········································································ 5-1
5.1 数据格式 ·························································································································5-2
命令帧··························································································································5-2
响应帧··························································································································5-4
错误代码 ······················································································································5-5
5.2 功能一览 ·························································································································5-6
5.3 变量区域 ·························································································································5-7
5.4 服务详情 ·························································································································5-9
变量区域读取··············································································································· 5-9
变量区域写入·············································································································5-11
动作指令 ····················································································································5-14
回传测试 ····················································································································5-19
第6 章 Modbus的通信数据 ·························· ········································································ 6-1
6.1 变量区域与 (设定范围 )一览 ·····························································································6-2
6.2 状态 ······························································································································6-13
附录········································································· ··················································································· A-1
ASCII 代码表 ··························································································································A-2
故障排除 ································································································································A-3
索引 ········································································································································· I-1
修订纪录 ·································································································································R-1
XII
第1 章
通信方式
本章对通信方式及布线方法进行简要说明。在设置设备时请阅读本章。
1.1 通信方式的概要 ·················································1-2
简介···································································· 1-2
通信规格 ····························································1-3
传送顺序 ····························································1-3
接口···································································· 1-4
布线···································································· 1-4
通信参数 ····························································1-6
通信参数设定 ·····················································1-6
通信参数 ····························································1-7
1-1
第 1 章 通信方式
1.1 通信方式概要
简介 通信功能在主机侧进行编程,并由主机监控或设定E5CZ/AZ/EZ 的参数。在此,从
主机开始进行说明。
CompoWay/F是欧姆龙通用串行通信中的统一通信方式。具有统一的帧格式,其
命令依据在欧姆龙生产的PLC 等中有实际成果的FINS* ,便于主机和组件间进行通
信。
概述
*FINS (Factory Interface Network Service )
在欧姆龙FA 网络上的控制器间进行信息传递的协议。
Modbus是一种标准通信控制方式,遵循 Modicon公司的 RTU-模式 Modbus协议
(PI-MBUS-300修订版 J)。支持的功能同CompoWay/F,变量区域的读取,变量区
域的写入,动作指令和回传测试功能。
E5CZ/AZ/EZ 支持以下通信功能。
z 参数的读取 /写入
z 动作指令
z 设定值的选择
通信功能遵循下列条件:
z 仅当“通讯写入” 参数设为ON(启用)时,参数才能被写入。
1-2
通信规格
1.1 通信方式的概要
传送通路连接 RS-485: 多支路
RS-232C: 点对点
通信方式(参见备注1。) RS-485 (2线式半双工)/RS-232C
同步方式 起停同步
通信波特率(参见备注2。) 1200, 2400, 4800, 9600 ,19200 或 38400 bps
通信代码 ASCII
通信数据长度(参见备注
7 或 8位
2。 )
通信终止位(参见备注2。) 1 或 2 位
出错检查 垂直奇偶校验 (无,偶校验,奇校验)
SYSWAY通信时, FCS (帧检测顺序 )
CompoWay/F通信时, BCC (块检查字符 )
Modbus通信时, CRC-16 (循环冗余检查 -16)
流控制 无
接口 RS-485/RS-232C
重启式功能 无
通信缓冲 40 字节
通信响应等待时间 0~99毫秒, 默认时间: 20毫秒
备注1:仅E5AZ和E5EZ支持RS-232C。
概述
备注2 :可以使用通信菜单对通信比特率,数据长度,终止位,垂直奇偶校验进行分别设
定。高亮部分为初始值。
传送顺序
主机传送命令帧时,E5CZ/AZ/EZ 传送与命令内容对应的响应帧。每个命令帧返回一个响
应帧。命令帧和响应帧的动作如下。
命令帧 命令帧
主机
响应帧
从主机侧接收本机的响应到发送下一个指令之间至少等待 2
毫秒。
1-3
第 1 章 通信方式
接口
通过一个标准的RS-485 接口或 RS-232C 接口和主机进行通信。使用一个 K3SC 接
口转换器对RS-485 和RS-232C 接口进行转换。
配线 RS-485
z 连接形态为 1对 1或 1对多。 1对多连接时,包括主机最多能连接 32台。
z 电缆总长最大为 500m 。
2
)~AWG14 (截面积 2.081 mm2)。
通讯变换器
侧
概述
主机侧
z 请使用屏蔽双绞电缆AWG24( 截面积0 。205 mm
简称
端子号
简称
屏蔽线
标记
空
终端负载
端子号
终端负载请使用
屏蔽线
侧
简称
包括主机在内的传送通路的两端,必须进行终端的指定(终
规定传 输路径的两 端,包括主计 算机作为端 节点
端负载的连接)。使用的终端负载不小于 54Ω。
将主机和E5CZ/AZ/EZ的通信规格设为一致。使用1 对多连接时,使所有通信单元的
通信规格保持一致(当然,每个单位的编号是唯一的)。
本章说明E5CZ/AZ/EZ 通信规格的设定方法。有关主机的详情,请参见主机附带的
用户手册。
1-4
RS-232C (仅限于E5AZ/E5EZ)
采用1对1 连接。电缆总长最大为15m 。要延长线路,请使用欧姆龙Z3R RS-232C 光
接口。
对于电缆,请使用屏蔽双绞电缆AWG24( 截面积:0.205mm
2
)。
主机(IBM PC/AT 或兼容)
2.081mm
主机
PIN
PIN
1.1 通信方式的概要
2
)~AWG14(截面积
概述
电缆参考图
导线横截面
1-5
第 1 章 通信方式
通信参数
在通信菜单中设定E5CZ/AZ/EZ 的通信规格。这些参数的设定在 E5CZ/AZ/EZ 的操作
面板上进行。通信参数及其设定范围如下表所示。
项目 记号 设定内容 设定值
通信协议 CompoWay/F (SYSWAY)/Modbus
通信单元号 0~99 0,,1 到99
通信波特率 1.2/2.4/4.8/9.6/19.2/38.4 (kbps) 1.2/2.4/4.8/9.6 /19.2/38.4 (kbps)
概述
通信数据位 7/8位 7 /8位
通信终止位 1/2 1/2
通信奇偶校验 无,偶校验,奇校验
发送数据等待时间 0~99 0~99 ms, 默认时间: 20 毫秒
通信参数设定
高亮部分表示初始值。
使用E5CZ/AZ/EZ 进行通信之前,按以下步骤设定通信单元编号,波特率及其他参
数。关于通信参数设定以外的操作方法,请参见所使用机型的用户手册。
1. 按菜单键 3 秒以上,从“操作菜单”转换到“初始菜单”。
2. 按菜单键少于 1 秒,从“初始菜单”转换到“通信菜单”。
3. 用模式键进行参数的切换。
1-6
4
.
使用上调或下调键更改参数设定值。
1.1 通信方式的概要
协议选择
备注:仅当“ 协议设定” 设为
CompoWay/F 时显示。
通信单元编号
概述
通信波特率
通信数据位(参见备注.)
通信终止位(参见备注.)
通信奇偶校验
发送数据等待时间
通信参数
通信参数设定值改变后,仅在重新启动电源后才有效,请务必注意。
z 协议设定
通信协议可选。可设为 CompoWay/F (SYSWAY)或 Modbus。
z 通信单元编号
此参数为每一个温控器设定唯一的单元编号。设定单元编号的目的是,在与主
机进行通信时,便于主机识别温控器。能在 0~99 的范围内进行设定。初始值
为 1 。当使用 2 个或 2 个以上温控器时,不要设定相同的单元编号。否则,会
影响正常的操作。
z 通信比特率
设定与主机进行通信时的波特率。通信波特率设置如下:1.2
( 1200bps ) ,2.4(2400bps),4.8(4800bps),9.6(9600bps),19.2(19200bps), 和 38.4
(38400bps )
z 通信数据长度
此参数设定通信数据位长度。设为“ 7 位”或“ 8 位”。
1-7
第 1 章 通信方式
z 通信终止位
此参数设定通信终止位长度。可设为“1 ”或“2”。
z 通信奇偶校验
可设定通信奇偶校验。可将奇偶校验设为“无”,“偶校验”或“奇校验”。
z 发送数据等待时间
概述
可设定 1~99 毫秒之间的发送数据等待时间,以 1 毫秒为间隔。
初始值为 20 毫秒。
1-8
第 2章
CompoWay/F 通信方式
使用 CompoWay/F通信格式时,请阅读本章。
2.1 数据格式 ········································································2-2
命令帧 ······································································2-2
BCC计算示例 ·····················································2-3
响应帧 ······································································2-3
通信数据···································································2-4
终止码示例 ·······························································2-4
2.2 命令文本构成 ································································· 2-6
PDU构成 ··································································2-6
区域定义···································································2-6
类别代码 (变量类别) ··············································2-6
地址 ··········································································2-7
要素数 ······································································2-7
服务一览···································································2-7
2.3 服务详情 ········································································2-9
变量区域读取 ··························································· 2-9
变量区域写入 ························································· 2-10
控制器固有属性读取··············································· 2-12
控制器状态读取······················································ 2-13
回传测试·································································2-14
动作指令·································································2-15
2.4 响应代码一览······························································· 2-20
2-1
第 2 章 CompoWay/F 通信方式
2.1 数据格式
在数字前加 H’,表示 16 进制数,如 H’02。不带 H’前缀的数字,表示 ASCII 字符。
在帧的各字段下的数字表示字节数。
命令帧
文本
节点号 子地址
命令文本
计算范围
STX
表示通信帧文本开头的代码。
请在开头字节中设置该字符。
接收期间再一次接收STX 时,从已接收STX 的地方修正接收。
节点号 z 此编号指定传送对象。
z 指定E5CZ/AZ/EZ 的通信单元编号。
z 能进行BCD 值设定 00~99,和 ASCII值“ XX”设定。
z 广播发送时,请指定“XX”。广播发送无响应。
z 对于上述以外的节点号,无响应。
子地址 E5CZ/AZ/EZ不使用子地址。请务必设定为“ 00 ”。
SID (服务 ID) E5CZ/AZ/EZ不使用 SID。请务必设定为“ 00”。
命令文本 命令文本部分。有关详情,请参见2.2 命令文本的构成。
ETX 表示文本结束的代码。
BCC
块检查字符。
将节点号~ETX 的值按每个字节进行XOR (异或)后的值作为BCC 。
2-2
BCC计算示例
BCC (块检查字符)由自节点号~ETX 的值按每个字节进行异或计算的结果决定。将该 8 位
数据写入到帧末尾的 BCC 字节中。
2.1 数据格式
节点号
将计算结果(35H )写入 BCC 字节。
子地址 命令文本
表示XOR (异或)计算,H 表示16 进制。
响应帧
节点号 子地址 终止码 命令文本
终止码 名称 内容 出错检查
00 正常结束 无异常,命令正常结束。 无
OF FINS 命令出错 不能执行指定的 FINS 命令。
有关不执行的详情,请根据 FINS 响应代码进行判断。
10 奇偶校验出错 接收的数据为「 1」的位总和与 [通信奇偶校验 ]的设定值不一致。 2
11 帧出错 终止位为「 0」 1
12 溢出出错 接收数据已满时,希望传送新的数据。 3
13 BCC 出错 接收的 BCC 值和计算的 BCC 值不一致。 5
14 格式出错 z 命令文本包含0~9、 A-F 之外的字符。但是,回传测试除外(详
细请参见回传测试)。
z 没有 SID和命令文本,或没有命令文本。
z 命令文本不包含「MRC/SRC」。
16 子地址出错 z 子地址不正确(不支持)。
z 没有子地址, SID,命令文本。
z 子地址不满 2字符,没有 SID和命令文本。
18 帧长度出错 接收帧超过规定的(支持)字节数。 4
z 终止码对本地节点的 1个命令帧接收进行回送。
z 到 ETX, BCC字符为止没有结束时,则没有响应。
z 出错检查优先顺序表示同时发生多个出错时的顺序。
BCC
优先顺序
8
7
6
2-3
第 2 章
通信数据
CompoWay/F 通信方式
通信
格式
设定(监视)值 负值 小数点
CompoWay/F 8 位16进制 2 的余数 省略小数点并将结果转化为 16进制数。
示例:105. 0→1050→H’0000041A
终止码示例
下例所示为命令没有正常结束时的终止码。
示例1 ) 子地址不正确,没有SID ,命令文本时
命令
节点号
子地址
BCC
响应
节点号
子地址
终止码
BCC
终止码为16 (子地址出错)
可以接收子地址,因为子地址出错检查的优先级高于格式出错。
示例2 ) 没有命令文本时
命令
节点号 子地址
SID
BCC
响应
节点号 子地址
终止码
BCC
终止码为14 (格式出错)
2-4
示例3 ) 节点号未提供时
命令
节点号,缺1 个字符
响应
没有响应
示例4) 没有子地址,BCC不正确时
命令
2.1 数据格式
节点号
BCC
响应
节点号
子地址
终止码
BCC
子地址设为00
,终止码为13 (BCC 出错)。
2-5
第 2 章
CompoWay/F 通信方式
2.2 命令文本构成
PDU构成 向命令文本传送MRC( 主请求代码 ),SRC( 子请求代码 )以及与之相连的各个必要数
据。
服务请求PDU
响应帧中,紧接着上述MRC/SRC的传送,传送MRES(主响应代码)和SRES(子响应
代码),接着继续传送数据。
服务响应PDU( 正常时)
无法执行指定命令文本时,仅MRC/SRC,MRES/SRES 成为目标响应PDU 。
服务响应PDU( 不执行指定命令文本时)
MRES/SRES 提供响应。正常结束时MRES/SRES 不输出。
区域定义 仅由变量区域构成。
类别代码 (变量类别 )
下表所示为变量区域的类别代码。
存取尺寸
11:双字
变量类别(1 字节
区域
0:设定区域 0
1:设定区域 1
读取 /写入
0:只能读取
1:可读取 /写入
2-6
2.2 命令文本的构成
下表总结了设定区域0 和设定区域1。
区域 说明
设定区域 0 此区域包括了保护,手动控制,操作和调整菜单。
设定区域 1 此区域包括了初始,通信和高级功能菜单。
变量类别转换为2字节的ASCII代码,放入帧内。实际存在的变量类别如下所示。
变量类别
内容
C0 双字数据 ,是设定区域 0的只读参数。
C1 双字数据 ,是设定区域 0的可读写参数。
C3 双字数据 ,是设定区域 1的可读写参数。
* 设定区域 1没有只读参数,所以没有变量类别 “C2。 ”
地址
根据变量类别附加地址。地址用2字节 16进制表示,请加上存取尺寸单位。
要素数
要素数用2字节 16进制表示。要素数的指定范围为 “0 ~ 2”。
示例,要素数为 “0002,”时,从地址中指定两项数据。
服务一览
MRC SRC 服务名称 处理
01 01 变量区域读取 读取变量区域。
01 02 变量区域写入 写入变量区域。
05 03 控制器固有属性读取 读取型号,通信缓冲器的尺寸。
06 01 控制器状态读取 读取运行状态。
08 01 回传测试 进行回传测试
30 05 动作指令 进行运行/停止,AT(自整定)执行/
中止 ,转换到设定区域 1等。
2-7
第 2 章
CompoWay/F 通信方式
z 在存储器异常(RAM 异常)或者控制器初始化时(直到电源接通后控制器读取
当前值为止)不接受任何指令,没有响应。
2-8
2.3 服务详情
变量区域读取
读取变量区域
服务请求PDU
2.3 服务详情
变量
类别
读取开始
地址
位元
位置
要素数
服务请求 CPU
响应代码
读取数据
(要素数部分)
或
(1) 变量类别和读取开始地址
有关变量类别和读取开始地址的详情,请参见第3章 CompoWay/F and SYSWAY
的通信数据。
(2) 位元位置
E5CZ/AZ/EZ 不支持位元存取。固定为 “00”
(3) 要素数
要素数 处理
0000 不进行读取操作(不将读取数据添加到服务请求PDU) ,且
正常结束。
0001到 0002 进行读取操作,且正常结束。
(4) 响应代码
正常结束
响应代码 名称 说明
0000 正常结束 没有异常
发生错误
响应代码 出错名称 原因
1001 命令长度溢出 命令长度过长。
1002 命令长度不够 命令长度不够。
1101 区域类别出错 变量类别错误。
1103 开始地址超出范围 读取开始地址超出范围。
2-9