Omron PLC与安川hlOOO变频器通讯Omron PLC 配置:PRM21 Profibus 通讯楔块 1 个 安川变频器配置:SI-P Profibus通讯卡1块(SI-P3) 接线图如下:PLC在此处设置Masterl的站号,设为0即可A-LineB-Line安川变频器注:1 > PC机向PRM21 Profibus模块下传通讯协议时必须 用PRM21 Prof ibus模块上的9针串口传送,向PLC下 传程序时必须用CPL模块上的9针串口传送2、1、PC机向PRM21 Profibus模块下传通讯协议的联 接电缆与PC机向PLC下传程序时的联接电缆完全相同在PC机中安装:Sycon新建文件,配置主站:点击下拉菜单Inseil…VMaster C200HW-PRM21 (主站地址)点击下拉菜单 Inser-TSlave PROFIBUS-DP INTERFACE CARD SI-P (从站地址) 主站地址选中Auto addressing,从站地址与对应的变频器的站地址设置号要相同1、 将光标放在主站下Masterl2、 点击下拉菜单OnLine^Download…3、 通讯口设为COM14、 点击下拉菜单OnLine^Start debug Mode开始调试,如果出现绿线,0K; 如果出现红线,表示未通讯上。
5、 安川变频器设置如下:bl-01=3 bl-02二3F6-30设成与从站地址对应F6-32设为16、 默认设置情况下Profibus输入、输出控制字:控制变频器的字地址Outputs二IR050〜099变频器输出的字地址Inputs二IR350〜3997、 Profibus通讯使能设置 n. 00=1, n=100+10XPRM21 模块站号例如:PRM21模块站号设为0,需要将100.0置1如果变频器不运行,将变频器按二线式出厂初始化后,重新设置上述参数,根 据需要,设置加减速时间、电压、最高运行频率、基本频率等,尽可能做自学习有关控制字的位地址功能,请查询相关资料频率控制时,控制字与对应的频率的量值如下:IR51=500 (十进值)时频率为5HzIR51=1000 (十进值)时频率为10HzIR51=5000 (十进值)时频率为50Hz8、 更改输入、输出地址的方法:设置数据(DM区)起始地址m =1000+100XPRM模块站号例如,模块站号=0,设置(十六进制):DM 1000=1 (一个自定义输出地址)DM1002二A400 (输出起始地址)DM 1003= 16 (输出字长)DM 1007=1 (一个输入自定义地址)DM1009二A416 (输入起始地址)DM1010二16 (输入字长)上面的设置,可以使PLC连接一台变频器,PLC对变频器的输出地址段为 IR400〜IR415,输入地址段为IR416〜IR431。
当PLC与多台变频器组成Profibus 通讯网时,可以更改起始地址和字长起始地址可以设为#0000,对应地址为DM0; 设为#B0000,对应地址为HRO (HR区数据有断电保持的功能)附:输出地址定义DM wordValueMeaningmNumber of output data areas0Default mappingC200HS:PLC addresses IR050 ~ IR081 are mapped toUnit output buffer bytes 000 ~ 063C200HE,C200HG,C200HX:PLC addresses IR050 ~ IR099 are mapped toUnit output buffer bytes 000 ~ 0991One user-defined data output area2Two user-defined data output areasotherDefault mapping (see value 0000)m+1Output area 1 : start address in the output buffer0000 ~0510Byte 000 ~ 510 (even) in output buffer of the UnitotherSetting error *1, output area is ignoredm+2Output area 1 : start address in the CPU0000 ~40950000 ~5999DM0000 ~ DM4095 (C200HE-CPU11)DM0000 ~ DM5999 (all other CPUs)A000 ~A235IR000 ~ IR235A300~A511IR300 ~ IR511B000~B099HR00 ~ HR99C000 ~C063LR00 ~ LR63otherSetting error *1, output area is ignoredm+3Output area 1 : size0000-0000 ~ 0100 words to be transferred from PLC to0100Unit output buffer *2otherSetting error *1, output area is ignoredm+4see m+1Output area 2 : start address in the output bufferm+5see m+2Output area 2 : start address in the CPUm+6see m+3Output area 2 : size输入地址定义DM wordValueMeaningm+7Number of input data areas0Default mappingC200HS:Unit in put buffer bytes 000 ~ 063 are mapped to PLC addresses IR350 ~ IR381C200HE,C200HG,C200HX:Unit input buffer bytes 000 ~ 099 are mapped to PLC addresses IR350 ~ IR3991One user-defined data in put area2Two user-defi ned data in put areasotherDefault mapping (see value 0000)m+8Input area 1 : start address in the input buffer0000 ~ 0510Byte 000 ~ 510 (even) in input buffer of theUnitotherSetting error *1, input area is ignoredm+9Input area 1 : start address in the CPU0000 ~ 4095DM0000 ~ DM4095 (C200HE-CPU11)0000 ~ 5999DM0000 ~ DM5999 (all other CPUs)A000 ~ A235IR000 ~ IR235A300 ~ A511IR300 ~ IR511B000 ~ B099HR00 ~ HR99C000 ~C063LR00 〜LR63otherSetting error *1, input area is ignoredm+10Input area 1 : size0000 ~ 0100000 ~ 100 words to be transferred from Unitinput buffer to PLC *2otherSetting error *1, input area is ignoredm+11see m+8Input area 2 : start address In the input bufferm+12see m+9Input area 2 : start address in the CPUm+13see m+10Input area 2 : size。