OtisDocumentD7001BAInterfaceBoardOtisEngineeringPage1BABoardUserManualUnpublishedWork-OtisElevatorCompany2003BA板用户手册2003-05-14NONDISCLOSUREWARNINGThisworkcontainsproprietaryinformationandisthepropertyofOtisElevatorCompany.Itisdistributedonlytothoseemployeeswithaneedtoknowtheinformationanditmaynotbereproduced,disclosed,ordistributedtoanypersonoutsidetheemployofOtisElevatorCompanywithoutwrittenauthorizationfromanofficerthereof.Otiscompetitors,customers,formeremployees,retirees,membersofthegeneralpublicandconsultantsnotboundbyawrittennondisclosureagreementareamongthoseoutsidetheemployofOtis.Intheeventthatanemployeeinthepossessionofthisworknolongerneedstheinformation,retires,resignsisterminatedorlaidofffromOtis,orintheeventthatapersonoutsidetheemployofOtiscomesintopossessionofthiswork,suchemployeeorpersonshoulddestroytheworkorreturnittoOtis.Anyunauthorizedreproduction,disclosure,ordistributionbyanypersonofanyportionofthisworkmaybeabreachofdutyowedbysuchpersontoOtisElevatorCompanyandcouldresultindamagesactionableatlaw.PROHIBITIONONCOPYINGAnyunauthorizedreproduction,disclosure,ordistributionofcopiesbyanypersonofanyportionofthisworkmaybeaviolationofCopyrightLawsoftheUnitedStatesofAmericaandothercountries,couldresultintheawardingofStatutoryDamagesofupto$100,000(17USC504)forinfringementandmayresultinfurthercivilandcriminalpenalties.Allrightsreserved.OtisDocumentD7001BAInterfaceBoardOtisEngineeringPage2BABoardUserManualUnpublishedWork-OtisElevatorCompany2003RevisionHistoryVersionDateAuthorDescription1.02003-05-14ZHANGLYOriginalthemanualOtisDocumentD7001BAInterfaceBoardOtisEngineeringPage3BABoardUserManualUnpublishedWork-OtisElevatorCompany2003概述BA板用于采样OTIS电梯楼层、方向及状态信号,且以串行通信的方式传送出去,串行通信为标准的RS485半双工接口。BA板每100mS采样一次输入信号,并按照一定的格式编码保存起来,等待上位机查询。BA板按从机方式工作,由板上的拨码开关的bit1~bit5设识别地址,上位微机为主机,微机通过RS485总线以巡查方式收取BA板上的相关数据。其巡查原理也是这样,上位微机向RS485总线发出所要查询的BA板(也就是对应于某台电梯)的地址指令,BA板接到指令后判断是否为本机地址;如果是本机地址,则向总线发出测量数据指令,上位微机在总线上接收该BA板的测量数据指令。1.拨码开关设置1.1DIP拨码开关S1位置于“ON”则逻辑为“1”,否则为“0”。BT2BT1BT0ADD4ADD3ADD2ADD1ADD01.2节点识别地址设置识别地址由ADD0-ADD4设定。地址设置ADD4ADD3ADD2ADD1ADD0地址选择000011000102000113001004OtisDocumentD7001BAInterfaceBoardOtisEngineeringPage4BABoardUserManualUnpublishedWork-OtisElevatorCompany200300101500110600111701000801001901010100101111011001201101130111014011111510000161000117100101810011191010020101012110110221011123110002411001251101026110112711100281110129111103011111311.3波特率设定波特率由BT0-BT1设定,如下表。BT2BT1BT0波特率(BIT/S)000576000012880001019200011144001009600101480011024001111200OtisDocumentD7001BAInterfaceBoardOtisEngineeringPage5BABoardUserManualUnpublishedWork-OtisElevatorCompany20032.串行通信协议2.1命令本协议共有两条命令,全部是字节流形式,由主机发送控制命令、BA板采用被动接收并以应答的方式发回电梯状态信息,命令执行完毕可根据返回的字节流判断命令执行是否成功,现分别介绍如下:(除非特别指明,每一格代表一个字节)2.1.1巡查地址命令发送命令格式A1H地址2.1.2状态信息命令发送命令格式82H00H05H状态1状态2状态3状态4状态52.2命令解释2.2.1定义1.巡查指令76543210101000012.识别地址76543210000XXXXX3.状态传输指令76543210100000104.状态信息起始地址76543210000000005.状态信息长度76543210000001016.状态信息编码OtisDocumentD7001BAInterfaceBoardOtisEngineeringPage6BABoardUserManualUnpublishedWork-OtisElevatorCompany2003状态1:76543210INF8INF7INF6INF5INF4INF3INF2INF1状态2:76543210楼层数据百位(半位)UPDNINF10INF9状态3:76543210楼层数据十位状态4:76543210楼层数据个位状态5:76543210校验(前四个状态字异或)2.2.2楼层数据译码电梯系统的楼层数据是十六段显示编码,BA板测量到的电梯系统十六段显示编码的楼层译成二进制码,楼层数据按百位(实际为半位)、十位、个位分别编码,状态2的高半位为百位,状态3为十位,状态4为个位。十六段显示编码到二进制码译码关系如下表。二进制码显示二进制码显示二进制码显示二进制码显示0000AA14K1EU0110BB15L1FV0220CC16M20W0330DD17N21X0440EE18O22Y0550FF19P23Z06610G1AQ24-07711H1BR25*08812I1CS26不显示09913J1DT2.2.3校验字校验字由状态5描述,校验字是其前4个字节相异或所得,即:状态5=状态1⊕状态2⊕状态3⊕状态4OtisDocumentD7001BAInterfaceBoardOtisEngineeringPage7BABoardUserManualUnpublishedWork-OtisElevatorCompany20033.性能指标电源输入电压额定30VDC允许范围18-40V输入电流额定100mA允许范围2A功耗MAX3W